简体   繁体   English

安装dart插件后dart-eclipse插件崩溃

[英]dart-eclipse plugin crashing after installing dart plugin

I am using a new installation of Eclipse Luna SR2. 我正在使用Eclipse Luna SR2的新安装。 I install the dart-eclipes update from the site https://storage.googleapis.com/dart-archive/channels/dev/release/latest/editor-eclipse-update/ . 我从网站https://storage.googleapis.com/dart-archive/channels/dev/release/latest/editor-eclipse-update/安装了dart-eclipes更新。 The version 1.10.0-dev.1.9 (rev 45311) installed. 安装了版本1.10.0-dev.1.9(rev 45311)。 However, after restarting eclipse after the installation prompt to restart, the Luna logo is visible for a short while and then crashes (is no longer visible). 但是,在安装提示重启后重新启动eclipse后,Luna徽标会在短时间内可见,然后崩溃(不再可见)。 There is no console output or anything. 没有控制台输出或任何东西。

Old eclipse metadata have been removed from the installation folder. 旧的eclipse元数据已从安装文件夹中删除。

Thanks for any help 谢谢你的帮助

The dart plugin checks for a 'dart-sdk' directory in your eclipse installation directory. dart插件检查eclipse安装目录中的'dart-sdk'目录。

If you have dart and eclipse unzipped in your home ~/bin , then this should do the trick: 如果你在你的家~/bin压缩darteclipse ,那么这应该可以解决问题:

$ cd ~/bin/eclipse
$ ln -s ../dart/dart-sdk/

Now you should be able to start ./eclipse . 现在你应该能够启动./eclipse

Update: I have submitted this issue to the dart bug tracker: https://code.google.com/p/dart/issues/detail?id=23335 更新:我已将此问题提交给dart bug跟踪器: https//code.google.com/p/dart/issues/detail? id = 23335

Warning: the suggested symbolic link workaround will erase the target dart-sdk directory when doing an upgrade from inside Eclipse. 警告:建议的符号链接解决方法将在从Eclipse内部升级时擦除目标dart-sdk目录。 If you don't want this to happen just copy the whole directory instead of linking. 如果您不希望发生这种情况,只需复制整个目录而不是链接。

  1. Go to the dart directory you dowloaded. 转到您下载的dart目录。
  2. Copy the dart-sdk directory. 复制dart-sdk目录。
  3. Paste it directly in your eclipse directory. 将其直接粘贴到您的eclipse目录中。 (the directory containing eclipse.exe) (包含eclipse.exe的目录)

Bonus : To get the error messages when Eclipse crashes you can find the log in the directory you specify when you try to launch Eclipse. 额外:要在Eclipse崩溃时获取错误消息,您可以在尝试启动Eclipse时在指定的目录中找到该日志。 --> "MyJavaProjects"\\.metadata\\.log.txt - >“MyJavaProjects”\\。metadata \\ .log.txt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM