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 is extremely slow to load #246

Comments

@jrieken
Copy link
Contributor

jrieken commented Apr 26, 2016

From @klong15 on April 25, 2016 19:16

  • VSCode Version: 1.0.0
  • OS Version: OSX Yosemite 10.10.5
  • Unity Version: 4.6.9f1
  • VSCode Unity Plugin: 2.50-RELEASE

I set up VSCode with Unity by following the guide here: https://code.visualstudio.com/docs/runtimes/unity

When using VSCode everything works great, the only problem is that intellisense takes many minutes to load when ever I do a single line of change. Reference counts go away. Autocomplete stops working. Jumping to declarations don't do anything, then it will jump to the declaration about 5 minutes after I clicked the action. Just hitting enter to start typing on a new line messes everything up.

How can I speed up load times for this? Did I set something up wrong?

Mono should be up to date. I updated dnvm stuff suggested by some stackoverflow post. When I do 'dnvm list' on terminal, I get this:

Active Version              Runtime Architecture OperatingSystem Alias
------ -------              ------- ------------ --------------- -----
       1.0.0-rc1-update2    coreclr x64          darwin          
  *    1.0.0-rc1-update2    mono                 linux/osx       default

I don't get any actual errors. I will get a message when ever I make a change saying, "Some projects had trouble loading. Please review the output for more details." The omnisharp log for this is:

[INFO] Starting OmniSharp at 'PROJECTPATH/client-csharp.sln'...
[INFO] Started OmniSharp from '/Users/KingKlong/.vscode/extensions/ms-vscode.csharp-0.3.7/bin/omnisharp' with process id 91421...
[INFORMATION:OmniSharp.Startup] Omnisharp server running using stdio at location 'PROJECTPATH' on host 90813.
[INFORMATION:OmniSharp.Dnx.DnxPaths] Using runtime '/Users/KingKlong/.dnx/runtimes/dnx-mono.1.0.0-rc1-update2'.
[INFORMATION:OmniSharp.Dnx.DnxProjectSystem] Scanning 'PROJECTPATH' for DNX projects
[INFORMATION:OmniSharp.Dnx.DnxProjectSystem] No project.json based projects found
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Detecting projects in 'PROJECTPATH/client-csharp.sln'.
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Loading project from 'PROJECTPATH/Assembly-CSharp-firstpass-vs.csproj'.
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Loading project from 'PROJECTPATH/Assembly-CSharp-vs.csproj'.
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Loading project from 'PROJECTPATH/Assembly-CSharp-Editor-firstpass-vs.csproj'.
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Loading project from 'PROJECTPATH/Assembly-CSharp-Editor-vs.csproj'.
[INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Detecting CSX files in 'PROJECTPATH'.
[INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Could not find any CSX files
[INFORMATION:OmniSharp.Startup] Solution has finished loading

Also, the flame icon on the bottom right corner says "0 projects". When I click on it, it lists two .sln files. One is client.sln . The other is client-csharp.sln. When I click either of them, they seem to work the same. The flame icon will still say "0 projects" after I click either of them. The guide says to click the -csharp one, but other stackoverflow posts say to choose the other. Which one should I be clicking?

Copied from original issue: microsoft/vscode#5776

@jrieken
Copy link
Contributor Author

jrieken commented Apr 26, 2016

From @bpasero on April 26, 2016 5:31

@jrieken please decide if this issue should be moved

@DustinCampbell
Copy link
Member

@klong15: My apologies for taking so long to get back to you about this issue. I realize that you might have moved on, but if you're interested in helping out I'm interested to know whether the latest beta of the C# extension works better for you. We've addressed some significant performance issues with large projects.

@klong15
Copy link

klong15 commented Aug 29, 2016

@DustinCampbell No worries, thanks for telling me about this update! Sadly, things are still running very slow, and my macbook pro is make jet sounds for how hard it is working with VSCode open. mono-sgen process hogs my cpu.
screen shot 2016-08-29 at 11 32 22 am

@DustinCampbell
Copy link
Member

Thanks for the update @klong15. I'll continue looking at this.

@DustinCampbell DustinCampbell self-assigned this Aug 29, 2016
@DustinCampbell DustinCampbell added this to the 1.5 milestone Aug 29, 2016
@DustinCampbell
Copy link
Member

This should be working much better with the 1.5 release of the C# extension. I'm expecting this to be fixed with this PR: #902

@klong15
Copy link

klong15 commented Nov 14, 2016

I've been messing around with VSCode this morning and everything seems to be working great! And my macbook doesn't sound like it is about to take flight. Thanks!

@DustinCampbell
Copy link
Member

That is wonderful to hear @klong15 -- thanks very much for confirming!

@daniel-keen
Copy link

Having similar issues with the latest version of vscode. Apart from using significant energy on mac, intellisense does work extremely slow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment