Code Monkey home page Code Monkey logo

Comments (10)

alanhamlett avatar alanhamlett commented on June 15, 2024

This has been fixed in the latest version. Did you use Sublime Package Control to install WakaTime? Then you can upgrade by pressing CMD + SHIFT + P and selecting Package Control: Upgrade/Overwrite All Packages.

Your WakaTime version must be out-of-date because line 401 in the current version is not the same as your traceback:
https://github.com/wakatime/sublime-wakatime/blob/master/packages/wakatime/wakatime/__init__.py#L401

from sublime-wakatime.

emma-sg avatar emma-sg commented on June 15, 2024

Ok, I updated (ended up reinstalling) WakaTime for ST, been coding for a little while, but the .wakatime.db has not been updated since before the issue appeared.

from sublime-wakatime.

alanhamlett avatar alanhamlett commented on June 15, 2024

@EdenSG are you seeing logged time in your dashboard? .wakatime.db is only used to store offline heartbeats when you are coding without internet access, so it won't get updated if every heartbeat is sent successfully.

from sublime-wakatime.

emma-sg avatar emma-sg commented on June 15, 2024

No, I’m not.

On Jan 5, 2015, at 1:01 AM, Alan Hamlett [email protected] wrote:

@EdenSG https://github.com/EdenSG are you seeing logged time in your dashboard? .wakatime.db is only used to store offline heartbeats when you are coding without internet access, so it won't get updated if every heartbeat is sent successfully.


Reply to this email directly or view it on GitHub #29 (comment).

from sublime-wakatime.

alanhamlett avatar alanhamlett commented on June 15, 2024

Can you set debug to true in your WakaTime.sublime-settings file, then open the ST console with CTRL + ` and look for any error messages? Also check ~/.wakatime.log for error messages after turning on debug mode.

from sublime-wakatime.

emma-sg avatar emma-sg commented on June 15, 2024

Huh, looks like it could possibly be an issue with ST/NodeJS — I’ve got a bunch of these in my console:

Traceback (most recent call last):
  File "/Applications/Sublime Text 3.app/Contents/MacOS/sublime_plugin.py", line 445, in is_enabled_
    raise ValueError("is_enabled must return a bool", self)
ValueError: ('is_enabled must return a bool', <Nodejs.Nodejs.NodeUglifyCommand object at 0x10946e690>)

And then from .wakatime.log:

Traceback (most recent call last):
  File "/Users/eden/Library/Application Support/Sublime Text 3/Packages/WakaTime/packages/wakatime/wakatime-cli.py", line 20, in <module>
    sys.exit(wakatime.main(sys.argv))
  File "/Users/eden/Library/Application Support/Sublime Text 3/Packages/WakaTime/packages/wakatime/wakatime/__init__.py", line 401, in main
    **vars(args)
  File "/Users/eden/Library/Application Support/Sublime Text 3/Packages/WakaTime/packages/wakatime/wakatime/__init__.py", line 336, in send_action
    if response.getcode() in ALWAYS_LOG_CODES:
AttributeError: 'NoneType' object has no attribute 'getcode'
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

from sublime-wakatime.

alanhamlett avatar alanhamlett commented on June 15, 2024

That traceback is still from an old version of the plugin. Line 336 from your traceback:
wakatime/wakatime/__init__.py", line 336, in send_action
does not match line 336 in the current plugin version:
init.py#L336

Are you using https://packagecontrol.io/ to install WakaTime?

from sublime-wakatime.

emma-sg avatar emma-sg commented on June 15, 2024

I am. I’ll try reinstalling Package Control.

On Jan 6, 2015, at 3:40 AM, Alan Hamlett [email protected] wrote:

That traceback is still from an old version of the plugin. Line 336 from your traceback:
wakatime/wakatime/init.py", line 336, in send_action
does not match line 336 in the current plugin version:
init.py#L336

if 'unknown url type: https' in u(sys.exc_info()[1]):

Are you using https://packagecontrol.io/ https://packagecontrol.io/ to install WakaTime?


Reply to this email directly or view it on GitHub #29 (comment).

from sublime-wakatime.

emma-sg avatar emma-sg commented on June 15, 2024

Ok, I reinstalled ST and Package Control, and it seems to be working again. Mysterious, but I suspect it was an issue with ST rather than with sublime-wakatime. Thanks anyways!

from sublime-wakatime.

alanhamlett avatar alanhamlett commented on June 15, 2024

Awesome, glad you've fixed it!

from sublime-wakatime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.