Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense and Error Detection Not working in 1.6.0 #13640

Closed
dijitalmunky opened this issue Oct 13, 2016 · 21 comments
Closed

Intellisense and Error Detection Not working in 1.6.0 #13640

dijitalmunky opened this issue Oct 13, 2016 · 21 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@dijitalmunky
Copy link

  • VSCode Version: 1.6.0
  • OS Version: Mac OS Sierra 10.12
  • Plugins: ms-vscode.csharp 1.4.1, EditorConfig.EditorConfig 0.3.3

After upgrading from 1.5.3, Intellisense and Error Detection seem to have stopped working. I am coding a .NET Core project written in C#.

What happens is that Intellisense and Error Detection show up (i.e. the red squiggly underlines) when I make an edit in my C# file. However, after a moment, they disappear again and I can't get them to stay visible.

I noticed that JS/Node/Typescript users seem to be having a similar issue, So I will mention that we do have one JS file in this project as well as a package.json. The purpose of this one JS file is to do a cross-platform script that will build the whole project in one go. Regardless, this issue happens no matter if the JS File is opened or closed in VS Code.

@dijitalmunky
Copy link
Author

I just shut down VSCode completely and opened a different .NET Core project that had no JS/Node/Typescript files and the same thing is happening.

@elgerm
Copy link

elgerm commented Oct 13, 2016

+1, javascript and angularjs intellisense stopped working. All my settings are gone too.

@djx339
Copy link

djx339 commented Oct 13, 2016

Almost all the intellisenses stopped working for me on vscode 1.6

@dbaeumer
Copy link
Member

For the TS/JS code complete problem we have #13575 which we tracked down to be a problem in the tsserver.

@jrieken assigning to you since the original reporter complains about C#

@dbaeumer dbaeumer assigned jrieken and unassigned dbaeumer and waderyan Oct 13, 2016
@dbaeumer
Copy link
Member

@djx339 could you open Help > Toggel Developer tools and see if there is anything in the console.

@jrieken jrieken added the info-needed Issue requires more information from poster label Oct 13, 2016
@jrieken
Copy link
Member

jrieken commented Oct 13, 2016

@dijitalmunky Lets focus on C# here. I need more information understand this because the simple sample works for me. There is the dev console (F1 > Developer Tools) and also the OmniSharp output (View > Output > Omnisharp Log). Please attach check them for errors/warnings and report back

screen shot 2016-10-13 at 12 11 51

@nakedpony
Copy link

@jrieken I also have the same issue. There is nothing suspicious in logs during the error disappearance so I've made a small screencast to show how it happens: https://www.dropbox.com/s/mlwm9wrjk49zu73/vscode.mov?dl=0

Version 1.6.0 (1.6.0)
e52fb0b
2016-10-10T18:26:55.336Z

If you need more info just contact me.

@jrieken
Copy link
Member

jrieken commented Oct 13, 2016

Can someone try to get a small reproducible sample and attach it here? I am trying with a simple 2 file repo but that doesn't work...

@jrieken
Copy link
Member

jrieken commented Oct 13, 2016

@DustinCampbell does this ring a bell? do you see similar issues?

@DustinCampbell
Copy link
Member

I've received this issue over in the C# extension repo: dotnet/vscode-csharp#812. Since a few people have solved the problem by rolling back to VS Code 1.5.3, it's potentially related.

Note that the C# extension hasn't shipped a release for a couple of sprints (~6 weeks), so there's no change to the extension.

@nakedpony
Copy link

So I managed to reproduce it. It's not really a minimal project but a template one from Unity.
So steps are the following:

  1. Create a new project in Unity (v5.4.0f3 Personal)
  2. Select 2D project and add 2D asset package (This is the crucial part here. Without it all works normal)
  3. Create a simpleScript.cs in Assets folder and open it from Unity via MonoDevelop which generates .sla. Close MonoDevelop.
  4. Open the project folder via VSCode.
  5. Create any compilation error in simpleScript.cs and you'll see error being displayed and then disappeared as you can find in my screencast.

template_project_3.zip

@jrieken
Copy link
Member

jrieken commented Oct 13, 2016

@nakedpony - can you check if this happens only with 1.6 or also with 1.5 (for some it doesn't work in neither of them, dotnet/vscode-csharp#812 (comment)). Thanks!

@nakedpony
Copy link

@jrieken Version 1.5.3 (1.5.3) works just fine. So I guess to me it would be a nice workaround so far.

@leafi
Copy link

leafi commented Oct 13, 2016

Given that this is tagged 'needs more info': I posted more info & another non-Unity sample project that exhibits the issue at dotnet/vscode-csharp#812 (comment) .

@djx339
Copy link

djx339 commented Oct 14, 2016

@dbaeumer this is my console output
snip20161014_2

@vbrosch
Copy link

vbrosch commented Oct 14, 2016

Same problem here...

  • VSCode Version: 1.6.1
  • OS Version: MacOS Sierra 10.12
  • Plugins: ms-vscode.csharp 1.4.1

@dbaeumer The developer console contains an error:
screen shot 2016-10-14 at 07 56 46

@DJ-Icebear
Copy link

Exact same problem here.
VSCode Version: 1.6.1
OS Version: MacOS El Capitan 10.11.5
Plugins: ms-vscode.csharp 1.4.1

I downgraded to 1.5.3 and disabled auto-updates for now. That solved it.

@jrieken
Copy link
Member

jrieken commented Oct 14, 2016

@vbrosch Your problem seems to be different and it's likely a comment in one of the JSON-files.

@jrieken jrieken added *duplicate Issue identified as a duplicate of another issue(s) and removed info-needed Issue requires more information from poster labels Oct 14, 2016
@jrieken
Copy link
Member

jrieken commented Oct 14, 2016

Thanks for all the input. Closing this as a duplicate of dotnet/vscode-csharp#812 as I suspect OmniSharp diagnostics provider (dotnet/vscode-csharp#812 (comment))

@jrieken jrieken closed this as completed Oct 14, 2016
@dijitalmunky
Copy link
Author

@jrieken Sorry It took me so long to get back to you. Work has been crazy these last couple days.

As indicated above, if I revert to 1.5.3 things work again.

I tried your sample project, and I couldn't get it to do it again either.

However, in my project that is happening in, I see two errors in the dev console:

  • the one that @vbrosch has indicated above - I have double and triple checked my .json file in the project and cannot find any comments in them.
  • The second is this (it happens whenever I close a file tab):
    screen_shot_2016-10-14_at_8_54_14_am

So, yeah looks like an omni-code thing. I'll add info to their bug as well. Thanks!

@DustinCampbell
Copy link
Member

@dijitalmunky: Head over to dotnet/vscode-csharp#812. We've got a solution in progress there.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests