Describe the bug
Installing and running SafeQL on an M1 machine (
process.arch === 'arm64') causes crashes in the VS Code ESLint Output panel that look like this:
...more... dyld: missing symbol called [Info - 5:42:07 PM] Connection to server got closed. Server will restart. [Info - 5:42:07 PM] ESLint server stopped. [Info - 5:42:07 PM] ESLint server is starting [Info - 5:42:07 PM] ESLint server running in node v16.11.0 [Info - 5:42:07 PM] ESLint server is running. [Info - 5:42:07 PM] ESLint library loaded from: /Users/k/p/next-js-example-spring-2022/node_modules/eslint/lib/api.js dyld: missing symbol called [Error - 5:42:09 PM] The ESLint server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. [Info - 5:42:09 PM] ESLint server stopped.
This also occurs on the command line:
$ yarn eslint . --max-warnings 0 yarn run v1.22.19 $ /Users/k/p/next-js-example-spring-2022/node_modules/.bin/eslint . --max-warnings 0 dyld: missing symbol called error Command failed with signal "SIGABRT". info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
18.10.0, but encountered a similar problem.
i386architecture via Rosetta 2 (
process.arch === 'x64') resolves the issue
Steps to reproduce the behavior:
It should run on Apple Silicon machines too.
Desktop (please complete the following information):
Also asked about this upstream in
libpg-query here: pyramation/libpg-query-node#9 (comment)
Hmm... actually getting this again now.
After investigating a bit, it seems to be an edge case related to running the installation in a VS Code "Intel Chip" terminal - even though the Node.js version installed on the machine is an
libpg-queryand other dependencies - the installation will succeed
yarn eslint . --max-warnings 0- this will fail with the
dyld[...]: missing symbol callederror as in the output below
$ yarn eslint . --max-warnings 0 yarn run v1.22.19 $ /Users/k/projects/next-js-example-fall-2022/node_modules/.bin/eslint . --max-warnings 0 dyld: missing symbol called error Command failed with signal "SIGABRT". info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
So the solutions / workarounds for this are:
A) Install an "Apple Silicon" or "Universal" version of VS Code
B) Run the
yarn installation in a terminal running in
Since there are solutions and workarounds for this, I'm leaving this closed.
|Issue Title||Created Date||Updated Date|