Closed MeowcaTheoRange closed 2 years ago
Can you try git versions of haxeui:
haxelib git haxeui-core https://github.com/haxeui/haxeui-core
haxelib git haxeui-hxwidgets https://github.com/haxeui/haxeui-hxwidgets
haxelib git hxWidgets https://github.com/haxeui/hxWidgets
You may need to clean our your build folder, if that doesnt work, you might need to use git version of wxWidgets, though im guessing 3.1.7 is late enough
It seems there is an error in the current haxeui-hxwidgets
git release:
../haxelib/haxeui-hxwidgets/git/haxe/ui/backend/hxwidgets/custom/SimpleListView.hx:20: characters 16-29 : Redefinition of variable selectedIndex in subclass is not allowed. Previously declared at hx.widgets.ListCtrl
Reverting haxeui-hxwidgets
to 1.4.0
gets me:
Error: ./src/hx/widgets/TaskBarIcon.cpp: In member function ‘void hx::widgets::TaskBarIcon_obj::setIcon(hx::widgets::Icon, String)’:
./src/hx/widgets/TaskBarIcon.cpp:86:46: error: cannot convert ‘wxIcon’ to ‘const wxBitmapBundle&’
86 | HXDLIN( 27) (*(_hx_tmp)).SetIcon(_hx_tmp1,_hx_tmp2);
| ^~~~~~~~
| |
| wxIcon
In file included from /usr/local/include/wx-3.1/wx/taskbar.h:89,
from ./src/hx/widgets/TaskBarIcon.cpp:17:
/usr/local/include/wx-3.1/wx/gtk/taskbar.h:18:48: note: initializing argument 1 of ‘virtual bool wxTaskBarIcon::SetIcon(const wxBitmapBundle&, const wxString&)’
18 | virtual bool SetIcon(const wxBitmapBundle& icon, const wxString& tooltip = wxString()) wxOVERRIDE;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
./src/hx/widgets/TaskBarIcon.cpp: In member function ‘void hx::widgets::TaskBarIcon_obj::setBitmap(hx::widgets::Bitmap, String)’:
./src/hx/widgets/TaskBarIcon.cpp:108:46: error: cannot convert ‘wxIcon’ to ‘const wxBitmapBundle&’
108 | HXDLIN( 48) (*(_hx_tmp)).SetIcon(_hx_tmp1,_hx_tmp2);
| ^~~~~~~~
| |
| wxIcon
In file included from /usr/local/include/wx-3.1/wx/taskbar.h:89,
from ./src/hx/widgets/TaskBarIcon.cpp:17:
/usr/local/include/wx-3.1/wx/gtk/taskbar.h:18:48: note: initializing argument 1 of ‘virtual bool wxTaskBarIcon::SetIcon(const wxBitmapBundle&, const wxString&)’
18 | virtual bool SetIcon(const wxBitmapBundle& icon, const wxString& tooltip = wxString()) wxOVERRIDE;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
Error: Build failed
Are you sure you have latest haxeui-hxwidgets (git version), the selectedIndex was removed from SimpleListView in 2020: https://github.com/haxeui/haxeui-hxwidgets/commit/1efc9b2f840b55e723c31edd004afb6768b01ce9
You might need to nuke all your haxelibs and start again (from git), looks / feels like haxelib has screwed something up as there is defo no line 20 in SimpleListView.hx
Well that absolutely worked, thank you! However, now there's another problem re-running the code you gave me...
wxWidgets version detected as 3.1.7
../haxelib/haxeui-hxwidgets/git/haxe/ui/backend/hxwidgets/behaviours/ControlDisable.hx:18: characters 20-44 : haxe.ui.core.Component has no field disableInteractiveEvents (Suggestions: isInteractiveEvent, disableInteractivity)
Perhaps it's because it's force-downgrading core to meet its' dependencies, so I'm going to revert and upgrade haxeui-core
So yeah, it seems like haxelib has screwed up some thing... it seems to happen from time to time, my advice: nuke haxeui-* folders from haxelib (just delete them from the haxelib folder in your haxe install, do the same for hxWidgets), then run:
haxelib git haxeui-core https://github.com/haxeui/haxeui-core
haxelib git haxeui-hxwidgets https://github.com/haxeui/haxeui-hxwidgets
haxelib git hxWidgets https://github.com/haxeui/hxWidgets
Hopefully it will get it right this time
This worked! I re-upgraded haxeui-core to git and now this is what I have to say to you:
No worries, glad it worked in the end. :)
Expected Behavior
Build. Should run! Like normal!
Current Behavior
Steps to Reproduce (for bugs)
haxe hxwidgets.hxml
and Watch It FailContext
Trying to Use HaxeUI just to do something. Anything At All
Your Environment