简体   繁体   English

为什么在错误 FS0039 The type 'JsonProvider' is not defined 时程序仍在运行?

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

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.我正在尝试以 JsonProvider 的示例学习 Fsharp.data,但我不明白为什么在编译错误时我仍在运行程序。

在此处输入图片说明

You may have clicked "Yes" when VS asked you if it should run the last successful build when compilation fails.当 VS 询问您是否应该在编译失败时运行最后一次成功构建时,您可能已经单击了“是”。

See here for how to change the setting.请参阅此处了解如何更改设置。

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. Visual Studio 中的 F# 有很多这样的问题,但这种情况在 VS 2017 中也一直在改善。我相信这个特定问题的一种可能的解决方法是重新启动 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.在“错误”列表窗格的下拉列表中,从“Build + Intellisense”更改为“Build”,看看这对您有何作用。 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.这意味着您必须编译以刷新错误列表窗格,但您仍然可以在编辑器窗格中获得(有时不一致)Intellisense 帮助,而无需重新编译。

If you want to know more about F# issues in VS, this is where to look: https://github.com/Microsoft/visualfsharp如果您想了解有关 VS 中 F# 问题的更多信息,请查看此处: https : //github.com/Microsoft/visualfsharp

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 F#错误FS0039:未定义类型'XmlProvider' - F# error FS0039: The type 'XmlProvider' is not defined F# 错误 FS0039:未定义值或构造函数“输入” - F# error FS0039: The value or constructor 'input' is not defined 错误FS0039:未定义字段,构造函数或成员'X' - error FS0039: The field, constructor or member 'X' is not defined 为什么会出现F#错误FS0039:未定义名称空间或模块'Http' - Why am I getting F# error FS0039: The namespace or module 'Http' is not defined XmlProvider FS0039中的DomainTypes未定义 - DomainTypes in XmlProvider FS0039 not defined F#错误'错误FS0039:未定义名称空间或模块'MySql'? - F# error 'error FS0039: The namespace or module 'MySql' is not defined'? 使用F#查询表达式时收到此消息:错误FS0039:未定义值或构造函数“查询” - I got this msg while using F# query expression : error FS0039: Undefined value or constructor “query” Azure存储类型提供程序:构建时为FS0039,但智能感知显示类型为可用 - Azure Storage Type Provider: FS0039 on build but intellisense shows type as available F# CsvProvider can't find member in Row error FS0039 - F# CsvProvider cant find member in Row error FS0039 尽管程序正在运行,但类型提供程序“ ProviderImplementation.JsonProvider”报告了一个错误 - The type provider 'ProviderImplementation.JsonProvider' reported an error despite program working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM