solidity-docgen icon indicating copy to clipboard operation
solidity-docgen copied to clipboard

Add option to use native solc

Open frangio opened this issue 6 years ago • 3 comments

We currently use solcjs. As discussed in #17, though, solcjs does not work with sufficiently big projects.

We should also add support for native solc.

frangio avatar Apr 25 '19 20:04 frangio

So any progress on this? I also wonder if it works on windows, since I'm struggling with solc.exe right now - it fails with

'--solc-module=C:/Solidity/solc-076.exe',

...

Error:     SyntaxError: Invalid or unexpected token

    at Object.<anonymous> (C:\Users\pzixe\Documents\Repos\uniswap-v3-core\docify.js:72:11)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Function.Module._load (node:internal/modules/cjs/loader:828:14)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
    at node:internal/main/run_main_module:17:47

Pzixel avatar May 03 '21 17:05 Pzixel

--solc-module only works with solc installed from npm.

Native solc is not supported at the moment.

frangio avatar May 03 '21 18:05 frangio

Well, it's a bit underwhelming. Anyway, thanks for a quick answer I won't waste my time on trying to figure out what's wrong - I though it should be my mistake.

Pzixel avatar May 03 '21 19:05 Pzixel