fsprojects / zarchive-fsharpbinding

Archive of F# Language Bindings for Open Editors
Other
307 stars 106 forks source link

Parser Error (verbose syntax, not enabled explicitly): Unmatched 'class', 'interface' or 'struct' #284

Closed knocte closed 10 years ago

knocte commented 10 years ago

This source analysis error is being brought up by XS/MD master (with F# binding 3.2.22) even when the code compiles fine:

fsourceanalysis

7sharp9 commented 10 years ago

Why are you using the non light verbose syntax?

Does it still occur with light syntax?

Sent from my iPhone

On 7 Jan 2014, at 22:23, "Andres G. Aragoneses" notifications@github.com wrote:

This source analysis error is being brought up by XS/MD master (with F# binding 3.2.22) even when the code compiles fine:

— Reply to this email directly or view it on GitHub.

knocte commented 10 years ago

With the light syntax it doesn't happen.

Also, when I fill myTest() with some code, the error disappears. So the bug here is about highlighting the wrong error.

7sharp9 commented 10 years ago

This will probably be low priority to look at to be honest, so many other things to look at.

On 7 Jan 2014, at 23:56, "Andres G. Aragoneses" notifications@github.com wrote:

With the light syntax it doesn't happen.

Also, when I fill myTest() with some code, the error disappears. So the bug here is about highlighting the wrong error.

— Reply to this email directly or view it on GitHub.

rneatherway commented 10 years ago

This doesn't happen if you explicitly enable verbose syntax with #light "off".

In any case the behaviour is the same in VS so this is a compiler bug (which is where we get the errors from). I think this will be treated as very low priority as verbose syntax isn't really used, and the behaviour when using it without signalling you are doing so is even more of a corner case.

knocte commented 10 years ago

nod

rneatherway commented 10 years ago

Bug is in compiler.