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

Not creating symlink from wakatime-cli.exe to wakatime-cli-windows-386.exe #166

Closed
alanhamlett opened this issue Aug 15, 2023 · 7 comments
Closed

Comments

@alanhamlett
Copy link
Member

          Now I have the same issue, but I have "wakatime-cli-windows-386.exe" instead of "wakatime-cli-windows-amd64.exe".

Like this:
image

If i rename the "wakatime-cli-windows-386.exe" file to "wakatime-cli.exe", when i restart nvim, it will be removed.

Originally posted by @ParadiseWitch in #147 (comment)

@alanhamlett
Copy link
Member Author

@ParadiseWitch you're using 32bit Windows? On startup, vim-wakatime should download one of these releases corresponding to your OS, then create a symlink from ~/.wakatime/wakatime-cli.exe to ~/.wakatime/wakatime-cli-windows-386.exe. If the symlink fails, vim-wakatime tries moving the file to ~/.wakatime/wakatime-cli.exe instead.

@ParadiseWitch
Copy link

@alanhamlett No, 64bit.
image

@alanhamlett
Copy link
Member Author

That's the problem... it's downloading 32-bit wakatime-cli and then it fails checking the current version with wakatime-cli.exe --version. If we fix 32/64 bit detection then it should start working.

@alanhamlett
Copy link
Member Author

We use powershell to detect 32/64 bit on Windows in Neovim:

let cmd = 'if ((Get-WmiObject win32_operatingsystem | select osarchitecture).osarchitecture -eq "64-bit") { Write "amd64" } else { Write "386" }'

We need to find why that powershell command is returning 386 instead of amd64.

@alanhamlett
Copy link
Member Author

@ParadiseWitch can you try updating to the latest vim-wakatime and restart Vim?

It might have been fixed with 0d2efa2.

@alanhamlett
Copy link
Member Author

Closing as fixed because no response.

@alanhamlett
Copy link
Member Author

Also added ba4537e to help with this issue.

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

No branches or pull requests

2 participants