Closed invke closed 3 years ago
@invke 👋 Is there this problem if you run reek
locally?
Hey @mgrachev, sorry I didn't explain the local test properly in the description. It works locally when running the same ruby version that I'm using in the project (2.7.2
), but when we swapped to the same major ruby version that the docker image is using to run reek it gave the same error. I think we ran locally with 2.6.5
, so that may not be the same minor version as the docker image.
Can you test these changes https://github.com/reviewdog/action-reek/pull/16?
name: reviewdog
on: [pull_request]
jobs:
reek:
name: runner / reek
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- name: reek
uses: reviewdog/action-reek@migrate-to-composite
with:
github_token: ${{ secrets.github_token }}
Hey, I encountered an error when running with that tag version of the action. Here's the trace:
Run reviewdog/action-reek@migrate-to-composite
with:
github_token: ***
tool_name: reek
level: error
reporter: github-pr-check
filter_mode: added
fail_on_error: false
🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog
reviewdog/reviewdog info checking GitHub for tag 'v0.11.0'
reviewdog/reviewdog info found version: 0.11.0 for v0.11.0/Linux/x86_64
reviewdog/reviewdog info installed /tmp/tmp.0NZmGlvfnC/reviewdog
/home/runner/_work/_actions/reviewdog/action-reek/migrate-to-composite/script.sh: 20: [[: not found
Installing reek ... https://github.com/troessner/reek
ERROR: While executing gem ... (Gem::Requirement::BadRequirementError)
Illformed requirement ["***"]
Running reek with reviewdog 🐶 ...
Error: No such file - ***
2020/12/14 19:54:16 [reek] reported: https://github.com/boost/fincap-client-voices/runs/1552725916 (conclusion=success)
I'm sorry for the long response. I have fixed this error. Can you try it again?
Sorry @mgrachev for the slow response also, just got back from leave today. Yep, it's all sorted on the latest of v1. Thanks, heaps!
When running the latest of
reviewdog/action-rubocop@v1
, against a project running ruby2.7.1
I experienced an underlyingParser::SyntaxError
. The issue seems to be able to be replicated locally by downgrading the ruby version to2.6.5
, which this action uses and running reek against it. I attempted to update the ruby version to2.7.2
and the same issue persisted.Here is the error/trace that is thrown:
It fails on the following code, particularly on the comment line that is between multi-lined method calls (
# perform the averaging in sql to make fast
). Although it's the parser that errors, it seems to be related to running it on the ruby2.6
docker image.This is a very specific issue (with a slightly strange comment), so I understand if it isn't high priority. I've moved the comment to fix it for now but figured it'd be good to capture this incase other people are experiencing it.
Cheers.