蛋痛的 open in another editor 错误问题

原帖来自:http://connect.microsoft.com/VisualStudio/feedback/details/742219/cannot-open-resource-file-open-in-another-editor

 

Cannot open resource file-"open in another editor"

填写者 VoiceOfExperience

The resource view has stopped working, because when I try to open MyProject.rc from RESOURCE VIEW, I get message "Opened in another editor". Previously, everything worked as expected with the same resource file and version of VS11.

The file is not open in any other editor. The problem persists if I close the solution and re-open it, if I stop VS11 and restart it, and if I reboot the system, start VS11 and open the project.

I can open MyProj.rc with Notepad or WordPad. I can also open MyProj.rc by double-clicking on the filename in Windows Explorer, which opens VS11 and then opens the resource file. So I suspect it is something in the project state file.

What I want to know is how can I "reset" whichever file is "remembering" that the resource file is open.           

详细信息 (展开)

Visual Studio/Team Foundation Server/.NET Framework Tooling version

Visual Studio 11 Beta

Steps to reproduce

On my system:
Reboot Windows 7
Start VS11 beta
Open MySoln (solution which contains MyProj)
In RESOURCE VIEW expand MyProj, then MyProj.rc

Product Language

English

Operating System

Windows 7

Operating System Language

English

Actual results

Error message "Opened in another editor"

Expected results

A list of the resources in this resource file (2 dialogs).
文件附件               
0 个附件
登录 发布 评论。
请输入评论。       
Microsoft 在 2012/5/21 9:20 发送                                       
Hi,

Thanks for the investigation and feedback. Before you figured out what the problem was, I was going to suggest that you delete your .suo file. This file is automatically created in your solution directory and is hidden by default. Among other user-specific solution state information, one of the items it tracks are the files that you last had open for a solution. Therefore, if you delete it, the next time you open that solution, no files will automatically be opened and it would have resolved your issue as well. We are not able to address this for the next version of Visual Studio but we'll consider improving this experience in a future release.

Thanks again,
Jim Griesmer
Visual C++ Team                                       
MS-Moderator08 [Feedback Moderator] 于 2012/5/16 1:49 发布                                       
Thank you for submitting feedback on Visual Studio 11 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.                                       
VoiceOfExperience 在 2012/5/15 11:55 发送                                       
I have solved this problem. The file resource.h was open. I closed resource.h, and tried to open MyProj.rc, and got the same failure message. However, when I closed the solution and reopened it, the rc file opens normally.

The operation of VS could be greatly improved in this regard, by giving a more specific error message (e g, "MyProj.rc cannot be opened because resource.h is open"), offering to close the offending file, and when resource.h is closed, updating the "allowed to open" status for MyProj.rc.                                       
MS-Moderator01 在 2012/5/15 11:43 发送                                       
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值