flow-playground
flow-playground copied to clipboard
Excessive Errors
Describe the bug Typing out some variables on the playground shows excessive errors
To Reproduce
- Go to the playground and open up account 1
- Type out the following at the bottom of the contract:
access(all) fun hi(): String {
- First 5 errors should appear
Expected behavior Only last error on the above image should appear
Desktop (please complete the following information):
- OS: MacOS Monterey 12.5
- Browser Chrome
- Version 103.0.5060.134 (Official Build) (x86_64)
Additional context
- Related to: https://axiomzen.slack.com/archives/C03FUAG6SEP/p1652809839024079
- Related https://github.com/onflow/flow-playground/issues/260
We should do discovery on how to fine-tune the frequency of code checks. The checks of the code should be less common. We need to take a look how other IDEs handle this (for example only check after a word is completed etc). We should also check the support for that by the code editor itself.
Excessive errors caused by the frontend are fixed in onflow/cadence#288. A possible LS issue with duplicate errors is tracked in https://github.com/onflow/cadence-tools/issues/36