Skip to content

Conversation

eed3si9n
Copy link
Member

Fixes #6720
Ref #5994

Problem

Sometimes the compiler returns a fake position such as <macro>.
This causes this causes InvalidPathException on Windows if we try
to convert it into NIO path.

Solution

Looks for less-than sign in the VirtualFileRef and skip those.
Since BSP requires the diagnostic info to be associated with
files, we probably can't do much.

Fixes sbt#6720
Ref sbt#5994

Problem
-------
Sometimes the compiler returns a fake position such as `<macro>`.
This causes this causes InvalidPathException on Windows if we try
to convert it into NIO path.

Solution
--------
Looks for less-than sign in the VirtualFileRef and skip those.
Since BSP requires the diagnostic info to be associated with
files, we probably can't do much.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant