xmake-io / xmake-vscode

🍩 A XMake integration in Visual Studio Code
https://xmake.io
Apache License 2.0
228 stars 55 forks source link

Toolbar toolchain button throws error after build button is pressed #166

Closed astrolemonade closed 1 year ago

astrolemonade commented 1 year ago

Xmake Version

v2.7.5+202301262306

Operating System Version and Architecture

Linux catalin 6.1.5-229.current #1 SMP PREEMPT_DYNAMIC Thu Jan 12 20:29:03 UTC 2023 x86_64 GNU/Linux

Describe Bug

I can build using this xmake.lua image

When I click the toolchain button it throws an error. image

Restarting VSCode does fix the problem until I press the build button again.

Expected Behavior

I should be able to select a new toolchain to build the project with.

Project Configuration

add_rules("mode.debug", "mode.release")
set_languages("c99")
target("clox")
    set_kind("binary")
    add_headerfiles("src/*.h")
    add_files("src/*.c")

Additional Information and Error Logs

No response

waruqi commented 1 year ago

I can not replicate it.

waruqi commented 1 year ago

I have fixed it in 1.9.4