-
Notifications
You must be signed in to change notification settings - Fork 53
Avoid opening error popups when rubocop is not found #339
Comments
Personally I'm strongly against this, how is the package supposed to tell the difference between when you simply haven't setup the environment correctly, or when you are operating in a purposely broken environment? I'd recommend simply running |
@Arcanemagus well, you don't expect any UI extension to spam popups for every file you click and every line you edit, do you? I'm not saying that the error should be discarded, I'm saying that could be reported without blowing the UI, or at least that an option for that would be appreciated (Actually I suggested to silently fail but as @Arcanemagus noticed it's probably too much brutal, I'm just removing that in favour of shell reporting) |
Why not to remove the |
Because they are gems and they come with |
Let me understand your environment setup, What is the purpose of setting |
@vzamanillo thank you for your effort.
I use
Yes, I often run |
You are welcome
That is the main problem, this linter is not prepared to do that (#21, #283), in fact, assumes that you are working with the same and latest Rubocop for linting all your projects.
I didn't ear about
Will not installing rubocop in your active gemset solve the problem? I perfectly understand your proposal because the popup is an infinite spam, but the inclusion of a configuration option to report to console does not solve the real problem, is a temporal solution. Let me think about other possible solutions. |
Maybe the answer is looking at prior art. There are multitudes of Rubocop plugins we could check out the source for? |
I must say that using
Well, I don't know what is an active gemset. Do you mean running |
Yes. |
I didn't try but there's a faster workaround: delete the |
I'd completely forgotten about that solution 🤦♂, thanks for bringing it up! |
forward non timeout execution errors to linter
Hello,
I set the Rubocop command to
bundle exec rubocop
, and I often usebundle open <some_gem>
in order to inspect gems. The problem is that when I click around gems filesrubocop command not found
exceptions keep popping up, and they are pretty annoying. I'd love some configuration likereport with console.log on rubocop command not found instead of UI popups
, since I don't really care about that, I just know that in the projects where I need linter-rubocop if linter-rubocop doesn't work is becausebundle exec rubocop
fails. What do you think about that?The text was updated successfully, but these errors were encountered: