Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Labels
Area-LangService-APIBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
@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 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

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp