Open MicahZoltu opened 4 years ago
@MicahZoltu Where in VSCode do you change this setting?
The proposed fix is something that needs to happen in the extension, not in VSCode.
Having the same issue on remote code-server. When I save any .sol file, the output pops out any displays this error.
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 .
Unfortunately I don't have the time to maintain this. 😢
@beaugunderson @MicahZoltu, I would be happy to take a look at this issue, if you can:
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.
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
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.
Did u fix it? I have the same problem in vscode
i think edit pragma statement can solve this issue..
I am having the same issue on vscode. Anyone found the solution ?
I've downloaded https://open-vsx.org/extension/juanblanco/solidity from open vsx registry and installed it manually. Solved all the issues @rameez-dgc
Ah just needed to remove this extension. This error was showing up on simple saves so annoying.
The exported functions have changed so I now get
I think the fix is as easy as changing that to
solc.compile
.