jbaron / cats

Code Assistant for TypeScript
Apache License 2.0
408 stars 66 forks source link

Stable cats.nw: "save", "save all" and "save as" not working #127

Closed mastir closed 10 years ago

mastir commented 10 years ago

any time i'm saving file, i got error on console: [3203:1027/192929:INFO:CONSOLE(502)] "Uncaught TypeError: Object [object Object] has no method 'isAbsolute'", source: file:///tmp/.org.chromium.Chromium.nm9rZo/lib/main.js (502)

also on load i got this messages: (nw:3203): Gtk-WARNING **: Загружаемый модуль тем не найден в module_path: «murrine», Gtk-Message: Failed to load module "canberra-gtk-module"

Ubuntu 14.02

mastir commented 10 years ago

the same error on master branch, also "glob" module is missing.

[3831:1027/195237:INFO:CONSOLE(502)] "Uncaught TypeError: Object [object Object] has no method 'isAbsolute'", source: file:///home/el/cats/lib/main.js (502)

mastir commented 10 years ago

fixed with:

jbaron commented 10 years ago

I guess I shouldn't rely on isAbsolute (it is an undocumented feature of Node that apparently isn't available on your machine). What version of nodewebkit are you using ?

(abput glob, when you run npm install, glob should get installed)

jbaron commented 10 years ago

Just checked it, and found out isAbsolute is already officially part of the Nodejs PATH api. So could it be you are running an older version of nodewebkit?

(still pah.resolve could be a more elegant way to solve the problem)

mastir commented 10 years ago

"when you run npm install, glob should get installed" should, but it dosn't, have no idea why.

yeah, its was old version 0.8.6. updated to 0.10.5 and problem gone