Closed katekyy closed 6 months ago
I think you should reinstall from https://github.com/vlang/v-analyzer/ as your v-analyzer points to the former repository https://github.com/v-analyzer/v-analyzer/. Then try the update option again.
I think you should reinstall from https://github.com/vlang/v-analyzer/ as your v-analyzer points to the former repository https://github.com/v-analyzer/v-analyzer/. Then try the update option again.
Either I'm doing something wrong or it doesn't work. Because I guess it works for you, right?
Yes, works for me. When running an update it also points to the correct repository. Have you tried a clean install ?
❯ v-analyzer up
Checking for updates...
Fetching latest release info from GitHub...
Found new version of v-analyzer: 0.0.4-beta.1
> Download from url: https://github.com/vlang/v-analyzer/releases/download/0.0.4-beta.1/v-analyzer-linux-x86_64.zip ...
Downloading v-analyzer archive..
✓ Successfully downloaded v-analyzer archive
Extracting v-analyzer archive...
✓ Successfully extracted v-analyzer archive
✓ v-analyzer successfully updated to 0.0.4-beta.1
Path to the binary: /home/user/.config/v-analyzer/bin/v-analyzer
Yes it points to the new repo now but still doesn't work.
It works only when doing v -e "$(cat ./install.vsh)" up
or ./install up
If you want to avoid confusion with the original repo path (https://github.com/v-analyzer/v-analyzer/), release a new version of the VS extension, which would stop pointing to the original repo and start pointing to this one.
Yes it points to the new repo now but still doesn't work. It works only when doing
v -e "$(cat ./install.vsh)" up
or./install up
You should only need to do v run install.vsh up
- no need for the extra cat
, etc.
Yes it points to the new repo now but still doesn't work. It works only when doing
v -e "$(cat ./install.vsh)" up
or./install up
I am experiencing the same. I am certain that I am using the correct repo, but v-analyzer up
breaks the analyzer for me. It might output everything is fine, but when trying to use after the update, it just crashes.
I have been uninstalling and re-installing whenever I want to update.
@bramvbilsen you have the chance to try compiling and using a v-analyzer binary from the linked PR to check if the up command is still breaking things for you?
Describe the bug
When
v-analyzer up
is ran, it looks like it's updating itself correctly. But when you check the version after the update it is still the same.Expected Behavior
I expected the update command to update the v-analyzer binary.
Current Behavior
Currently it does not update the v-analyzer. It seems like it cannot write to it, because it doesn't get edited, but there's no error.
Reproduction Steps
I unfortunately can't provide a self-contained snippet of code for that but you'll get the idea from this:
Possible Solution
A workaround is to remove the binary from the bin directory. And then run
./install
Additional Information/Context
No response
Environment details (
v doctor
output)Editor name
unimportant
v-analyzer Version
v-analyzer version 0.0.3-beta.1.a796f25