Closed bjartwolf closed 2 years ago
What happens when you try to run these commands in cmd.exe?
echo
where mkdir
I realize I do not know cmd.exe very well. I used to know how to write bat files...
C:\code\langtoncant>echo
ECHO is on.
C:\code\langtoncant>where mkdir
INFO: Could not find files for the given pattern(s).
It looks like the script has determined that your system is Linux for some reason (mkdir -p
). Do you have Git tools in your PATH? That caused some strange issues on my system and I had to remove them.
Okay, what you posted looks correct.
What happens if you remove pet
from the Makefile targets? That's one thing I did to get it to work in my fork.
I removed three git entries from the PATH, rebooted and WIN 🥳
(I mean, we might need to figure out why, as removing git from the PATH is probably not a solution for most people in the long term...)
Nice! I'll have to about how to handle this situation a little more.
You shouldn't need to remove Git from the PATH, only the Unix tools it tells you not to install on the PATH because it might break things.
Can you try it with only Git on the PATH?
That would be the C:\Program Files\Git\cmd
folder.
Yes, so leave the C:\Program Files\Git\bin
out.
Probably. The problematic directory is usr\bin
, since that masks echo
. bin
looks like it should be okay though.
Yes, can confirm it fails with
C:\Program Files\Git\bin
C:\Program Files\Git\cmd
and works with C:\Program Files\Git\cmd
in the PATH. Took a little time, had to restart to make sure the effect was there... It is easy to get false positives without deleting the build files and doing a proper restart...
What's in your bin
folder? I only have git, bash, and sh in there.
Same.
(The plugin is fantastic, being able to debug like this makes the program trivial to write :) The hard part of writing it was not having a clue what is going on when there is some random bug...)
Odd. I'll look at it a little more. Thanks for letting me know about this.
Thanks! I'm glad it's helpful to you. ^_^
Let me know if you want me to test something - I can not promise fast response during xmas, but have time before new year... It sounds horrible to debug, supporting linux and windows is hard enough without stuff "leaking" between the two...
Thanks! Testing against both systems is rather hellish sometimes. :| I would like to run integration tests against Windows but it goes so slowly in Github Actions that it eventually times out.
I was thinking of trying to run things in WSL2, maybe that in theory would be easier, but then I remembered there is talking to VICE and some communication stuff going on that is probably not trivial either... And that might run in to another set of complexity....
With https://github.com/microsoft/wslg hopefully becoming more mainstream maybe you can ditch native support for Windows? WSLg is going to be generally available alongside the upcoming release of Windows.
I'll have to think about that. I'm not sure if running the Makefile under WSL context will be more confusing for the users, but native Windows is a kind of frustratingly inconsistent environment sometimes.
Thanks for the plug, btw
In progres... I will update the text while I do some troubleshooting and add some more info...
Hi! Following up on your twitter message. Would love to get the plugin running, I gave up after some initial attempts. ⚠️ I might have messed up PATHs and even the plugin troubleshooting it... I think I have a clean install, but good to be aware that I did mess around a bit trying to get things to run... Will try to read the README with fresh eyes and make sure my system is farily reasonable setup...⚠️
I did have some attempts at having it run from WSL2, which I think got me into a few issues to begin with. I am now trying to run it in VS Code on a Windows 10 only environment and I am starting fresh based on https://github.com/empathicqubit/vscode-cc65-debugger/tree/master/src/__tests__/c-project-template
I copied the files except the main.c file (I am keeping my own right now) and the .vimspector.json file as I guess it is not required. I keep them at a separate branch https://github.com/bjartwolf/langtoncant/tree/try-vscode-cc65-debugger
My first attempt at pressing "Launch" the CC65 Vice Launch gives
Just running
or
gives the same error as when I try to launch, both in PowerShell and Command Prompt.