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
{{ message }}
Repository navigation
All features stop working on any file after solution is reloaded #2943
@saul Which part of #2909 fixes this? We should get the correctness fix in for this in. You mentioned putting things on the background thread for perf reasons, but it seems there are correctness fixes too? Thanks
@saul@vasily-kirichenko@cartermp We really need to get this and the other solution-reload bugs fixed. I spent some time looking but I don't have any idea what's going wrong.
I think it's because we don't track open documents with the running document table. SetupNewTextView isn't called when the Solution is reloaded or when files are renamed. My PR moves us over to using the RDT but I'm not 100% sure that's what fixed this bug or if it was something else I changed that fixed it. I'll take another look tonight.
Activity
dsyme commentedon Apr 28, 2017
I'm not seeing this. I'm on master or very close to it
I tried Close-Solution-Open-Solution - also edit-project-file-and-reload-solution
Could you list a specific repro?
vasily-kirichenko commentedon Apr 29, 2017
I saw it every time as I switched between branches. Specifically between master and #2910 and back.
saul commentedon Apr 29, 2017
Think this is another one fixed by my PR...
dsyme commentedon Apr 29, 2017
@saul This one? #2909 When it's green I'll pull and use it.
realvictorprm commentedon May 2, 2017
I can report this bug too. However I'm not sure whether it's already fixed in the new master.
@saul Is the Code Lens fork too outdated already?
dsyme commentedon May 9, 2017
@saul Which part of #2909 fixes this? We should get the correctness fix in for this in. You mentioned putting things on the background thread for perf reasons, but it seems there are correctness fixes too? Thanks
dsyme commentedon May 9, 2017
@saul @vasily-kirichenko @cartermp We really need to get this and the other solution-reload bugs fixed. I spent some time looking but I don't have any idea what's going wrong.
Does anyone know which PR caused this regression?
vasily-kirichenko commentedon May 9, 2017
This is the exception I see in the debugger after VFT solution was reloaded:
vasily-kirichenko commentedon May 9, 2017
saul commentedon May 9, 2017
I think it's because we don't track open documents with the running document table. SetupNewTextView isn't called when the Solution is reloaded or when files are renamed. My PR moves us over to using the RDT but I'm not 100% sure that's what fixed this bug or if it was something else I changed that fixed it. I'll take another look tonight.
dsyme commentedon May 9, 2017
@saul Thanks. The previous language service used the RDT but I had somehow thought the Roslyn one wasn't going to have to. cc @Pilchie
dsyme commentedon May 11, 2017
I believe this is fixed by #3025, at least for solution reloads.
At least it has worked for VisualFSharp.sln
vasily-kirichenko commentedon May 11, 2017
I confirm it's fixed in #3025 (I've tested on VFT and VFPT solutions). Thanks!
realvictorprm commentedon May 11, 2017
I'll check that too, I've also seen before that it doesn't work if you have already opened a solution and a new F# project to it
dsyme commentedon May 16, 2017
Fixed by #3025