Open efueger opened 5 years ago
@ivanobulo or @jsippel - any ideas? Let me know if I can help with any other info from the logs.
@efueger I'll have a look. Can you share your scalastyle XML configuration?
Thanks, @ivanobulo - I've asked the user to post it here. 👌
@ivanobulo Sorry, we don't have a scalastyle XML configuration for now. I'm trying to use Codacy at the same time. And I assume there is a default configuration for scalastyle like Codacy. Maybe this is the problem?
@xiaoyang24 It does look like this is non-standard configuration because the message it tries to format has a syntax error. I made a fix in the PR linked above. You could build the engine locally from the sources by running:
docker build . -t codeclimate/codeclimate-scalastyle:latest
and then run codeclimate analyzer using the command:
CODECLIMATE_DEBUG=1 codeclimate analyze --dev --engine scalastyle
This would print debug information including the message that causes error.
@ivanobulo Thank you, and yes, I found an old Scalastyle XML configuration file in one of the sub directories. I'm trying your method to check any problems with that file.
Or maybe I could solve the problem by removing it, does this sound like a solution?
@ivanobulo
Just to inform you about the progress.
I've tried to run the command locally but didn't get the Exception, even with the configuration file undeleted.
I finally got Analysis complete! Found 3,890 issues.
in 1h 29m 54s
.
@xiaoyang24 It does look like this is non-standard configuration because the message it tries to format has a syntax error. I made a fix in the PR linked above. You could build the engine locally from the sources by running:
docker build . -t codeclimate/codeclimate-scalastyle:latest
and then run codeclimate analyzer using the command:CODECLIMATE_DEBUG=1 codeclimate analyze --dev --engine scalastyle
This would print debug information including the message that causes error.
Can you help me? I'm having this problem. I don't know how to fix it. 😢
.scalafmt.conf
version = "2.7.5"
align.preset = more maxColumn = 100 newlines.alwaysBeforeTopLevelStatements = true
rewrite.rules = [ ExpandImportSelectors, RedundantBraces, RedundantParens, SortModifiers, PreferCurlyFors ] rewrite.redundantBraces.stringInterpolation = true
Error
@felipebonezi It's been a while since I looked at this project. From the error message it looks like its the same issue. Build the codeclimate-scalastyle locally:
docker build . -t codeclimate/codeclimate-scalastyle:latest
run
CODECLIMATE_DEBUG=1 codeclimate analyze --dev --engine scalastyle
and post error message here. If you do it properly it should contain log message "Unable to format the message. Invalid message format for key". I don't see it in the message you posted earlier.
@felipebonezi It's been a while since I looked at this project. From the error message it looks like its the same issue. Build the codeclimate-scalastyle locally:
docker build . -t codeclimate/codeclimate-scalastyle:latest
runCODECLIMATE_DEBUG=1 codeclimate analyze --dev --engine scalastyle
and post error message here. If you do it properly it should contain log message "Unable to format the message. Invalid message format for key". I don't see it in the message you posted earlier.
@ivanobulo my previous log file was using the command CODECLIMATE_DEBUG=1 codeclimate analyze --dev --engine scalastyle
.
I've done what you asked me to do and still returning the same log. 😢
try adding '&&' before codeclimate
, like this:
CODECLIMATE_DEBUG=1 && codeclimate analyze --dev --engine scalastyle
Repo hitting a format conversion error:
Maybe related to the custom message work done in https://github.com/codeclimate-community/codeclimate-scalastyle/pull/8 ?
troubleshooting resources: