-
Notifications
You must be signed in to change notification settings - Fork 184
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
Fix kotlin 1.8 warnings not detected #925
Fix kotlin 1.8 warnings not detected #925
Conversation
with kotlin 1.8 they changed the warnings compile output style from the java style to kotlin from <package-name><filename>.kt: (line,column) to <package-name><filename>.kt:line:column
test that the new and old style is still working
add test for the kotlin 1.8 warnings style
a7eee80
to
173fb1b
Compare
src/test/java/edu/hm/hafner/analysis/parser/JavacParserTest.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #925 +/- ##
=========================================
Coverage 92.89% 92.89%
Complexity 2322 2322
=========================================
Files 341 341
Lines 6450 6450
Branches 669 669
=========================================
Hits 5992 5992
Misses 262 262
Partials 196 196
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the regexp should work now. Can you please add some assertions for the properties of the two warnings, then we are ready to go...
Hey i tried that here: |
Can you please push those changes in the test case? Then I an try to refactor the code. (In the end we might need to create a new separate parser for Kotlin as the logs are somewhat different.) |
done, yeah i was also thinking about that approach. |
I tried to tweak the regexp even more but it looks like the format is too different. I think it makes sense to introduce a new Kotlin parser that can parse only Kotlin messages. |
but even with a separate kotlin parser the filename group problem will be the same i think. |
I think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that you did find a solution without creating a new parser 🚀
yeah it took quite some time to find a solution. |
with kotlin 1.8 they changed the compile warnings style.
Old style
<package-name><filename>.kt: (line,column)
new style
<package-name><filename>.kt:line:column
to archive this we need to make the
(
,)˙ and
[,
]optional as well ad a new separator
:`Testing done
Submitter checklist