[Gambas-bugtracker] Bug #2192: IDE form designer error message

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sun May 2 10:57:20 CEST 2021


http://gambaswiki.org/bugtracker/edit?object=BUG.2192&from=L21haW4-

Bruce BRUEN reported a new bug.

Summary
-------

IDE form designer error message

Type             : Bug
Priority         : High
Gambas version   : 3.15
Product          : Language


Description
-----------

(pre-amble - here are more issoes
1. Still no 3.16 selector in the bugtracker - in fact this bug is in 3.16.90 I haven't had time to update yet.
2. Disregard the system information this is with 3.16.90 native. 
3. I cant find "IDE" in the "Product" combobox above so I have shoved this one in "Language")

OK here it is.

The form editor wont open, it just pops up the error:

labwlwidth > Sources > FMain

Cannot open file.

Unknown symbol 'Children' in class 'TextBox'
FForm.GetChildren.768 CControl.GetChildren.894 FForm.ArrangeContainerByDefault.4316 FForm.ArrangeContainerByDefault.4317 FForm.Reload.183 FForm.LoadFile.2886 Project.LoadFile.2148 Project.OpenFile.2238 FMain.tvwProject_Activate.177 _TreeView.GridView_Activate.806 GridView.ScrollArea_DblClick.1377

Now this happens only(?) if I am trying to build a composite control. In the simplest case a UserContainer with a Label and a TextBox. (_Container set to HBox)

Looking at the FForm code at GetChildren.768 I cannot see how this line could possibly work as hCtrl at that point of the iteration IS a TextBox which has no Children (of course).

This may have come in with the changes to try and display DrawingArea based custom controls? (I don't know.)

I have tried "re-implementing" TextBox adding a Children property that just returns null but that (strangely) doesn't help. (That's a different issue by the way.)

Also, by the way, the project runs, both inside the IDE and as an executable. So this is definitely an IDE issue.

I am not quite sure what that series of If..Else If .. is trying to achieve all I know is that it fails :-)

I will try to attach a demo project but I haven't had a great deal of jow with that previously. I I can't I'll send you the project privately.

regards
bruce


System information
------------------

[System]
Gambas=3.11.90 d3c17c791 (local)
OperatingSystem=Linux
Kernel=4.16.13-pclos1
Architecture=x86_64
Distribution=PCLinuxOS
Desktop=MATE
Theme=Gtk
Language=en_US.UTF-8
Memory=7491M

[Libraries]

[Environment]
BROWSER=/usr/bin/www-browser
CANBERRA_DRIVER=pulse
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-tYSAEsKmJW,guid=084be9baa369436402ea749d5bebea13
DESKTOP_SESSION=05MATE
DISPLAY=:0
GB_GUI=gb.qt4
GCONF_TMPDIR=/tmp
GDMSESSION=05MATE
GDM_XSERVER_LOCATION=local
GIO_LAUNCHED_DESKTOP_FILE=<home>/Desktop/projectbrowser5.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=16405
GIT_PAGER=less -FRS
GNOME_KEYRING_CONTROL=<home>/.cache/keyring-787ASZ
GTK2_RC_FILES=<home>/.gtkrc-2.0
GTK_MODULES=canberra-gtk-module
GTK_OVERLAY_SCROLLING=0
G_FILENAME_ENCODING=@locale
HISTCONTROL=ignoredups
HISTSIZE=1000
HOME=<home>
HOSTNAME=<hostname>
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_SOURCED=1
LC_TELEPHONE=en_US.UTF-8
LC_TIME=en_US.UTF-8
LD_LIBRARY_PATH=:/usr/lib64:/usr/lib
LESS=-MM
LESSCHARSET=utf-8
LESSKEY=/etc/.less
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=<user>
LS_COLORS=
MAIL=/var/spool/mail/<user>
MATE_DESKTOP_SESSION_ID=this-is-deprecated
MDV_MENU_STYLE=discovery
META_CLASS=desktop
NLSPATH=/usr/share/locale/%l/%N
PATH=/bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:<home>/bin:/sbin:/usr/sbin
PWD=<home>
PYTHONDONTWRITEBYTECODE=1
PYTHONSTARTUP=/etc/pythonrc.py
QT4DOCDIR=/usr/share/doc/qt4
QT5DOCDIR=/usr/share/doc/qt5
QTDIR=/usr/lib64/qt4
QTDIR5=/usr/lib64/qt5
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_SCALE_FACTOR=1
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/29853,unix/<hostname>:/tmp/.ICE-unix/29853
SHELL=/bin/bash
SHLVL=1
SSH_AGENT_PID=29892
SSH_AUTH_SOCK=<home>/.cache/keyring-787ASZ/ssh
TMP=/tmp/
TMPDIR=/tmp/
TZ=:/etc/localtime
USER=<user>
WINDOWPATH=8
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/mate:/etc/xdg/discovery:/etc/xdg
XDG_CURRENT_DESKTOP=MATE
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/
XDG_SESSION_COOKIE=<hostname>-1542187537.274074-1876948711
XMODIFIERS=@im=none
_=/usr/bin/gambas3




More information about the Bugtracker mailing list