v-analyzer icon indicating copy to clipboard operation
v-analyzer copied to clipboard

Vscode extension disallowing collapsing

Open jgarcdev opened this issue 4 months ago • 3 comments

Describe the bug

With the V-analyzer on, I cannot do the scope collapsing for functions, structs, etc. The down arrows normally present disappear, but once I turn it off, they return.

Expected Behavior

A down-arrow visible allowing to collapse the "range".

Image

Current Behavior

No down-arrow visible.

Image

Reproduction Steps

Open a V file with the V-analyzer on. Add sample code:

fn main() {
  println("Hello")
}

Notice unable to collapse.

Possible Solution

No response

Additional Information/Context

No response

Environment details (v doctor output)

|V full version      |V 0.4.11 c49b9da04e8d21735f5fc060b1c7396603613087.a5f9899
|:-------------------|:-------------------
|OS                  |linux, Ubuntu 22.04.5 LTS (WSL 2)
|Processor           |16 cpus, 64bit, little endian, AMD Ryzen 7 7730U with Radeon Graphics
|Memory              |2.49GB/7.42GB
|                    |
|V executable        |/opt/v/v
|V last modified time|2025-08-01 03:57:43
|                    |
|V home dir          |OK, value: /opt/v
|VMODULES            |OK, value: /home/aruel/.vmodules
|VTMP                |OK, value: /tmp/v_1000
|Current working dir |OK, value: /home/aruel
|                    |
|Git version         |git version 2.34.1
|V git status        |weekly.2025.31-dirty
|.git/config present |true
|                    |
|cc version          |cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
|gcc version         |gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
|clang version       |N/A
|tcc version         |tcc version 0.9.28rc 2025-02-13 HEAD@f8bd136d (x86_64 Linux)
|tcc git status      |thirdparty-linux-amd64 696c1d84
|emcc version        |N/A
|glibc version       |ldd (Ubuntu GLIBC 2.35-0ubuntu3.10) 2.35

Editor name

Vscode

v-analyzer Version

0.0.3-beta.1.a796f25

VS Code Extension Version

0.0.2

jgarcdev avatar Aug 15 '25 23:08 jgarcdev

First, run

v download -RD https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh

to get the latest v-analyzer.

Then download https://github.com/vlang/v-analyzer/releases/download/0.0.6/vscode-v-analyzer-0.0.6.vsix to get the latest vscode plugin.

Not sure why things haven't gotten updated on the extensions page, but this will give you the latest. A quick web search will tell you how to install extension with a .vsix file, if you don't know how already.

JalonSolov avatar Aug 15 '25 23:08 JalonSolov

I did both yet it is still not showing any arrows. I double-checked and I am running v0.0.6 for the extension.

jgarcdev avatar Aug 16 '25 20:08 jgarcdev

Ok, we'll leave this issue open so it can be looked into. Wanted to be sure it hadn't already been fixed, first.

JalonSolov avatar Aug 16 '25 20:08 JalonSolov