tabeyti / jenkins-jack

Jack into your Jenkins to execute Pipeline scripts, provide Pipeline step autocompletions, pull Shared Library step documenation, run console groovy scripts across multiple nodes, and more! Honestly, not that much more.
Other
98 stars 31 forks source link

Extensions Broken in VSCode - Seeking Workarounds #95

Open Aub-C opened 8 months ago

Aub-C commented 8 months ago

Hello everyone,

I've noticed that several users, including myself, have reported issues with the Jenkins Jack extension in VSCode. As there hasn't been an official fix or response from the maintainers, I wanted to reach out to the community to see if anyone has found a workaround or alternative solution.

Has anyone managed to circumvent the problem or found another extension/tool that serves a similar purpose? Any shared experiences or advice would be greatly appreciated.

Thank you!

moming2k commented 8 months ago

I have the same problem. It happens for both Visual Studio Code and Visual Studio Code Insiders

modestMouse1 commented 8 months ago

Hello - I am also experiencing issues in VSCode, I receive the following error:

Error running command extension.jenkins-jack.connections.add: command 'extension.jenkins-jack.connections.add' not found. This is likely caused by the extension that contributes extension.jenkins-jack.connections.add.
mtcongreve commented 8 months ago

Building and installing the module locally via instructions within the README.md solves the issue for me. I believe the problem here is that the current version published to the Marketplace is not multi-platform, as the keytar dependency module is a binary built for the Windows platform.

❯ file tabeyti.jenkins-jack-1.2.1/extension/node_modules/keytar/build/Release/keytar.node
tabeyti.jenkins-jack-1.2.1/extension/node_modules/keytar/build/Release/keytar.node: PE32+ executable (DLL) (GUI) x86-64, for MS Windows
moming2k commented 8 months ago

I can confirm that building from the source code will resolve the issue.

My MacOS configuration: Apple M1 Pro macOS Sonoma 14.1 Macbook Pro 2021

Besstheone commented 8 months ago

Hello, I tried to build and install it on linux but I have an issue with the refresh: TypeError: Cannot read properties of undefined (reading 'connection') after adding the connection. PS: it works after on Windows

JingleDingDang commented 8 months ago

I can confirm that building from the source code will resolve the issue.

My MacOS configuration: Apple M1 Pro macOS Sonoma 14.1 Macbook Pro 2021

My MacOS M1, recompile the plugin after the installation can work very well

Aub-C commented 8 months ago

I followed similar steps to install the Jenkins Jack extension locally on macOS Intel Ventura, and can confirm that building and installing from source works resolves the connection issues for me.

Here's the process I used, which aligns closely with the previously mentioned method and whats written in the README.md:

git clone git@github.com:tabeyti/jenkins-jack.git
cd jenkins-jack
npm install -g vsce
npm install
vsce package
code --install-extension jenkins-jack-1.2.1.vsix

I'd like to note that the version number in the install command matches the generated .vsix file.

IreshMM commented 4 months ago

I followed similar steps to install the Jenkins Jack extension locally on macOS Intel Ventura, and can confirm that building and installing from source works resolves the connection issues for me.

Here's the process I used, which aligns closely with the previously mentioned method and whats written in the README.md:

git clone git@github.com:tabeyti/jenkins-jack.git
cd jenkins-jack
npm install -g vsce
npm install
vsce package
code --install-extension jenkins-jack-1.2.1.vsix

I'd like to note that the version number in the install command matches the generated .vsix file.

Can you please include the build environment details such as the node version? My build fails on node 21.x

Edit: Build was successful on node:18 docker image.

dramoz commented 3 months ago

If you are using profiles in VS Code, install the VSIX extension from VS Code GUI. https://stackoverflow.com/questions/42017617/how-to-install-vs-code-extension-manually