Giter Club home page Giter Club logo

micro-wakatime's People

Contributors

alanhamlett avatar gandarez avatar taconi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

micro-wakatime's Issues

Micro fails to start

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

Micro fails to start

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

Info

  • micro Version: Version: 2.0.9-dev.11
  • OS: Debian 10 Buster

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.

Micro crashes when pressing arrow key

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
  • Micro version: 2.0.9-dev.11
  • Plugin version: 1.0.1
  • OS: Fedora 33

Wakatime plugin for micro fails to load

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.

dupe: threads in Lua

          > 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)

checking for cli updates slows down micro startup

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

Error on start: attempt to index a non-table object(nil) with key 'String'

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

Micro not tracking data because wakatime-cli isn't found

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.

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.