Closed Gnbrkm41 closed 4 years ago
I have exactly same problem.
I had suspicion it's interfering with some other extension. So I disabled all other VS extensions but problem remained. With all other extensions disabled a even reinstalled Disasmo but didn't help.
Using VS 16.4.5. Project file:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
</Project>
Code:
using System;
namespace ConsoleApp2
{
class Program
{
static void Main()
{
Console.WriteLine();
}
}
}
Click on Main and press "Ctrl+.". Result is just exception described above. No actions will be available (not event default IDE suggestions).
Ouch doesn't sound good, @Gnbrkm41 @kindermannhubert when you mention Alt+Enter/Ctrl+"." do you mean Roslyn actions or maybe you have R# installed?
I do not have R# installed, and yes it is the Roslyn actions.
@sharwell maybe it sounds familiar to you? I have no idea how my extension messes things up in VS2019 so the problem remains even if it's disabled/uninstalled 🙁🙁
updated all dependencies just in case, maybe will help (I can't repro the issue)
@EgorBo Sorry, maybe I wasn't clear enough - when I disable Disasmo VS works just fine. I was trying to disable all extensions except Disasmo to find out if it helps but it does not. I do not have R# too.
Last update didn't help.
Interestingly when I don't use keyboard to trigger the actions it works (just click on 'Main' and click on light bulb): but when I press Ctrl+. it will fail (even after successful opening of Disasmo window with mouse):
Same here. The exception also seems to prevent opening the roslyn actions window with the shortcut unless VS is restarted.
Now works fine for me. Thanks.
I'm using VS2019 16.5 P2, but it used to happen with P1 as well. Can't confirm if it happened before. It appears that this only happens when Alt+Enter (or Ctrl + .) is pressed; this also does not happen with Disasmo disabled / uninstalled.