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
@magnushammar I've occasionally noticed something odd with keybindings. As a workaround I've found that closing/opening the editor tab fixes things. I assume it is a general VS bug but maybe F# brings it out
Thank you @dsyme that worked... It only happens on one file in the project I opened. It is clear though that the navigation keys work, its just that the text editor does not "get" the navigation keys but they instead move focus on the chrome surrounding the editor (Codelens, drop down boxes etc...)
We've seen this a few times, usually when the editor and shell are confused about where the focus is. Maybe something about the clickable quickinfo triggers it?
@olegtk do you have any ideas about how to diagnose?
I've experienced this starting in build 17062301 of the Visual F# Tools in a project in which it happens every time at startup of VS. As an experiment I switched back and forth between 2301 and 2201 three times and it reproduced in 2301 every time, and never in 2201.
I am also seeing this, very frequently starting with 17062301 (on a large solution, one in every 3-4 file opening operations). I did experience the issue before 17062301, but very infrequently (e.g. maybe once a week, and without an accompanying error dialog - see below)
What I am seeing:
Visual Studio pops up an error dialog upon opening the file in the editor, with the rather unhelpful message: "An item with the same key has already been added."
EDIT: might be a red herring, I have just reproduced the issue without the dialog popping up,
The arrow keys, enter and backspace do not work in the newly opened editor tab
The newly opened file tab does not display the top navigation bar (namespaces/modules/classes/members).
Closing and re-opening the file seems to always result in a working editor tab
Hope this helps - I am running VS 15.2(26430.14) and F# tools 17062705
Incidentally how can I tell what changes are in the nightly VSIX packages and how they are triggered? For example since June 25 there are 10 new builds on https://dotnet.myget.org/feed/fsharp/package/vsix/VisualFSharp and I don't know how they map to activity in this repo.
@chadunit There's no way to track it. The VSIXs are the output of an automated signed build done internally. Generally speaking, if there's a commit to master done today, a VSIX tomorrow will have that commit.
From what you've said, the problem was introduced by my adding this line a couple of months ago
From your analysis, this line was raising internal exceptions and causing the incomplete registration of the file in the editor.
I presumably hadn't tested if the editor was working correctly after loading,
I had stated in the PR that this line was a fix for #2107 and that this fix gave certain performance results linked there. However I can't recall whether that one line gave those performance results, or the PR as a whole. I don't know.
However given the revert, it is now questionable whether the performance issue Unacceptably slow solution load times #2107 is indeed fully fixed in master. Perhaps the solutions were loading more quickly because internal exceptions were causing the load process to not fully complete. I'm not sure. But we should at least reopen that issue and redo the performance tests.
Ideally we should learn a lesson about code reviewing - perhaps someone could have called out "what is this line doing and is it really necessary?". I thought I knew what I was doing here as the specific change seemed to make a major difference to performance, but I may have just made a mistake in methodology. That said, looking at the PR I can see that the one line looked innocuous and plausibly correct, so I can understand why code reviewer didn't ask the question "are you sure this doesn't stop the editor keys working?". But I think we need very experienced Roslyn eyes on every commit in LanguageService.fs that calls into the Roslyn APIs from now on?
It feels like there must be other lessons to learn here - thoughts?
From your analysis, this line was raising internal exceptions and causing the incomplete registration of the file in the editor.
Note: not exceptions - overwriting project registration. I think @KevinRansom is more qualified to talk about why that is a problem here (my guess is that some information the project system had was last as a result of this), but the result is that when debugging the editor itself, the portion that handles key inputs (known as a command handler) was receiving garbage values for F# when the keys were no longer responsive.
Note: not exceptions - overwriting project registration.
Ah, ok, thank you. That also explains why I never saw any internal exceptions when looking into this issue initially. It also gives me more hope that #2107 is still fixed.
@Pilchie#2107 is performance issue which seemed to be improved by the addition to the tracker. So some side effect of that additional increased the solution load time. We need to investigate that.
@forki Do you have a reproduction? We can't observe this since the fix, and we haven't seen any feedback about this coming in from people using 15.3.1 either.
@cartermp, @forki, here's some feedback: I use 15.3.1.0 and had the original problem, but it seems to have disappeared since that version came out three days ago.
It was definitely still there with these versions on visualfsharp solution.
Came after couple of minutes. Just as I reported earlier. Now I have
updated to latest nightly and it's gone for the moment.
Am 21.08.2017 17:34 schrieb "Abel Braaksma" <notifications@github.com>:
Activity
forki commentedon Jun 27, 2017
what? I can perfectly find delete code
dsyme commentedon Jun 27, 2017
@magnushammar I've occasionally noticed something odd with keybindings. As a workaround I've found that closing/opening the editor tab fixes things. I assume it is a general VS bug but maybe F# brings it out
TWith2Sugars commentedon Jun 27, 2017
@magnushammar I've noticed the same thing, @dsyme work around fixes the issue for me.
magnushammar commentedon Jun 27, 2017
Thank you @dsyme that worked... It only happens on one file in the project I opened. It is clear though that the navigation keys work, its just that the text editor does not "get" the navigation keys but they instead move focus on the chrome surrounding the editor (Codelens, drop down boxes etc...)
Pilchie commentedon Jun 27, 2017
We've seen this a few times, usually when the editor and shell are confused about where the focus is. Maybe something about the clickable quickinfo triggers it?
@olegtk do you have any ideas about how to diagnose?
dsyme commentedon Jun 27, 2017
@Pilchie If it helps, it is always on startup, or at least always on "document open".
chadunit commentedon Jun 28, 2017
I've experienced this starting in build 17062301 of the Visual F# Tools in a project in which it happens every time at startup of VS. As an experiment I switched back and forth between 2301 and 2201 three times and it reproduced in 2301 every time, and never in 2201.
cata commentedon Jun 28, 2017
I am also seeing this, very frequently starting with 17062301 (on a large solution, one in every 3-4 file opening operations). I did experience the issue before 17062301, but very infrequently (e.g. maybe once a week, and without an accompanying error dialog - see below)
What I am seeing:
Hope this helps - I am running VS 15.2(26430.14) and F# tools 17062705
magnushammar commentedon Jun 28, 2017
@cata. I can also get the error message with my example project depending on in what order I open files.
Focus bug only
Focus bug and error message
dsyme commentedon Jun 28, 2017
I suspect this line bac1458#diff-cdf0a4fbb7615b8029d78133924259c3R451
dsyme commentedon Jun 28, 2017
@magnushammar I can repro both of those cases, thank you for submitting this
dsyme commentedon Jun 28, 2017
@magnushammar @cata @chadunit @TWith2Sugars This appears to fix it: #3270
If someone else could verify that would be great.
chadunit commentedon Jun 28, 2017
@dsyme The fix works for me running from source, I can repro with master and your PR fixes it.
chadunit commentedon Jun 28, 2017
Incidentally how can I tell what changes are in the nightly VSIX packages and how they are triggered? For example since June 25 there are 10 new builds on https://dotnet.myget.org/feed/fsharp/package/vsix/VisualFSharp and I don't know how they map to activity in this repo.
cartermp commentedon Jun 28, 2017
@chadunit There's no way to track it. The VSIXs are the output of an automated signed build done internally. Generally speaking, if there's a commit to master done today, a VSIX tomorrow will have that commit.
67 remaining items
dsyme commentedon Aug 16, 2017
@cartermp @KevinRansom @brettfo @Pilchie Can we do a bit more root cause analysis here please?
From what you've said, the problem was introduced by my adding this line a couple of months ago
From your analysis, this line was raising internal exceptions and causing the incomplete registration of the file in the editor.
I presumably hadn't tested if the editor was working correctly after loading,
I had stated in the PR that this line was a fix for #2107 and that this fix gave certain performance results linked there. However I can't recall whether that one line gave those performance results, or the PR as a whole. I don't know.
However given the revert, it is now questionable whether the performance issue Unacceptably slow solution load times #2107 is indeed fully fixed in master. Perhaps the solutions were loading more quickly because internal exceptions were causing the load process to not fully complete. I'm not sure. But we should at least reopen that issue and redo the performance tests.
Ideally we should learn a lesson about code reviewing - perhaps someone could have called out "what is this line doing and is it really necessary?". I thought I knew what I was doing here as the specific change seemed to make a major difference to performance, but I may have just made a mistake in methodology. That said, looking at the PR I can see that the one line looked innocuous and plausibly correct, so I can understand why code reviewer didn't ask the question "are you sure this doesn't stop the editor keys working?". But I think we need very experienced Roslyn eyes on every commit in LanguageService.fs that calls into the Roslyn APIs from now on?
It feels like there must be other lessons to learn here - thoughts?
cartermp commentedon Aug 16, 2017
Note: not exceptions - overwriting project registration. I think @KevinRansom is more qualified to talk about why that is a problem here (my guess is that some information the project system had was last as a result of this), but the result is that when debugging the editor itself, the portion that handles key inputs (known as a command handler) was receiving garbage values for F# when the keys were no longer responsive.
dsyme commentedon Aug 16, 2017
Ah, ok, thank you. That also explains why I never saw any internal exceptions when looking into this issue initially. It also gives me more hope that #2107 is still fixed.
dsyme commentedon Aug 16, 2017
@cartermp It seems to me that #2107 is not fixed in 15.3 (now the call to add the file to the project tracker has been removed) #2107 (comment)
Pilchie commentedon Aug 16, 2017
@dsyme
IWorkspaceProjectContextFactoryalways createsCPSProject, which adds itself to the tracker in it's constructor http://source.roslyn.io/#Microsoft.VisualStudio.LanguageServices.Implementation/ProjectSystem/CPS/CPSProject.cs,36KevinRansom commentedon Aug 16, 2017
@Pilchie #2107 is performance issue which seemed to be improved by the addition to the tracker. So some side effect of that additional increased the solution load time. We need to investigate that.
forki commentedon Aug 21, 2017
still experience isues with broken keys in VS 15.3.1 and nightly 15.4.1.17082101
sigh
cartermp commentedon Aug 21, 2017
@forki Do you have a reproduction? We can't observe this since the fix, and we haven't seen any feedback about this coming in from people using 15.3.1 either.
abelbraaksma commentedon Aug 21, 2017
@cartermp, @forki, here's some feedback: I use 15.3.1.0 and had the original problem, but it seems to have disappeared since that version came out three days ago.
forki commentedon Aug 21, 2017
Fix for dotnet#3267 --- Arrow keys and backspace stopped working (dot…
Better fix for arrow, backspace, and enter keys (dotnet#3419)