Closed Flk427 closed 3 years ago
Thanks for reporting. Could you maybe provide the complete project.
Here is project template. Look at the tasks.json file. In my case ${workspaceRoot} is a windows path with backslashes.
Could you attach the sld file as well. I cannot compile with your task.json on mac.
Placed sld in the same archive.
I changed the handling of the paths a little bit. Could you please try both cases with this version: https://github.com/maziac/DeZog/releases/tag/v2.0.3
Yes! Paths with mixed slash and backslash are working now! Thank you. And a happy new year! :)
Have you tested both cases? mixed and non-mixed.
Yes. I've tested even like this:
D:/Spectrum/projects/project1/src\borders.asm|7||0|4|32895|F|StackStart
D:/Spectrum/projects/project1/src\borders.asm|7||0|4|32895|L|,StackStart,,+used
D:/Spectrum/projects/project1/src\borders.asm|9||0|4|32895|F|StartAddress
D:/Spectrum/projects/project1/src\borders.asm|9||0|4|32895|L|,StartAddress,
D:/Spectrum/projects/project1/src\borders.asm|10||0|4|32895|T|
D:/Spectrum/projects/project1/src\borders.asm|11||0|4|32897|T|
D:/Spectrum\projects/project1\src\borders.asm|12||0|4|32898|F|MainLoop
D:/Spectrum\projects/project1/src\borders.asm|12||0|4|32898|L|,MainLoop,,+used
D:/Spectrum\projects/project1/src/borders.asm|13||0|4|32898|T|
D:/Spectrum\projects/project1/src/borders.asm|14||0|4|32900|T|
D:/Spectrum\projects/project1/src/borders.asm|15||0|4|32901|T|
Thanks, I will release it officially in a few minutes.
JFYI: sjasmplus itself supports only correct slashes "/" .. the backslashes work only in windows OS "by accident", and are not officially supported. So inside asm source when writing paths for INCLUDE/SAVEBIN/... you should use "/" in file paths (and maintaining the correct case is also recommended) - that way your project should build to the same binary also with sjasmplus run at non-MS-windows computer.
Whether this extends also to VSC/DeZog... not sure, I don't know if VSC scripts work well with forward slashes, and I don't know how people deal with developing the same project with contributors using VSC on different platforms. But windows generally do accept forward slashes in file paths in WIN API calls (to be somewhat POSIX compliant), so I guess it will mostly work.
This is how it works:
But this does not work ("Unverified breakpoint..." message into debug console):