Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idris should indicate file/line when it cannot find an import #4585

Open
Ptival opened this issue Nov 6, 2018 · 1 comment
Open

idris should indicate file/line when it cannot find an import #4585

Ptival opened this issue Nov 6, 2018 · 1 comment

Comments

@Ptival
Copy link

Ptival commented Nov 6, 2018

Steps to Reproduce

Add a non-existing import to any module. Run idris --check path/to/Module.idr

Expected Behavior

Something that would look like:

Module.idr:3:0-3:10:
  |
3 |   import Bad
  |   ~~~~~~~~~~
Can't find import Bad

Observed Behavior

Can't find import Bad

Problem

This problem makes flycheck not work well when importing a non-existing module. Since the output contains no information, flycheck can't point correctly to the line where the problem is.

@melted
Copy link
Contributor

melted commented Dec 3, 2018

Thanks for the report! It's a very reasonable expectation.

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

No branches or pull requests

2 participants