-
Notifications
You must be signed in to change notification settings - Fork 187
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 when linting fails #1227
base: main
Are you sure you want to change the base?
Error when linting fails #1227
Conversation
Hmm I like the idea of stopping with an error in non-interactive mode, but for interactive mode, I don't see the benefit over what Also, before making this breaking change, we should probably check what on-the-fly linting plugins do and expect in terms of output. |
@AshesITR this doesn't change the user experience of the existing interactive method. The source markers pane still opens, and the only difference is that when you change back to the console, you'll see more clearly that linting was not successful. I suspect this will have relatively limited downstream implications because most lintr usage is interactive. It may lead to more GitHub lintr workflows failing, but I suspect most folks would be surprised that they weren't failing before. |
Ooooh I mis-read the very long if block; let me put the error in the right place. |
I'm more worried about what RLanguageServer & co. do when R signals an error. Not using these plugins so I can't test unfortunately. @renkun-ken IIRC you were using vscode-r, right? |
Agree that It's not uncommon for me to do something like
My main concern is erroring by default makes this workflow more onerous. At first I thought it would make this workflow impossible, but Is there another example you can think of where a |
It'd feel weird for Another option is to have a specific |
|
Two ideas here:
Fixes #1226
If this seems like a worthwhile approach I'll update the docs, news, etc.