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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

parallel: true broken for ale #530

Closed
thewatts opened this issue Feb 27, 2023 · 4 comments
Closed

parallel: true broken for ale #530

thewatts opened this issue Feb 27, 2023 · 4 comments
Labels
question 馃 Further information is requested

Comments

@thewatts
Copy link
Contributor

馃憢 First off - I'm so thankful for this gem and what it provides our team.

I'm in no way jumping in here to complain - I understand that most of what this app does is delegate out to rubocop, and what could be going on is likely a rubocop issue.

I did want to post something here though, in case someone ran into the same issue (I haven't found a related issue yet on this repo, or rubocop).

Important context - we use a custom .standard.yml file - which includes the options in the README, specifically parallel: true.


I use ale for linting/auto-fixing, and recently noticed that in between different projects, standard fixing was working on save, and in others - it wasn't.

Digging into this more specifically - I found that the jump from standard 1.13 to 1.14 causes Ale to fail to run its fix command.

Granted, the only changes here are upgrading rubocop to 1.32.0

To clarify here - listing does work, fixing does not.

In digging into the changes, it looks like changes were made to the rubocop parallel option

The current fix:

Setting parallel back to false fixes the problem - and ale works once again.


1.13

CleanShot.2023-02-27.at.16.42.11.mp4

1.14

CleanShot.2023-02-27.at.16.42.56.mp4
@searls
Copy link
Contributor

searls commented Mar 2, 2023

Thanks for sharing. Indeed, the fact this breaks on a release that did nothing but bump rubocop has me assuming this is a Rubocop issue.

I think other than raising a hand in that issue (maybe @koic knows something?), I'd recommend as a next step testing Ale with the rubocop release before and after this change. If it works, then maybe the problem is with how Standard is invoking Rubocop's runner

@searls searls added the question 馃 Further information is requested label Mar 2, 2023
@thewatts
Copy link
Contributor Author

thewatts commented Mar 6, 2023

Thanks for the reply, @searls!

I'd recommend as a next step testing Ale with the rubocop release before and after this change.
Great idea here!

Since standard already installs rubocop - I just changed my ale config to leverage rubocop instead of standard.

image

Ale worked fine in this regard:

CleanShot.2023-03-06.at.16.53.39.mp4

@searls
Copy link
Contributor

searls commented Mar 18, 2023

To confirm this is the same issue as #536, I verified ale is invoking standardrb with --stdin (as you'd expect) source

searls added a commit that referenced this issue Mar 18, 2023
Fixes #536, #530

Since stdin mode only operates on one file, there's no benefit trying to run in parallel mode anyway.
@searls searls closed this as completed in facc8ed Mar 18, 2023
@searls
Copy link
Contributor

searls commented Mar 18, 2023

Okay, this should be fixed in 1.25.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 馃 Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants