wakatime / texstudio-wakatime

TeXstudio macro for automatic time tracking and metrics generated from your TeXstudio usage.
https://wakatime.com/texstudio
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Unable read proxy configuration #9

Open Koushikphy opened 1 year ago

Koushikphy commented 1 year ago

I have installed the wakatime and this plugin and setup the ~/.wakatime.cfg with API key and my proxy configuration as

[settings]
api_key = xxxxxxxxxxxxxxxxxxxxxx
proxy   = http://<username>:<password>@<ip>:<port>

Now my proxy password has an # so I use %23 everywhere in place of that # (as the urlencoded version) (Also I'm using Ubuntu 20.04). So if my password is kou#123, I use kou%23123. But when I open texstudio this throws the error

configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%23xxx@xxxx:xxxx'

Is this a problem with the wakatime/this plugin or am I using something wrong? How do I fix this?
Note: I am also using wakatime with VS Code and it works properly.

Koushikphy commented 1 year ago

So, I looked around a little bit and it seems that instead of a single % if I put two %% (to escape the literal %), this texstudio wakatime plugin works. But it creates another problem. Now the VS Code wakatime (which uses wakatime-cli) does not work. The wakatime-cli works only with single %

alanhamlett commented 1 year ago

Instead of using the python wakatime you should make ~/.wakatime/wakatime-cli available on your path without the cli part using a symlink. I'll update this plugin to use the new cli same as vscode soon but to get it working now use the symlink.