Skip to content

VS2017 GoTo Definition gives assert then failure #1817

@dsyme

Description

@dsyme

In VisualFSharp.sln, I pressed F12 on CheckFileInProject at the following line in CompletionProvider.fs,

    let! checkFileAnswer = FSharpChecker.Instance.CheckFileInProject(parseResults, filePath, textVersionHash, sourceText.ToString(), options)

An assert happened telling me that First failed on this line:

                let refDocumentId = document.Project.Solution.GetDocumentIdsWithFilePath(range.FileName).First()

The fix for the assert should be to check if the array of documents is empty, However I don't particularly understand why this goto-definition action would fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions