CI: V3 mini-VLS rejects intentionally incomplete editor fixtures after old-compiler removal

Open
#32,755 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Domain
devtools

Research direction

Start with vlib/v/tests/vls/autocomplete_module_test.v and the sample_text.vv fixture it runs under -vls-mode, then check where the parser reports invalid expression at line 35. The open question is whether V3 should recover at the cursor for malformed source or whether the VLS protocol contract should be revised. Done means the fixture passes on the GCC, Clang, TCC and UBSan jobs without deleting cases or changing expected completions.

Written by the indexing model from the issue text.

Description

Historical master 593657221cd2ef2063d41979a7b827e8cb12ecd5 (2026-11-22) has genuinely executed VLIB failures in vlib/v/tests/vls/autocomplete_module_test.v across Linux TCC, Linux Clang and UBSan GCC/Clang. Original jobs: TCC shard 2, Clang shard 1, UBSan GCC shard 1, and UBSan Clang shard 1. With -w -check -json-errors -nocolor -vls-mode -line-info on sample_text.vv, responses expected to contain completion/hover/definition records instead emit invalid expression: unexpected token '}' at line 35. The fixture intentionally contains incomplete editor expressions (e.g. s., str.all_before_last() and is byte-identical to prior executed master 11ecc. Source vlib/v/README.md now says mini-VLS completion requires parseable source; transition in merged #32745 removed old-compiler fallback. Do not hide failure by deleting fixture cases or altering expected completions. Determine whether V3 should recover at the cursor for malformed source, or the VLS protocol contract must be explicitly revised while retaining coverage; reduce one s. and one nested-unclosed-call case, instrument parser recovery and VLS query dispatch. Run original entire VLS fixture with GCC, Clang, strict TCC, UBSan on fixed descendant. Status investigating / still applicable at unchanged latest master 44bbfa43, native V reproducer not locally available. Separate from the imported-enum wrong-definition R387 #32753.

[!NOTE]
You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Dominant language
V
Stars
38.1k
Forks
2.3k
Avg merge
1d 1h
Merged PRs (30d)
682

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vlang/v

All issues in vlang/v

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.