org.sonar.squidbridge.api.AnalysisException: Unable to analyze file: /home/webadm/sonar-cxx-refactor-highlighting/sonar-cxx-plugin/src/test/resources/org/sonar/plugins/cxx/highlighter.cc

GitHub | robenj | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 952#248606130

    GitHub | 5 months ago | robenj
    org.sonar.squidbridge.api.AnalysisException: Unable to analyze file: /home/webadm/sonar-cxx-refactor-highlighting/sonar-cxx-plugin/src/test/resources/org/sonar/plugins/cxx/highlighter.cc
  2. 0

    Error during SonarQube Scanner execution : java.lang.IllegalArgumentException: 79 is not a valid line offset for pointer

    Stack Overflow | 8 months ago | fleuryc
    java.lang.IllegalArgumentException: 79 is not a valid line offset for pointer. File [moduleKey=dot-net_SCHLUMBERGER-Helios, relative=wtap_nextgen/Src/Component/WebSolution/MMS/wwwroot/css/bootwatch-paper.css, basedir=/builds/dot-net/SCHLUMBERGER-Helios] has 78 character(s) at line 1
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    [Request For Feedback] Feedback wanted on C#, Scanner for MsBuild, FxCop, VB.NET

    Google Groups | 4 months ago | Tamas Vajk
    java.lang.IllegalArgumentException: 47 is not a valid line offset for pointer. File [moduleKey=XXX:E0834B61-2FBA-4BAA-BEA2-CEC754C4BA82, relative= GlobalSuppressions.cs, basedir=C:\tb\249\XXX\XXX\XXX\XXX\XXX] has 1 character(s) at line 2
  5. 0

    Error during analysis

    Google Groups | 9 months ago | Unknown author
    org.sonar.squidbridge.api.AnalysisException: SonarQube is unable to analyze file : 'C:\Workspaces\MyJavaEE\src\MyClass.java'

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      35 is not a valid line offset for pointer. File [moduleKey=PLUGIN, relative=resources/org/sonar/plugins/cxx/highlighter.cc, basedir=/home/webadm/sonar-cxx-refactor-highlighting/sonar-cxx-plugin/src/test] has 29 character(s) at line 79

      at org.sonar.api.internal.google.common.base.Preconditions.checkArgument()
    2. org.sonar.api
      Preconditions.checkArgument
      1. org.sonar.api.internal.google.common.base.Preconditions.checkArgument(Preconditions.java:148)
      1 frame
    3. SonarQube :: Plugin API
      DefaultInputFile.newRange
      1. org.sonar.api.batch.fs.internal.DefaultInputFile.checkValid(DefaultInputFile.java:218)
      2. org.sonar.api.batch.fs.internal.DefaultInputFile.newPointer(DefaultInputFile.java:209)
      3. org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:240)
      3 frames
    4. org.sonar.plugins
      CxxCpdVisitor.visitToken
      1. org.sonar.plugins.cxx.cpd.CxxCpdVisitor.visitToken(CxxCpdVisitor.java:82)
      1 frame
    5. SonarSource :: Language Recognizer :: Core
      AstWalker.walkAndVisit
      1. com.sonar.sslr.impl.ast.AstWalker.visitToken(AstWalker.java:107)
      2. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:86)
      3. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      4. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      5. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      6. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      7. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      8. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      9. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      10. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      11. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      12. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      13. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      14. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      15. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      16. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      17. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      18. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      19. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      20. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      21. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      22. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      23. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      24. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      25. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      26. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      27. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      28. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      29. com.sonar.sslr.impl.ast.AstWalker.visitChildren(AstWalker.java:99)
      30. com.sonar.sslr.impl.ast.AstWalker.visit(AstWalker.java:87)
      31. com.sonar.sslr.impl.ast.AstWalker.walkAndVisit(AstWalker.java:69)
      31 frames
    6. SonarSource :: Language Recognizer :: Squid Bridge
      AstScanner.scanFiles
      1. org.sonar.squidbridge.AstScanner.scanFiles(AstScanner.java:110)
      1 frame
    7. org.sonar.plugins
      CxxSquidSensor.execute
      1. org.sonar.plugins.cxx.squid.CxxSquidSensor.execute(CxxSquidSensor.java:128)
      1 frame
    8. org.sonar.batch
      SensorWrapper.analyse
      1. org.sonar.batch.sensor.SensorWrapper.analyse(SensorWrapper.java:57)
      1 frame
    9. SonarQube
      ModuleScanContainer.doAfterStart
      1. org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
      2. org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
      3. org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
      4. org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
      4 frames
    10. org.sonar.core
      ComponentContainer.execute
      1. org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
      2. org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
      2 frames
    11. SonarQube
      ProjectScanContainer.doAfterStart
      1. org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
      2. org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
      3. org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
      3 frames
    12. org.sonar.core
      ComponentContainer.execute
      1. org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
      2. org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
      2 frames
    13. org.sonar.batch
      TaskContainer.doAfterStart
      1. org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
      2. org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
      2 frames
    14. org.sonar.core
      ComponentContainer.execute
      1. org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
      2. org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
      2 frames
    15. SonarQube
      Batch.executeTask
      1. org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
      2. org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
      2 frames
    16. org.sonarsource.scanner
      BatchIsolatedLauncher.execute
      1. org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
      1 frame
    17. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    18. org.sonarsource.scanner
      IsolatedLauncherProxy.invoke
      1. org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
      1 frame
    19. com.sun.proxy
      $Proxy0.execute
      1. com.sun.proxy.$Proxy0.execute(Unknown Source)
      1 frame
    20. org.sonarsource.scanner
      Main.main
      1. org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:244)
      2. org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:154)
      3. org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)
      4. org.sonarsource.scanner.cli.Main.execute(Main.java:72)
      5. org.sonarsource.scanner.cli.Main.main(Main.java:60)
      5 frames