Open imajes opened 3 years ago
@fede-moya happy holidays! 🎄 ☃️
just wondered if you happened to have any time to look at this -- it feels like (i hope) a simple fix :D
@imajes happy holidays! we are having issues reproducing this bug. Could you please share a sample code where you're experiencing this issue? If you don't feel comfortable sharing over here. Please, send an email to hello@codeclimate.com so we can take a look at what's going on. Thank you!
@ale7714 thanks for replying! I pinged you back via the RLS slack -- it may be easier to zoom or something to quickly dive in. Thank you for being so awesome and on top of all these things! ❤️
@imajes
Could be the case that the code we discussed is not valid ruby code ? As we discussed, our theory was right and you are not seeing any rubocop issues because the ruby-parser
is failing at some point.
I have run the parser latest version, 3.0.0
against the following code and and I have received the following error message.
def hello(
a,
b,
)
puts "#{a} - #{b}"
end
hello("Parameter A", "Parameter B")
hello.rb:4:1: error: unexpected token tRPAREN
hello.rb:4: )
hello.rb:4: ^
Which is exactly the same parser error that I remember seeing in the logs.
Also trying to run that also cause and error
>> ruby hello.rb
hello.rb:4: syntax error, unexpected ')'
hello.rb:6: syntax error, unexpected `end', expecting end-of-input
All those problems go away if we remove the comma after argument b
, seems like it's not valid ruby. Like this:
def hello(
a,
b
)
puts "#{a} - #{b}"
end
hello("Parameter A", "Parameter B")
Might that extra comma got introduced by mistake ? 🤔
@fede-moya i triple checked, and there's no dangling comma. Sorry man. it's not the error :(
Hey climateers,
I'm noticing that for some reason i'm not able to get the codeclimate-rubocop analyzer to be able to find/determine errors.
here's a comparison:
However, when run via CC:
I can't figure out how better to debug this... but it's clear that running via codeclimate isn't getting it done.
relevant portion of
.codeclimate.yml
:halps? :) (sorry @ale7714 , but cc'ing you in because i know y'all super busy, but i am blocked on this - thanks)