Giter Site home page Giter Site logo

No time Record about sketch-wakatime HOT 13 CLOSED

ChesterYue avatar ChesterYue commented on June 1, 2024
No time Record

from sketch-wakatime.

Comments (13)

ChesterYue avatar ChesterYue commented on June 1, 2024 1

Version 2.0 is 3y old and it uses the legacy and outdated python cli. Try running ~/.wakatime/wakatime-cli --offline-count.

you mean the cli with darwin-amd64 suffix?
the ~/.wakatime/wakatime-cli with no suffix is a folder.
Screen Shot 2022-01-24 at 11 21 11 AM

from sketch-wakatime.

ChesterYue avatar ChesterYue commented on June 1, 2024 1

And i reinstall from 2.0 to 3.0.1 ~/.wakatime/wakatime-cli-darwin-amd64 --offline-count still 0.

from sketch-wakatime.

alanhamlett avatar alanhamlett commented on June 1, 2024 1

Installing wakatime-cli with Homebrew (/usr/local/bin/wakatime-cli) is only needed for the Emacs and Terminal plugins. All other WakaTime plugins download wakatime-cli automatically into ~/.wakatime/wakatime-cli-<os>-<arch> and symlink ~/.wakatime/wakatime-cli for some plugins (Vim) to make it simpler and faster. Vim needs to fork a process to detect os/arch so it uses the symlink to speed up startup time.

Now that it's working, it must have been from the old version. It used to use ~/.wakatime/wakatime-master/ for the old wakatime-cli but maybe somehow it used ~/.wakatime/wakatime-cli/ which caused the newest plugin to break. Glad you got it working now!

from sketch-wakatime.

ChesterYue avatar ChesterYue commented on June 1, 2024

wakatime-cli installed with brew:
Screen Shot 2022-01-24 at 10 29 28 AM

from sketch-wakatime.

gandarez avatar gandarez commented on June 1, 2024

Are you behind a proxy? Have you seen any data on dashboard before? Any error or warning on ~/.wakatime.log?

from sketch-wakatime.

ChesterYue avatar ChesterYue commented on June 1, 2024

Are you behind a proxy? Have you seen any data on dashboard before? Any error or warning on ~/.wakatime.log?

Are you behind a proxy?
No. And other IDE work well, VSCode / Vim;

Have you seen any data on dashboard before:
Yes. but it was maybe other wakatime-cli version or other sketch plugin version, as you can see here (also wakatime dash board has record):
Screen Shot 2022-01-24 at 10 52 31 AM

Any error or warning on ~/.wakatime.log:
Maybe no. I didn't find any log relative to the sketch plugin. Most was logged by VSCode single file path error.
But, is this used by sketch plugin?:
{"caller":"/Users/runner/work/wakatime-cli/wakatime-cli/cmd/run.go:240","func":"runCmd","level":"error","message":"failed to run command: sending heartbeat(s) later due to api error: failed making request to "https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": Post "https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": EOF","now":"2022-01-23T18:29:47+08:00","version":"v1.35.0"}

from sketch-wakatime.

ChesterYue avatar ChesterYue commented on June 1, 2024

try reinstall to plugin 2.0, it works (and the cli version shown here is the 10.6.1):

Screen Shot 2022-01-24 at 10 59 34 AM

Screen Shot 2022-01-24 at 11 00 02 AM

from sketch-wakatime.

gandarez avatar gandarez commented on June 1, 2024

Version 2.0 is 3y old and it uses the legacy and outdated python cli. Try running ~/.wakatime/wakatime-cli --offline-count.

from sketch-wakatime.

alanhamlett avatar alanhamlett commented on June 1, 2024

Can you try deleting your ~/.wakatime/ folder and then restart Sketch? That will re-download wakatime-cli to ~/.wakatime/ since it should be a symlink at ~/.wakatime/wakatime-cli not a folder.

Every time you restart Sketch, the wakatime plugin runs this install script.

from sketch-wakatime.

ChesterYue avatar ChesterYue commented on June 1, 2024

Can you try deleting your ~/.wakatime/ folder and then restart Sketch? That will re-download wakatime-cli to ~/.wakatime/ since it should be a symlink at ~/.wakatime/wakatime-cli not a folder.

Every time you restart Sketch, the wakatime plugin runs this install script.

After delete the whole ~/.wakatime/ folder. Restart Sketch with plugin 3.0.1:

  1. ~/.wakatime/wakatime-cli link to ~/.wakatime/wakatime-cli-darwin-amd64.
  2. with the folder is deleted, ~/.wakatime/wakatime-cli-darwin-amd64 is not there.
  3. the wakatime-cli.zip here seems empty.

Screen Shot 2022-01-24 at 2 11 34 PM

from sketch-wakatime.

ChesterYue avatar ChesterYue commented on June 1, 2024

After run the scripts manually, seems download / unzip / link success:

Screen Shot 2022-01-24 at 2 20 41 PM

And, the plugin status shows right:
Screen Shot 2022-01-24 at 2 21 34 PM

from sketch-wakatime.

ChesterYue avatar ChesterYue commented on June 1, 2024

I re delete the folder several times then restart Sketch.
It can download / unzip / link success.
Not sure why the first time not working. (Maybe the networking? No?)

from sketch-wakatime.

ChesterYue avatar ChesterYue commented on June 1, 2024

two question remains:

  1. was the folder and link conflict above caused by upgrade from 2.0 to 3.0?
  2. what's the difference between ~/.wakatime/wakatime-cli(link to ~/.wakatime/wakatime-cli-darwin-amd64) with /usr/local/bin/wakatime-cli (installed with home brew)? different IDE not use the same?

from sketch-wakatime.

Related Issues (11)

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.