org.sonar.squidbridge.api.AnalysisException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 941#246102428
    via GitHub by jmecosta
    ,
  • GitHub comment 941#246103716
    via GitHub by guwirth
    ,
  • Error during analysis
    via by Unknown author,
  • GitHub comment 952#248606130
    via GitHub by robenj
    ,
    • org.sonar.squidbridge.api.AnalysisException: Unable to analyze file: E:\prod\structures\src\work\Core\Common\libfilesystem\tool_sys_io_util.cpp at org.sonar.squidbridge.AstScanner.scanFiles(AstScanner.java:131) at org.sonar.plugins.cxx.squid.CxxSquidSensor.execute(CxxSquidSensor.java:128) at org.sonar.batch.sensor.SensorWrapper.analyse(SensorWrapper.java:57) at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50) at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83) at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236) at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47) at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106) at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119) at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60) at com.sun.proxy.$Proxy0.execute(Unknown Source) at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:240) at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151) at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110) at org.sonarsource.scanner.cli.Main.execute(Main.java:72) at org.sonarsource.scanner.cli.Main.main(Main.java:60) Caused by: java.lang.IllegalArgumentException: Unable to highlight fileoduleKey=tekla.structures.core:Common, relative=libfilesystem/tool_sys_io_util.cpp, basedir=E:\prod\structures\src\work\Core\Common] at org.sonar.api.batch.sensor.highlighting.internal.DefaultHighlighting.highlight(DefaultHighlighting.java:98) at org.sonar.api.batch.sensor.highlighting.internal.DefaultHighlighting.highlight(DefaultHighlighting.java:36) at org.sonar.plugins.cxx.highlighter.CxxHighlighter.highlight(CxxHighlighter.java:145) at org.sonar.plugins.cxx.highlighter.CxxHighlighter.visitToken(CxxHighlighter.java:127) at com.sonar.sslr.impl.ast.AstWalker.visitToken(AstWalker.java:107) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:86) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99) at com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87) at com.sonar.sslr.impl.ast.AstWalker.walkAndVisit(AstWalker.java:69) at org.sonar.squidbridge.AstScanner.scanFiles(AstScanner.java:110) ... 31 more Caused by: java.lang.IllegalArgumentException: 104 is not a valid line offset for pointer. FileoduleKey=tekla.structures.core:Common, relative=libfilesystem/tool_sys_io_util.cpp, basedir=E:\prod\structures\src\work\Core\Common] has 60 character(s) at line 292 at org.sonar.api.internal.google.common.base.Preconditions.checkArgument(Preconditions.java:148) at org.sonar.api.batch.fs.internal.DefaultInputFile.checkValid(DefaultInputFile.java:218) at org.sonar.api.batch.fs.internal.DefaultInputFile.newPointer(DefaultInputFile.java:209) at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:240) at org.sonar.api.batch.sensor.highlighting.internal.DefaultHighlighting.highlight(DefaultHighlighting.java:96)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,