Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: test Example with wrong type results in unclear error message #35284
Although I think modules have nothing to do with it
Create a test file that contains a
Now do the same but make a other error like so
Second one is the kind of error messages I expect, the first one completely messes up vscode because there is no way vscode can figure out where to point to.
In cmd/go/internal/load/test.go, we extract
The error should look like;
Any fix should include a small regression test in cmd/go/testdata/script. See the README there for information on writing tests.