Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing extra heartbeats: invalid character 'U' in string escape code #180

Open
alanhamlett opened this issue Feb 20, 2023 · 1 comment
Labels

Comments

@alanhamlett
Copy link
Member

alanhamlett commented Feb 20, 2023

Logs:

{"caller":"cmd/params/params.go:401","func":"params.LoadHeartbeatParams","level":"error","message":"failed to read extra heartbeats: failed parsing: failed to json decode from data \"[{\\\"entity\\\": \\\"C:\\\\Users\\\\pikac\\\\AppData\\\\Local\\\\nvim\\\\lua\\\\plugins\\\\termdebug.lua\\\", \\\"timestamp\\\": 1676881606, \\\"is_write\\\": true, \\\"alternate_language\\\": \\\"lua\\\"}]\\n\": invalid character 'U' in string escape code","now":"2023-02-20T18:56:46+10:30","os/arch":"windows/amd64","version":"v1.66.0"}

Related to wakatime/wakatime-cli#797, but might be a bug in vim-wakatime's JSON rendering.

Originally reported in #156.

@alanhamlett alanhamlett added the bug label Dec 5, 2023
@alanhamlett alanhamlett transferred this issue from wakatime/wakatime-cli Feb 7, 2024
@alanhamlett
Copy link
Member Author

alanhamlett commented Feb 7, 2024

It might be fixed with a4c66fa. @xanthus58 can you check?

Edit: Reverted a4c66fa because it broke the plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant