Skip to content

Go To Definition fails if containing file is referenced with forward slash #4016

@chadunit

Description

@chadunit

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 a Class 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-APIBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions