Skip to content

simplicityhl creates "error reporting bingo" and no debug info #164

@coremoon

Description

@coremoon

Project

compiler

Describe the feature

Dear Maintainers,

I am running the simplicityhl compiler with the cli parameter

simc ---debug options.simf options.wit

see content of these files here. simc version is 0.3.0 (I think so - unfortunately there is no "--version" option yet).

It is clear that the compilation must fail because of multiple errors.

$ simc --debug options.simf options.wit 
Parameter `START_TIME` is missing an argument
$ simc --debug options.simf options.wit 
Parameter `COLLATERAL_ASSET_ID` is missing an argument
$ simc --debug options.simf options.wit 
Parameter `START_TIME` is missing an argument
$ simc --debug options.simf options.wit 
Parameter `OPTION_TOKEN_ASSET` is missing an argument
$ simc --debug options.simf options.wit 
Parameter `GRANTOR_TOKEN_STRIKE_PRICE` is missing an argument
$ simc --debug options.simf options.wit 
Parameter `GRANTOR_TOKEN_STRIKE_PRICE` is missing an argument
$ simc --debug options.simf options.wit 
Parameter `GRANTOR_TOKEN_ASSET` is missing an argument
$ simc --debug options.simf options.wit 
Parameter `START_TIME` is missing an argument
$ simc --debug options.simf options.wit 
Parameter `EXPIRY_TIME` is missing an argument
...

From the output one can see that the compiler is complaining because of many reasons, but the output shows only one reason arbitrarily at a time, which I would name "error reporting bingo".
Furthermore there is no info in which line errors are happening.

I would like therefore request

  1. A better debug info
  2. Please return multiple errors at once (like the behaviour of rustc) which saves time when developing simplicityhl sources.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions