Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

PLS doesn't resolve relative paths correctly #510

@erictraut

Description

@erictraut

The analyzer sometimes does not resolve relative paths correctly. See the screen shot below.

screen shot 2018-12-26 at 1 53 04 am

The problem appears to be in PathResolverSnapshot.TryFindName which contains the following lines of code:

if (lastEdge.End.IsModule) {
    return false;
}

I don't understand why this logic is needed. When I comment out these three lines, the relative paths resolve correctly and other imports also appear to resolve as expected.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions