weather-widget
weather-widget copied to clipboard
No Such File or Directory
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?
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?
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 [email protected] 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 bycommand: "'#{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.
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 [email protected] 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 bycommand: "'#{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.
hmm, make sure they are single quotes, just like in the example (you can also just copy paste the example)
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 [email protected] 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.
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 [email protected] 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.