zynaddsubfx / zyn-fusion-issues

Issue Only Repo
31 stars 0 forks source link

Puts statement inside qml files doesn't work on terminal. #385

Open marahmbawwab opened 1 year ago

marahmbawwab commented 1 year ago

The issue happened when building the project on Windows OS using msys2-mingw64. After building the project and modifying one of the qml files exiting in this directory (....\zyn-fusion-build\src\mruby-zest-build\src\mruby-zest\qml) by adding a puts statement in order to print something on the terminal, nothing printed. On the other hand, it works for Linux OS.

To Reproduce Follow the steps:-

UI_highlight

After doing all the above steps:-

If anyone can help, I appreciate that.

fundamental commented 1 year ago

Disabling print statements was done on windows for the initial release since IIRC the way windows often spawns programs leaves the program without the typical stdout/stderr/etc handles you'd just assume exist on unix setups. This ought to be easy enough to undo for a development build (not a release build) and I think the specific section in question is mruby-zest-build/src/mruby-widget-lib/src/api.c:138..141 where disable_kernel_io is called.

pgervais commented 1 year ago

Thanks for the context. It sounds like the right thing to do is to tweak the Makefile to add a development mode where puts is active. We won't be working on that any time soon though, so I'm leaving the issue open and marking it "good first issue" because it looks simple to fix and would be useful.