Eclipse 升级杀死了 PyDev

发布于 2024-12-21 18:23:15 字数 212 浏览 3 评论 0原文

我刚刚在 Ubuntu 上升级了 Eclipse 版本,现在每当我打开 Python 文件时,它都会在外部窗口中打开,并且我在 Eclipse 中打开的现有 Python 文件显示“无法打开编辑器:没有 id org.json 的编辑器描述符”。 python.pydev.editor.PythonEditor”。

我尝试卸载并重新安装 Eclipse 和 PyDev 插件,但没有解决问题。

I just upgraded my version of Eclipse on Ubuntu, and now whenever I open a Python file it opens in an external window, and the existing Python files I have open in Eclipse say "Could not open the editor: No editor descriptor for id org.python.pydev.editor.PythonEditor".

I tried uninstalling and reinstalling both Eclipse and the PyDev plugin, and it didn't fix the problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

窝囊感情。 2024-12-28 18:23:16

根据我的 Eclipse 经验(~8 年),不要进行就地更新。始终安装带有新工作区的新版本。并从 SCM 重新签出项目。

在切换到新环境之前,首先检查所有必需的插件是否仍然有效。

From my experience (~8 years) with eclipse don't do in place updates. Always install a fresh version with a new workspace. And re-checkout projects from SCM.

Check first whether all required plugins still work before switching to the new environment.

梦途 2024-12-28 18:23:16

确保您的 Java 版本正确(您的 PyDev 版本所期望的版本)。
在我更新 PyDev(5 分钟前)后,我在曾经打开过 python 源文件的选项卡中显示了完全相同的错误消息(没有 id 的编辑器描述符)。

我将我的 Java 版本从 1.7 更新到 1.8:

sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

然后要检查您的版本,请运行:

java -version

您应该看到类似以下内容:

java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) Server VM (build 25.91-b14, mixed mode)

重新打开 eclipse,并且 PyDev 插件正在工作。耶!

Make sure your Java version is correct (what your version of PyDev is expecting).
After I updated PyDev (5 min ago) I had the exact same error message displayed in the tabs where I once had python source files opened (No editor descriptor for id).

I updated my Java version from 1.7 to 1.8 with:

sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Then to check your version, run:

java -version

You should see something like:

java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) Server VM (build 25.91-b14, mixed mode)

Re-opened eclipse, and the PyDev plugin is working. Yay!

累赘 2024-12-28 18:23:16

实际上,当您安装Eclipse新版本时,就会安装新的插件,这会导致ubuntu库发生变化,并且只有安装支持的新插件后,再次安装才会生效

Actually, when you install Eclipse new version then new plugins are installed which lead to change in ubuntu libraries and installing again will not take effect until you install new plugin which is supported

纸伞微斜 2024-12-28 18:23:16

当我使用最新版本 3.* 升级 PyDev 时,我遇到了同样的问题。它需要java 1.7,但我只有java 1.6,所以它根本不起作用。我卸载了它并将 eclipse 设置为旧的更新点,但没有任何帮助。建议使用 PyDev 2.82 版本。您无法从更新存储库中找到它。

唯一的方法是从 PyDev 站点下载旧版本 2.8.2,将该 zip 文件解压到 eclipse 的 drop in 目录中,在 Linux 中它是 /usr/lib/eclipse/dropins。解压缩后,您应该会看到功能目录和插件目录。在 eclipse 启动一段时间后,我可以再次看到 PyDev。第一次重新启动 Eclipse 时,我看不到 PyDev,并尝试“检查更新”和“安装新软件”将 url 设置为 /usr/lib/eclipse/dropins,但他们没有在那里看到任何软件。但尝试重新启动几次后,旧的 PyDevc 2.8.2 再次出现在 Eclipse 中。呵呵。

我从 eclipses“检查 uopdates”中禁用了 PyDev,这样我就不会再犯这个错误,这台机器不会获得 java 1.7 (Ubuntu 10.04 LTS)。

I had same issue, when I updgradet PyDev with newest version 3.*. It needs java 1.7, but I have only java 1.6, so it does not work at all. I uninstalled it and set eclipse to old updating point, but nothing helped. Advise is to use PyDev versio 2.82. You can not find it from update repositories.

Only way is to download old version 2.8.2 from PyDev site, unzip that zip file to eclipse's drop in directory, in linux it is /usr/lib/eclipse/dropins. After unzipping you should see there features- and plugins-directories. And after some starting of eclipse, I could see PyDev again. At first restart of eclipse I could not see PyDev and tried "Check updates" and "Install new software" settind url to /usr/lib/eclipse/dropins but they did not see any software there. But trying to restart few times, old PyDevc 2.8.2 was in eclipse again. Huh.

I disabled PyDev from eclipses "check uopdates" so I don't make that error again, this machine will not get java 1.7 (Ubuntu 10.04 LTS).

影子的影子 2024-12-28 18:23:16

我现在在更新到 PyDev 5.0 时遇到了完全相同的问题,这绝对是一个问题,即用户没有被警告程序可能会在更新时中断。然而,最简单的解决方案是安装所需的新 Java 和 JRE 版本,对于 PyDev 5.0,即 Java 8 和 OpenJDK 1.8(在 Linux 上),并告诉 Eclipse 在 eclipse.ini 中实际使用新的 JRE > 文件,将其指向正确的路径。请参阅 https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM 了解如何实现这一点。

I now ran into exactly the same problem when updating to PyDev 5.0 and its definitely an issue that the user is not warned that the program might break on update. However, the simplest solution is to install the new required Java and JRE version, for PyDev 5.0 that's Java 8 and OpenJDK 1.8 (on Linux), and tell Eclipse to actually use the new JRE in the eclipse.ini file, by pointing it to the right path. See https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM on how to achieve this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文