You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scsmash3r opened this issue
Oct 31, 2024
· 0 comments
Assignees
Labels
apiAn issue, task, or discussion related to public runtime APIsbugSomething isn't workingruntimeAn issue, task, or discussion related to the runtime corewindows
There is this function in docs: https://socketsupply.co/apis/#application_setsystemmenuoptions
And there is an example code, that will not work under Windows, when copy-pasted.
The culprit is: example is missing a TAB char at the end of the string in menu variable, thus the app crashes because, probably, can't find a delimiter or a "exit-cycle" symbol?
setSystemMenu_app_crash_windows_indentation.mp4
What OS are you using (uname -a, or Windows version)?
What programming language are you using (C/C++/Go/Rust)?
rustc 1.82.0 (f6e511eec 2024-10-15)
What did you expect to see and what you saw instead?
Expecting the example to work properly and also expecting to see a proper guide about how to set up a menu with a correct structure. It seems that Windows crashes if TAB symbol is missing before the ` (closing backtick). So the issue under Windows platform is stumbling into proper indentation of a string inside the variable itself.
jwerle
added
windows
api
An issue, task, or discussion related to public runtime APIs
runtime
An issue, task, or discussion related to the runtime core
bug
Something isn't working
labels
Nov 15, 2024
apiAn issue, task, or discussion related to public runtime APIsbugSomething isn't workingruntimeAn issue, task, or discussion related to the runtime corewindows
There is this function in docs: https://socketsupply.co/apis/#application_setsystemmenuoptions
And there is an example code, that will not work under Windows, when copy-pasted.
The culprit is: example is missing a TAB char at the end of the string in
menu
variable, thus the app crashes because, probably, can't find a delimiter or a "exit-cycle" symbol?setSystemMenu_app_crash_windows_indentation.mp4
What OS are you using (
uname -a
, or Windows version)?Windows 10 22H2 (64bit)
What version Socket Runtime are you using?
0.6.0-rc.5 (d5637b5) (installed from npm @socketsupply/[email protected])
What programming language are you using (C/C++/Go/Rust)?
rustc 1.82.0 (f6e511eec 2024-10-15)
What did you expect to see and what you saw instead?
Expecting the example to work properly and also expecting to see a proper guide about how to set up a menu with a correct structure. It seems that Windows crashes if
TAB
symbol is missing before the ` (closing backtick). So the issue under Windows platform is stumbling into proper indentation of a string inside the variable itself.More context in Discord thread
The text was updated successfully, but these errors were encountered: