-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the command line equivalent of compiling in VS Code? #51
Comments
You need the full library as it is modified to include different inheritances and paths. |
I see this issue is pretty old but it's still open so here are some answers from compiler's perspective in case it gets picked up later:
If you do not supply a file name after
This would not be very straightforward. I expect that, as with most Solidity tools, As an aside, such a feature would also be useful for reproducing issues with |
@cameel Thanks for this, and in general all the comments you have made across yesterday, I think overall most of the issues come down to the need of having a common solidity project standard. Everything has kept evolving and we could have solved this if everyone had implemented this EIP ethereum/EIPs#82, or evolve it to a common standard that was agreed. On the topic, the json could be created as an overriding input parameter, on vscode settings, but this make the evolution even harder. But yes it would change also the pipeline process. Edit: Maybe is time to restart A project standard. I keep saying that :) |
No problem! I'm currently working on the path resolution in the compiler and as a part of that I'm researching how various tools and frameworks deal with them so I thought I'd look for related issues in the bug tracker here :) On the topic of EIP 82, I think it might actually be a great time to restart the initiative. There are many established frameworks/tools now and each one basically has its own config file format so the need is definitely there. There's just no coordination. Wanting to seamlessly switch between VS Code or Remix IDE and a framework seems pretty common to me. The coordination problem can be solved by gathering many interested people in one place and we recently did just that - we launched a Solidity forum and many people working on tooling are there so it might be a good place to propose and discuss it in a wider community. BTW, maybe you'd also like to join our new solc-tooling channel on Matrix or Telegram? We created it to have a more direct line of communication with projects affected by changes in the compiler. Our recent survey has shown that like 50% of Solidity developers use VS Code so it would be great to have your feedback there. |
Yes for sure!! Ill join now. |
@cameel I'm actually cc(d) there, but I never got the invite. |
You mean |
Just to make sure, I'm assuming you prefer Telegram? On the Matrix side an invite is not required. |
Ah, Ill try Matrix then, although I am in Telegram already (edit) |
Thanks @franzihei ! |
Deleted the invite links again to keep bots out but feel free to invite other people who should be in there (in case somebody is missing). The only reason the Telegram side isn't public is because Telegram is flooded with bots etc. :( |
Yes I thought that myself, good call. |
I've tried the following but that doesn't give me the json files in the /bin/contracts folder
solc --bin --abi --optimize -o ./bin/contracts --overwrite ./contracts/*.sol
I tried adding the
--standard-json
option but it just hangssolc
My motivation is to have something like the following in my
package.json
file so developers who are not using VS Code can still compile my project.The text was updated successfully, but these errors were encountered: