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

Not Generating Report - Not able to parse file #106

Open
jrk94 opened this issue Aug 18, 2022 · 7 comments
Open

Not Generating Report - Not able to parse file #106

jrk94 opened this issue Aug 18, 2022 · 7 comments

Comments

@jrk94
Copy link

jrk94 commented Aug 18, 2022

Describe the bug
10:12:54.256 INFO: Write output xml to file C:\src\.sonarqube\out\.sonar\mod27\fs-analysis-output.xml 10:12:54.318 ERROR: Not able to parse file : {0} After writing output.xml

To Reproduce
Steps to reproduce the behavior:
` dotnet sonarscanner begin /k:"Proj" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="sqp_1b0f5426c6c858c18ec117b868232020cb404f031" /d:sonar.verbose=true

dotnet build

dotnet sonarscanner end /d:sonar.login="sqp_1b0f5426c6c858c18ec117b868232020cb404f031"
`

Using Nunit and SonarQube 9.6

Expected behavior
Generate Sonarqube for F# & C#

Actual behavior
Only generates for C#

Screenshots
If applicable, add screenshots to help explain your problem.
image

Related information:

  • Plugin Version: latest
  • Sonarqube Version: 9.6 Community Edition
  • OS of Sonarqube server: Windows 11
@jmecosta
Copy link
Owner

jmecosta commented Aug 18, 2022 via email

@jrk94
Copy link
Author

jrk94 commented Aug 18, 2022

Sorry, here are the files
mod24.zip

@milbrandt
Copy link
Collaborator

Sorry, didn't saw your post. Yes, the plugin is currently only for SonarQube 7.9.x and SonarQube 8.x. SonarQube changes they API with breaking changes, in the past it was always valid for 2 majors. Now they changed and it is only for the current major, see API Deprecation Strategy.

That said, there is an update of the plugin required which implements the new sonar-plugin-api. Your PR would be welcome.

@sidhantkumar187
Copy link

@jmecosta Is there any workaround for this issue

@sidhantkumar187
Copy link

@jrk94 Were you able to find any workaround ?

@jmecosta
Copy link
Owner

jmecosta commented Nov 6, 2024

i dont think so, apologies

@milbrandt
Copy link
Collaborator

As to my understanding, there exists no workaround.

  • Since SonarQube 9.5 the API is a separate package, see Sonar Plugin API
  • The API compatibility list shows the current supported releases, deprecations should be fixed during 2 years - we are here much over the period
  • With SonarQube 10 (or was it already in the late 9?) the issue classification changed massivly. (In the upcoming 10.8 this will be reverted and an option.) Thus this plugin needs to be adjusted to match these changes.
  • The use of third-party (unsupported) plugins was hampered by SonarQube by additional acknowledgement and limited support thereafter.

As in our corporate group F# is not in main direction of development and step by step replaced with C#/Typescript. Personally, I will not upgrade the plugin to an updated SonarQube API and haven't it installed since we upgraded to SonarQube 9 in 2021/22.

@sidhantkumar187 please feel free to give it a try, a PR would propably be willingly reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants