Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Underlining errors can be off #626

Closed
jeromesimeon opened this issue Jun 25, 2019 · 1 comment
Closed

Underlining errors can be off #626

jeromesimeon opened this issue Jun 25, 2019 · 1 comment
Assignees
Labels
Type: Bug 🐛 Something isn't working

Comments

@jeromesimeon
Copy link
Member

Describe the bug

Underlining is sometimes off due to \t characters.

To Reproduce

Example:

bash-3.2$ ./packages/ergo-cli/bin/ergorun.js init ./examples/volumediscount/model.cto ./examples/volumediscount/logic.ergo --contract ./examples/volumediscount/contract.json --warnings  
./packages/ergo-cli/bin/ergorun.js init ./examples/volumediscount/model.cto ./examples/volumediscount/logic.ergo --contract ./examples/volumediscount/contract.json --warnings  
19:03:14 - warn: Warning (at file ./examples/volumediscount/logic.ergo line 20 col 2). No else in enforce
    enforce true;
  ^^^^^^^^^^^^^

Expected behavior

Clearer underlining:

bash-3.2$ ./packages/ergo-cli/bin/ergorun.js init ./examples/volumediscount/model.cto ./examples/volumediscount/logic.ergo --contract ./examples/volumediscount/contract.json --warnings  
./packages/ergo-cli/bin/ergorun.js init ./examples/volumediscount/model.cto ./examples/volumediscount/logic.ergo --contract ./examples/volumediscount/contract.json --warnings  
19:03:14 - warn: Warning (at file ./examples/volumediscount/logic.ergo line 20 col 2). No else in enforce
  enforce true;
  ^^^^^^^^^^^^^
@jeromesimeon jeromesimeon added the Type: Bug 🐛 Something isn't working label Jun 25, 2019
@jeromesimeon jeromesimeon self-assigned this Jun 25, 2019
@jeromesimeon
Copy link
Member Author

Fixed in #627

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant