Package Details: mesonlsp 5.0.3-2

Git Clone URL: https://aur.archlinux.org/mesonlsp.git (read-only, click to copy)
Package Base: mesonlsp
Description: Meson language server
Upstream URL: https://github.com/JCWasmx86/mesonlsp
Licenses: GPL-3.0-or-later
Submitter: polyzen
Maintainer: Ordoviz (fam007e)
Last Packager: Ordoviz
Votes: 3
Popularity: 1.10
First Submitted: 2025-10-27 15:34 (UTC)
Last Updated: 2026-07-19 08:50 (UTC)

Latest Comments

Ordoviz commented on 2026-07-19 08:50 (UTC)

Thanks! I reported this upstream and added a patch for pkgconf 3.

Zorbatron commented on 2026-07-18 14:58 (UTC)

Build fails with

../mesonlsp/src/liblangserver/langserver.cpp:183:22: error: too few arguments to function ‘void pkgconf_client_init(pkgconf_client_t*, pkgconf_error_handler_func_t, void*, const pkgconf_cross_personality_t*, void*, pkgconf_environ_lookup_handler_func_t)’
  183 |   pkgconf_client_init(&pkgClient,
      |   ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
  184 |                       (pkgconf_error_handler_func_t)pkgconfLogHandler, nullptr,
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  185 |                       personality);
      |                       ~~~~~~~~~~~~

when trying to build mesonlsp v5.0.3-1. As of writing I have the latest pkgconf installed, v3.0.3-1.

fam007e commented on 2026-04-27 16:10 (UTC)

I added a patch to fix the stderr deadlock. Now it installs the normal way.

At1ass commented on 2026-04-27 14:46 (UTC)

Build with MESONLSP_NO_LOG=1 fix the issue with lsptest

v1993 commented on 2026-04-27 07:54 (UTC)

Tests continue to fail due to lsptest timing out, unfortunately, but the LSP seems to work okay now.

fam007e commented on 2026-04-26 21:09 (UTC)

Build fails at check() with lsptest timing out (30s). The test hangs because the server crashes immediately on startup before responding to the LSP initialize request.

Running the server manually confirms the issue:

  echo '{"id":1,"method":"initialize","params":{"capabilities":{},"rootUri":null,"workspaceFolders":[]},"jsonrpc":"2.0"}' | src/mesonlsp --lsp

The server scans packages successfully, then crashes with:

  std::future_error: No associated state
  terminate called after throwing an instance of 'std::future_error'
  zsh: IOT instruction (core dumped)

Stack trace points to a std::future object being accessed without an associated state, likely in the new async workspace initialization code introduced in 5.0.0.

Also worth noting: the meson.build inside the repo still reports Project version: v4.3.7 despite being tagged v5.0.0, which suggests the tag may have been pushed prematurely.

Workaround for now is to add mesonlsp to IgnorePkg in /etc/pacman.conf and stay on 4.3.7. Upstream bug filed at https://github.com/JCWasmx86/mesonlsp/issues/192