Comments (12)
Ok, I'll update the plugin to use the new async api if available.
from vim-wakatime.
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.
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.
Yea it is disabled.
from vim-wakatime.
Vim seems a lot snappier now compared to before. Huge thanks :)
from vim-wakatime.
Awesome! Glad it's fixed!
from vim-wakatime.
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.
How about with the latest version?
from vim-wakatime.
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.
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.
Oh my bad. No that wont be needed but thanks anyway :)
from vim-wakatime.
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)
- Outdated wakatime-cli version? HOT 3
- install_cli.py not found HOT 4
- Sending heartbeat(s) failed HOT 1
- Reported times seems invalid HOT 3
- Not creating symlink from wakatime-cli.exe to wakatime-cli-windows-386.exe HOT 7
- support wakatime-cli-android
- Documentation mentions old log location HOT 1
- Not Showing on my dashboard HOT 13
- Error installing wakatime-cli on Windows, incompatible npm wakatime-cli accidentaly used HOT 7
- Continuous 24hrs coding activity when using NeoVim HOT 4
- Always `Invalid api key format` in LunarVim,but works fine with VSCode HOT 5
- Error when cloning HOT 1
- Neovim is showing as Vim HOT 2
- Can't set Vim-Wakatime on Neovim at Debian on WSL 2 HOT 16
- Warn about missing api key instead of blocking IO HOT 1
- WARNING {vim-wakatime}: unknown key <setup> HOT 1
- [Windows 10] Invalid value for argument cmd .wakatime/wakatime-cli.exe
- [Mac OS Intel-Based] Plugin not working on mac with Neovim. HOT 7
- *request* ability to report seperate neovim configs as seperate editors? HOT 2
- Feature request: ignore missing api key HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-wakatime.