AdaCore / AdaCore/ada_language_server

[Bug]: lsp-utils.adb:205:42: error: "Bytes_Buffer" not declared in "Common"

Open
#1,252 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Ada
Stars
304
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Environment
  • OS and Version: macOS 13.6, Xcode 14.3, GNAT FSF 15.1.0 (from Alire)
  • IDE Version: none
  • Ada & SPARK Extension Version: none
Bug Summary and Reproducer

Bug Summary:
lsp-utils.adb:205:42: error: "Bytes_Buffer" not declared in "Common"

Steps to reproduce:
Get ALS source from als-26.0w-20250417-16239-src.
Launch make:

make BUILD_MODE=prod VERSION=26.0 BUILD_DATE=20250712
...
gprbuild -m -j0  -XSUPERPROJECT= -P gnat/lsp_server.gpr -p -XBUILD_MODE=prod -XLSP_OS=osx -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable -XGPR_BUILD=relocatable \
	-XVERSION=26.0 -XBUILD_DATE=20250712 
lsp_server.gpr:19:09: warning: there are no sources of language "C++" in this project
Compile
   [Ada]          lsp-ada_driver.adb
...
   [Ada]          lsp-utils.adb
lsp-utils.adb:205:42: error: "Bytes_Buffer" not declared in "Common"

Expected behavior:
Correct compilation with:
205 (Kind => Langkit_Support.Types.Bytes_Buffer,

Configuration and Logs
None
Other VS Code Extensions

No response

Additional context

No response

Contributor guide

Open the contributing guide

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.

Research direction

Start with lsp-utils.adb at line 205 and reproduce the failure using the provided make command on macOS. Inspect the Bytes_Buffer reference and the surrounding imports or qualified names; done means the gprbuild compilation completes without the "Bytes_Buffer" declaration error.

Written by the indexing model from the issue text.

Assessment

Domain
devtools
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.