Giter Site home page Giter Site logo

Comments (5)

Pablissimo avatar Pablissimo commented on May 21, 2024

Can you try switching to an older version of the plugin? Wondering if I've missed a case with the recent changes to support TsLint 4.0.2 and other changes around supporting bits of Linux that were causing trouble.

from sonartsplugin.

Pablissimo avatar Pablissimo commented on May 21, 2024

Just setup a build that's not (hopefully) radically dissimilar with this test project:

https://sonar.pablissimo.com/overview?id=22384

  • Visual Studio Team Services build (so something not radically dissimilar to TFS 2015 Update 3)
  • SonarTsPlugin v0.96-pre running on Linux (sonar.pablissimo.com)
  • TSLint 4.0.2
  • SonarQube 5.6.1

That worked at least, need to upgrade sonar.pablissimo.com to SQ 6.1 to check again.

Is there maybe a permissions issue with the build agent user not having read/write to the SonarQube temp folder? Would seem odd, there's exception handling in there to log that kind of error, but it's maybe worth checking?

from sonartsplugin.

FourSpotProject avatar FourSpotProject commented on May 21, 2024

Unbelievable, your guess with the permissions was right. When executing SonarQube Scanner for MSBuild I used a different account, that was the reason why it was working then. Changing the TFSAgent service account solved the issue.
Thanks!

from sonartsplugin.

Pablissimo avatar Pablissimo commented on May 21, 2024

Hooray! Sorry it broke - to fix an issue on Linux it became necessary to write the tslint output to a temporary file and re-read it, rather than just stream its output via stdout. As a result the scanner now needs write privs on that temporary folder, so this is probably a break as a result of v0.96.

Still - glad you're sorted!

from sonartsplugin.

NikitaEgorov avatar NikitaEgorov commented on May 21, 2024

I have same issue too (after update to Sonar 6.2)

java.lang.NullPointerException
at com.pablissimo.sonar.TsLintParserImpl.parse(TsLintParserImpl.java:26)
at com.pablissimo.sonar.TsLintSensor.execute(TsLintSensor.java:104)
at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53)
at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:57)
at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:49)
at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:78)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:182)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:247)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:242)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:240)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:232)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)
at org.sonar.scanner.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.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:115)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:116)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:233)
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:74)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)```

from sonartsplugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.