felixhageloh / weather-widget

A weather widget for Übersicht
64 stars 32 forks source link

No Such File or Directory #18

Open picree opened 9 years ago

picree commented 9 years ago

The widget is throwing this error:

/Volumes/Macintosh : No such file or directory

My Hard Drive is called "Macintosh SSD". It appears like /Volumes/Macintosh is hard-coded somewhere. Any way to modify?

felixhageloh commented 9 years ago

It's not hardcoded, but I think I know what the issue might be. If you go to the widget and open the index.coffee file and search for the line (141)

command: "#{process.argv[0]} weather.widget/get-weather \

If you replace that by

command: "'#{process.argv[0]}' weather.widget/get-weather \

i.e. add quotes around #{process.argv[0]}, does that fix the issue?

picree commented 9 years ago

Sorry- no. That results in a notification error of

Unexpected \

Curt

But it did clear the path error on the desktop…fwiw

On Jul 14, 2015, at 3:22 AM, Felix notifications@github.com wrote:

It's not hardcoded, but I think I know what the issue might be. If you go to the widget and open the index.coffee file and search for the line (141)

command: "#{process.argv[0]} weather.widget/get-weather \ If you replace that by

command: "'#{process.argv[0]}' weather.widget/get-weather \ i.e. add quotes around #{process.argv[0]}, does that fix the issue?

— Reply to this email directly or view it on GitHub https://github.com/felixhageloh/weather-widget/issues/18#issuecomment-121151039.

picree commented 9 years ago

Found this in the Web Inspector:

/Users/curtcaveney/Library/Application Support/Übersicht/widgets/weather.widget/index.coffee:142:29: error: unexpected \ \"#{options.city}\" \ ^

On Jul 14, 2015, at 3:22 AM, Felix notifications@github.com wrote:

It's not hardcoded, but I think I know what the issue might be. If you go to the widget and open the index.coffee file and search for the line (141)

command: "#{process.argv[0]} weather.widget/get-weather \ If you replace that by

command: "'#{process.argv[0]}' weather.widget/get-weather \ i.e. add quotes around #{process.argv[0]}, does that fix the issue?

— Reply to this email directly or view it on GitHub https://github.com/felixhageloh/weather-widget/issues/18#issuecomment-121151039.

felixhageloh commented 9 years ago

hmm, make sure they are single quotes, just like in the example (you can also just copy paste the example)

picree commented 9 years ago

It was indeed single quotes. I checked several times to ensure it was right.

Maybe it has something to do with the way I am editing, and copying the folder. I tried starting all over by unzipping a fresh folder. Then, without editing the coffee file or anything I copied that folder to Ubersicht and…it worked! It even detected my location correctly.

Previously I have been trying to change some default settings in coffee but the widget then fails. What is the correct way to copy/move/edit? I have been unzipping the file in my Downloads, editing coffee with TextEdit then copying the folder to widgets. For editing I have been using TextEdit. Even if I do something very simply like trying to change C to F the widget fails. I have edited in my Downloads folder…fail. I have edited in the widgets folder…fail.

????

Curt

On Jul 15, 2015, at 3:00 AM, Felix notifications@github.com wrote:

hmm, make sure they are single quotes, just like in the example (you can also just copy paste the example)

— Reply to this email directly or view it on GitHub https://github.com/felixhageloh/weather-widget/issues/18#issuecomment-121510608.

picree commented 9 years ago

Felix-I tried editing the coffee file with Xcode and that worked fine. It must be that the file can not be edited with TextEdit.

On Jul 15, 2015, at 3:00 AM, Felix notifications@github.com wrote:

hmm, make sure they are single quotes, just like in the example (you can also just copy paste the example)

— Reply to this email directly or view it on GitHub https://github.com/felixhageloh/weather-widget/issues/18#issuecomment-121510608.