gpt4 book ai didi

c# - sonarlint.exe 不是有效的 win32 应用程序

转载 作者:太空宇宙 更新时间:2023-11-03 15:25:20 33 4
gpt4 key购买 nike

我正在尝试使用 sonarqube 分析一个 c# 项目,但我一直收到错误消息,指出 sonarlint 不是有效的 win32 应用程序,这是什么原因?

[15:51:01]: [Step 1/3] 15:51:01.807 INFO  - Sensor FileHashSensor...
[15:51:01]: [Step 1/3] 15:51:01.838 INFO - Sensor FileHashSensor done: 31 ms
[15:51:01]: [Step 1/3] 15:51:01.838 INFO - Sensor org.sonar.plugins.csharp.CSharpSensor@375465a1...
[15:51:02]: [Step 1/3] INFO: ------------------------------------------------------------------------
[15:51:02]: [Step 1/3] INFO: EXECUTION FAILURE
[15:51:02]: [Step 1/3] INFO: ------------------------------------------------------------------------
[15:51:02]: [Step 1/3] Total time: 26.359s
[15:51:02]: [Step 1/3] Final Memory: 53M/1397M
[15:51:02]: [Step 1/3] ERROR: Error during Sonar runner execution
[15:51:02]: [Step 1/3] INFO: ------------------------------------------------------------------------
[15:51:02]: [Step 1/3] ERROR: Unable to execute Sonar
[15:51:02]: [Step 1/3] ERROR: Caused by: java.io.IOException: Cannot run program "X:\xxxx\xxxx\xxxx\xxxxxx\.\.sonar\SonarLint.Runner\SonarLint.Runner.exe": CreateProcess error=193, %1 is not a valid Win32 application
[15:51:02]: [Step 1/3] ERROR: Caused by: Cannot run program "X:\xxxx\xxxx\xxxxx\xxxxx\.\.sonar\SonarLint.Runner\SonarLint.Runner.exe": CreateProcess error=193, %1 is not a valid Win32 application
[15:51:02]: [Step 1/3] ERROR: Caused by: CreateProcess error=193, %1 is not a valid Win32 application

最佳答案

使用不依赖/使用 sonarlint 的 c# 插件版本,我使用 3.3,问题是它是旧版本,因此未与最新规则保持同步。

关于c# - sonarlint.exe 不是有效的 win32 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35558150/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com