-
Notifications
You must be signed in to change notification settings - Fork 362
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
sonar CXX plugin sonar scan can't finish when it found can't find resources #1588
Comments
Hi, |
we are using sonarqube 7.3 cxx plugin 1.2 "main" #1 prio=5 os_prio=0 tid=0x0000000002669000 nid=0x4cb0 runnable [0x000000000286d000] java.lang.Thread.State: RUNNABLE at java.util.LinkedList.toArray(LinkedList.java:1052) at java.util.ArrayList.(ArrayList.java:177) at org.sonar.cxx.preprocessor.CxxPreprocessor.handleIdentifiersAndKeywords(CxxPreprocessor.java:766) at org.sonar.cxx.preprocessor.CxxPreprocessor.process(CxxPreprocessor.java:482) at com.sonar.sslr.impl.Lexer.preprocess(Lexer.java:153) at com.sonar.sslr.impl.Lexer.preprocess(Lexer.java:143) at com.sonar.sslr.impl.Lexer.lex(Lexer.java:132) at com.sonar.sslr.impl.Lexer.lex(Lexer.java:110) at org.sonar.cxx.preprocessor.CxxPreprocessor.expandMacro(CxxPreprocessor.java:851) at org.sonar.cxx.preprocessor.CxxPreprocessor.handleIdentifiersAndKeywords(CxxPreprocessor.java:747) at org.sonar.cxx.preprocessor.CxxPreprocessor.process(CxxPreprocessor.java:482) |
@liucc52 can you provide the source code creating this issue please. |
the code contains template like this |
yes, i think it is the same issue with #1383, is this issue resolved? |
we found this is a bug of sslr, the thread dump show the main thread hang at |
we resolve this problem by add sonar.cxx.defines=< <,> > to sonar-project.properties |
@liucc52 thx for your workaround. What exactly did you do? Replacing |
see #1685 |
sonar scan can't finish when it found can't find resources
our sonar scan stucked when it reports lots of warn
can not find resources for '#include< QDir >'
can not find resources for '#include< QRecF >'
The text was updated successfully, but these errors were encountered: