flow-playground icon indicating copy to clipboard operation
flow-playground copied to clipboard

Excessive Errors

Open neil-ptr opened this issue 2 years ago • 1 comments

Describe the bug Typing out some variables on the playground shows excessive errors

To Reproduce

  1. Go to the playground and open up account 1
  2. Type out the following at the bottom of the contract:
        access(all) fun hi(): String {
    
  3. First 5 errors should appear Screen Shot 2022-08-03 at 1 57 29 PM

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

neil-ptr avatar Aug 03 '22 20:08 neil-ptr

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.

devbugging avatar Aug 12 '22 15:08 devbugging

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

alse avatar Aug 29 '22 22:08 alse