Skip to content

plugin does not understand new fixed array syntax #86

Description

@JalonSolov

Describe the bug

A new fixed array syntax has been added to V, though the old syntax has not yet been deprecated.

Expected Behavior

Handle the new syntax properly.

Current Behavior

Reports several odd errors.

Reproduction Steps

Create a V file with these contents:

pub const a1 = [1, 2, 3, 4]!
pub const a2 = [4]int[1, 2, 3, 4]
pub const a3 = [..]int[1, 2, 3, 4]

and look at all the red squiggly lines...

Possible Solution

No response

Additional Information/Context

No response

Environment details (v doctor output)

|V full version      |V 0.5.1 6dd9033de29819f9ada4011f783b1d8b9d47d7e8.56e0248
|:-------------------|:-------------------
|OS                  |linux, "CachyOS"
|Processor           |32 cpus, 64bit, little endian, AMD Ryzen 9 7950X 16-Core Processor
|Memory              |11.97GB/30.48GB
|                    |
|V executable        |/home/jalon/git/v/v
|V last modified time|2026-05-08 18:57:35
|                    |
|V home dir          |OK, value: /home/jalon/git/v
|VMODULES            |OK, value: /home/jalon/.vmodules
|VTMP                |OK, value: /tmp/v_1000
|Current working dir |OK, value: /home/jalon
|                    |
|Git version         |git version 2.54.0
|V git status        |0.5.1-1509-g56e02481
|.git/config present |true
|                    |
|cc version          |cc (GCC) 15.2.1 20260209
|gcc version         |gcc (GCC) 15.2.1 20260209
|clang version       |clang version 22.1.3
|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 (GNU libc) 2.43

IDE Type (IDEA Community/Ultimate, GoLand, CLion, etc.)

CLion

Plugin Version

2025.2, with later commits pulled and built locally.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions