admin管理员组

文章数量:1287882

During packaging of chaincode of tar.gz file in IBM Hyperledger Fabric I'm getting the below error:

Failed to determine workspace language type, supported languages are JavaScript, TypeScript, Go and Java. Please ensure your contract's root-level directory is open in the Explorer.

All my environment setup is in javascript but system is trying to mess it in between of java and javascript and I'm not working anywhere in java.

I had also opened my lib folder which only has smart contract in it for packaging chaincode but still I'm getting the below terminal error: Executing task: C:\Users"user name".cargo\bin\cargo.exe build

error: could not find Cargo.toml in C:\"my parent directory path"\lib or any parent directory

  • The terminal process "C:\Users"user name".cargo\bin\cargo.exe 'build'" terminated with exit code: 101.
  • Terminal will be reused by tasks, press any key to close it.

I tried to open my lib folder which contains only the smart contracts in a separate visual studio code.

I expect that my packaging chaincode of tar.gz file would got created but it throws the error:

Failed to determine workspace language type, supported languages are JavaScript, TypeScript, Go and Java. Please ensure your contract's root-level directory is open in the Explorer.

Terminal Error:

Executing task: C:\Users"user name".cargo\bin\cargo.exe build

error: could not find Cargo.toml in C:\"my parent directory path"\lib or any parent directory

  • The terminal process "C:\Users"user name".cargo\bin\cargo.exe 'build'" terminated with exit code: 101.
  • Terminal will be reused by tasks, press any key to close it.

Help me to resolve the above issue so that I can create my packaging chaincode in IBM Hyperledger Fabric in visual studio code.

本文标签: javascriptIBM Hyperledger Fabric error in packaging chaincodeStack Overflow