cursorless-dev / vscode-parse-tree

Syntax trees for VSCode using tree-sitter
MIT License
40 stars 35 forks source link

Error while running `yarn` #30

Closed richardmcmillen closed 2 years ago

richardmcmillen commented 2 years ago

I am just going through the contributor setup for cursorless and got to this step (It is unclear to me if I need to do this or not I just want the most appropriate debugging experience while working on https://github.com/cursorless-dev/cursorless/issues/760) and tried running yarn in this repo and it fails.

yarn
yarn install v1.22.10
$ make web-tree-sitter
Unable to find image 'emscripten/emsdk:2.0.24' locally
2.0.24: Pulling from emscripten/emsdk
345e3491a907: Pull complete 
57671312ef6f: Pull complete 
5e9250ddb7d0: Pull complete 
859aa499d6fa: Pull complete 
04e009ac95c8: Pull complete 
5bfdbd9279e5: Pull complete 
ac435eb7f4a4: Pull complete 
Digest: sha256:81ec54b7a096d28f24d906955dbf98ff336cca47658d980c243baa36f6484f9f
Status: Downloaded newer image for emscripten/emsdk:2.0.24
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/pic/libGL.a... (this will be cached in "/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libGL.a" for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/pic/libal.a... (this will be cached in "/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libal.a" for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/pic/libhtml5.a... (this will be cached in "/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libhtml5.a" for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/pic/libc.a... (this will be cached in "/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libc.a" for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/pic/libcompiler_rt.a... (this will be cached in "/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libcompiler_rt.a" for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/pic/libc++-noexcept.a... (this will be cached in "/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libc++-noexcept.a" for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/pic/libc++abi-noexcept.a... (this will be cached in "/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libc++abi-noexcept.a" for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/pic/libdlmalloc.a... (this will be cached in "/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libdlmalloc.a" for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/pic/libc_rt_wasm.a... (this will be cached in "/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libc_rt_wasm.a" for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/pic/libsockets.a... (this will be cached in "/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libsockets.a" for subsequent builds)
cache:INFO:  - ok
emcc: error: undefined exported symbol: "___cxa_atexit" [-Wundefined] [-Werror]
make: *** [vendor/web-tree-sitter/0.20.4/README.md] Error 1
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I have no idea where to start here and am hoping there is something simple I am missing. If requiring to do this is pretty niche and unlikely to help with working on https://github.com/cursorless-dev/cursorless/issues/760 then I will ignore this step for now.

pokey commented 2 years ago

You don't need to do this for languages where we already have a parser, so you can safely ignore this repo.

In case you're curious, my guess is that you haven't activated emsdk; see the readme for this repo.

But as mentioned above, running this repo locally is not necessary for what you're trying to do