Giter VIP home page Giter VIP logo

Comments (12)

alanhamlett avatar alanhamlett commented on August 19, 2024 1

Ok, I'll update the plugin to use the new async api if available.

from vim-wakatime.

alanhamlett avatar alanhamlett commented on August 19, 2024 1

Instead of using async, I've buffered the heartbeats in memory. Can you update the plugin and see if performance improves when switching tabs? If it's improved enough, we can postpone using the async job_start for now.

from vim-wakatime.

alanhamlett avatar alanhamlett commented on August 19, 2024

Just to make sure, debug mode is turned off in your ~/.wakatime.cfg file?

When debug = true the plugin does some networking in the foreground process instead of the background when switching to a new buffer.

Could this be refactored to use the new async API that has been implemented in the latest Vim or NeoVim?

Yes, that would improve performance.

from vim-wakatime.

Chilinot avatar Chilinot commented on August 19, 2024

Yea it is disabled.

from vim-wakatime.

Chilinot avatar Chilinot commented on August 19, 2024

Vim seems a lot snappier now compared to before. Huge thanks :)

from vim-wakatime.

alanhamlett avatar alanhamlett commented on August 19, 2024

Awesome! Glad it's fixed!

from vim-wakatime.

Chilinot avatar Chilinot commented on August 19, 2024

It would seem that Vim no longer reports any time to wakatime. I have zero time registered from the day this issue was solved up to now.

from vim-wakatime.

alanhamlett avatar alanhamlett commented on August 19, 2024

How about with the latest version?

from vim-wakatime.

Chilinot avatar Chilinot commented on August 19, 2024

Yes, latest version solves the issue. I was looking through the log and it is filled with these errors (that are no longer happening). In case you would find it useful anyway:

"2017/04/25 16:04:34 +0000", "version": "8.0.0", "plugin": "vim/704 vim-wakatime/4.0.15", "time": 25696.623507, "level": "ERROR", "message": "{'response_code': 400, 'response_content': u'{\\n  \"errors\": {\\n    \"time\": [\\n  
   \"Number must be between 1388534400 and 99999999999.\"\\n    ]\\n  }\\n}\\n'}"}

from vim-wakatime.

alanhamlett avatar alanhamlett commented on August 19, 2024

That was the same issue as #48. I can write a script to parse your ~/.wakatime.log file and replay that coding activity if that's useful?

from vim-wakatime.

Chilinot avatar Chilinot commented on August 19, 2024

Oh my bad. No that wont be needed but thanks anyway :)

from vim-wakatime.

alanhamlett avatar alanhamlett commented on August 19, 2024

An update, now vim-wakatime uses Vim's async job_start for improved performance with 99ffbf3.

It also buffers heartbeats to prevent spawning too many python processes.

from vim-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.