Zulip Chat Archive

Stream: lean4

Topic: Vscode extension npm test


Shreyas Srinivas (Oct 01 2023 at 17:13):

(deleted)

Shreyas Srinivas (Oct 01 2023 at 17:14):

I cloned the vscode repo and followed the build and test process (on _windows_). When running npm test I get

 >  Lerna (powered by Nx)   Running target test for 2 projects failed

   Failed tasks:

   - lean4:test

Upon closer inspection the following error comes up as the first in the stack trace.

lean4: 16:59:07.213 - >>>>>>>>> testsRoot=...\lean\vscode-lean4\vscode-lean4\out\test\suite\pre-bootstrap
lean4: TypeError: Cannot read properties of undefined (reading 'describe')

Shreyas Srinivas (Oct 01 2023 at 17:15):

I have made sure my drive letter is upper-case. I read the other recommendation to purge the elan folder

Shreyas Srinivas (Oct 01 2023 at 17:19):

It says

Try wiping your .elan folder and start over running all tests in order using npm run tests. This
could fix some things, for example, if you have an incompatible default lean toolchain.

This seems a bit overkill. Where should I look to find which toolchain to set as default?

Shreyas Srinivas (Oct 01 2023 at 17:27):

Fwiw, the current default toolchain is leanprover/lean4:v4.1.0

Shreyas Srinivas (Oct 01 2023 at 17:27):

What's the fix for this?

Notification Bot (Oct 01 2023 at 17:32):

This topic was moved here from #lean4 > Vscode repo test by Shreyas Srinivas.

Notification Bot (Oct 01 2023 at 17:32):

This topic was moved here from #lean4 > Vscode extensionrepo test by Shreyas Srinivas.


Last updated: Dec 20 2023 at 11:08 UTC