Xamarin Studio代码完成和导航不起作用 [英] Xamarin Studio code completion and navigation not working

查看:83
本文介绍了Xamarin Studio代码完成和导航不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我将Mac (10.12.4)上的Xamarin Studio升级为6.1.5 (build 0)社区版.

Yesterday I upgraded Xamarin Studio on my Mac (10.12.4) to 6.1.5 (build 0) community edition.

如果我创建一个新项目,那么一切都会按预期进行,但是在我现有的范围广泛的解决方案中,代码完成,符号导航(例如,右键单击符号以查找引用),和花括号匹配都无法正常工作.

If I create a new project, everything works as expected, but in my existing solution that is quite extensive, code completion, symbol navigation (e.g., right-clicking a symbol to find references), and brace matching are all not functioning.

注意:它似乎在XAML文件中正常运行,但在CS文件中却无法正常运行.这很奇怪,因为我能找到的所有搜索结果似乎都表明情况恰恰相反.

Note: It seems to be functioning properly in XAML files, but not CS files. This is strange, since everything I could find searching appears to suggest the opposite is the most likely circumstance.

以下是我到目前为止为纠正该问题而尝试的事情:

  • 删除并重新安装Xamarin Studio
  • ~/Library/~/Library/Caches
  • 删除所有与Xamarin相关的文件
  • 关闭相关设置,然后重新打开
  • 重新启动Mac
  • Removing and reinstalling Xamarin Studio
  • Deleting all Xamarin-related files from ~/Library/ and ~/Library/Caches
  • Turning off the related settings, then back on
  • Restarting my Mac

可能值得注意的是,无论我在文件中做什么,在文本编辑器上方的区域中,我都会看到以下未选择"消息:

It may be worth noting that in the area above the text editor, I see the following 'no selection' message, no matter what I do in the file:

如果我选择一个符号,菜单将始终显示为灰色:

and if I select a symbol, the menu is always greyed out:

我在IDE日志中没有发现任何与之相关的东西,并且到目前为止,我已经尝试了所有可以想到的东西.

I have not seen anything that appears to be relevant in the IDE logs, and I have tried everything I can think of at this point.

外面有人对下一步尝试或如何调试此问题有任何建议吗?

Does anyone out there have any suggestions on what to try next, or how to debug this issue?

最后,在另一台具有相同版本Xamarin Studio的Mac上,我无法重现,并且我们都从同一个git repo中提取.

Lastly, on another Mac with the same version of Xamarin Studio, I am unable to reproduce, and we're both pulling from the same git repo.

谢谢.

推荐答案

@jgoldberger是正确的.删除<solution_name>.userprefs并重新打开Xamarin Studio,已恢复了代码完成功能和相关功能.

@jgoldberger was correct. Deleting <solution_name>.userprefs and re-opening Xamarin Studio has restored the functionality of the code completion and related features.

谢谢!

这篇关于Xamarin Studio代码完成和导航不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆