question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IntelliSense is not working on Mac for Unity Project

See original GitHub issue

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-preview1-002702)

Product Information:
 Version:     1.0.0-preview1-002702
 Commit Sha:  6cde21225e

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.11
 OS Platform: Darwin
 RID:         osx.10.11-x64

VS Code version:

1.2.1 (1.2.1)

C# Extension version:

1.1.6

Steps to reproduce

  • Open a Unity project with .sln and .csproj files.
  • Click on a .cs file.
  • write this. in a member function of a class.

Expected behavior

Intellisense should have worked.

Actual behavior

No intellisense working out. The fire icon at the right bottom of the VS code window shows running all the time.

Here is Omnisharp’s log, if it would help:

[INFO] Starting OmniSharp at '/Users/user-name/work/ProjectName/ProjectName.sln'...
[INFO] Started OmniSharp from '/Users/user-name/.vscode/extensions/ms-vscode.csharp-1.1.6/.omnisharp/OmniSharp' with process id 11754...
OmniSharp: -s /Users/user-name/work/ProjectName/ProjectName.sln --hostPID 11743 dnx:enablePackageRestore=false --stdio
[INFORMATION:OmniSharp.Startup] Omnisharp server running using Stdio at location '/Users/user-name/work/ProjectName' on host 11743.
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Initializing in /Users/user-name/work/ProjectName
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Auto package restore: True
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Update workspace context
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Resolving projects references
[INFORMATION:OmniSharp.Startup] Configuration finished.

And the Unity version is 5.4.1

Let me know if more information is needed. Thanks in advance!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
DustinCampbellcommented, Jun 24, 2016

Please note this information on the project readme:

Support for .csproj projects has been temporarily disabled on OS X and Linux. This will impact anyone doing .csproj development on OS X or Linux (e.g. Unity, Xamarin, etc.). Rest assured that this will be restored in the near future. However, for now, you can use the Legacy C# Support extension.

I’m currently in the process of producing a version of the C# Extension that attempts to bring back support for .csproj on OS X and Linux. If you’d be willing to test the extension once it’s ready, I’d be grateful.

0reactions
visualskyrimcommented, Jun 27, 2016

@DustinCampbell Thanks for the quick response! The v1.1.7 works pretty well for me.

Only I got a warning when I was loading the project: (Although I think that was probably an environment issue of mine)

[WARNING:OmniSharp#ProjectFileInfo] The reference assemblies for framework ".NETFramework,Version=v2.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intellisense Not Working with Visual Studio (Fix) - Unity Forum
Intellisense is not working in Visual Studio. ... In the Project view, right click on the script file and select "Open C# Project"...
Read more >
Fixing Visual Studio's IntelliSense (auto-complete) in Unity
If IntelliSense still refuses to work, you can open the Unity Editor and head to Edit > Project Settings and access the Player...
Read more >
Visual studio code Intellisense not working with Unity Engine?
Close the Visual Studio. Open the unity Preferences from the toolbar and select the external tools. Then, External Script Editor chose (Open the ......
Read more >
Visual studio code autocomplete/intelliSense not working fix ...
Go to Window>Package Manager. Under Unity registry, find Visual Studio code editor and install the package if not installed already.
Read more >
Intellisense not working on macos · Issue #5092 - GitHub
Omnisharp server running using Stdio at location '/Users/MacBook/Library/Mobile Documents/com apple CloudDocs/game development/Projects/Rocket ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found