beaugunderson / vscode-solidity-extended

✏ Solidity support for VSCode
https://marketplace.visualstudio.com/items?itemName=beaugunderson.solidity-extended
Other
10 stars 9 forks source link

No longer works with solcjs 0.6.* #10

Open MicahZoltu opened 4 years ago

MicahZoltu commented 4 years ago

The exported functions have changed so I now get

solc error: TypeError: solc.compileStandardWrapper is not a function In the output window for Solidity Language Server.

I think the fix is as easy as changing that to solc.compile.

roughpandaz commented 2 years ago

@MicahZoltu Where in VSCode do you change this setting?

MicahZoltu commented 2 years ago

The proposed fix is something that needs to happen in the extension, not in VSCode.

birkasecorba commented 2 years ago

Having the same issue on remote code-server. When I save any .sol file, the output pops out any displays this error.

beaugunderson commented 2 years ago

happy to merge any fix or transfer to someone willing to take maintainership (Micah?)

On Mon, Dec 6 2021 at 00:49, Volkan Gül @.***> wrote:

Having the same issue on remote code-server. When I save any .sol file, the output pops out any displays this error.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/beaugunderson/vscode-solidity-extended/issues/10#issuecomment-986560096, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPCX3GSTWBAA6EWJVXHLDUPR2ILANCNFSM4KXWC3EA .

MicahZoltu commented 2 years ago

Unfortunately I don't have the time to maintain this. 😢

roughpandaz commented 2 years ago

@beaugunderson @MicahZoltu, I would be happy to take a look at this issue, if you can:

MicahZoltu commented 2 years ago

I'm not sure where solc.compileStandardWrapper is called in this codebase, but if you can find that try changing it to solc.compile and seeing if that fixes the issue.

elkattan commented 2 years ago

Hey @RongxinZhang @MicahZoltu, according to the error output, the call occurs in $HOME/.vscode/extensions/beaugunderson.solidity-extended-3.0.2/out/src/server.js:92.

But following fixing that as @MicahZoltu suggested a new Assertion error solc error: AssertionError [ERR_ASSERTION]: Invalid callback object specified., it's expecting an object but a function is passed

MicahZoltu commented 2 years ago

The signature of the function changed along with its name a while back. Check out https://github.com/ethereum/solc-js#high-level-api for details on this. compile(JSON.stringify(input), { import: (importPath) => { ... } }) or something along those lines should do the trick.

lichaks commented 2 years ago

https://github.com/ethereum/solc-js#high-level-api

Did u fix it? I have the same problem in vscode

corporateenvoys commented 2 years ago

i think edit pragma statement can solve this issue..

rameez-dgc commented 2 years ago

I am having the same issue on vscode. Anyone found the solution ?

birkasecorba commented 2 years ago

I've downloaded https://open-vsx.org/extension/juanblanco/solidity from open vsx registry and installed it manually. Solved all the issues @rameez-dgc

whoisleoblack commented 6 months ago

Ah just needed to remove this extension. This error was showing up on simple saves so annoying.