简体   繁体   English

Javascript 文件编辑停止使用 Eclipse 2020-06

[英]Javascript file editing stopped working with Eclipse 2020-06

I have been working on the exact same file directory with eclipse for many years.多年来,我一直在使用与 eclipse 完全相同的文件目录。 It just worked.它刚刚奏效。 I am using PHP, CSS, JS, HTML files.我正在使用 PHP、CSS、JS、HTML 文件。

Occasionally, I ran an automatic upgrade as described here .有时,我会按照此处所述运行自动升级。 This also just worked.这也刚刚奏效。

Now after the latest upgrade, several things just stopped working:现在在最新升级之后,有几件事停止了工作:

  • In PHP files, the core commands are not auto-completed anymore.在 PHP 文件中,核心命令不再自动完成。 I searched for a solution, to no avail.我寻找解决方案,无济于事。
  • Javascript files don't get any special editor anymore. Javascript 文件不再有任何特殊编辑器。

Now my most pressing question is:现在我最紧迫的问题是:

Where do I re-enable the good old Javascript editor?我在哪里可以重新启用旧的 Javascript 编辑器?

Here's my Installation details:这是我的安装细节: 在此处输入图像描述

The Eclipse IDE for PHP Developers is made up of components from various Eclipse projects. PHP 开发人员的 Eclipse IDE 由来自各种 Z32F7222788919 项目的组件组成。 In the Eclipse IDE 2020-06 release the JavaScript support for .js file is no longer provided by the JavaScript editor from JSDT , but by Eclipse Wild Web Developer . In the Eclipse IDE 2020-06 release the JavaScript support for .js file is no longer provided by the JavaScript editor from JSDT , but by Eclipse Wild Web Developer .

Wild Web Developer does not provide a separate Editor for JavaScript, but extends the Generic Text Editor by code completion, syntax highlighting, validation, navigation, etc. for JavaScript . Wild Web Developer没有为 JavaScript 提供单独的编辑器,但通过代码完成、语法突出显示、验证、导航等扩展通用文本编辑器用于 Z686155AF75A60A0F6E9D80C1F7EDD3E

To get back the JSDT JavaScript editor you have to uninstall Eclipse Wild Web Developer and install JavaScript Development Tools from the Eclipse IDE 2020-03 release (I guess the problems if you had both were solved by simply removing or disabling the JavaScript editor in the 2020-06 release): To get back the JSDT JavaScript editor you have to uninstall Eclipse Wild Web Developer and install JavaScript Development Tools from the Eclipse IDE 2020-03 release (I guess the problems if you had both were solved by simply removing or disabling the JavaScript editor in the 2020 -06 版本):

  1. Uninstall Eclipse Wild Web Developer : In Help > About Eclipse IDE: Installation Details , in the Installed Software tab select Eclipse Wild Web Developer and click Uninstall... Uninstall Eclipse Wild Web Developer : In Help > About Eclipse IDE: Installation Details , in the Installed Software tab select Eclipse Wild Web Developer and click Uninstall...
  2. Install JavaScript Development Tools from the 2020-03 release: In Help > Install New Software... work with https://download.eclipse.org/releases/2020-03 and choose JavaScript Development Tools to install Install JavaScript Development Tools from the 2020-03 release: In Help > Install New Software... work with https://download.eclipse.org/releases/2020-03 and choose JavaScript Development Tools to install

See also Eclipse IDE 2020-06 > New & Noteworthy > Eclipse PHP Development Tools另请参见Z32F72222026696F30787889194DEE83E5Z Z581D6381F35E4F35E4F9D77201ACF87B364Z 2020-06 >新& Not&Noteworthy> Z32F722202222222222222222222222222222222227888888988888888888988888988989999696名色度于

Had the same issue, using 2020-09.有同样的问题,使用 2020-09。 I found that Wild Web Developer (in Help > Eclipse Marketplace.. ) was indeed installed, but then I checked more info and it said我发现确实安装了Wild Web Developer (在Help > Eclipse Marketplace..中),但后来我检查了更多信息,它说

To see it in action, open the desired file with the Generic Editor that's included by default in the Eclipse IDE.要查看它的运行情况,请使用默认包含在 Eclipse IDE 中的通用编辑器打开所需的文件。

and when I opened the javascript file in the Generic Editor, I get all the fancy I need...当我在通用编辑器中打开 javascript 文件时,我得到了我需要的所有幻想......

go to Window -> Preferences then type file associations then select * .js on the right side list, then select "Generic Text Editor" below and click "Default" button go to Window -> Preferences then type file associations then select * .js on the right side list, then select "Generic Text Editor" below and click "Default" button

Yes versions above 2020-05 works with General Editor as default editor for JS files in eclipse是的,2020-05 以上的版本与通用编辑器一起使用,作为 eclipse 中 JS 文件的默认编辑器

Window--> Preferences --> File Associations --> Select (*.js) and then select Generic Editor窗口--> 首选项--> 文件关联--> Select (*.js) 然后 select 通用编辑器

enter image description here在此处输入图像描述

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

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