Skip to content
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

StackTrace path issue #303

Open
thareh opened this issue Dec 30, 2023 · 1 comment
Open

StackTrace path issue #303

thareh opened this issue Dec 30, 2023 · 1 comment

Comments

@thareh
Copy link
Contributor

thareh commented Dec 30, 2023

Good day,

Seems the StackTrace is missing a slash in the path sometimes:

~>StackTrace{
~>@D:/Code/BlitzMax/BlitzMax/MaxIDE/MaxIDE.bmx<115,0>
~>Function MaxIDE
~>Global BCC_VERSION:String="bcc[ng] Release Version 0.142"
~>Global lastTabKey:Int=0
~>Global lastTabMod:Int=0
~>Global TEMPCOUNT:Int=1
~>Global codeplay:TCodePlay=$0000026a823bec00
~>Global defaultLanguage:TMaxGuiLanguage=$0000026afff9ce80
~>@D:/Code/BlitzMax/BlitzMax/MaxIDE/MaxIDE.bmx<116,0>
~>Local <local>
~>@D:/Code/BlitzMax/BlitzMax/MaxIDE/source/CodePlay.bmx<2358,0>
~>Function poll
~>Local Self:TCodePlay=$0000026a823bec00
~>Local src:TGadget=$0000026a85bc5690
~>Local event:Int=32769
~>@D:/Code/BlitzMax/BlitzMax/MaxIDE/source/CodePlay.bmx<2420,0>
~>Local <local>
~>@D:/Code/BlitzMax/BlitzMax/MaxIDE/source/CodePlay.bmx<2423,0>
~>Local <local>
~>@D:/Code/BlitzMax/BlitzMax/MaxIDE/source/CodePlay.bmx<2426,0>
~>Local <local>
~>@D:/Code/BlitzMax/BlitzMax/MaxIDE/source/CodePlay.bmx<2429,0>
~>Local <local>
~>@D:/Code/BlitzMax/BlitzMax/MaxIDE/source/CodePlay.bmx<2432,0>
~>Local <local>
~>@D:/Code/BlitzMax/BlitzMax/MaxIDE/source/CodePlay.bmx<2435,0>
~>Local <local>
~>@D:/Code/BlitzMax/BlitzMax/MaxIDE/source/CodePlay.bmx<2436,0>
~>Local <local>
~>@D:/Code/BlitzMax/BlitzMax/MaxIDE/source/CodePlay.bmx<1980,0>
~>Function OnMenu
~>Local Self:TCodePlay=$0000026a823bec00
~>Local menu:Int=999
~>Local extra:Object=Null
~>Local index:Int=0
~>Local tool:TTool=Null
~>@D:/Code/BlitzMax/BlitzMax/MaxIDE/source/CodePlay.bmx<1981,0>
~>Local <local>
~>Local f:String=""
~>@D:ProgramsBlitzMax/mod/brl.mod/linkedlist.mod/linkedlist.bmx<291,0>        <---- ERROR HERE, should be D:/Programs/BlitzMax/...
~>Function ValueAtIndex
~>Local Self:TList=$0000026afff9ce00
~>Local index:Int=721
~>Local link:TLink=$0000026afff9cde0
~>}

Don't know if this is the right place to report this, but I found references to the StackTrace in the appstub.

Using Windows 11 x64.

Cheers.

@thareh
Copy link
Contributor Author

thareh commented Feb 9, 2024

I found the issue.

bcc > ctranslator.bmx:6805

Change

Local file:String = String(fileRegister.ValueForKey(Hash))
Emit "bbRegisterSource(" + Hash + ", ~q" + file + "~q);"

To

Local file:String = String(fileRegister.ValueForKey(Hash))
file = file.Replace("\", "/")
Emit "bbRegisterSource(" + Hash + ", ~q" + file + "~q);"

Windows added the wrong type of slahes which gets removed.

I don't have GitHub installed atm so can't make a PR, but will make one if this isn't picked up.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant