haxeui / hxWidgets

Haxe externs (and wrappers) for wxWidgets
MIT License
77 stars 22 forks source link

Missing `DataViewSpinRenderer` in haxeui-hxwidgets@1.2.3 #72

Closed perlmonger42 closed 3 years ago

perlmonger42 commented 3 years ago

A fresh install of haxe and haxeui-hxwidgets on MacOS Catalina (v10.15.7) fails to build, due to an undefined reference (hx.widgets.DataViewSpinRenderer) in the file TableViewBuilder.hx.

I did a clean install of haxe and haxeui-hxwidgets on MacOS Catalina (v10.15.7), then created an hxwidgets starter project, which fails to build.

I tried rolling back to versions from October 2020, since the gap in releases after that made me think maybe things had been stable. I rolled back to haxeui-core 1.1.3, hxwidgets 1.6.1, and haxeui-hxwidgets 1.1.3. But that last install --haxeui-hxwidgets 1.1.3 -- drags in the newest haxeui-core 1.2.3 (weird, since haxeui-hxwidgets 1.1.3 is dated 2020-10-29, and haxeui-core 1.2.3 is dated today 2021-03-08).

Here's the transcript.

$ sudo rm -rf /usr/local/lib/haxe /usr/local/bin/haxe*
$ open ~/Downloads/haxe-4.2.1-osx-installer.pkg
$ haxelib setup
Please enter haxelib repository path with write access
Hit enter for default (/usr/local/lib/haxe/lib)
Path :
haxelib repository is now /usr/local/lib/haxe/lib
$ haxelib install haxeui-hxwidgets
Downloading haxeui-hxwidgets-1,2,3.zip...
Download complete: 0.26KB in 0.8s (0.2KB/s)
Download complete: 60.41KB in 0.1s (345.7KB/s)
Installing haxeui-hxwidgets...
  Current version is now 1.2.3
Done
Installing dependency haxeui-core 1.2.3
Downloading haxeui-core-1,2,3.zip...
Download complete: 0.25KB in 0.9s (0.2KB/s)
Download complete: 5.49MB in 0.4s (11087KB/s)
Installing haxeui-core...
  Current version is now 1.2.3
Done
Installing dependency hscript 2.4.0
Downloading hscript-2,4,0.zip...
Download complete: 0.25KB in 0.8s (0.2KB/s)
Download complete: 42.44KB in 0.1s (397KB/s)
Installing hscript...
  Current version is now 2.4.0
Done
Installing dependency hxWidgets 1.7.1
Downloading hxWidgets-1,7,1.zip...
Download complete: 0.25KB in 0.8s (0.2KB/s)
Download complete: 232.04KB in 0.2s (1058.8KB/s)
Installing hxWidgets...
  Current version is now 1.7.1
Done
Installing dependency hxcpp 4.2.1
Downloading hxcpp-4,2,1.zip...
Download complete: 0.25KB in 0.8s (0.2KB/s)
Download complete: 14.37MB in 1s (13798KB/s)
Installing hxcpp...
  Current version is now 4.2.1
Done
$ haxelib run haxeui-core create hxwidgets

 Creating haxeui-hxwidgets files for "Main"
    - Creating directory "/Users/thom/src/haxeui-getting-started/src"
    - Creating directory "/Users/thom/src/haxeui-getting-started/assets"
    - Copying "/usr/local/lib/haxe/lib/haxeui-core/1,2,3/cli/templates/shared/Main.hx" to "/Users/thom/src/haxeui-getting-started/src/Main.hx"
    - Copying "/usr/local/lib/haxe/lib/haxeui-core/1,2,3/cli/templates/shared/assets/main-view.xml" to "/Users/thom/src/haxeui-getting-started/assets/main-view.xml"
    - Copying "/usr/local/lib/haxe/lib/haxeui-core/1,2,3/cli/templates/hxwidgets-shared/haxeui-hxwidgets.properties" to "/Users/thom/src/haxeui-getting-started/src/haxeui-hxwidgets.properties"
    - Copying "/usr/local/lib/haxe/lib/haxeui-core/1,2,3/cli/templates/hxwidgets/hxwidgets.hxml" to "/Users/thom/src/haxeui-getting-started/hxwidgets.hxml"
$ haxe hxwidgets.hxml
/usr/local/lib/haxe/lib/haxeui-hxwidgets/1,2,3/haxe/ui/backend/hxwidgets/builders/TableViewBuilder.hx:19: characters 8-39 : Type not found : hx.widgets.DataViewSpinRenderer
ianharrigan commented 3 years ago

Hi there, so i think the issue was simply that i forgot to release a new hxWidgets haxelib as that class is certainly there - ive created a new release now, so things should work again.

If that works can you close the issue?

Cheers, Ian

perlmonger42 commented 3 years ago

Thanks. That resolved the issue with the missing DataViewSpinRenderer.

However, the build next fails while compiling DataViewListCtrl.cpp (missing conversion from 'long' to 'const Dynamic'), but I'll file that as a separate issue.