Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Failed to activate extension after updating vscode to v1.40.0 #1621

Closed
mani-ghasemi opened this issue Nov 9, 2019 · 57 comments
Closed

Failed to activate extension after updating vscode to v1.40.0 #1621

mani-ghasemi opened this issue Nov 9, 2019 · 57 comments
Labels
blocked bug Something isn't working external sev2 status This issue will be shown on status page

Comments

@mani-ghasemi
Copy link

VS code notified "Failed to activate extension" after updating to version 1.40.0

Failed to activate extension: Failed to load /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node. Cannot find module '/home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node'
Require stack:

  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/grpc_extension.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/client_interceptors.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/client.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/index.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/fabric-client/lib/ProtoLoader.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/fabric-client/lib/client-utils.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/fabric-client/lib/Client.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/fabric-client/index.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/fabric-network/lib/gateway.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/fabric-network/index.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/fabric/FabricWallet.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/fabric/FabricWalletGenerator.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/fabric/FabricWalletGeneratorFactory.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/fabric/FabricRuntime.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/fabric/FabricRuntimeManager.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/util/MetadataUtil.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/commands/UserInputUtil.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/commands/addGatewayCommand.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/util/ExtensionUtil.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/util/Reporter.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/extension.js
  • /snap/code/19/usr/share/code/resources/app/out/vs/loader.js
  • /snap/code/19/usr/share/code/resources/app/out/bootstrap-amd.js
  • /snap/code/19/usr/share/code/resources/app/out/bootstrap-fork.js
@mani-ghasemi
Copy link
Author

Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan

@mani-ghasemi
Copy link
Author

node v10.16.3
npm 6.9.0

@Jakeeyturner
Copy link
Contributor

Hi @mani-ghasemi,

The extension seemed to activate fine on my Mac with the latest VS Code version.

I'm going to see if I can recreate this on an Ubuntu 19.10 virtual machine.

Thanks,
Jake

@santiky
Copy link

santiky commented Nov 11, 2019

Same problem here

Distribution: Debian Buster
npm -v : 6.9.0
nodejs: 10.16.3

It seems there are several errors:

  1. It does not find precompiled files:

WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/electron-v6.1-linux-x64-glibc.tar.gz

  1. When try compiling it, there is a warning threat as an error:

[11/11/2019 14:31:45] [INFO] ../deps/grpc/third_party/boringssl/crypto/bio/connect.c:491:29: error: cast between incompatible function types from ‘bio_info_cb’ {aka ‘long int (*)(struct bio_st *, int, const char , int, long int, long int)’} to ‘int ()(const struct bio_st , int, int)’ [-Werror=cast-function-type]
[11/11/2019 14:31:45] [INFO] data->info_callback = (int (
)(const struct bio_st *, int, int))fp;
[11/11/2019 14:31:45] [INFO] ^
[11/11/2019 14:31:45] [INFO] cc1: all warnings being treated as errors
[11/11/2019 14:31:45] [INFO] make: *** [boringssl.target.mk:436: Release/obj.target/boringssl/deps/grpc/third_party/boringssl/crypto/bio/connect.o] Error 1


Full Log:

[11/11/2019 14:27:50] [INFO] Starting IBM Blockchain Platform Extension
[11/11/2019 14:27:51] [INFO] Attempting to require dependency: grpc
[11/11/2019 14:27:51] [INFO] Error requiring dependency: Failed to load /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node. Cannot find module '/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node'
Require stack:

  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/grpc_extension.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/client_interceptors.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/client.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/index.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/dependencies/DependencyManager.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/webview/PreReqView.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/util/ExtensionUtil.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/util/Reporter.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/extension.js
  • /usr/share/code/resources/app/out/vs/loader.js
  • /usr/share/code/resources/app/out/bootstrap-amd.js
  • /usr/share/code/resources/app/out/bootstrap-fork.js
    [11/11/2019 14:27:51] [INFO] Updating native node modules
    [11/11/2019 14:27:51] [INFO] Rebuilding native node modules
    [11/11/2019 14:27:53] [INFO] > grpc@1.23.3 install /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc
    [11/11/2019 14:27:53] [INFO] > node-pre-gyp install --fallback-to-build --library=static_library
    [11/11/2019 14:27:54] [INFO] node-pre-gyp
    [11/11/2019 14:27:54] [INFO]
    [11/11/2019 14:27:54] [INFO] WARN Using request for node-pre-gyp https download
    [11/11/2019 14:27:54] [INFO] node-pre-gyp
    [11/11/2019 14:27:54] [INFO] WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/electron-v6.1-linux-x64-glibc.tar.gz
    [11/11/2019 14:27:54] [INFO] node-pre-gyp WARN Pre-built binaries not found for grpc@1.23.3 and electron@6.1.2 (electron-v6.1 ABI, glibc) (falling back to source compile with node-gyp)
    [11/11/2019 14:27:56] [INFO] make: se entra en el directorio '/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/build'
    [11/11/2019 14:27:56] [INFO] CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
    [11/11/2019 14:27:56] [INFO] CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o
    [more compiling output]
    11/11/2019 14:31:45] [INFO] CC(target) Release/obj.target/boringssl/deps/grpc/third_party/boringssl/crypto/bio/connect.o
    [11/11/2019 14:31:45] [INFO] ../deps/grpc/third_party/boringssl/crypto/bio/connect.c: In function ‘conn_callback_ctrl’:
    [11/11/2019 14:31:45] [INFO] ../deps/grpc/third_party/boringssl/crypto/bio/connect.c:491:29: error: cast between incompatible function types from ‘bio_info_cb’ {aka ‘long int (*)(struct bio_st *, int, const char , int, long int, long int)’} to ‘int ()(const struct bio_st , int, int)’ [-Werror=cast-function-type]
    [11/11/2019 14:31:45] [INFO] data->info_callback = (int (
    )(const struct bio_st *, int, int))fp;
    [11/11/2019 14:31:45] [INFO] ^
    [11/11/2019 14:31:45] [INFO] cc1: all warnings being treated as errors
    [11/11/2019 14:31:45] [INFO] make: *** [boringssl.target.mk:436: Release/obj.target/boringssl/deps/grpc/third_party/boringssl/crypto/bio/connect.o] Error 1
    [11/11/2019 14:31:45] [INFO] make: se sale del directorio '/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/build'
    [11/11/2019 14:31:45] [INFO] gyp
    [11/11/2019 14:31:45] [INFO]
    [11/11/2019 14:31:45] [INFO] ERR! build error
    [11/11/2019 14:31:45] [INFO] gyp
    [11/11/2019 14:31:45] [INFO] ERR! stack Error: make failed with exit code: 2
    [11/11/2019 14:31:45] [INFO] gyp ERR!
    [11/11/2019 14:31:45] [INFO] stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
    [11/11/2019 14:31:45] [INFO] gyp ERR!
    [11/11/2019 14:31:45] [INFO] stack at ChildProcess.emit (events.js:198:13)
    [11/11/2019 14:31:45] [INFO] gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
    [11/11/2019 14:31:45] [INFO] gyp ERR! System Linux 4.19.0-6-amd64
    [11/11/2019 14:31:45] [INFO] gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=electron-v6.1"
    [11/11/2019 14:31:45] [INFO] gyp ERR! cwd /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc
    [11/11/2019 14:31:45] [INFO] gyp ERR! node -v v10.16.3
    [11/11/2019 14:31:45] [INFO] gyp ERR! node-gyp -v v3.8.0
    [11/11/2019 14:31:45] [INFO] gyp ERR! not ok
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! build error
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v6.1' (1)
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! stack at ChildProcess. (/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! System Linux 4.19.0-6-amd64
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! command "/usr/bin/node" "/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! cwd /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! node -v v10.16.3
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! node-pre-gyp -v v0.13.0
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! not ok
    [11/11/2019 14:31:45] [INFO] Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v6.1' (1)
    [11/11/2019 14:31:45] [INFO] npm
    [11/11/2019 14:31:45] [INFO] ERR! code ELIFECYCLE
    [11/11/2019 14:31:45] [INFO] npm ERR!
    [11/11/2019 14:31:45] [INFO] errno 1
    [11/11/2019 14:31:45] [INFO] npm
    [11/11/2019 14:31:45] [INFO] ERR! grpc@1.23.3 install: node-pre-gyp install --fallback-to-build --library=static_library
    [11/11/2019 14:31:45] [INFO] npm ERR! Exit status 1
    [11/11/2019 14:31:45] [INFO] npm ERR!
    [11/11/2019 14:31:45] [INFO] npm ERR! Failed at the grpc@1.23.3 install script.
    [11/11/2019 14:31:45] [INFO] npm
    [11/11/2019 14:31:45] [INFO] ERR! This is probably not a problem with npm. There is likely additional logging output above.
    [11/11/2019 14:31:45] [INFO] npm ERR! A complete log of this run can be found in:
    [11/11/2019 14:31:45] [INFO] npm
    [11/11/2019 14:31:45] [INFO] ERR! /home/santi/.npm/_logs/2019-11-11T13_31_45_713Z-debug.log
    [11/11/2019 14:31:45] [ERROR] Could not rebuild native dependencies Failed to execute command "npm" with arguments "rebuild, grpc, --target=6.1.2, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1. Please ensure that you have node and npm installed
    [11/11/2019 14:31:45] [ERROR] Failed to activate extension: Error: Failed to execute command "npm" with arguments "rebuild, grpc, --target=6.1.2, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1
    [11/11/2019 14:31:45] [ERROR] Error: Failed to execute command "npm" with arguments "rebuild, grpc, --target=6.1.2, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1
    at ChildProcess. (/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/util/CommandUtil.js:77:39)
    at ChildProcess.emit (events.js:200:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)

@Jakeeyturner
Copy link
Contributor

Jakeeyturner commented Nov 11, 2019

VS code notified "Failed to activate extension" after updating to version 1.40.0

Failed to activate extension: Failed to load /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node. Cannot find module '/home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node'
Require stack:

  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/grpc_extension.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/client_interceptors.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/client.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/index.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/fabric-client/lib/ProtoLoader.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/fabric-client/lib/client-utils.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/fabric-client/lib/Client.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/fabric-client/index.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/fabric-network/lib/gateway.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/fabric-network/index.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/fabric/FabricWallet.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/fabric/FabricWalletGenerator.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/fabric/FabricWalletGeneratorFactory.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/fabric/FabricRuntime.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/fabric/FabricRuntimeManager.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/util/MetadataUtil.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/commands/UserInputUtil.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/commands/addGatewayCommand.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/util/ExtensionUtil.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/util/Reporter.js
  • /home/mani/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/extension.js
  • /snap/code/19/usr/share/code/resources/app/out/vs/loader.js
  • /snap/code/19/usr/share/code/resources/app/out/bootstrap-amd.js
  • /snap/code/19/usr/share/code/resources/app/out/bootstrap-fork.js

Hello,
I've been informed that Ubuntu 19 gcc compiler does not compile gRPC native source code currently.
I would advise using either Ubuntu 18.04 or 16.04 until this is sorted.


Same problem here

Distribution: Debian Buster
npm -v : 6.9.0
nodejs: 10.16.3

It seems there are several errors:

  1. It does not find precompiled files:

WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/electron-v6.1-linux-x64-glibc.tar.gz

  1. When try compiling it, there is a warning threat as an error:

[11/11/2019 14:31:45] [INFO] ../deps/grpc/third_party/boringssl/crypto/bio/connect.c:491:29: error: cast between incompatible function types from ‘bio_info_cb’ {aka ‘long int (*)(struct bio_st *, int, const char , int, long int, long int)’} to ‘int ()(const struct bio_st , int, int)’ [-Werror=cast-function-type] [11/11/2019 14:31:45] [INFO] data->info_callback = (int ()(const struct bio_st *, int, int))fp;
[11/11/2019 14:31:45] [INFO] ^
[11/11/2019 14:31:45] [INFO] cc1: all warnings being treated as errors
[11/11/2019 14:31:45] [INFO] make: *** [boringssl.target.mk:436: Release/obj.target/boringssl/deps/grpc/third_party/boringssl/crypto/bio/connect.o] Error 1

Full Log:

[11/11/2019 14:27:50] [INFO] Starting IBM Blockchain Platform Extension
[11/11/2019 14:27:51] [INFO] Attempting to require dependency: grpc
[11/11/2019 14:27:51] [INFO] Error requiring dependency: Failed to load /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node. Cannot find module '/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node'
Require stack:

  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/grpc_extension.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/client_interceptors.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/client.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/index.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/dependencies/DependencyManager.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/webview/PreReqView.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/util/ExtensionUtil.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/util/Reporter.js
  • /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/extension.js
  • /usr/share/code/resources/app/out/vs/loader.js
  • /usr/share/code/resources/app/out/bootstrap-amd.js
  • /usr/share/code/resources/app/out/bootstrap-fork.js
    [11/11/2019 14:27:51] [INFO] Updating native node modules
    [11/11/2019 14:27:51] [INFO] Rebuilding native node modules
    [11/11/2019 14:27:53] [INFO] > grpc@1.23.3 install /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc
    [11/11/2019 14:27:53] [INFO] > node-pre-gyp install --fallback-to-build --library=static_library
    [11/11/2019 14:27:54] [INFO] node-pre-gyp
    [11/11/2019 14:27:54] [INFO]
    [11/11/2019 14:27:54] [INFO] WARN Using request for node-pre-gyp https download
    [11/11/2019 14:27:54] [INFO] node-pre-gyp
    [11/11/2019 14:27:54] [INFO] WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/electron-v6.1-linux-x64-glibc.tar.gz
    [11/11/2019 14:27:54] [INFO] node-pre-gyp WARN Pre-built binaries not found for grpc@1.23.3 and electron@6.1.2 (electron-v6.1 ABI, glibc) (falling back to source compile with node-gyp)
    [11/11/2019 14:27:56] [INFO] make: se entra en el directorio '/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/build'
    [11/11/2019 14:27:56] [INFO] CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
    [11/11/2019 14:27:56] [INFO] CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o
    [more compiling output]
    11/11/2019 14:31:45] [INFO] CC(target) Release/obj.target/boringssl/deps/grpc/third_party/boringssl/crypto/bio/connect.o
    [11/11/2019 14:31:45] [INFO] ../deps/grpc/third_party/boringssl/crypto/bio/connect.c: In function ‘conn_callback_ctrl’:
    [11/11/2019 14:31:45] [INFO] ../deps/grpc/third_party/boringssl/crypto/bio/connect.c:491:29: error: cast between incompatible function types from ‘bio_info_cb’ {aka ‘long int (*)(struct bio_st *, int, const char , int, long int, long int)’} to ‘int ()(const struct bio_st , int, int)’ [-Werror=cast-function-type]
    [11/11/2019 14:31:45] [INFO] data->info_callback = (int (
    )(const struct bio_st *, int, int))fp;
    [11/11/2019 14:31:45] [INFO] ^
    [11/11/2019 14:31:45] [INFO] cc1: all warnings being treated as errors
    [11/11/2019 14:31:45] [INFO] make: *** [boringssl.target.mk:436: Release/obj.target/boringssl/deps/grpc/third_party/boringssl/crypto/bio/connect.o] Error 1
    [11/11/2019 14:31:45] [INFO] make: se sale del directorio '/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/build'
    [11/11/2019 14:31:45] [INFO] gyp
    [11/11/2019 14:31:45] [INFO]
    [11/11/2019 14:31:45] [INFO] ERR! build error
    [11/11/2019 14:31:45] [INFO] gyp
    [11/11/2019 14:31:45] [INFO] ERR! stack Error: make failed with exit code: 2
    [11/11/2019 14:31:45] [INFO] gyp ERR!
    [11/11/2019 14:31:45] [INFO] stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
    [11/11/2019 14:31:45] [INFO] gyp ERR!
    [11/11/2019 14:31:45] [INFO] stack at ChildProcess.emit (events.js:198:13)
    [11/11/2019 14:31:45] [INFO] gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
    [11/11/2019 14:31:45] [INFO] gyp ERR! System Linux 4.19.0-6-amd64
    [11/11/2019 14:31:45] [INFO] gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=electron-v6.1"
    [11/11/2019 14:31:45] [INFO] gyp ERR! cwd /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc
    [11/11/2019 14:31:45] [INFO] gyp ERR! node -v v10.16.3
    [11/11/2019 14:31:45] [INFO] gyp ERR! node-gyp -v v3.8.0
    [11/11/2019 14:31:45] [INFO] gyp ERR! not ok
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! build error
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v6.1' (1)
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! stack at ChildProcess. (/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! System Linux 4.19.0-6-amd64
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! command "/usr/bin/node" "/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! cwd /home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! node -v v10.16.3
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! node-pre-gyp -v v0.13.0
    [11/11/2019 14:31:45] [INFO] node-pre-gyp ERR! not ok
    [11/11/2019 14:31:45] [INFO] Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-x64-glibc --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v6.1' (1)
    [11/11/2019 14:31:45] [INFO] npm
    [11/11/2019 14:31:45] [INFO] ERR! code ELIFECYCLE
    [11/11/2019 14:31:45] [INFO] npm ERR!
    [11/11/2019 14:31:45] [INFO] errno 1
    [11/11/2019 14:31:45] [INFO] npm
    [11/11/2019 14:31:45] [INFO] ERR! grpc@1.23.3 install: node-pre-gyp install --fallback-to-build --library=static_library
    [11/11/2019 14:31:45] [INFO] npm ERR! Exit status 1
    [11/11/2019 14:31:45] [INFO] npm ERR!
    [11/11/2019 14:31:45] [INFO] npm ERR! Failed at the grpc@1.23.3 install script.
    [11/11/2019 14:31:45] [INFO] npm
    [11/11/2019 14:31:45] [INFO] ERR! This is probably not a problem with npm. There is likely additional logging output above.
    [11/11/2019 14:31:45] [INFO] npm ERR! A complete log of this run can be found in:
    [11/11/2019 14:31:45] [INFO] npm
    [11/11/2019 14:31:45] [INFO] ERR! /home/santi/.npm/_logs/2019-11-11T13_31_45_713Z-debug.log
    [11/11/2019 14:31:45] [ERROR] Could not rebuild native dependencies Failed to execute command "npm" with arguments "rebuild, grpc, --target=6.1.2, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1. Please ensure that you have node and npm installed
    [11/11/2019 14:31:45] [ERROR] Failed to activate extension: Error: Failed to execute command "npm" with arguments "rebuild, grpc, --target=6.1.2, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1
    [11/11/2019 14:31:45] [ERROR] Error: Failed to execute command "npm" with arguments "rebuild, grpc, --target=6.1.2, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1
    at ChildProcess. (/home/santi/.vscode/extensions/ibmblockchain.ibm-blockchain-platform-1.0.15/build/extension/util/CommandUtil.js:77:39)
    at ChildProcess.emit (events.js:200:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)

It looks like your compiler is having some problems as well.

I've created a PR on the grpc/grpc-node project so that the binaries that are required get built - grpc/grpc-node#1179

A workaround might be to downgrade your version of VS Code back to the previous version until these binaries are sorted.

Thanks,
Jake

@davidkel
Copy link

@Jakeeyturner The cause here is that ubuntu 19.10 uses gcc 9. It looks like grpc 1.23.3 for node won't compile on versions of gcc greater than 7. It's possible grpc for node have addressed this in later versions by changing what compilation problems will cause the compile process to stop. Ubuntu 18.04 for example is still using gcc 7 so would not have had this problem.

@lindluni
Copy link

I had the exact same issue on my Mac, line for line the same problem (and scoured the depths of the internet for a solution). This fixed it for me, which was essentially I was using an outdated version of node-gyp, forcing npm's hand to update it solved the problem:

nodejs/node-gyp#1917 (comment)

@Jakeeyturner
Copy link
Contributor

Jakeeyturner commented Nov 12, 2019

A workaround for the time being is to install the previous version of VS Code (1.39.2), which can be downloaded here - https://code.visualstudio.com/updates/v1_39

@Jakeeyturner Jakeeyturner added the bug Something isn't working label Nov 12, 2019
@Jakeeyturner Jakeeyturner pinned this issue Nov 12, 2019
@Jakeeyturner Jakeeyturner changed the title Failed to activate extension after updating vscode Failed to activate extension after updating vscode to v1.40.0 Nov 12, 2019
@cazfletch cazfletch added this to the Sprint 20 milestone Nov 13, 2019
@cazfletch cazfletch modified the milestones: Sprint 20, Sprint 21 Nov 25, 2019
@cazfletch
Copy link
Contributor

Blocked waiting for grpc 1.25.0 to be published

@cazfletch cazfletch modified the milestones: Sprint 21, Sprint 22 Nov 29, 2019
@cazfletch cazfletch modified the milestones: Sprint 22, Sprint 23 Dec 10, 2019
@sjais789
Copy link

sjais789 commented Dec 18, 2019

Updating the Node module gyp worked for me.
$ [sudo] npm explore npm -g -- npm install node-gyp@latest
or you can download the downgraded version of VS Code.

@SHIVAMGUPTA24
Copy link

Failed to activate extension: Failed to execute command "npm" with arguments "rebuild, grpc, --target=6.1.5, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1
Could not rebuild native dependencies Failed to execute command "npm" with arguments "rebuild, grpc, --target=6.1.5, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1. Please ensure that you have node and npm installed

@cazfletch
Copy link
Contributor

Hi we are still waiting for grpc to release. I just checked and the latest release is still 1.24.2.

@moughamir
Copy link

Hi we are still waiting for grpc to release. I just checked and the latest release is still 1.24.2.

is there an alternative way to compile on Linux?

I have tried to pull source code and compile it manually but without a success.

@sjais789
Copy link

The issue is there is no prebuild version of grpc module for node sdk.And the latest grpc module is unable to compile.
I downgraded the VS code to 1.38 and it worked.
Or you can go for installing the gcc version and make it compatible according to your setup.

@ValeriyDP
Copy link

It works for me #1621 (comment)
Just update gyp-node module to it latest version

@d3cline
Copy link

d3cline commented Sep 3, 2020

Happening for me as of today on a fully updated Arch linux,

Could not rebuild native dependencies Failed to execute command "npm" with  arguments "rebuild, grpc, --target=7.3.2, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1. Please ensure that you have node and npm installed

Will watch thread. Ty for any help. (can confirm downgrade works for me, obviously non-ideal)

@rayest
Copy link

rayest commented Sep 9, 2020

@d3cline Same for me on Mac

@jakub-pomykala
Copy link

I'm having the same issue on a Mac.

@sricharan44
Copy link

Even I had faced this same Issue on a windows though'. @jakub-pomykala @d3cline @rayest
Fix I had to do these setps to resolve it:

  1. Install Visual Studio C++ Build Tools/SDK [I had uninstalled it by mistake which triggered the issue]
  2. Just update the gyp-node module to it latest version [Look for commands in abv linked issues]

@Dan-Stafford
Copy link

Windows 10 Pro ver 2004 19041.508

[9/11/2020 6:22:33 PM] [IMPORTANT] Log files can be found by running the Developer: Open Logs Folder command from the palette

[9/11/2020 6:22:33 PM] [INFO] Starting IBM Blockchain Platform Extension
[9/11/2020 6:22:52 PM] [INFO] Attempting to require dependency: grpc
[9/11/2020 6:22:52 PM] [INFO] Error requiring dependency: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: electron-v9.2-win32-x64-unknown
Found: [electron-v7.3-win32-x64-unknown, node-v64-linux-x64-glibc]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module 'c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\src\node\extension_binary\electron-v9.2-win32-x64-unknown\grpc_node.node'
Require stack:

  • c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\src\grpc_extension.js
  • c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\src\client_interceptors.js
  • c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\src\client.js
  • c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\index.js
  • c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\build\extension\dependencies\DependencyManager.js
  • c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\build\extension\webview\PreReqView.js
  • c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\build\extension\util\ExtensionUtil.js
  • c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\build\extension\util\Reporter.js
  • c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\build\extension\extension.js
  • c:\Users\Daniel\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js
  • c:\Users\Daniel\AppData\Local\Programs\Microsoft VS Code\resources\app\out\bootstrap-amd.js
  • c:\Users\Daniel\AppData\Local\Programs\Microsoft VS Code\resources\app\out\bootstrap-fork.js
    [9/11/2020 6:22:52 PM] [INFO] Updating native node modules
    [9/11/2020 6:22:52 PM] [INFO] Rebuilding native node modules
    [9/11/2020 6:23:01 PM] [INFO] > grpc@1.24.2 install c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc
    [9/11/2020 6:23:01 PM] [INFO] > node-pre-gyp install --fallback-to-build --library=static_library
    [9/11/2020 6:23:06 PM] [INFO] node-pre-gyp
    [9/11/2020 6:23:06 PM] [INFO] WARN
    [9/11/2020 6:23:06 PM] [INFO] Using request for node-pre-gyp https download
    [9/11/2020 6:23:06 PM] [INFO] node-pre-gyp
    [9/11/2020 6:23:06 PM] [INFO] WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/electron-v9.2-win32-x64-unknown.tar.gz
    [9/11/2020 6:23:06 PM] [INFO] node-pre-gyp WARN Pre-built binaries not found for grpc@1.24.2 and electron@9.2.1 (electron-v9.2 ABI, unknown) (falling back to source compile with node-gyp)
    [9/11/2020 6:23:11 PM] [INFO] gyp
    [9/11/2020 6:23:11 PM] [INFO] ERR! find Python
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python
    [9/11/2020 6:23:11 PM] [INFO] Python is not set from command line or npm configuration
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] find Python Python is not set from environment variable PYTHON
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] find Python checking if "python" can be used
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python - "python" is not in PATH or produced an error
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python checking if "python2" can be used
    [9/11/2020 6:23:11 PM] [INFO] gyp
    [9/11/2020 6:23:11 PM] [INFO] ERR! find Python - "python2" is not in PATH or produced an error
    [9/11/2020 6:23:11 PM] [INFO] gyp
    [9/11/2020 6:23:11 PM] [INFO] ERR! find Python checking if "python3" can be used
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] find Python - "python3" is not in PATH or produced an error
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] find Python checking if the py launcher can be used to find Python 2
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] find Python
    [9/11/2020 6:23:11 PM] [INFO] - "py.exe" is not in PATH or produced an error
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python checking if Python is C:\Python27\python.exe
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python - "C:\Python27\python.exe" could not be run
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python checking if Python is C:\Python37\python.exe
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python - "C:\Python37\python.exe" could not be run
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] find Python
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python **********************************************************
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python You need to install the latest version of Python.
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] find Python Node-gyp should be able to find and use Python. If not,
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python you can try one of the following options:
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] find Python - Use the switch --python="C:\Path\To\python.exe"
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python (accepted by both node-gyp and npm)
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python - Set the environment variable PYTHON
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python
    [9/11/2020 6:23:11 PM] [INFO] - Set the npm configuration variable python:
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python For more information consult the documentation at:
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python
    [9/11/2020 6:23:11 PM] [INFO] **********************************************************
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! find Python
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] configure error
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! stack
    [9/11/2020 6:23:11 PM] [INFO] Error: Could not find any Python installation to use
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16)
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16)
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! stack at exithandler (child_process.js:301:5)
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! stack at ChildProcess.errorhandler (child_process.js:313:5)
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] stack at ChildProcess.emit (events.js:198:13)
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! stack at onErrorNT (internal/child_process.js:415:16)
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] stack at process._tickCallback (internal/process/next_tick.js:63:19)
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! System Windows_NT 10.0.19041
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=c:\Users\Daniel\.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\src\node\extension_binary\electron-v9.2-win32-x64-unknown\grpc_node.node" "--module_name=grpc_node" "--module_path=c:\Users\Daniel\.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\src\node\extension_binary\electron-v9.2-win32-x64-unknown" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=electron-v9.2" "--dist-url=https://atom.io/download/electron"
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] cwd c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! node -v v10.22.0
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! node-gyp -v
    [9/11/2020 6:23:11 PM] [INFO] v5.1.0
    [9/11/2020 6:23:11 PM] [INFO] gyp ERR! not ok
    [9/11/2020 6:23:11 PM] [INFO] node-pre-gyp ERR! build error
    [9/11/2020 6:23:11 PM] [INFO] node-pre-gyp
    [9/11/2020 6:23:11 PM] [INFO] ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\src\node\extension_binary\electron-v9.2-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\src\node\extension_binary\electron-v9.2-win32-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v9.2 --dist-url=https://atom.io/download/electron' (1)
    [9/11/2020 6:23:11 PM] [INFO] node-pre-gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] stack at ChildProcess. (c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
    [9/11/2020 6:23:11 PM] [INFO] node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)
    [9/11/2020 6:23:11 PM] [INFO] node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
    [9/11/2020 6:23:11 PM] [INFO] node-pre-gyp
    [9/11/2020 6:23:11 PM] [INFO] ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
    [9/11/2020 6:23:11 PM] [INFO] node-pre-gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] System Windows_NT 10.0.19041
    [9/11/2020 6:23:11 PM] [INFO] node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "c:\Users\Daniel\.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
    [9/11/2020 6:23:11 PM] [INFO] node-pre-gyp ERR! cwd c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc
    [9/11/2020 6:23:11 PM] [INFO] node-pre-gyp
    [9/11/2020 6:23:11 PM] [INFO] ERR! node -v v10.22.0
    [9/11/2020 6:23:11 PM] [INFO] node-pre-gyp
    [9/11/2020 6:23:11 PM] [INFO] ERR! node-pre-gyp -v v0.14.0
    [9/11/2020 6:23:11 PM] [INFO] node-pre-gyp ERR!
    [9/11/2020 6:23:11 PM] [INFO] not ok
    [9/11/2020 6:23:11 PM] [INFO] Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\src\node\extension_binary\electron-v9.2-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\node_modules\grpc\src\node\extension_binary\electron-v9.2-win32-x64-unknown --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v9.2 --dist-url=https://atom.io/download/electron' (1)
    [9/11/2020 6:23:11 PM] [INFO] npm ERR! code
    [9/11/2020 6:23:11 PM] [INFO] ELIFECYCLE
    [9/11/2020 6:23:11 PM] [INFO] npm
    [9/11/2020 6:23:11 PM] [INFO] ERR! errno 1
    [9/11/2020 6:23:11 PM] [INFO] npm ERR!
    [9/11/2020 6:23:11 PM] [INFO] grpc@1.24.2 install: node-pre-gyp install --fallback-to-build --library=static_library
    [9/11/2020 6:23:11 PM] [INFO] npm ERR! Exit status 1
    [9/11/2020 6:23:11 PM] [INFO] npm ERR!
    [9/11/2020 6:23:11 PM] [INFO] npm ERR! Failed at the grpc@1.24.2 install script.
    [9/11/2020 6:23:11 PM] [INFO] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    [9/11/2020 6:23:11 PM] [INFO] npm
    [9/11/2020 6:23:11 PM] [INFO] ERR! A complete log of this run can be found in:
    [9/11/2020 6:23:11 PM] [INFO] npm ERR! C:\Users\Daniel\AppData\Roaming\npm-cache_logs\2020-09-12T01_23_11_274Z-debug.log
    [9/11/2020 6:23:11 PM] [ERROR] Could not rebuild native dependencies Failed to execute command "npm" with arguments "rebuild, grpc, --target=9.2.1, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1. Please ensure that you have node and npm installed
    [9/11/2020 6:23:11 PM] [ERROR] Failed to activate extension: Error: Failed to execute command "npm" with arguments "rebuild, grpc, --target=9.2.1, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1
    [9/11/2020 6:23:11 PM] [ERROR] Error: Failed to execute command "npm" with arguments "rebuild, grpc, --target=9.2.1, --runtime=electron, --update-binary, --fallback-to-build, --target_arch=x64, --dist-url=https://atom.io/download/electron" return code 1
    at ChildProcess. (c:\Users\Daniel.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.37\build\extension\util\CommandUtil.js:76:39)
    at ChildProcess.emit (events.js:223:5)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)

@Dan-Stafford
Copy link

I'm just starting to learn coding and Blockchain after coming from a telecommunications & IT background. This is all new to me. I tried to install all the required dependencies that Visual Studio Code requires, and it looked like it was successful. I am currently just getting started on "IBM Blockchain Foundation Developer V2" on Cognitive Class and am working on installing the necessary software. I'm running a core i3 7100U processor at 2.4GHz with 16GB RAM.

@Dan-Stafford
Copy link

Interesting. Installing Python, C/C++, C#, & ESLint extensions and all underlying software requirements in VS Code LOOKS like it may have fixed the IBM Blockchain VS Code extension in VS Code 1.49 . I am attempting to proceed in Cognitive Courses "IBMDeveloperSkillsNetwork+BC0201EN+v2" in order to verify functionality.

@Dan-Stafford
Copy link

Dan-Stafford commented Sep 12, 2020

Download & install VS Code extensions from here:

https://code.visualstudio.com/docs/?dv=win#download

@Malek-Ayadi
Copy link

Downgrade your VS to 1.3.9V
this worked for me, hope it helps

@MilesConn
Copy link

Possible workaround. I'm using vscode 1.51.1 installed from the AUR

 yay -Si code
Repository      : community
Name            : code
Version         : 1.50.1-1
Description     : The Open Source build of Visual Studio Code (vscode) editor
Architecture    : x86_64
URL             : https://github.com/microsoft/vscode
...
Build Date      : Thu 15 Oct 2020 06:25:40 AM EDT

I also had the same above errors. I downgraded to vscode 1.39.2 using the makepkg on the AUR. With this I also had to switch my node version to v10.23.0 using nvm. With this I got the hyperledger extension installed and working. I then upgraded my vscode version. After reboot I got the same error with the option to attempt rebuilding. I performed the rebuilding and everything seems to be working. YMMV.

@sebythomast
Copy link

Thanks MilesConn, this worked - great help!

@czar0
Copy link

czar0 commented Dec 9, 2020

Got it to work on macOS 10.15.7 with VSCode version 1.51.1 with no need to downgrade.

Steps I followed

  1. Uninstalled the extension
  2. Cleaned up the ~/.vscode/extensions directory from all ibm* leftovers
  3. Installed node v10.23.0 with nvm and set as default
  4. Installed latest node-gyp version (currently node-gyp@7.1.2) globally
  5. Installed the IBM Blockchain extension again

Note: I tried this process before with node v10.22.0 and v12.20.0 with no success. I am not sure there is any connection with the versioning, but v10.23.0 seems to be the lucky one 😃

Hope this can help

@marek5050
Copy link

Hello,
Any thoughts on when to expect a fix for this?

@Jakeeyturner
Copy link
Contributor

Hello,
Any thoughts on when to expect a fix for this?

Hello,
We're hoping to release v2.0.0 of the extension next week which should fix this, support the new Fabric 2 deployment lifecycle and include some other awesome features as well.

@CaptainIRS
Copy link

This error occurs with VS Code installed from Snap. It goes away if VS Code is installed from the .deb file in the VS Code download site.

@Jakeeyturner
Copy link
Contributor

Closing issue - v2.0.0 of the extension no longer requires gRPC to be rebuilt.

@Jakeeyturner Jakeeyturner unpinned this issue Jan 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked bug Something isn't working external sev2 status This issue will be shown on status page
Projects
None yet
Development

No branches or pull requests