- Notifications
You must be signed in to change notification settings - Fork825
Description
UPDATE: Issue with forward slashes, not junctions.
See#4016 (comment).
Go To Definition fails for a symbol if the containing file is in a directory that is linked via NTFS junction or symbolic link.
Go To Definition fails for a symbol if the containing file is in a directory that is referenced with forward slashes in the .fsproj file.
In a .NET Standard F# project, this fails with error "Cannot navigate to the symbol under the caret."
In a .NET Framework F# project, this works.
In a .NET Standard C# project, this works.
Repro steps
In Visual Studio, create aClass Library (.NET Standard) F# project.
Create a .fs file in a subdir.
Create a junction to the subdir. (e.g. in Powershell run:New-Item myjunction -ItemType Junction -Value origsubdir
)
Edit your .fsproj and manually reference the file using a forward slash.
In your main Library.fs, reference something from that file and then try to F12 to it. Results in error: "Cannot navigate to the symbol under the caret."
(Note that intellisense/compilation are working; just F12 fails.)
Related information
Visual Studio Community 2017 Preview
Version 15.5.0 Preview 4.0
Visual F# Tools (Experimental) 15.4.1.17112401 (from feed:https://dotnet.myget.org/F/fsharp-preview/vsix)
dotnet 2.1.1-preview-007165