Eclipse Photon - Eclipse Marketplace 未启动

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51075843/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 05:44:01  来源:igfitidea点击:

Eclipse Photon - Eclipse Marketplace not launching

eclipse

提问by actunderdc

I just installed Eclipse Photon. I migraded one project from Oxygen to it - everything is working fine.

我刚刚安装了 Eclipse Photon。我将一个项目从 Oxygen 迁移到它 - 一切正常。

The problem I noticed is that I cannot open the Eclipse Marketplace. Whenever I click on it, I get the loading circle for 1-2 seconds then nothing happens.

我注意到的问题是我无法打开 Eclipse Marketplace。每当我点击它时,我都会得到 1-2 秒的加载圈,然后什么也没有发生。

I also tried this on a completely new empty workspace (so no old .metadata) - same behavior. I also restarted PC - didn't help.

我还在一个全新的空工作区(所以没有旧的 .metadata)上尝试了这个 - 相同的行为。我还重新启动了 PC - 没有帮助。

Any ideas? Is it me only that has this problem or is it a bug due to the new version?

有任何想法吗?是只有我有这个问题还是新版本导致的错误?

Thanks.

谢谢。

回答by actunderdc

I managed to find the problem and fix it. I went to: Help -> About Eclipse IDE -> clicked on "Installation Details" -> tab "Configuration" -> Clicked on "View Error Log"

我设法找到了问题并解决了它。我去了:帮助->关于Eclipse IDE->点击“安装详细信息”->标签“配置”->点击“查看错误日志”

The default browser opened and there I noticed the following stack trace:

默认浏览器打开,我注意到以下堆栈跟踪:

!ENTRY org.eclipse.ui 4 0 2018-06-28 10:38:21.036
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.IllegalArgumentException: Illegal character in path at index 16: file:/C:/Eclipse Photon/eclipse/configuration/
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:65)

It was the space character in the folder named by me: "Eclipse Photon". I renamed it to "EclipsePhoton" and the marketplace opened successfully.

这是我命名的文件夹中的空格字符:“Eclipse Photon”。我将其重命名为“EclipsePhoton”,并且市场成功打开。

Short answer: Make sure you do not have any spaces in the Eclipse installation file path.

简短回答:确保 Eclipse 安装文件路径中没有任何空格。

回答by Carlos Martinez

I fixed the issue with the solution from this link: https://www.chrisguindon.com/post/marketplace-client-not-opening-in-photon/

我通过以下链接解决了这个问题:https: //www.chrisguindon.com/post/marketplace-client-not-opening-in-photon/

Steps:

脚步:

  1. Go to Help > Install New Software
  2. Paste the Marketplace Client update site url into the “Work with” field: http://download.eclipse.org/mpc/photon
  3. Select the “EPP Marketplace Client” checkbox
  4. Follow the wizard and restart your Eclipse to finish the installation.
  1. 转到帮助 > 安装新软件
  2. 将 Marketplace Client 更新站点 url 粘贴到“Work with”字段中:http: //download.eclipse.org/mpc/photon
  3. 选择“EPP Marketplace Client”复选框
  4. 按照向导并重新启动 Eclipse 以完成安装。

回答by Chris M.

I had this problem on my Ubuntu 18.04 machine, none of the above helped.

我在 Ubuntu 18.04 机器上遇到了这个问题,以上都没有帮助。

After hours of searching, I found a working solution: enable theming under Window - Preferences - General - Appearance

经过数小时的搜索,我找到了一个可行的解决方案:在Window - Preferences - General - Appearance下启用主题

I had this disabled, so Eclipse uses my GTK Theme (Arc dark) and looks better. But enabling it makes Marketplace start again.

我禁用了此功能,因此 Eclipse 使用了我的 GTK 主题(暗色)并且看起来更好。但是启用它会使 Marketplace 重新开始。

The stacktrace in the Eclipse error log (Window - Show View - Error Log) contained a hint that lead me to the theming option.

Eclipse 错误日志(窗口 - 显示视图 - 错误日志)中的堆栈跟踪包含一个提示,可引导我进入主题选项。

回答by Florian U.

Addition to actunderdc answer:

除了actunderdc答案:

He is right. There is a bug if there is a space in the installation path. If you want to install in the Program Filesfolder, you can use the windows shortnames.

他是对的。如果安装路径有空格,则存在一个错误。如果要安装在Program Files文件夹中,可以使用 windows 短名称。

Find the shortname of the folder in cmd by using dir /X. For C:\Program Filesit is something like PROGRAM~1.

使用dir /X.在 cmd 中查找文件夹的短名称。因为C:\Program Files它类似于PROGRAM~1.

When you got the shortname, you can add the folowing at the top of your eclipse.ini File in the same directory of the eclipse.exe

获得短名称后,您可以在 eclipse.ini 文件的顶部添加以下内容,该文件位于 eclipse.exe 的同一目录中

-launcher C:\PROGRAM~1\eclipse\jee\photon

-launcher C:\PROGRAM~1\eclipse\jee\photon

Make sure to adjust it to your installation path. After you have done this, marketplace can be opened. But when I open Help -> About -> Instalation Details -> Configurationit shows me two -launcher parameters with the long and the short name. I don't know, if it could cause sideeffects.

确保将其调整为您的安装路径。完成此操作后,就可以打开市场。但是当我打开Help -> About -> Instalation Details -> Configuration它时,它会显示两个带有长名称和短名称的 -launcher 参数。不知道会不会有副作用

I opened a Bugreport at bugs.eclipse.org.

我在bugs.eclipse.org打开了一个错误报告

回答by Patrick Sweezy

First when trying to use WindowBuilder (SWT) in Eclipse JEE 4.8 you must remove all spaces from your Eclipse folder name that contains all its files. This first step was discovered via link:

首先,当尝试在 Eclipse JEE 4.8 中使用 WindowBuilder (SWT) 时,您必须从包含其所有文件的 Eclipse 文件夹名称中删除所有空格。第一步是通过链接发现的:

Eclipse Photon - Eclipse Marketplace not launching

Eclipse Photon - Eclipse Marketplace 未启动

Secondly, is this link tells the second half of the mystery. If you go to:

其次,就是这个链接告诉了后半部分的奥秘。如果你去:

http://download.eclipse.org/windowbuilder/WB/integration/4.8/

http://download.eclipse.org/windowbuilder/WB/integration/4.8/

you will see on the left hand side "show directory contents" which will have "repository.zip" file as last file of this expanded list. Download this (~39Mb). Note path to this file, then in eclipse click on "help" (last menu item), then click on "Install New Software...", then click "add", then click "archive" and go to path of saved "repository.zip" and select it. You will see square check box now indicates file to install.

您将在左侧看到“显示目录内容”,其中将“repository.zip”文件作为此展开列表的最后一个文件。下载这个 (~39Mb)。记下此文件的路径,然后在 eclipse 中单击“帮助”(最后一个菜单项),然后单击“安装新软件...”,然后单击“添加”,然后单击“存档”并转到“已保存的路径” repository.zip”并选择它。您现在将看到方形复选框指示要安装的文件。

I believe one must then click "continue" (check box already checked for WindowBuilder install item), then confirm when all files to be installed show are shown on screen, then finally click "finish". After the file is loaded in archive step I am not sure of the exact verbiage used for remaining steps but I believe what I have said is mostly accurate and after adding archive it will be self evident (piece of cake) what steps to follow. Finally to check if Window builder is installed go to (in top menu items) "file" then "new" then "other" and then finally scroll down list and WindowBuilder should be in this list, otherwise you landed a goose egg and something went wrong.

我相信必须然后单击“继续”(已选中WindowBuilder安装项的复选框),然后确认要安装的所有文件何时显示在屏幕上,最后单击“完成”。在存档步骤中加载文件后,我不确定用于剩余步骤的确切措辞,但我相信我所说的大部分是准确的,并且在添加存档后,要遵循的步骤将不言自明(小菜一碟)。最后检查是否安装了 Window builder 转到(在顶部菜单项中)“文件”,然后“新建”,然后“其他”,最后向下滚动列表,WindowBuilder 应该在这个列表中,否则你得到了一个鹅蛋,然后发生了一些事情错误的。

回答by codeajx

Had similar problem, this is what I did:

有类似的问题,这就是我所做的:

NOTE: If you have any other firewall software then make sure to allow eclipse though it & also check if your computer's time is proper(else leave this).

注意:如果您有任何其他防火墙软件,请确保通过它允许 eclipse 并检查您的计算机时间是否正确(否则保留此功能)。

Open Eclipse > Help > Install New Software.. >
Enter link in work with " http://download.eclipse.org/mpc/photon/" > (after lodaing) select the EPP Marketplace Client and install it

打开 Eclipse > 帮助 > 安装新软件.. >
在工作中输入链接“ http://download.eclipse.org/mpc/photon/” >(在 lodaing 之后)选择 EPP Marketplace Client 并安装它

  • I had error while installing it, I just allowed eclipse through firewall then marketplace client updated smoothly. Then I restarted eclipse and marketplace opened.
  • 我在安装它时出错,我只是允许 Eclipse 通过防火墙然后市场客户端顺利更新。然后我重新启动了 eclipse 并打开了市场。

Hope this helps.

希望这可以帮助。

回答by Jayesh Firke

Change your folder name eclipse photonto eclipsephotonif any space in your folder name its not open Eclipse Marketplace

如果文件夹名称中有任何空格未打开 Eclipse Marketplace,请将文件夹名称eclipse photon更改为eclipsephoton