【问题标题】:Run SonarQube plugin on Visual Studio Code on GNU/Linux在 GNU/Linux 上的 Visual Studio Code 上运行 SonarQube 插件
【发布时间】:2018-01-02 00:56:18
【问题描述】:

我在 Visual Studio Code 上运行 SonarQube 插件和 SonarLint 时遇到了一些问题。 安装前一个或两个插件后,我尝试运行(按照教程...)命令SonarQube Inject: Create global config with credentials to servers,最终得到以下消息command 'sonarqube-inject.analyzeProject' not found

【问题讨论】:

    标签: sonarqube visual-studio-code sonarlint


    【解决方案1】:

    在 windows 上输入:Ctrl-Shift-P,然后输入 Sonar。编辑器将显示要使用的选项。

    【讨论】:

      【解决方案2】:

      问题来自默认情况下无法执行的插件二进制文件(至少在我的 Ubuntu 16.04 / VSCode 1.14 上)。 我只需要让它可执行:

      cd ~/.vscode/extensions/silverbulleters.sonarqube-inject-1.3.0/tools/sonarlint-cli/bin/
      chmod u+x sonarlint
      

      然后,重新启动 VSCode 并再次运行命令 SonarQube Inject: Create global config with credentials to servers 并设置服务器。

      【讨论】:

      • 我测试了 Nikita Grizlov 的新开发者,他在我提交此问题后制作了一些,新版本(在他将其发布到市场之前)运行良好并修复了此问题。
      • 关于如何从 Windows 运行命令的任何信息? SonarQube Inject: Analyze current project 无法识别:SonarQube : command not found
      猜你喜欢
      • 2021-02-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-08
      相关资源
      最近更新 更多