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
syntax error near unexpected token `(' #727
Comments
yeah, I think the file name escaping logic is very native, PR welcome :) Do you have an example command that fails ... or was it just straight up |
Thanks for the reply.
cool 🙂 - I'll have a look at the source code. It was just straight-up |
sorry, second question was meant for the |
ah, yes. for the |
that's weird ... never saw that :/
- can you reproduce in a non-rails app ?
- can you reproduce in an empty rails example app ?
…On Sat, Nov 23, 2019 at 8:54 AM Lud ***@***.***> wrote:
ah, yes. for the --color option I as well run it with, without binstubs,
with rake, rails, bundler, without bundler. I wipe some older versions of
related gems. All without success.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#727?email_source=notifications&email_token=AAACYZ6KLXWUP2BM4GSDQBTQVFN5DA5CNFSM4JQXKTSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE7ZDDI#issuecomment-557814157>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACYZ3LCHCC6UAK6OFPDBDQVFN5DANCNFSM4JQXKTSA>
.
|
@swiknaba why would you want to have ')' in filenames? |
I don't want to :D, however, file names in legacy codebases just have them in my case. Those files in particular are auto-generated spec files where the names are taken from PDF files that we collected from our business (testing OCR and parsing of these files). So the names ultimately come from "the business people". We could normalize them, but I'm reluctant to change the file name if it is valid in terms of the operating system; where would I end if I adjusted that for each library that has different issues? ;) |
Thanks for your response @swiknaba, that sounds like quite a tricky situation, definitely an edge case also. Have you thought about submitting a PR to handle this situation? |
Or maybe replacing the |
prefer a failing test-case, should be an easy fix |
Not 100% what would be the best way to test this, for now, I've just added a new blank test file to the sample Rails apps found in the spec/fixtures directory. The rails spec now fails if the filenames of the new test files contain bad characters, but succeeds if you give them a rails-standard file name. find detailed logs in the PR #831 |
3.7.3 |
Fails with
syntax error near unexpected token '('
if any file has a(
or)
in its name. It seems space characters also break parallel.Ruby 2.6.5
Rails 5.2.3
Parallel Tests 2.29.2
RSpec 3.9
running
rails parallel:spec
(also executed via bin/rake, etc., error persists).I was lazy, so I renamed my file and it is good now. However, the gem should not fail to parse files, when their names are valid file names.
FYI: also having an issue with the --color and --tty options, tried everything found in issues of the related gems, nothing worked, it keeps on failing with "invalid option". So I forked it and just removed the colors/tty. No one needs that anyway.
The text was updated successfully, but these errors were encountered: