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 not working with rc4 #1161

Closed
perlun opened this issue Jan 31, 2017 · 4 comments
Closed

Intellisense not working with rc4 #1161

perlun opened this issue Jan 31, 2017 · 4 comments

Comments

@perlun
Copy link

perlun commented Jan 31, 2017

Environment data

dotnet --info output:

$ dotnet --info
.NET Command Line Tools (1.0.0-rc4-004711)

Product Information:
 Version:            1.0.0-rc4-004711
 Commit SHA-1 hash:  3eee54e4f9

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.12
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/1.0.0-rc4-004711

VS Code version: 1.8.1
C# Extension version: 1.7.0-beta1 (installed to try and see if it helped, which it didn't)

Steps to reproduce

Opening a .NET Core project with a .csproj and .sln file.

Expected behavior

Intellisense.

Actual behavior

Intellisense broken. All I get is the flame icon saying "Switch projects". When I do, it runs for a while and goes back to the same mode.

Here is the output:

Updating C# dependencies...
Platform: darwin, x86_64 (osx.10.11-x64)

Downloading package 'Mono Runtime (macOS)' (1544 KB) .................... Done!
Downloading package 'Mono Framework Assemblies' (5828 KB) .................... Done!
Downloading package 'OmniSharp (Mono 4.6)' (16807 KB) .................... Done!
Downloading package '.NET Core Debugger (macOS / x64)' (38602 KB) .................... Done!

Installing package 'Mono Runtime (macOS)'
Installing package 'Mono Framework Assemblies'
Installing package 'OmniSharp (Mono 4.6)'
Installing package '.NET Core Debugger (macOS / x64)'

Finished

Here is the .csproj file:

<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <PropertyGroup>
    <TargetFramework>netcoreapp1.0</TargetFramework>
    <DebugType>portable</DebugType>
    <AssemblyName>zup</AssemblyName>
    <OutputType>Exe</OutputType>
    <PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
  </PropertyGroup>

  <ItemGroup>
    <EmbeddedResource Include="**\*.resx" />
    <EmbeddedResource Include="compiler\resources\**\*" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="NLog">
      <Version>5.0.0-beta04</Version>
    </PackageReference>
  </ItemGroup>

  <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
    <DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
  </PropertyGroup>

  <Import Project="$(IlcPath)\Microsoft.NETCore.Native.targets" Condition=" '$(IlcPath)' != '' " />
</Project>
@perlun
Copy link
Author

perlun commented Jan 31, 2017

(Note: it used to work for me, but stopped when I upgraded the dotnet cli tools to rc4)

@DustinCampbell
Copy link
Member

@perlun: Have you run dotnet restore? Currently, auto-restore for package references (#770) is not implemented for .csproj yet.

@perlun
Copy link
Author

perlun commented Feb 1, 2017

@DustinCampbell yep, but doesn't help. Here is the OmniSharp output right now:

Starting OmniSharp server at 2/1/2017, 3:30:04 PM
    Target: /Volumes/extra/git/perlun/zup/zup.sln

OmniSharp server started wth Mono
    Path: /Users/plundberg/.vscode/extensions/ms-vscode.csharp-1.7.0-beta1/bin/run
    PID: 19888

OmniSharp: -s /Volumes/extra/git/perlun/zup/zup.sln --hostPID 19820 --stdio DotNet:enablePackageRestore=false --encoding utf-8 formattingOptions:useTabs=false formattingOptions:tabSize=4 formattingOptions:indentationSize=4
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Startup","Message":"Omnisharp server running using Stdio at location '/Volumes/extra/git/perlun/zup' on host 19820."},"Seq":1,"Type":"event"}
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Initializing in /Volumes/extra/git/perlun/zup
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Auto package restore: False
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Update workspace context
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Resolving projects references
[INFORMATION:OmniSharp#MSBuild] MSBUILD_EXE_PATH environment variable set to /Users/plundberg/.vscode/extensions/ms-vscode.csharp-1.7.0-beta1/bin/omnisharp/msbuild/MSBuild.dll
[INFORMATION:OmniSharp#MSBuild] MSBuildExtensionsPath environment variable set to /Users/plundberg/.vscode/extensions/ms-vscode.csharp-1.7.0-beta1/bin/omnisharp/msbuild
[INFORMATION:OmniSharp#MSBuild] MSBuildSDKsPath environment variable set to /Users/plundberg/.vscode/extensions/ms-vscode.csharp-1.7.0-beta1/bin/omnisharp/msbuild/Sdks
[INFORMATION:OmniSharp#MSBuild] Detecting projects in '/Volumes/extra/git/perlun/zup/zup.sln'.
[INFORMATION:OmniSharp#MSBuild] Loading project from '/Volumes/extra/git/perlun/zup/zup.csproj'.
Discovered Mono file path: /Library/Frameworks/Mono.framework/Versions/Current/Commands/mono
Resolved symbolic link for Mono file path: /Library/Frameworks/Mono.framework/Versions/4.8.0/bin/mono-sgen32
[INFORMATION:OmniSharp#ProjectFileInfo] Using TargetFrameworkRootPath: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild-frameworks
[INFORMATION:OmniSharp#MSBuild] Add project: /Volumes/extra/git/perlun/zup/zup.csproj
[INFORMATION:OmniSharp#MSBuild] Update project: zup
[INFORMATION:OmniSharp.Script.ScriptProjectSystem] Detecting CSX files in '/Volumes/extra/git/perlun/zup'.
[INFORMATION:OmniSharp.Script.ScriptProjectSystem] Could not find any CSX files
[INFORMATION:OmniSharp.Startup] Configuration finished.

@perlun perlun changed the title Intellisense not working Intellisense not working with rc4 Feb 2, 2017
@perlun
Copy link
Author

perlun commented Feb 2, 2017

I uninstalled rc4 and went back to preview4 instead, using this link: https://github.com/dotnet/core/blob/master/release-notes/preview4-download.md

Works like a charm now... Closing, someone else can reopen if they feel like digging more into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants