-
Notifications
You must be signed in to change notification settings - Fork 14
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
Excluding Certain LSP Feedback for Otter buffers #207
Comments
For the R language server the current approach is to configure it (either globally or per project) e.g. like https://github.com/quarto-dev/quarto-nvim?tab=readme-ov-file#r-diagnostics-configuration. Likewise, pyright has its own configuration file, in which you can turn off individual warnings per project, e.g. the Though, I suppose it would be cool if those options can be set from within a file via some magic comment. In this case I might pick up my earlier idea here to add some by default per language. |
I think that #99 is a good solution to this, for instance a wrapper of Additionally, it looks like there are more specialized tools like Appearently, there is no name associated with this error so ignoring it is tricky, I ran async def main():
print("It works!")
await main() and the output I get is
I tested /home/adrian/Projects/Blog/example.py
/home/adrian/Projects/Blog/example.py:5:1 - error: Result of async function call is not used; use "await" or assign result to variable (reportUnusedCoroutine)
1 error, 0 warnings, 0 informations and can be toggled off using that setting. |
Thanks for
otter
!This is a whacky edge case I have but I think it is important enough to bring up.
Certain LSP feedback is not useful for injected content. For instance, in (modern)
jupyter
notebooks it is possible to use top levelawait
(which is not cool in normalpython
code). Sincequarto
usesjupyter
it is possible to do this withinquarto
too. However, this does result in diagnostics that are not helpful in the context of the notebook that tell me not to useawait
like this:As nasty as it looks, the page renders just fine too
Is there a way that this can be done without
otter
possibly?(Also,
# type: ignore
does work, but it would be nice to do this at the LSP level)The text was updated successfully, but these errors were encountered: