fsharp / emacs-fsharp-mode

F# Emacs mode
Apache License 2.0
208 stars 62 forks source link

.NET Core 2 support? #140

Closed julienXX closed 6 years ago

julienXX commented 6 years ago

Description

Keep getting 'file not part of the project' on a brand new .NET Core 2 project. For a classlib:

The file ’/Users/julien/Code/Examples/Demo/Demo.Core/Library.fs’ was not part of the project. Did you call InvalidateConfiguration when the list of files in the project changed?

For a XUnit test file:

Error: /Users/julien/Code/Examples/Demo/Demo.Tests/Tests.fs

Also saw this in the Messages buffer:

error in process filter: Wrong type argument: flycheck-error-p, [cl-struct-flycheck-error #<buffer  *Minibuf-1*> fsharp-fsautocomplete "/Users/julien/Code/Examples/Demo/Demo.Tests/Tests.fs" 4 6 "The namespace or module 'Xunit' is not defined." error nil]

I'm not really sure the issue is in fsharp-mode or fsautocomplete though.

Repro steps

Create a .NET Core 2 classlib.

Expected behavior

It should work as in .NET Core 1 projects.

Actual behavior

See Description.

Known workarounds

Changing the type of the classlib project from netstandard2.0 to netcoreapp2.0 works.

Related information

With debug logs enabled I get:

11:40:12.732619: project "/Users/julien/Code/Examples/Demo/Demo.Tests/Demo.Tests.fsproj" verbose
11:40:12.756524: {"Kind":"project","Data":{"Project":"/Users/julien/Code/Examples/Demo/Demo.Tests/Demo.Tests.fsproj","Files":["/Users/julien/Code/Examples/Demo/Demo.Core/Tests.fs","/Users/julien/Code/Examples/Demo/Demo.Core/Program.fs"],"Output":"null","References":["/Users/julien/Code/Examples/Demo/Demo.Core/bin/Debug/netstandard2.0/Demo.Core.dll","/Users/julien/.nuget/packages/fsharp.core/4.2.3/lib/netstandard1.6/FSharp.Core.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/Microsoft.CSharp.dll","/Users/julien/.nuget/packages/microsoft.dotnet.platformabstractions/1.1.0/lib/netstandard1.3/Microsoft.DotNet.PlatformAbstractions.dll","/Users/julien/.nuget/packages/microsoft.extensions.dependencymodel/1.1.0/lib/netstandard1.6/Microsoft.Extensions.DependencyModel.dll","/Users/julien/.nuget/packages/microsoft.testplatform.testhost/15.3.0-preview-20170628-02/lib/netstandard1.5/Microsoft.TestPlatform.CommunicationUtilities.dll","/Users/julien/.nuget/packages/microsoft.testplatform.objectmodel/15.3.0-preview-20170628-02/lib/netstandard1.5/Microsoft.TestPlatform.CoreUtilities.dll","/Users/julien/.nuget/packages/microsoft.testplatform.testhost/15.3.0-preview-20170628-02/lib/netstandard1.5/Microsoft.TestPlatform.CrossPlatEngine.dll","/Users/julien/.nuget/packages/microsoft.testplatform.objectmodel/15.3.0-preview-20170628-02/lib/netstandard1.5/Microsoft.TestPlatform.PlatformAbstractions.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/Microsoft.VisualBasic.dll","/Users/julien/.nuget/packages/microsoft.testplatform.testhost/15.3.0-preview-20170628-02/lib/netstandard1.5/Microsoft.VisualStudio.TestPlatform.Common.dll","/Users/julien/.nuget/packages/microsoft.testplatform.objectmodel/15.3.0-preview-20170628-02/lib/netstandard1.5/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/Microsoft.Win32.Primitives.dll","/Users/julien/.nuget/packages/newtonsoft.json/9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.AppContext.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Buffers.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Collections.Concurrent.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Collections.Immutable.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Collections.NonGeneric.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Collections.Specialized.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Collections.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.ComponentModel.Annotations.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.ComponentModel.Composition.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.ComponentModel.DataAnnotations.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.ComponentModel.EventBasedAsync.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.ComponentModel.Primitives.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.ComponentModel.TypeConverter.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.ComponentModel.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Configuration.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Console.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Core.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Data.Common.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Data.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Diagnostics.Contracts.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Diagnostics.Debug.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Diagnostics.DiagnosticSource.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Diagnostics.FileVersionInfo.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Diagnostics.Process.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Diagnostics.StackTrace.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Diagnostics.TextWriterTraceListener.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Diagnostics.Tools.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Diagnostics.TraceSource.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Diagnostics.Tracing.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Drawing.Primitives.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Drawing.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Dynamic.Runtime.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Globalization.Calendars.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Globalization.Extensions.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Globalization.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.IO.Compression.FileSystem.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.IO.Compression.ZipFile.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.IO.Compression.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.IO.FileSystem.DriveInfo.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.IO.FileSystem.Primitives.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.IO.FileSystem.Watcher.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.IO.FileSystem.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.IO.IsolatedStorage.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.IO.MemoryMappedFiles.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.IO.Pipes.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.IO.UnmanagedMemoryStream.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.IO.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Linq.Expressions.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Linq.Parallel.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Linq.Queryable.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Linq.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.Http.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.HttpListener.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.Mail.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.NameResolution.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.NetworkInformation.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.Ping.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.Primitives.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.Requests.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.Security.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.ServicePoint.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.Sockets.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.WebClient.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.WebHeaderCollection.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.WebProxy.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.WebSockets.Client.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.WebSockets.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Net.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Numerics.Vectors.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Numerics.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.ObjectModel.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Reflection.DispatchProxy.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Reflection.Emit.ILGeneration.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Reflection.Emit.Lightweight.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Reflection.Emit.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Reflection.Extensions.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Reflection.Metadata.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Reflection.Primitives.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Reflection.TypeExtensions.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Reflection.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Resources.Reader.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Resources.ResourceManager.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Resources.Writer.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.CompilerServices.VisualC.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.Extensions.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.Handles.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.InteropServices.RuntimeInformation.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.InteropServices.WindowsRuntime.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.InteropServices.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.Loader.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.Numerics.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.Serialization.Formatters.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.Serialization.Json.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.Serialization.Primitives.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.Serialization.Xml.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.Serialization.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Runtime.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Security.Claims.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Security.Cryptography.Algorithms.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Security.Cryptography.Csp.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Security.Cryptography.Encoding.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Security.Cryptography.Primitives.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Security.Cryptography.X509Certificates.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Security.Principal.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Security.SecureString.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Security.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.ServiceModel.Web.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.ServiceProcess.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Text.Encoding.Extensions.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Text.Encoding.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Text.RegularExpressions.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Threading.Overlapped.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Threading.Tasks.Dataflow.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Threading.Tasks.Extensions.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Threading.Tasks.Parallel.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Threading.Tasks.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Threading.Thread.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Threading.ThreadPool.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Threading.Timer.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Threading.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Transactions.Local.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Transactions.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.ValueTuple.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Web.HttpUtility.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Web.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Windows.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Xml.Linq.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Xml.ReaderWriter.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Xml.Serialization.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Xml.XDocument.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Xml.XPath.XDocument.dll","/Users/julien/.nuget/packages/system.xml.xpath.xmldocument/4.0.1/ref/netstandard1.3/System.Xml.XPath.XmlDocument.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Xml.XPath.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Xml.XmlDocument.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Xml.XmlSerializer.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Xml.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/WindowsBase.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/mscorlib.dll","/usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/netstandard.dll","/Users/julien/.nuget/packages/microsoft.testplatform.testhost/15.3.0-preview-20170628-02/lib/netstandard1.5/testhost.dll","/Users/julien/.nuget/packages/xunit.abstractions/2.0.1/lib/netstandard1.0/xunit.abstractions.dll","/Users/julien/.nuget/packages/xunit.assert/2.2.0/lib/netstandard1.1/xunit.assert.dll","/Users/julien/.nuget/packages/xunit.extensibility.core/2.2.0/lib/netstandard1.1/xunit.core.dll","/Users/julien/.nuget/packages/xunit.extensibility.execution/2.2.0/lib/netstandard1.1/xunit.execution.dotnet.dll"],"Logs":{}}}
11:40:12.766052: Received ’project’ message of length 2
juergenhoetzel commented 6 years ago

@rneatherway

I can reproduce this with latest fsautocomplete 0.33.

I suspect this is related to the use relative Compile item pathnames in sdk 2.0?

rneatherway commented 6 years ago

Ah, I see. Do you think that would be fixed by a release of the latest fsautocomplete, or it is an bug there that needs to be fixed? Is the format for sdk 2.0 different in that way then? I don't have any experience with these projects.

juergenhoetzel commented 6 years ago

This upstream issue only affects projects using netstandard2.0 target framework (default for classlib). netcoreapp2.0 (default for console) works fine. Ionide also is affected by this issue.

The fsautocomplte branch FCS14 fixes the issue for me.

enricosada commented 6 years ago

@rneatherway is not the sdk format, is a bug inside FCS, more info in https://github.com/fsharp/FsAutoComplete/issues/180

latest FCS should contains the fix, as @juergenhoetzel said, need to upgrade it, ref https://github.com/fsharp/FsAutoComplete/issues/183

until then, intellisense for lib targeting netstandard2.0 doesnt work. all others (netcoreapp2.0, netstandard1.6, etc) will work, with .net core sdk 2.0 too

rneatherway commented 6 years ago

OK, so this will come soon once we have proved and integrated latest FCS. Then I will rerelease FSAC and it will flow to here and VIM.

mavnn commented 6 years ago

Hi @rneatherway ; do we have an estimate of timescales for this? I can see the FSAC pull request is closed, but I don't know what other work is still involved for emacs/vim/etc to be updated.

(not trying to pressure, I just don't know what the workflow is)

rneatherway commented 6 years ago

Now that the FSAC PR is in, I will do a release to be incorporated into the other editors. It is slightly backwards-incompatible so there will be a small amount of work for emacs and vim to start using it.

rneatherway commented 6 years ago

I have made a release of FSAC at https://github.com/fsharp/FsAutoComplete/releases/tag/0.34.0

I will make a branch for fsharp-mode with the new release as a first step to upgrading. I think there are just a few rough edges, but as it has been a few months I am not 100% sure. Hopefully the tests will point them out to me :-)

/cc @kjnilsson for VIM

mavnn commented 6 years ago

Thanks Robin

rneatherway commented 6 years ago

Needs at least https://github.com/fsharp/emacs-fsharp-mode/pull/146

rneatherway commented 6 years ago

OK, I would expect this to work once the latest is on MELPA (try tomorrow). Please reopen or a new issue if any problems.