continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
15.36k stars 1.15k forks source link

If I want to build a Visx for the Mac system, do I have to run pnpm package only on the Mac system? Can the generated files from running pnpm package on Windows be used on Mac as well? #1587

Open zxqkevin opened 2 months ago

zxqkevin commented 2 months ago

Before submitting your bug report

Relevant environment info

- OS:mac
- Continue:run pnpm package in windows system
- IDE: vscode

Description

If I want to build a Visx for the Mac system, do I have to run pnpm package only on the Mac system? Can the generated files from running pnpm package on Windows be used on Mac as well?

It seems that there is an error on the Mac side:

dlopen(/Users/deng/.vscode/extensions/continue.continue-0.9.159/out/build/Release/node_sqlite3.node, 0x0001): tried: '/Users/deng/.vscode/extensions/continue.continue-0.9.159/out/build/Release/node_sqlite3.node' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/deng/.vscode/extensions/continue.continue-0.9.159/out/build/Release/node_sqlite3.node' (no such file), '/Users/deng/.vscode/extensions/continue.continue-0.9.159/out/build/Release/node_sqlite3.node' (not a mach-o file)

To reproduce

No response

Log output

No response

sestinj commented 2 months ago

@zxqkevin we're no longer requiring pnpm, and have gone back to npm if you'd like to use that package manager instead. I would recommend doing this, just in case there are details that cause the build to fail in pnpm.

However yes, you do have to separately package for each different operating system. There is a script recently written by a contributor to do this: https://github.com/continuedev/continue/blob/main/extensions/vscode/scripts/prepackage-cross-platform.js