Truffle not able to get Solidity Compiler - solidity

jaypatel#192 Bridge Contract % truffle compile
Compiling your contracts...
Error: Failed to fetch the Solidity compiler from the following locations: https://relay.trufflesuite.com/solc/emscripten-wasm32/,https://binaries.soliditylang.org/emscripten-wasm32/,https://relay.trufflesuite.com/solc/emscripten-asmjs/,https://binaries.soliditylang.org/emscripten-asmjs/,https://solc-bin.ethereum.org/bin/,https://ethereum.github.io/solc-bin/bin/. Are you connected to the internet?
I am Compiling the contract using truffle compile but getting this error

This error means that Truffle cannot obtain the Solidity compiler from the specified sources. Possible reasons for this error:
You don't have an internet connection. Check that you have a network connection and try again.
The Solidity compiler is not installed. Make sure you have the latest compiler installed

Related

truffle migrate fails to fetch solidity compiler though mac is connected to internet

truffle migrate
Compiling your contracts...
Error: Failed to fetch the Solidity compiler from the following locations: https://relay.trufflesuite.com/solc/emscripten-wasm32/,https://binaries.soliditylang.org/emscripten-wasm32/,https://relay.trufflesuite.com/solc/emscripten-asmjs/,https://binaries.soliditylang.org/emscripten-asmjs/,https://solc-bin.ethereum.org/bin/,https://ethereum.github.io/solc-bin/bin/. Are you connected to the internet?
at VersionRange.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/dist/compilerSupplier/loadingStrategies/VersionRange.js:183:1)
at Generator.next (<anonymous>)
at /usr/local/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/dist/compilerSupplier/loadingStrategies/VersionRange.js:8:1
at new Promise (<anonymous>)
at exports.modules.780.__awaiter (/usr/local/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/dist/compilerSupplier/loadingStrategies/VersionRange.js:4:1)
at VersionRange.getSolcFromCacheOrUrl (/usr/local/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/dist/compilerSupplier/loadingStrategies/VersionRange.js:174:1)
at VersionRange.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/dist/compilerSupplier/loadingStrategies/VersionRange.js:206:1)
I am unable to execute this command on my Macbook even though it is connected to internet without any active antivirus or proxy.
Expected that the contracts compiled successfully
My config:
Truffle v5.7.5 (core: 5.7.5)
Ganache v7.7.3
Solidity - 0.8.0 (solc-js)
Node v18.14.0
Web3.js v1.8.2

Protobuf permission issue when install grpc

I am following the instructions from https://grpc.io/docs/languages/cpp/quickstart/
in order to install grpc using cmake, but I run into a permission issue.
Running gRPC C++ protocol buffer compiler on src/proto/grpc/reflection/v1alpha/reflection.proto
/bin/sh: 1: /home/user/external/grpc/cmake/build/third_party/protobuf/protoc-3.19.4.0: Permission denied
What could cause this and how to fix it?
I resolved this issue upgrading grpc's code from v1.46.3 to v1.48.0.

How can i fix the Truffle Compile Error: Cannot find Module

I was trying to compile with truffle with: truffle compile but it wont work. I also tried npx truffle compile but there i get an Error : Cannot find Module

IBM Blockchain Platform extension npm Error

I'm tying to use this IBM extension on VSCode and it gives me this error whenever it tries to activate it. I already uninstalled and reinstalled both nodejs and npm.
Failed to activate extension: Failed to execute command "npm" with arguments
"rebuild, grpc, --target=3.0.0, --runtime=electron, --dist-url=https://atom.io/download/electron,
--update-binary, --fallback-to-build, --target_arch=x64" return code 1

Truffle Test - How To Show Errors Only

How does one suppress all compilation warnings (not errors) when running truffle test? Using the --quiet parameter does not seem to work.
Truffle v5.0.0 (core: 5.0.0)
Node v10.15.3
You can't suppress warnings, no such functionality yet in Truffle.
However, you can filter the output. I'm going to show an example using grep.
~/your_project_dir$ truffle test | grep 'Error'
This will show only the lines which contain the word "Error".