ibmdb / vscode-extension

vscode extenstion for db2 as db2connect
7 stars 2 forks source link

Db2: Connect' resulted in an error (command 'extension.Db2Connect' not found #58

Closed adrianoafcs closed 1 year ago

adrianoafcs commented 1 year ago

I've never used VsCode before and now I'm trying to use for learn Cobol. The point is using just COBOl I can compile the program and use all the commands and features, but I cannot connect with db2.

I installed the Db2 Connect available on extensions Vscode but didn't work. The answer that I got is "Command 'Db2: Connect' resulted in an error (command 'extension.Db2Connect' not found)".

I also searched on Github about this bug but all the answers are too technical and I'm looking for a solution with step by step.

bimalkjha commented 1 year ago

@adrianoafcs Please install intel version of vscode on M1 Chip system, then db2connect extension can work and you can connect to db2 using that extension. Please uninstall your existing vscode and install this one: https://code.visualstudio.com/docs/?dv=darwinx64cli Once you install this vscode, then install db2connect connect extension and try connection with Db2. Thanks.

adrianoafcs commented 1 year ago

I uninstalled and installed your indication for download. But I got the same error.

Screenshot 2023-02-06 at 11 34 49
bimalkjha commented 1 year ago

@adrianoafcs Please run below commands from terminal after closing vscode extension:

cd /Users/$USER/.vscode/extensions/ibm.db2connect-2.3.0/
npm install ibm_db
touch rebuilt_dont_delete
ls -l rebuilt_dont_delete

Now, reopen vscode extension and try connection with db2 server. If still facing issue, then please share the complete output of above commands. Thanks.