Why is the program still running while Error FS0039 The type 'JsonProvider' is not defined?

311 views Asked by At

I'm trying to learn Fsharp.data with the example of JsonProvider, but I can not understand why I'm still running the program while compiling the error.

enter image description here

2

There are 2 answers

2
TheQuickBrownFox On

You may have clicked "Yes" when VS asked you if it should run the last successful build when compilation fails.

See here for how to change the setting.

0
Bent Tranberg On

There are plenty of issues like this with F# in Visual Studio, but the situation also improves all the time in VS 2017. I believe one possible workaround for this particular issue is to restart VS.

But there is also another way, which works better to avoid an inconsistent Error list pane in general. Change from "Build + Intellisense" to just "Build" in the dropdown in the Error list pane, and see how that works for you. It means you have to compile to refresh the Error list pane, but you still get (sometimes inconsistent) Intellisense help in the editor panes without having to recompile.

If you want to know more about F# issues in VS, this is where to look: https://github.com/Microsoft/visualfsharp

Related Questions in F#

Related Questions in F#-DATA