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

Error reporting #30

Open
liquidev opened this issue Jul 9, 2020 · 0 comments
Open

Error reporting #30

liquidev opened this issue Jul 9, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@liquidev
Copy link

liquidev commented Jul 9, 2020

It would be nice if nim.nvim could accurately report errors in files, on :w. The current best solution seems to be using a separate plug-in (ALE), but due to the fact it uses nim check this simple case fails:

# a.nim
proc thing() =
  echo "hi"
include sub

# sub.nim
thing()  # nim check reports error, but nim c -r a works fine

nim.nvim already leverages nimsuggest and handles the above case correctly, so it should be fairly straightforward to capture any reported errors and underline tokens where these errors appear. Possibly also show them on the commandline.

@alaviss alaviss added the enhancement New feature or request label Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants