wakatime / micro-wakatime Goto Github PK
View Code? Open in Web Editor NEWMicro editor plugin for automatic time tracking and metrics generated from your programming activity.
Home Page: https://wakatime.com/micro
Micro editor plugin for automatic time tracking and metrics generated from your programming activity.
Home Page: https://wakatime.com/micro
After coding, I see some of the projects I coded with the name 'Unknown Project'.
OS: Windows 11
Plugin wakatime: wakatime:285: attempt to call a non-function object
stack traceback:
wakatime:285: in function 'getOsArch'
wakatime:276: in function 's3BucketUrl'
wakatime:149: in function 'downloadCli'
wakatime:37: in function 'checkCli'
wakatime:26: in main chunk
[G]: ?
Press enter to continue
I tried to install the plugin, but micro fails to start then, giving the folllowing error.
Plugin wakatime: wakatime:157: attempt to call a non-function object
stack traceback:
wakatime:157: in function 'downloadCli'
wakatime:37: in function 'checkCli'
wakatime:26: in main chunk
[G]: ?
Press enter to continue
log.txt
2020/11/22 14:29:09 Micro started
2020/11/22 14:29:09 initializing WakaTime v1.0.0
2020/11/22 14:29:09 downloading wakatime-cli from https://wakatime-cli.s3-us-west-2.amazonaws.com/linux-x86-64/wakatime-cli.zip
2020/11/22 14:29:11 WakaTime initialized
Yesterday, I installed the plugin on my other machine (Fedora 33) with the same version of micro and it works fine. However, on that machine I was already using Wakatime with other IDEs, while on the above (Debian) machine, Wakatime was not installed upfront.
Plugin wakatime: wakatime:504: attempt to index a non-table object(nil) with key 'lower'
stack traceback:
wakatime:504: in function 'sendHeartbeat'
wakatime:495: in function 'onEvent'
wakatime:375: in main chunk
[G]: ?
Press enter to continue
Plugin installs successfully, however when I try to run micro with this plugin enabled I get the following error:
wakatime:15: attempt to index a non-table object(nil) with key 'String'
stack traceback:
wakatime:15: in main chunk
[G]: ?
Press enter to continue
Running on Mac OS 11.0.1 Big Sur and 2.0.8 version of Micro.
> Unfortunately there's no fnacy way to start threads in Lua (which is the plugins' language). By this reason at this time we need to wait for `checkCli()` to finish execution before actually opening the terminal. Also in micro everything seems to be run synchronous.
Regardless of whether this is fixable right now, this is still a pretty ridiculous downside to the plugin and needs to either be addressed or be given proper notice on the README. I decidedly won't be using this plugin due to the insane delay.
Here's a solution:
Remembering the last time a check was made, and then not making a request for a week or at least a day later. Or caching the S3 bucket response, however you'd like to go about it.
In my opinion, update checking should be made part of the CLI itself, and not offloaded to the plugin to check.
A 2 second delay for using Micro is UNACCEPTABLE. This issue is not resolved.
Originally posted by @Xevion in #5 (comment)
the checkCli()
call in the init()
function takes about two seconds on my machine:
2021/03/18 12:46:31 Micro started
2021/03/18 12:46:31 initializing WakaTime v1.0.3
2021/03/18 12:46:31 Current wakatime-cli version is 13.0.7
2021/03/18 12:46:31 Checking for updates to wakatime-cli...
2021/03/18 12:46:33 wakatime-cli is up to date
2021/03/18 12:46:33 WakaTime initialized
This is reasonable, my internet connection is not one of the best.
Still, since in these two seconds I can't use micro (and I tend to open / close micro a lot) I was wondering if there was some way to make micro instantly usable, for instance by doing the update-checking part concurrently (at the risk of losing a few keystrokes if you start typing with an outdated wakatime cli)
micro version:
Version: 2.0.9-dev.52
Commit hash: 6f949fe9
Compiled on March 18, 2021
Hello,
I just installed the plugin for Micro, but I am getting the following error when trying to start it up.
~ » mi ~/.zshrc mosthated@pop-os
wakatime:15: attempt to index a non-table object(nil) with key 'String'
stack traceback:
wakatime:15: in main chunk
[G]: ?
Press enter to continue
If I attempt to enter: wakatime.apikey
within the editor using ctrl+e, I get a message stating "Unknown command: wakatime.apikey"
Thanks,
-MH
here's my log
2023/01/08 20:50:58 Micro started
2023/01/08 20:50:58 initializing WakaTime v1.0.5
2023/01/08 20:50:58 failed to determine current cli version
2023/01/08 20:50:58 fork/exec /home/mcknight/.wakatime/wakatime-cli/wakatime-cli: not a directory
2023/01/08 20:50:58 WakaTime initialized
I followed the instructions and read them carefully but the error presists. I am using Arch Linux, I've installed micro using yay
and I've tried installing the plugin in every way, my API key is correct but I noticed that wakatime-cli
is not found. I looked at the wakatime-cli
repo but it says I only need that when I'm making my own plugins, which I'm not. I would appreciate some help on how I can fix this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.