defi-wonderland / natspec-smells

👃Automatically identify missing or incomplete natspec
MIT License
90 stars 7 forks source link

No support for via-ir? #57

Open naps62 opened 4 weeks ago

naps62 commented 4 weeks ago

I have a foundry project where I just enabled via_ir, and moved to using the new require(bool, CustomError()) syntax (which does require via-ir)

natspec-smells now throws an error. it seems it fails to use the via-ir flag in its own internal compilation

CompileFailedError: Compiler Errors: ==== 0.8.26 ====:
 UnimplementedFeatureError: Require with a custom error is only available using the via-ir pipeline.

    at compileSol (/home/naps62/.../fund/node_modules/solc-typed-ast/dist/compile/utils.js:178:11)
    at async getProjectCompiledSources (/home/naps62/.../fund/node_modules/@defi-wonderland/natspec-smells/lib/utils.js:18:27)
    at async /home/naps62/.../fund/node_modules/@defi-wonderland/natspec-smells/lib/main.js:17:25 {
  failures: [ { compilerVersion: '0.8.26', errors: [Array] } ]
}
gas1cent commented 4 weeks ago

@naps62 thanks for the report, we'll take a look at this shortly.