[Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source.

T Lee Davidson t.lee.davidson at gmail.com
Wed Apr 20 21:08:11 CEST 2022


On 4/20/22 10:43, Brian G wrote:
> Perhaps I did not describe what is happening clearly
> 
> If I create an installable application on my pc using the IDE,
> 
> Create the install package for that application.
> 
> Now I take that Install package and install it onto my pc.
> 
> I start this application running in a bash terminal. I leave this application running in that terminal.
> 
> Now I start the IDE again, open the original project and decide to make some changes to the app and try to run it in the IDE
> the IDE will not start the app when i hit go.. it hangs.
> 
> if  I kill the instance of the app running in the bash window
> 
> now if i try to run the app in the IDE again it works fine and can be debugged.
> 
> I do not use the remote debug feature.
> 
> It appears that the IDE sees the app running in the bash session and tries to debug it
> 
> Even though I did not choose to debug a remote application.
> 
> This makes it impossible to actually use an app and develop it on the same pc.
> 
> It appears to be a problem with the IDE being confused.
> 
> "Failure is the key to success;
>   each mistake teaches us something"  .. Morihei Ueshiba
> Brian G

Okay, so I:
1. Created and installed an installation package from your TestQuit demo;
2. From a terminal console, executed `testquit` which resides in '/usr/bin' which is in my path;
3. Launched the IDE and loaded the TestQuit project;
4. Changed some code ('Print') and ran the application.

It works as expected. It does not hang, and typing 'quit' in the Console successfully quit the app.
`lsof` shows that the IDE-executed program has the correct IDE temporary debug files open based on PID.


-- 
Lee

[System]
Gambas=3.17.2
OperatingSystem=Linux
Kernel=5.3.18-150300.59.63-default
Architecture=x86_64
Distribution=openSUSE Leap 15.3
Desktop=KDE5
Font=Noto Sans,10
Scale=7
Theme=breeze
Language=en_US.UTF-8
Memory=15999M

[Libraries]
Cairo=/usr/lib64/libcairo.so.2.11600.0
Curl=/usr/lib64/libcurl.so.4.6.0
DBus=/usr/lib64/libdbus-1.so.3.19.4
GDK2=/usr/lib64/libgdk-x11-2.0.so.0.2400.32
GDK3=/usr/lib64/libgdk-3.so.0.2404.16
GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1603.0
GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.32
GTK+3=/usr/lib64/libgtk-3.so.0.2404.16
OpenGL=/usr/lib64/libGL.so.1.7.0
Poppler=/usr/lib64/libpoppler.so.89.0.0
QT5=/usr/lib64/libQt5Core.so.5.12.7
SDL=/usr/lib64/libSDL-1.2.so.0.11.4
SQLite=/usr/lib64/libsqlite3.so.0.8.6

[Environment]
AUDIODRIVER=pulseaudio
COLORTERM=1
CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu
CPU=x86_64
CSHEDIT=emacs
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/<user>/1000/bus
DESKTOP_SESSION=/usr/share/xsessions/plasma5
DISPLAY=:0
FROM_HEADER=
GB_GUI=gb.qt5
GPG_TTY=not a tty
GTK2_MODULES=unity-gtk-module
GTK3_MODULES=unity-gtk-module
GTK_IM_MODULE=cedilla
GTK_MODULES=canberra-gtk-module
G_BROKEN_FILENAMES=1
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
HISTSIZE=1000
HOME=<home>
HOST=<hostname>
HOSTNAME=<hostname>
HOSTTYPE=x86_64
JAVA_BINDIR=/usr/lib64/jvm/java/bin
JAVA_HOME=/usr/lib64/jvm/java
JAVA_ROOT=/usr/lib64/jvm/java
JDK_HOME=/usr/lib64/jvm/java
JRE_HOME=/usr/lib64/jvm/java
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
LESS=-M -I -R
LESSCLOSE=lessclose.sh %s %s
LESSKEY=/etc/lesskey.bin
LESSOPEN=lessopen.sh %s
LESS_ADVANCED_PREPROCESSOR=no
LOGNAME=<user>
MACHTYPE=x86_64-suse-linux
MAIL=/var/spool/mail/<user>
MANPATH=/usr/local/man:/usr/share/man
MINICOM=-c on
MORE=-sl
OSTYPE=linux
PAGER=less
PAM_KWALLET5_LOGIN=/run/<user>/1000/kwallet5.socket
PATH=<home>/.local/bin:<home>/bin:/usr/local/bin:/usr/bin:/bin:<home>/opt/GNAT/2019/bin
PATH_STATIC=<home>/.local/bin:<home>/bin:/usr/local/bin:/usr/bin:/bin:<home>/opt/GNAT/2019/bin
PROFILEREAD=true
PWD=<home>
PYTHONSTARTUP=/etc/pythonstart
QEMU_AUDIO_DRV=pa
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_IM_MODULE=xim
QT_IM_SWITCHER=imsw-multi
QT_LOGGING_RULES=*.debug=false
QT_SYSTEM_DIR=/usr/share/desktop-data
SDK_HOME=/usr/lib64/jvm/java
SDL_AUDIODRIVER=pulse
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1883,unix/<hostname>:/tmp/.ICE-unix/1883
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=****
SSH_ASKPASS=/usr/lib/ssh/ssh-askpass
SSH_AUTH_SOCK=/tmp/*
TERM=xterm
TZ=:/etc/localtime
UBUNTU_MENUPROXY=1
USER=<user>
WINDOWMANAGER=/usr/bin/startplasma-x11
XAUTHLOCALHOSTNAME=<hostname>
XAUTHORITY=<home>/.Xauthority
XCURSOR_THEME=breeze_cursors
XDG_CONFIG_DIRS=/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_RUNTIME_DIR=/run/<user>/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=<user>
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
XMODIFIERS=@im=local
XNLSPATH=/usr/share/X11/nls
XSESSION_IS_UP=yes
force_s3tc_enable=true


More information about the User mailing list