Skip to content

Conversation

@Kripner
Copy link

@Kripner Kripner commented Dec 17, 2025

Solves the problem that invalid import statements were not reported as errors.

Before:

{"cmd": "import NonExistentImport"}

{"env": 0}

After:

{"cmd": "import NonExistentImport"}

{"messages":
 [{"severity": "error",
   "pos": {"line": 1, "column": 0},
   "endPos": null,
   "data":
   "unknown module prefix 'NonExistentImport'\n\nNo directory 'NonExistentImport' or file 'NonExistentImport.olean' in the search path entries:\n/home/m/.elan/toolchains/leanprover--lean4---v4.27.0-rc1/lib/lean"}],
 "env": 0}

Similarly, invalid import statements were not reported when processing a file using {"path": "..."}, which is now fixed.

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