在Windows 8.1上的Eclipse Oxygen 4.7中安装Google Cloud Tools插件1.6.1时出错

时间:2018-05-25 13:28:36

标签: eclipse eclipse-plugin

我无法在Windows 8.1计算机上的Eclipse Oxygen(4.7)中从Eclipse Marketplace安装最新版本的Google Cloud Tools插件(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

1 个答案:

答案 0 :(得分:0)

您不幸地点击了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. 您可以在其他位置(例如D:\SDK)手动安装Google Cloud SDK,这样您就不会达到MAX_PATH限制。然后配置Cloud Tools for Eclipse以在 Preferences>中使用此位置。 Google云端工具> Google Cloud SDK位置>选择SDK