Has anybody got the Linux version working properly with VSCode. I can link my .sln and open up the files with context editing inside VSCode, but opening from Unity doesn't seem to work as you'd expect. It will open VSCode, but doesn't open the file and line you select. Here's my setup that apparently works on Mac. Any ideas?
[Not a Unity issue] Out of curiosity, has anyone got Omnisharp to actually provide Intellisense in VSCode on Linux? I kept getting a Mono version error (it complained about needing 3.1.x and higher, I have 3.2.x installed). So for now I'm back on Atom.
I know this is not an Unity issue but argh.... How did you manage to make it work? I've tried to manually load the project into VSCode and edit the project settings and also tried to use the VSCode Unity plugin, but everytime VSCode will find the solution and won't activate Omnisharp... The "flame" icon just keeps flashing, indicating it is loading the solution, but it never loads it... I've even let it running for 6 hours! to see if it managed to load but nope... I know both projects are new, but seeing people manage to make it work gave me hope Sorry if this is not the place for this but, please, if someone could explain how to correctly set both Unity Linux and VSCode I believe many people will be happy
I got VSCode working with Unity(including debugging too). I used: https://github.com/dotBunny/VSCode plus some custom modifications to the script.
Interesting, could you please share those modifications, or at list point me to what needs to be changed? Also, for some reason VSCode does not load my solution files, did you also face this problem until you changed the plugin script? Thanks!
https://gist.github.com/cra0zy/500ec225da89d4df1009 I used https://github.com/dotBunny/VSCode/pull/10 as base so remember that the checkbox settings are now in settings menu instead of main menu. Other than that look up https://github.com/dotBunny/VSCode on how to set it up.
Thank you very much for the code. I didn't know about [PreferenceItem], good to know that Anyway, it seems I have a problem somewhere, as my VSCode just does not load any solution file, neither Unity's, nor XNA nor any *.sln. I'm probably missing some dependency here, didn't find it yet... But thank you very much for the modified code
Load it manually, once you open the project folder, open any cs file, look at bottom left, click on "[burning icon] X projects" and select csproj to load. Tho .sln files aren't loadable, but they are just a collection of .csproj files anyway.
Yep, I did that, but the flame icon just keeps flashing after selecting a solution file: [Edit] Just adding that I've already tried letting the editor try to load the solution, I let it ran for 6h but it just kept flashing
Disregard the "Launch New Instance" thingy, it's just a script I wrote so I can use system MonoDevelop instead of the one they provided.
https://code.visualstudio.com/Docs/runtimes/unity https://channel9.msdn.com/Series/Visual-Studio-Code-for-Mac-Developers/Integration-with-Unity3d
Thank you all for trying to help me By now I believe you all think I'm dumb, and oh boy how right you are... In short, Ubuntu has Mono version 3.12 in its repositories. I've forced the upgrade to the latest version (4.0.4) and that did the trick... Sorry for making you lose time over such stupid non-unity related issue... [Edit] If you have a similar problem, upgrade Mono: http://www.mono-project.com/docs/getting-started/install/linux/