onflow/cadence-tools

[LS] New import syntax fails

sideninja opened this issue · 1 comments

Possible regression.

Importing with the new import syntax in scripts has some issues.

Here's a code example to reproduce:

import "Bar"

pub fun main(a: Int, b: Int): String {
    return Bar.X
}

The output looks like:
Screenshot 2023-04-18 at 14 19 35

And the error is:
checking of imported "pub" program failed.

Not valid, vscode was opened in a folder that was not the same as the root of the project.