我安装了Eclipse Kepler和NodeEclipse插件.对于NodeEclipse的性能原因,我已禁用JavaScript文件的内容助手.
问题: 每当我复制或剪切JS文件中的某些行(ctrl + c/ctrl + x)时,CPU使用率都会达到100%,而eclipse进程会占用所有内存(> 1GB).我认为一些GC捶打正在发生.增加JVM max memory是一个选项,但是eclipse不足1GB?
这可能是一些内存泄漏.这是Nodeclipse的特定问题吗?在日食中是否有任何变通办法/设置?
编辑:
当我双击变量时,CPU泵浦到100%,持续3-4秒,然后降下来.我已经标记出现了标记.这仅适用于route/*.js文件而不适用于公用文件夹.调查更多,我发现注释行包含require('<package-name>')解决了这个问题,为什么?
我正在编写一些节点命令行实用程序.他们都从这条线开始:
#!/usr/bin/env node
Run Code Online (Sandbox Code Playgroud)
使用Eclipse Juno和Nodeclipse Node.js插件,这行代码会产生错误,如下所示:

好的,所以#不是javascript中的有效注释字符,但它是Linux/UNIX中的有效字符,作为文件中第一行的shebang.但是如何设置Eclipse以忽略此错误?这对我来说是一个问题,因为如果您有错误,代码格式化将不起作用.我必须删除该行.点击CTRL-SHIFT-F并添加回来.
我尝试了很多东西并研究过,但我找不到答案.
有一个重复的问题,在hashbang线上eclipse javascript语法错误,但我的问题有更多的信息.
看起来有一些东西添加到jshint以允许第一行中的shebangs.也许我需要更新我的node-eclipse,或者node-eclipse项目可能需要更新jshint?
我升级到了
这没有用.
这是我在eclipse中的JSHint版本:

感谢VonC的回答.但我认为这表明我的文件中没有BOM.还有其他想法吗?
$ od -N 20 -t x1 hello.js
0000000 23 21 2f 75 73 72 2f 62 69 6e 2f 65 6e 76 20 6e
0000020 6f 64 65 0a
0000024
Run Code Online (Sandbox Code Playgroud)
关于Paul Verest在下面的回答,我试图关闭JSDT验证,但我似乎无法做到这一点.我取消选中"启用JavaScript语义验证"(在Eclipse中,请参阅"窗口">"首选项">"JavaScript">"验证程序">"错误/警告"),但问题仍然存在.
我现在正在卸载Eclipse Web Developer Tools 3.4.2.这似乎没有帮助,现在我的CSS和HTML编辑器已经消失了.现在我已经尝试通过遵循这个SO问题中的一些想法来禁用JSDT验证,如何从我的eclipse项目中删除javascript验证?.
所以我进入了我的项目属性并转到了JavaScript> Validation.我已将所有内容设置为"启用项目特定设置"并取消选中"错误/警告","JSDOC"等.即便如此,我认为验证仍在运行,因为问题仍然存在!我的"Builders"属性仅列出已启用的"JSHint Problem …
我正在使用nodeclipse插件来运行我的节点js项目.以后js文件工作正常但是h1标签不起作用.我只能看到一个纯文本.我在运行时得到这个异常.请帮助我出.
javascript文件
var http = require('http');
http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/html'});
response.end('<html><body><h1>Home</h1> URL was: ' + request.url + '</body></html>');
}).listen(3000, 'localhost');
console.log('Server running at http://localhost:3000/');
Run Code Online (Sandbox Code Playgroud)
例外
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at net.js:1146:9
at dns.js:72:18
at process._tickCallback (node.js:415:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:902:3
Run Code Online (Sandbox Code Playgroud) 我设置了Nodeclipse并编写了一个简单的hello应用程序.当我尝试作为节点应用程序运行时,我收到以下错误
执行命令行时发生异常.无法运行程序"node"(在目录"C:\ path\to\app"中):CreateProcess error = 2,系统找不到指定的文件
如果我从Nodejs控制台运行,应用程序将运行.
有没有办法让它可以从Nodeclipse运行?
我正在运行Eclipse 4.6.3,安装了GoClipse和NodeClipse.我已配置Go in Preferences - > Go.
我希望自动完成功能适用于Go.但是,它给了我错误:写入进程输入断管
有关错误和配置,请参阅下面的屏幕截图
我该如何解决这个问题?
我已经启动并运行了Nodeclipse(Enide Studio),我可以编辑代码并在Enide内运行一个简单的"Hello World"Node.js应用程序.但是,我无法弄清楚如何将Github中的Node.js项目导入Enide并在"Node"透视图下运行它.有人可以告诉我这些步骤吗?
我正在尝试使用Eclipse中的Nodeclipse调试测试节点应用程序.我正在遵循Nodeclipse主页上 "调试"下的指示.我通过标尺设置断点,右键单击该文件,然后选择debug作为Node Application.Eclipse切换到Debug透视图,然后在我的文件的第一行(没有断点)暂停调试器,现在在一个新的编辑器中显示文件名为"C_workspace_project_app.js"并且我的代码已经包装好了在一个函数中:
(function (exports, require, module, __filename, __dirname) {
Run Code Online (Sandbox Code Playgroud)
如果我点击"F8"继续该程序,它不会停留在我在原始编辑器中设置的断点处.但是,如果我在新编辑器中添加断点,程序将暂停它们.这没关系,除非没有办法在其他文件中设置断点.在我看来,我在Eclipse编辑器中设置的断点没有与调试器同步.我确实在我的.metadata/.log文件中看到了错误的abotu断点切换.难道我做错了什么?
我有Eclipse 4.2.2,安装了很多插件,比如Web Tools Platform,JSDT等.我有Nodeclipse 0.4.0和ChromeDevTools 0.3.9.
.metadata/.LOG:
!SESSION 2013-06-14 09:44:05.682 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_15
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64
!ENTRY org.eclipse.ui 4 4 2013-06-14 09:44:11.343
!MESSAGE Unable to find Action Set: org.eclipse.rse.core.search.searchActionSet
!ENTRY org.eclipse.debug.ui 4 120 2013-06-14 09:44:15.343
!MESSAGE org.eclipse.debug.ui.toggleBreakpointsTargetFactory extension failed to load breakpoint toggle target because the specified id is already registered. Specified ID is: org.chromium.debug.ui.ChromiumToggleBreakpointTargetFactory …Run Code Online (Sandbox Code Playgroud) 我相信这是Eclipse的NodeClipse IDE中的一个错误.即使我删除了IDE中的所有断点,调试器也会在第一行停止,这让我疯狂.在一天结束时,不得不寻找微不足道的"继续"按钮会对我的耐心造成影响.
谁有同样的问题?你是怎么解决的?
这是问题的图像:
http://joaorosilva.no-ip.org/public/stackoverflow/Screen%20Shot%202013-07-04%20at%2015.35.37.png
我将Nodeclipse"Enide Studio 2014"插件添加到与我的Java项目相同的Workspace中(我通常不这样做).
我的Node Perspective工作得很好,我创建了一个新的Node项目,它都运行得很好.
然后我回到我的Java Perspective并注意到我的所有Java项目都启用了拼写检查 - 注释"sp"位于左边缘,用于遍布整个变量的普通名称.
我确保全局禁用拼写检查(窗口 - 首选项 - 常规 - 编辑器 - 文本编辑器 - 拼写).未启用.但仍然存在于我的所有Java项目中.如何在不卸载Nodeclipse的情况下关闭(后退)?
我使用此命令在Ubuntu 12.04上安装了node.js.
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo npm install -g express
Run Code Online (Sandbox Code Playgroud)
我将Nodeclipse安装到Eclipse Juno.如何设置节点路径和Express路径?
我正在开发Node.js脚本,以使用Eclipse内置的p2 Director应用程序安装Eclipse插件。在某些情况下,p2-director无法更新功能。
D:\Workspaces\Nodeclipse-DEV\nodeclipse-1\org.nodeclipse.ui\templates>node nodeclipse-install.js install -repository jar:file:/D:/Workspaces/Nodeclipse-DEV/nodeclipse-1/org.nodeclipse.site/target/org.nodeclipse.site-0.10.0-SNAPSHOT.zip!/ maven
Nodeclipse CLI Installer (Eclipse Plugin Manager epm)
starting eclipsec -nosplash -application org.eclipse.equinox.p2.director -repository jar:file:/D:/Workspaces/Nodeclipse-DEV/nodeclipse-1/org.nodeclipse.site/target/org.nodeclipse.site-0.10.0-SNAPSHOT.zip!/ -installIU org.nodeclipse.enide.maven.feature.feature.group -tag org.nodeclipse.enide.maven.feature.feature.group -vmargs -Declipse.p2.mirrors=false
Installing org.nodeclipse.enide.maven.feature.feature.group 0.10.0.201402180840.
Installation failed.
Cannot complete the install because of a conflicting dependency.
Software being installed: Enide Maven 0.10.0.201402180840 (org.nodeclipse.enide.maven.feature.feature.group 0.10.0.201402180840)
Software currently installed: Enide Maven 0.10.0.201402170319 (org.nodeclipse.enide.maven.feature.feature.group 0.10.0.201402170319)
Only one of the following can be installed at once:
Enide Maven 0.10.0.201402180840 (org.nodeclipse.enide.maven.feature.feature.jar 0.10.0.201402180840)
Enide Maven …Run Code Online (Sandbox Code Playgroud) 有没有人在nodeclipse IDE上熟悉这个错误?
app.delete('/delete', function(req, res) {
....
});
Run Code Online (Sandbox Code Playgroud)
令牌"."上的语法错误,预期
nodeclipse ×12
node.js ×9
eclipse ×7
javascript ×2
debugging ×1
express ×1
go ×1
goclipse ×1
java ×1
jsdt ×1
jshint ×1
p2 ×1
p2-director ×1
spelling ×1
syntax-error ×1