Skip to content
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

SonarQube analysis crashes when i-Code crashes #55

Closed
begarco opened this issue Mar 5, 2020 · 0 comments · Fixed by #57 or #63
Closed

SonarQube analysis crashes when i-Code crashes #55

begarco opened this issue Mar 5, 2020 · 0 comments · Fixed by #57 or #63
Assignees
Labels
Milestone

Comments

@begarco
Copy link
Contributor

begarco commented Mar 5, 2020

Describe the bug
Internal errors in i-Code checker make the analysis crash.

To reproduce
Run the SonarQube analysis on a file containing a known source of bug and with which i-Code throws exceptions.

Expected behavior
The plugin should:

  • log i-Code error
  • save a "parsing error" in SonarQube

Screenshots & log

10:37:49 INFO: Sensor fr.cnes.sonar.plugins.icode.check.ICodeSensor [sonaricode]
10:37:50 INFO: Reflections took 182 ms to scan 12 urls, producing 27 keys and 243 values
10:37:50 INFO: Reflections took 118 ms to scan 12 urls, producing 27 keys and 243 values
10:37:50 INFO: Reflections took 125 ms to scan 12 urls, producing 27 keys and 243 values
10:37:50 INFO: Reflections took 106 ms to scan 12 urls, producing 27 keys and 243 values
10:37:50 INFO: Reflections took 103 ms to scan 12 urls, producing 27 keys and 243 values
10:37:50 INFO: Reflections took 137 ms to scan 12 urls, producing 27 keys and 243 values
10:37:50 INFO: Reflections took 107 ms to scan 12 urls, producing 27 keys and 243 values
10:37:51 INFO: Reflections took 107 ms to scan 12 urls, producing 27 keys and 243 values
10:37:51 INFO: Reflections took 102 ms to scan 12 urls, producing 27 keys and 243 values
10:37:51 INFO: Reflections took 123 ms to scan 12 urls, producing 27 keys and 243 values
10:37:51 INFO: Reflections took 132 ms to scan 12 urls, producing 27 keys and 243 values
10:38:00 INFO: ------------------------------------------------------------------------
10:38:00 INFO: EXECUTION FAILURE
10:38:00 INFO: ------------------------------------------------------------------------
10:38:00 INFO: Total time: 14.485s
10:38:00 INFO: Final Memory: 419M/1185M
10:38:00 INFO: ------------------------------------------------------------------------
10:38:00 ERROR: Error during SonarQube Scanner execution
10:38:00 ERROR: Index: -1, Size: 1
10:38:00 ERROR:
10:38:00 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
10:38:00 WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succedeed?
10:38:00 ERROR: SonarQube scanner exited with non-zero code: 1
10:38:03 Finished: FAILURE

User environment (please complete the following information):

  • OS: Ubuntu
  • Java version: 11
  • i-Code version: 4.0.0
  • Plugin version: 2.0.1
@begarco begarco added the bug label Mar 5, 2020
@begarco begarco added this to the 2.1.0 milestone Mar 5, 2020
@begarco begarco self-assigned this Mar 5, 2020
@begarco begarco linked a pull request Mar 6, 2020 that will close this issue
12 tasks
begarco added a commit that referenced this issue Apr 8, 2020
Fix #55 i-Code exceptions are converted to issues
@begarco begarco mentioned this issue Apr 8, 2020
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant