mesonbuild / mesonbuild/vscode-meson

I'm not sure if it's a bug

Open
#85 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
138
Forks
53
PR merge metrics
No merged PRs in 30d

Description

host pc:ubuntu 20.04
vs code:1.66.2
vscode logs:
{
"error": {
"killed": false,
"code": 2,
"signal": null,
"cmd": "meson setup --buildtype=debug --pkg-config-path=/maxvision/opt/gstreamer/amd64/debug/lib/x86_64-linux-gnu/pkgconfig /maxvision/src/gstreamer/gst-template/builddir"
},
"stdout": "",
"stderr": "usage: meson setup [-h] [--prefix PREFIX] [--bindir BINDIR] [--datadir DATADIR]
[--includedir INCLUDEDIR] [--infodir INFODIR]
[--libdir LIBDIR] [--libexecdir LIBEXECDIR]
[--localedir LOCALEDIR] [--localstatedir LOCALSTATEDIR]
[--mandir MANDIR] [--sbindir SBINDIR]
[--sharedstatedir SHAREDSTATEDIR] [--sysconfdir SYSCONFDIR]
[--auto-features {enabled,disabled,auto}]
[--backend {ninja,vs,vs2010,vs2012,vs2013,vs2015,vs2017,vs2019,vs2022,xcode}]
[--buildtype {plain,debug,debugoptimized,release,minsize,custom}]
[--debug] [--default-library {shared,static,both}]
[--errorlogs] [--install-umask INSTALL_UMASK]
[--layout {mirror,flat}] [--optimization {0,g,1,2,3,s}]
[--stdsplit] [--strip] [--unity {on,off,subprojects}]
[--unity-size UNITY_SIZE] [--warnlevel {0,1,2,3}] [--werror]
[--wrap-mode {default,nofallback,nodownload,forcefallback,nopromote}]
[--force-fallback-for FORCE_FALLBACK_FOR]
[--python.install-env {auto,prefix,system,venv}]
[--python.platlibdir PYTHON.PLATLIBDIR]
[--python.purelibdir PYTHON.PURELIBDIR]
[--pkg-config-path PKG_CONFIG_PATH]
[--build.pkg-config-path BUILD.PKG_CONFIG_PATH]
[--cmake-prefix-path CMAKE_PREFIX_PATH]
[--build.cmake-prefix-path BUILD.CMAKE_PREFIX_PATH]
[-D option] [--native-file NATIVE_FILE]
[--cross-file CROSS_FILE] [--vsenv] [-v]
[--fatal-meson-warnings] [--reconfigure] [--wipe]
[builddir] [sourcedir]
meson setup: error: argument --buildtype: invalid choice: 'debug --pkg-config-path=/maxvision/opt/gstreamer/amd64/debug/lib/x86_64-linux-gnu/pkgconfig' (choose from 'plain', 'debug', 'debugoptimized', 'release', 'minsize', 'custom')"
}
mesonbuild.configure {
"value": "mesonbuild.mesonbuild",
"_lower": "mesonbuild.mesonbuild"
}

single run cmd:meson setup --buildtype=debug --pkg-config-path=/maxvision/opt/gstreamer/amd64/debug/lib/x86_64-linux-gnu/pkgconfig /maxvision/src/gstreamer/gst-template/builddir is ok
vscode + meson external is error

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the VS Code Meson external-command path and compare its logged `meson setup` arguments with the standalone command shown in the issue. Reproduce the failure on Ubuntu 20.04 using the provided Meson and VS Code context; done means the external invocation accepts the same options or reports a clear, corrected failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
build-system, developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.