-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility Challenges with Zig Language Extras on Windows 10 LTSC Using MinGW-W64 and Scoop and Ubuntu 23.10 #5
Comments
Can you manually build launch config, this is what extension does. binPath can be found in extension output. |
I can manually build launch configs. I think the problem is how the binPath is generated. zig-language-extras/src/extension.ts Line 183 in 6fd6048
I say this because I've tried debugging the extension and it never enters that Now, I know practically nothing about Zig ( still learning ) and this is the first time I've tried to debug a vscode extension but what happens when you try to start |
Hi. I made a pull request that solves the problem I am facing but I don't know if it's exactly what is needed. Despite the formatting changes I only added two functions at the top and changed the how binary path is generated inside the "Debug Binary" part of the code. |
Thanks for your effort in bringing this up. When debugging binary, extension tries to decide on binary name in zig-out/bin folder. That should be name of the file or for main.zig name of the parent folder (skipping src). I found a problem in that logic. Could you please try with the latest 0.62 version. |
I don't have access to my windows machine but I'm pretty sure you can close this. The problem is fixed for me on my Ubuntu 23.10 machine. Thanks for the update. |
Hello. First of all thank you for this extension. I've wanted something like this for a while. ziglang/vscode-zig#158
I'm having some trouble getting this to work and this might be due to my somewhat unorthodox setup, I say this because from what I've seen most people just use msvc on Windows.
I am on Windows 10 LTSC and I pull
mingw-winlibs-llvm-ucrt-mcf
(gcc
,gdb
),zig
andzls
from scoop ( https://scoop.sh/ ). With C/C++ I just use handle everything through the cmake vscode plugin which has the ability to initialize projects, debug cmake files and evenCmake: Debug
which just works no matter what OS I'm on as long as there a C/C++ compiler present.I've made a simple
hello
type test project.Here are the results for each respective
"zig-language-extras.debugType"
option:cppvsdbg
gdb
lldb
I can getting working by having the project name be
main
with the default option forwin32
,cppvsdbg
.The text was updated successfully, but these errors were encountered: