IBM-Blockchain / blockchain-vscode-extension

IBM Blockchain Platform extension for Visual Studio Code (this project is no longer active)

Home Page:https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IBM Blockchain Platform Extension for VS Code disconnects from WSL Ubuntu

collaboration-tools opened this issue · comments

(Moved to this repository by request of @cazfletch)

On opening the extension, for example by clicking where the icon should be, it shows the panels for the extension but at the bottom left hand side instead of "WSL: Ubuntu" it changes to "Disconnected from WSL: Ubuntu", and brings up a dialog "Attempting to reconnect..." which hangs.

Also, the Extension icon is not shown in the navigation bar, just a blank spot where it should be (still clickable to open the extension).

Prior to installing VS Code, Docker Desktop was running Hyperledger Fabric containers, i.e., Linux has the necessary Node packages installed. The same behaviour occurs in VS Code on removing the containers and quitting Docker.

Windows 10 Pro 10.0.18362
Visual Studio Code 1.37.1
IBM Blockchain Platform Extension for VS Code 1.0.8

VS Code before opening IBM Blockchain Extension

VS Code after opening IBM Blockchain Extension

Hi @keith-harrison-broninski i tried this out using ssh rather than wsl. I don't get exactly the same problem however i do get problems. For now the answer is that the extension doesn't work with remote development but we plan to make it work in the future.

@cazfletch Thanks.

Just as a note, I tried running VS Code from Windows rather than from WSL Ubuntu, and (although the extension icon then appears) get exactly the same behaviour.

Do you have a timeframe for fixing this? Seems like something a lot of people would find useful!

I can confirm that this extension also does not work using remote development via SSH on an EC2 Ubuntu server (18.04). However, error messages are of the type: command 'aPackagesExplorer.createSmartContractProjectEntry' not found (in other words, commands from the activationEvents key in package.json).

I've tried rebuilding grpc in the ~/.vscode-server/extensions/ibmblockchain.ibm-blockchain-platform-1.0.8 directory using the following:

npm rebuild grpc --target=4.2.5 --runtime=electron --dist-url=https://atom.io/download/electron --update-binary --fallback-to-build --target_arch=x64

But no luck.

Works well locally on my Mac though. Would be great to have this running for remote development since it would simplify setting up dev chains in the cloud.

Thanks.

Hey @bizbi - thank you for raising! @cazfletch 's looking into the fix for this :)

Not related to this issue specifically, but I was wondering if you would mind letting me know why you use Remote Development? I'd not heard of it until folks raised issues, so it wasn't a usage-pattern I'd thought of before. I'm a User Experience Designer working on this dev tooling, so I appreciate any chance to learn about how people want to use it!

GitHub reply is fine, or you could drop me an email edmoffat@uk.ibm.com if you prefer! Interested if you use Remote Dev to gain particular advantages for your workflow, or maybe to work around some restrictions you have? Cheers!

closing as not going to support WSL