You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no easy way of doing this... To make it even harder, this extension dont accept solc binary, must be solc-js.
In our projects we are having to update the solc version in two places, maybe even in 3 depending the framework.
I created a pre-commit hook just to keep in sync so I dont forget to change it on the extension settings.
It seems like it would be trivial to have a config in the extension that is the default, to use solc from project settings. Read files like foundry.toml, truffle.js, and others to set the solc version should be simple.
Foundry does not use solcjs, so it does not install solc in node_modules. It uses embedded svm.
The text was updated successfully, but these errors were encountered:
This commit adds a new pre-commit script called "pre-commit-solc-sync" to the githooks directory. The script is responsible for extracting the solc version from the "foundry.toml" file and updating the ".vscode/settings.json" file with the extracted version. If the "solidity.compileUsingRemoteVersion" key already exists in the settings file, the script updates the version. Otherwise, it modifies the last key, adds the new key, and closes the JSON object. Finally, the updated settings file is added to the commit.
The purpose of this change is to automate the synchronization of the solc version used for Solidity compilation in the project everywhere else its also need to be configured configured.
See juanfranblanco/vscode-solidity#463
Yes the issue is that there is not a real standard, now that some performance issues are solved, i will move to load the settings from any other toolset, or maybe adding yet another file that will be synced written from those. The plan is to start with foundry.
There is no easy way of doing this... To make it even harder, this extension dont accept solc binary, must be solc-js.
In our projects we are having to update the solc version in two places, maybe even in 3 depending the framework.
I created a pre-commit hook just to keep in sync so I dont forget to change it on the extension settings.
It seems like it would be trivial to have a config in the extension that is the default, to use solc from project settings. Read files like foundry.toml, truffle.js, and others to set the solc version should be simple.
Foundry does not use solcjs, so it does not install solc in node_modules. It uses embedded svm.
The text was updated successfully, but these errors were encountered: