在Atom Editor中运行包规范总是会导致错误

时间:2014-04-10 10:52:19

标签: macos atom-editor

Atom Editor可以在这里找到:https://atom.io/

有关此问题的话语主题:http://discuss.atom.io/t/application-run-all-specs-fail-to-run/7541

我正在运行:MBP(OS X 10.9.2),Atom 0.84.0和Node 0.10.26。

当我查看>开发人员>运行原子规格 - 没有任何事情发生,没有窗户打开,检查员无法打开

当我这样做时

apm develop vim-mode
cd ~/github/vim-mode
atom .

查看>开发人员>运行包规格 - 没有任何事情发生,没有窗户打开,检查员无法打开

然后我尝试了

~/github/vim-mode $ apm test
[764:0409/142738:INFO:renderer_main.cc(227)] Renderer process started

没有打开任何窗口,但是启动了另一个Atom程序,其菜单包含“Atom> [Reload,Close,Toggle,Quit]”

img

按下退出后,终端说“测试通过”。没有其他按钮工作

img

~/github/vim-mode $ apm test
[645:0409/141838:INFO:renderer_main.cc(227)] Renderer process started
Tests passed

我认为他们没有真正通过,“测试通过”仅在退出窗口后出现

然后我尝试了atom -d

img

一个相同的程序以无窗口开始

然后我尝试通过其他方式运行测试

~/github/vim-mode $ atom -t
[833:0409/143232:INFO:renderer_main.cc(227)] Renderer process started
[831:0409/143236:INFO:CONSOLE(27)] "Error: Cannot find module '../lib/ui-watcher.coffee'
  at Function.Module._resolveFilename (module.js:337:15)
  at Function.Module._load (module.js:279:25)
  at Module.require (module.js:363:17)
  at require (module.js:379:17)
  at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/dev-live-reload/spec/ui-watcher-spec.js:8:15)
  at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/dev-live-reload/spec/ui-watcher-spec.js:185:4)
  at Module._compile (module.js:455:26)
  at Object.Module._extensions..js (module.js:473:10)
  at Module.load (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:311:12)
  at Module.require (module.js:363:17)
  at require (module.js:379:17)
  at requireSpecs (/Applications/Atom.app/Contents/Resources/app/spec/spec-suite.coffee:9:5)
  at runAllSpecs (/Applications/Atom.app/Contents/Resources/app/spec/spec-suite.coffee:47:3)
  at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/spec/spec-suite.coffee:58:3)
  at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/spec/spec-suite.coffee:1:1)
  at Module._compile (module.js:455:26)
  at Object.requireCoffeeScript [as .coffee] (/Applications/Atom.app/Contents/Resources/app/src/coffee-cache.js:64:19)
  at Module.load (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:311:12)
  at Module.require (module.js:363:17)
  at require (module.js:379:17)
  at module.exports.runSpecSuite (/Applications/Atom.app/Contents/Resources/app/spec/jasmine-helper.coffee:30:3)
  at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/spec/spec-bootstrap.coffee:24:3)
  at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/spec/spec-bootstrap.coffee:2:1)
  at Module._compile (module.js:455:26)
  at Object.requireCoffeeScript [as .coffee] (/Applications/Atom.app/Contents/Resources/app/src/coffee-cache.js:64:19)
  at Module.load (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:311:12)
  at Module.require (module.js:363:17)
  at require (module.js:379:17)
  at window.onload (file:///Applications/Atom.app/Contents/Resources/app/static/index.js:20:5)
", source: /Applications/Atom.app/Contents/Resources/app/spec/spec-bootstrap.coffee (27)

1 个答案:

答案 0 :(得分:0)

此问题不再适用,重新安装后问题已解决。