1

场景

最近我安装SONAR lint v3.4Eclipse Oxygen.2 Release (4.7.2

我正在运行 SONAR qube 服务器,并且成功地将 SONAR lint 连接到它。

问题

但是,在连接后,当我尝试从 SONARQUBE 服务器获取更新时。

Eclipse 抛出以下错误:

未能更新 1 个项目的绑定,无法更新

项目'xyz-项目'

不能动

C:\Users\vsinghal\eclipse-workspace\.sonarlint\work{SONARQUBE 服务器域}\.sonartmp_7415526389500015248\8960528228988360636

C:\Users\vsinghal\eclipse-workspace\.sonarlint\storage{SONARQUBE 服务器域}\modules\xyz-project

我检查了error log,以下是 eclipse 中的跟踪:

java.lang.IllegalStateException: C:\Users\vsinghal\eclipse-workspace\.sonarlint\work\{SONARQUBE server domain name}\.sonartmp_7415526389500015248\8960528228988360636  to C:\Users\vsinghal\eclipse-workspace\.sonarlint\storage\{SONARQUBE server domain name}\modules\xyz-project
    at org.sonarsource.sonarlint.core.client.api.util.FileUtils.moveDir(FileUtils.java:47)
    at org.sonarsource.sonarlint.core.client.api.util.FileUtils.replaceDir(FileUtils.java:153)
    at org.sonarsource.sonarlint.core.container.connected.update.perform.ModuleStorageUpdateExecutor.update(ModuleStorageUpdateExecutor.java:63)
    at org.sonarsource.sonarlint.core.container.connected.ConnectedContainer.updateModule(ConnectedContainer.java:118)
    at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.updateModule(ConnectedSonarLintEngineImpl.java:260)
    at org.sonarlint.eclipse.core.internal.server.Server.updateProjectStorage(Server.java:338)
    at org.sonarlint.eclipse.core.internal.jobs.ServerUpdateJob.run(ServerUpdateJob.java:66)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: java.nio.file.AccessDeniedException: C:\Users\vsinghal\eclipse-workspace\.sonarlint\work\{SONARQUBE server domain name}\.sonartmp_7415526389500015248\8960528228988360636  to C:\Users\vsinghal\eclipse-workspace\.sonarlint\storage\{SONARQUBE server domain name}\modules\xyz-project
    at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
    at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
    at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
    at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
    at java.nio.file.Files.move(Unknown Source)
    at org.sonarsource.sonarlint.core.client.api.util.FileUtils.moveDirPreferAtomic(FileUtils.java:53)
    at org.sonarsource.sonarlint.core.client.api.util.FileUtils.moveDir(FileUtils.java:45)
    ... 7 more

我做了什么尝试解决它?

  • 我为windows explorer 中Everyone的eclipse 工作区文件夹提供了完全权限/完全控制权。

  • 我尝试以管理员身份打开 Eclipse

  • 我已经检查了 SONAR 服务器是否可以访问

但在所有这些步骤之后,错误仍然没有消失。

任何人都可以帮助我找到解决方案吗?

4

1 回答 1

1

我目前在 eclipse 和 Intellij 中使用 SolarLint 时遇到了同样的问题。

关于谷歌群组有一个合理的建议, https://groups.google.com/forum/# !topic/sonarlint/nQW1kJBjUYg这表明原因可能是病毒扫描程序干扰了该过程。然而到目前为止,尽管遵循了这个理论,我仍然遇到了这个问题。不过有什么可以尝试的。

于 2018-03-28T11:46:19.937 回答