【问题标题】:Error while installing Google Cloud Tools Plugin 1.6.1 in Eclipse Oxygen 4.7 on Windows 8.1在 Windows 8.1 上的 Eclipse Oxygen 4.7 中安装 Google Cloud Tools Plugin 1.6.1 时出错
【发布时间】:2018-05-25 13:28:36
【问题描述】:

我无法在我的 Windows 8.1 机器上的 Eclipse Oxygen (4.7) 中从 Eclipse Marketplace 安装最新版本的 Google Cloud Tools Plugin (1.6.1)。显然,该插件尝试创建路径长度大于 260 个字符的深度目录和文件,Windows 不支持这些目录和文件,因此会导致错误。这个问题有解决办法吗?

[Installing Google Cloud SDK app extensions for Java]


Your current Cloud SDK version is: 202.0.0
Installing components from version: 202.0.0

+----------------------------------------------------+
|        These components will be installed.         |
+------------------------------+---------+-----------+
|             Name             | Version |    Size   |
+------------------------------+---------+-----------+
| gRPC python library          |         |           |
| gRPC python library          |   1.9.1 |   7.3 MiB |
| gcloud app Java Extensions   |  1.9.63 | 118.9 MiB |
| gcloud app Python Extensions |  1.9.70 |   6.1 MiB |
+------------------------------+---------+-----------+

For the latest full release notes, please visit:
  https://cloud.google.com/sdk/release_notes

#============================================================#
#= Creating update staging area                             =#
#============================================================#
#= Installing: gRPC python library                          =#
#============================================================#
#= Installing: gRPC python library                          =#
#============================================================#
#= Installing: gcloud app Java Extensions                   =#
#============================================================#
ERROR: gcloud crashed (IOError): [Errno 2] No such file or directory: u'C:\\Users\\user_dir\\AppData\\Local\\google-cloud-tools-java\\managed-cloud-sdk\\LATEST\\google-cloud-sdk.staging\\platform\\google_appengine\\google\\appengine\\tools\\java\\jetty93\\jetty-distribution\\lib\\apache-jsp\\org.eclipse.jetty.apache-jsp-9.3.18.v20170406-nolog.jar'

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics

【问题讨论】:

    标签: eclipse eclipse-plugin


    【解决方案1】:

    不幸的是,您遇到了dreaded MAX_PATH problem on Windows,它将总路径长度限制为 259 个字符加上一个 NUL 字节。 Cloud Tools for Eclipse 的下一个版本将把这个自动安装的 Cloud SDK 放在不同的位置,以使路径长度少于 259 个字符。同时there are two workarounds(复制到这里):

    1. Microsoft 有一个documented method for enabling long pathnames,需要对 Windows 注册表进行少量更改(搜索 HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled)。我们不确定进行此更改是否会产生任何负面影响。

    2. 您可以手动将 Google Cloud SDK 安装在其他位置(例如,D:\SDK),这样您就不会达到MAX_PATH 的限制。然后在 Preferences > Google Cloud Tools > Google Cloud SDK Location > Choose SDK 中配置 Cloud Tools for Eclipse 以使用此位置。

    【讨论】:

      猜你喜欢
      • 2022-06-29
      • 1970-01-01
      • 1970-01-01
      • 2016-04-18
      • 2012-10-12
      • 1970-01-01
      • 2018-04-23
      • 1970-01-01
      • 2018-05-08
      相关资源
      最近更新 更多