-
Notifications
You must be signed in to change notification settings - Fork 21
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
CI is marking failed Windows tests as passing #351
Comments
&&
.
Fix: #352 It seems the problem relates to the The fix highlights that there are some legit test failures on Windows. |
I remember this recent rails issue about the rubocop binstub not working on windows: rails/rails#51618 Maybe |
Also it seems a build that times out may still be marked as green: https://github.com/Shopify/ruby-lsp-rails/actions/runs/8836233919/job/24262310426 |
This may also be relevant: |
Hi, I opened rails/rails#51618 and yes, Is there something you'd like me to try? Thanks. |
Thanks, but I think that's isn't the solution here. If I run
It then fails with:
(this aspect is likely because this is a dummy app, so |
@mohits I am curious about this though: If you create a new Rails app on Windows when using Powershell, what does the default |
Hi @andyw8 - thanks! I did a fresh new app with rails main in Powershell.
Got through to the end, went into the application's directory and did:
Same issue:
I again did:
Then, ran the rails controller line and all is good. I also tried Hope this helps. |
I created a new app on windows (with 7.1, not main) and @ruby -x "%~f0" %*
@exit /b %ERRORLEVEL% Here's the logic for that: https://github.com/ruby/ruby/blob/29aaf4abe61e5ce24577eb3e8ccaa0a21934bb30/lib/bundler/installer.rb#L141-L145 And finally, here's what Rails itself has to say about running rails under windows:
https://guides.rubyonrails.org/getting_started.html#starting-up-the-web-server If I create |
Thanks for finding that. The guides should probably be updated to reflect that this applies to any binstub provided by Rails, not just when starting the server. |
I'd say it does that already?. |
Right, but it may be worth a mention in other places, e.g. https://guides.rubyonrails.org/command_line.html#command-line-basics |
Hi @andyw8 - just want to be sure that we're on the same page. For the issue mentioned here, I do use
No other change is needed anywhere else. As long as the conclusion you reached and the activity of #353 mean the same, it's fine. A more detailed walkthrough is on my page about this issue. |
@mohits I didn't hear back from |
Originally posted in #350
https://github.com/Shopify/ruby-lsp-rails/actions/runs/8821159752
The text was updated successfully, but these errors were encountered: