2014-10-18 89 views
5

在凌主編,還有一個進口包,應該允許用戶導入的github回購入凌,在這裏:https://atom.io/packages/import如何將github repos導入Atom編輯器?

我已經嘗試過了,也沒有工作,給了我這個錯誤:

Uncaught TypeError: Cannot read property 'projectHome' of undefined 

一個問題也引發了,但是有沒有其他人有同樣的問題,並知道如何解決這個問題?我的系統是Ubuntu 14.04.1

如何將Github repos導入Atom編輯器?

我試圖刪除~/.atom/config文件,但它不存在:

[email protected]:~/.atom$ ls 
compile-cache config.cson nohup.out packages storage 

我試圖消除config.cson和同樣的錯誤。當我試圖用grep的PROJECTHOME,我得到:

[email protected]:~/.atom$ grep -nRHI projectHome * 
compile-cache/coffee/5047aaae22a3f9ac99b5d85d388d780b7e76a729.js:96:  workspace = atom.config.settings.core.projectHome; 
compile-cache/coffee/5047aaae22a3f9ac99b5d85d388d780b7e76a729.js:97:  defaultWorkspace = atom.config.defaultSettings.core.projectHome; 
packages/import/lib/import-view.coffee:41: workspace = atom.config.settings.core.projectHome 
packages/import/lib/import-view.coffee:42: defaultWorkspace = atom.config.defaultSettings.core.projectHome 

回答

0

你可以試試,看是否使問題消失,就像issue 3845類似的解決方案:

Hm, the issue disappeared after I'd remove my ~/.atom/config .
I don't remember if I set something there with hands – guess some of local installed package did something :(

你可以看到類似的在Atom.project.path (cannot call path of undefined in test)錯誤,指出不是每個變量都設置。

+0

你的意思是'config.cson'?我在'.atom' =( – alvas 2014-10-21 19:36:53

+0

@alvas中沒有配置文件,您可以嘗試刪除(移走)該文件(https://atom.io/docs/v0.59.0/customizing-atom#advanced配置),只是爲了看看是否重置配置足以超過該錯誤消息。 – VonC 2014-10-21 19:40:31

+0

刪除'config.cson'後出現同樣的錯誤 – alvas 2014-10-21 19:42:08