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
Error executing command ReviewCode: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index #150
Comments
Maybe it's related to a change of commit |
@adangel After updating to version 4.26.0 I still observe similiar exceptions in the log file. This time it complains about the project root dir:
This is with my real projects. I couldn't reproduce this with a test project yet. When I have more insights I'll let you know. |
@adangel UPDATE: I think you can reproduce the remaining issue with my provided example project above if you extract it on Windows in a dir like "D:\workspace\gitlab" and import it as an existing project into an Eclipse workspace. It seems to me that the backsplash in the root path is not escaped for the regex, so "\g" is not recognized by Pattern#compile (whereas "\w" and "\e" is interpreted by Pattern#compile). Hope this helps. |
@adangel Unfortunately I can't reopen the issue. Should I create a new issue? |
@hbrands Please create a new issue, thanks. |
Environment:
Windows 10
Spring Tool Suite
Version: 4.11.0.RELEASE
Build Id: 202106180608
(based on Eclipse 2021-06)
PMD Plug-in 4.24.0.v20210529-0600
I noticed a lot of errors in the PMD logfile:
The index 50 is around "\m" of \main in this example.
I will attach a sample project which demonstrates this problem.
Hopefully you can reproduce the issue.
example-demo.zip
The text was updated successfully, but these errors were encountered: