简体   繁体   English

Visual Studio F# Intellisense 停止工作

[英]Visual Studio F# Intellisense stopped working

VS Pro F# compiler still works. VS Pro F# 编译器仍然有效。 Correct F# code still runs.正确的 F# 代码仍然运行。 BUT hovering over a function or symbol in a VS window presenting F# code no longer causes its type to appear as a tool-tip.但是,将鼠标悬停在显示 F# 代码的 VS 窗口中的函数或符号上不再导致其类型显示为工具提示。

For no reason I can discern my Visual Studio Pro has stopped live-checking my F# code.我无缘无故地发现我的 Visual Studio Pro 已停止实时检查我的 F# 代码。 No idea why the change.不知道为什么会改变。 I can still compile and of course type errors are still emitted.我仍然可以编译,当然仍然会发出类型错误。

  • Any idea where it is controlled in VS Pro?知道它在 VS Pro 中的控制位置吗?

  • Any ideas why F# Intellisense might suddenly NOT work in VS Pro?任何想法为什么 F# Intellisense 可能突然不能在 VS Pro 中工作?

Thank you!谢谢!

This issue may reappear in the future so I will not mark any answer as final.此问题将来可能会再次出现,因此我不会将任何答案标记为最终答案。 If you have a fix that works then please state the version of Visual Studio and F# Tools (found in the About Visual Studio pop-up) with your answer如果您有一个有效的修复程序,请在您的答案中说明Visual StudioF# 工具(在关于 Visual Studio 弹出窗口中找到)的版本

Version:版本:

  • Visual Studio 17.23视觉工作室 17.23
  • Visual F# Tools 17.1.0-beta.2253.3 Visual F# 工具 17.1.0-beta.2253.3

As Bent Tranberg noted the F# Github repo has a discussion " F# intellisense sometimes stops working #12982 ".正如 Bent Tranberg 所指出的,F# Github 存储库中有一个讨论“ F# intellisense 有时会停止工作 #12982 ”。 Looks like a fix will be pushed into the next update of F# (Visual Studio).看起来修复将被推送到 F# (Visual Studio) 的下一次更新中。

But what worked for me was to both:但对我有用的是两者:

  • close and restart Visual Studio关闭并重新启动 Visual Studio
  • Recompile your project (need not be error-free)重新编译你的项目(不需要没有错误)

After this my Intellisense tooltips would appear.在此之后,我的 Intellisense 工具提示将出现。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM