mesonbuild / vscode-meson

Meson for VisualStudio Code
Apache License 2.0
108 stars 50 forks source link

I'm not sure if it's a bug #85

Open arrow8209 opened 2 years ago

arrow8209 commented 2 years ago

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

Ongy commented 2 years ago

Looks like what was fixed in https://github.com/mesonbuild/vscode-meson/pull/80 but it's not yet in a release.

dcbaker commented 2 years ago

That’s in at least one release now, is this issue reproducible still?