-
Notifications
You must be signed in to change notification settings - Fork 3
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
Comments
I build it out on macbook pro with M1 processor
after clone the code and install dependencies, get it built out
|
Was this your first time building the project, could you try deleting |
This is my first project, and for the life of me could not figure things out.
Last issue I ran into was rpm install was simply having, I then just rebooted my machine (because that is the default check? Did you turn it on and off again?)
Anyway, rebooting, and rpm build package just WORKED? On my Mac (M2, Sonoma).
Was able to also build with what I think the fix (src/validators/kdbValidator.ts), just increase the string length checks to 512 from 64.
Also modified the tests to check a longer invalid string (513 characters), change was like this in test/suit/validators.test.ts):
it("Should return fail for server password that is outside the size limits", () => {
const result = validateServerPassword(
//"ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt"
"t".repeat(513),
);
assert.strictEqual(
result,
"Input value must be between 1 and 512 alphanumeric characters in length.",
"Input was outside the size limits.",
);
});
I’ve attached the modified files, btw, “rpm run test” is failing now, not clear why?
(base) ***@***.*** kx-vscode % npm run test
***@***.*** test
tsc -p ./test && node ./out/test/runTest.js
error TS2688: Cannot find type definition file for 'sinonjs__fake-timers'.
The file is in the program because:
Entry point for implicit type library 'sinonjs__fake-timers'
Found 1 error.
Also attaching the modified files, it was an easy fix.

Vincent Saulys
***@***.***
… On Mar 7, 2024, at 10:00 AM, nfarrell-kx ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub <#258 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AATBT3UEMDSAIL7ZVPOL3DTYXB6JNAVCNFSM6AAAAABEJP72JOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBTGY4TCNRSGQ>.
You are receiving this because you authored the thread.
|
I have found the core issue.
When debugging TLS connections in q, I had configured and set local SSL certs, they apparently where the root cause to my networking related issues.
Thought I would pass this along, it was my having set these:
SSL_CERT_FILE
SSL_KEY_FILE
I have since moved to using the KX named version of these (e.g. KX_ SSL_CERT_FILE) which admittedly I should have done in the first place.
Vincent Saulys
***@***.***
… On Mar 7, 2024, at 10:00 AM, nfarrell-kx ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub <#258 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AATBT3UEMDSAIL7ZVPOL3DTYXB6JNAVCNFSM6AAAAABEJP72JOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBTGY4TCNRSGQ>.
You are receiving this because you authored the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Executing prepublish script 'npm run vscode:prepublish'...
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
The text was updated successfully, but these errors were encountered: