wakatime / WakaTime.novaextension

Nova plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/nova
5 stars 3 forks source link

Nova plugin error (Nova 2.1, plugin 1.0.3) #3

Closed newbold closed 4 years ago

newbold commented 4 years ago

On Nova 2.1 (Build 215812) and WakaTime plugin 1.0.3, I'm getting this error on a new installation and when I try to add the API key (when pressing Cmd-Shift-P, typing apikey, and pressing enter):

Screen Shot 2020-10-30 at 1 20 50 PM

Same error appears if I try to enable debug mode. Here's what I'm seeing in the extension console:

Extension encountered an uncaught exception:
/Users/adam/Library/Application Support/Nova/Extensions/wakatime.timetracker/Scripts/main.js (Line 195, Column 0)
Error: The file couldn’t be opened because it doesn’t exist.
    [native code]
    getSetting@file:///Users/adam/Library/Application%20Support/Nova/Extensions/wakatime.timetracker/Scripts/main.js:195:30
    getApiKey@file:///Users/adam/Library/Application%20Support/Nova/Extensions/wakatime.timetracker/Scripts/main.js:272:25
    promptForApiKey@file:///Users/adam/Library/Application%20Support/Nova/Extensions/wakatime.timetracker/Scripts/main.js:43:27
    file:///Users/adam/Library/Application%20Support/Nova/Extensions/wakatime.timetracker/Scripts/main.js:21:18

And:

WakaTime[13:17:59.209000] Extension encountered an uncaught exception:
/Users/adam/Library/Application Support/Nova/Extensions/wakatime.timetracker/Scripts/main.js (Line 195, Column 0)
Error: The file couldn’t be opened because it doesn’t exist.
    [native code]
    getSetting@file:///Users/adam/Library/Application%20Support/Nova/Extensions/wakatime.timetracker/Scripts/main.js:195:30
    isDebugEnabled@file:///Users/adam/Library/Application%20Support/Nova/Extensions/wakatime.timetracker/Scripts/main.js:280:56
    debug@file:///Users/adam/Library/Application%20Support/Nova/Extensions/wakatime.timetracker/Scripts/main.js:416:24
    file:///Users/adam/Library/Application%20Support/Nova/Extensions/wakatime.timetracker/Scripts/main.js:2:12

I did try some basic troubleshooting on my end (removed the plugin, restarted Nova, reinstalled the plugin) but haven't been able to produce different results. Let me know if there's anything else I can try or if I can help in any other way.

newbold commented 4 years ago

I was able to resolve this by manually creating a .wakatime.cfg file in my home directory.