You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can reliably reproduce this issue now and finally managed to capture the extension log as well. Somehow starting VS with the /log switch wouldn't create the log file at the default (AppData/Roaming/...) location even though the error dialog that popped up indicated exactly that. I had to specify the log file path explicitly for the logging to kick in. Anyhow, please find ActivityLog.xml attached. To reproduce the issue I have to start two VS instances. The second instance triggers a "Loading user settings (...)" dialog while starting up (and this is the root cause of the issue, I think), then the usual error dialog pops up saying that there may be problems with some extensions. Records 690, 691, and 693 contain the pertaining exceptions.
Thanks for letting me know. And thanks for the detailed explanation.
Looking into the logs, the failure occurred while the GoToLastEditLocation listener was trying to GetCurrentFilePath.
User reports this happens reliably with multiple instances of VS open.
No report of this happening on a single instance.
I can confirm that this exception occurs every time when opening an R (Data Science) project.
I would also like to mention that it never occurs on other project types (that I've tried), for instance VB.NET projects
This is my activity log, which states that the exception happens on Editor or Editor Extension and is of type System.NullReferenceException at HotCommands.LastEditHandler.GetCurrentFilePath()
I can reliably reproduce this issue now and finally managed to capture the extension log as well. Somehow starting VS with the /log switch wouldn't create the log file at the default (AppData/Roaming/...) location even though the error dialog that popped up indicated exactly that. I had to specify the log file path explicitly for the logging to kick in. Anyhow, please find ActivityLog.xml attached. To reproduce the issue I have to start two VS instances. The second instance triggers a "Loading user settings (...)" dialog while starting up (and this is the root cause of the issue, I think), then the usual error dialog pops up saying that there may be problems with some extensions. Records 690, 691, and 693 contain the pertaining exceptions.
ActivityLog.zip
The text was updated successfully, but these errors were encountered: