Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does one build a local version of the extension? #258

Closed
vsaulys opened this issue Mar 6, 2024 · 4 comments
Closed

How does one build a local version of the extension? #258

vsaulys opened this issue Mar 6, 2024 · 4 comments

Comments

@vsaulys
Copy link

vsaulys commented Mar 6, 2024

There is no documentation on this on the project page, and there appears to be an issue when following standard build steps (npm install, npm run package). Run package returns a list of errors about missing dependancies for esbuild:

(base) vssaulys@f84d898f5e35 kx-vscode % npm run package

kdb@1.3.0 package
npx vsce package

Executing prepublish script 'npm run vscode:prepublish'...

kdb@1.3.0 vscode:prepublish
npm run -S esbuild-base -- --minify --keep-names

kdb@1.3.0 esbuild-base
rimraf out && node ./esbuild.js "--minify" "--keep-names"

extension build complete
server build complete
build complete
ERROR Command failed: npm list --production --parseable --depth=99999 --loglevel=error
npm ERR! code ELSPROBLEMS
npm ERR! missing: @esbuild/aix-ppc64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/android-arm@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/android-arm64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/android-x64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/darwin-arm64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/freebsd-arm64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/freebsd-x64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/linux-arm@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/linux-arm64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/linux-ia32@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/linux-loong64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/linux-mips64el@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/linux-ppc64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/linux-riscv64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/linux-s390x@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/linux-x64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/netbsd-x64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/openbsd-x64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/sunos-x64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/win32-arm64@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/win32-ia32@0.19.12, required by esbuild@0.19.12
npm ERR! missing: @esbuild/win32-x64@0.19.12, required by esbuild@0.19.12

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/vssaulys/.npm/_logs/2024-03-06T17_34_18_068Z-debug.log

@lysliu
Copy link

lysliu commented Mar 7, 2024

I build it out on macbook pro with M1 processor

git clone git@github.com:KxSystems/kx-vscode.git
cd kx-vscode
npm run package
brew search npm
brew install npm
brew update
npm run package
npm install -g npm@10.5.0
npm run package
npm install -g rimraf\n
npm run package
npm install esbuild\n

after clone the code and install dependencies, get it built out

➜  kx-vscode git:(main) ✗ npm run package

> kdb@1.3.0 package
> npx vsce package

(node:60767) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Executing prepublish script 'npm run vscode:prepublish'...

> kdb@1.3.0 vscode:prepublish
> npm run -S esbuild-base -- --minify --keep-names


> kdb@1.3.0 esbuild-base
> rimraf out && node ./esbuild.js --minify --keep-names

extension build complete
server build complete
build complete
 DONE  Packaged: /Users/liuyansong/kx-vscode/kdb-1.3.0.vsix (84 files, 2.86MB)

@nfarrell-kx
Copy link
Collaborator

Was this your first time building the project, could you try deleting node_modules?
npm install and npm run package should work as build steps

@vsaulys
Copy link
Author

vsaulys commented Mar 8, 2024 via email

@vsaulys
Copy link
Author

vsaulys commented Mar 8, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants