[Gambas-user] Pb instanciating inotify watch

Alarc'h alarch at alarch.pw
Sat Mar 2 20:41:38 CET 2019


Le Sat, 2 Mar 2019 20:22:19 +0100,
Tobias Boege <taboege at gmail.com> a écrit :

> According to the documentation [1] this is the correct signature and
> the source code agrees. You should see (or be able to find in the
> "Debugging" tab of the panel on the bottom of the Gambas IDE window)
> a stack trace when an error happens. Is the error raised in your code
> or does the stack trace indicate that comes from *inside* gb.inotify?
> 
> FTR, I just created a blank project and pasted the line above.
> It runs as expected. Which begs the question: which version of
> Gambas do you use and where did you get it from?
> 
> Regards,
> Tobi
> 
> [1] http://gambaswiki.org/wiki/comp/gb.inotify/watch/_new
> 
My version is  from the ppa : 

deb http://ppa.launchpad.net/gambas-team/gambas3/ubuntu xenial main

on Linux Mint 18.1 Serena

The complete procedure is : 

Public Sub Main()
  ' Disable all unneeded events to increase performance
  Dim hWatch As New Watch("/tmp/gambas." & Str$(User.Id), True, 0) As
"GambasDirectory" 
  ' Capture creation and deletion of files or directories
  hWatch.Events.Create = True
  hWatch.Events.Delete = True
  Print "I'm watching... You may now start Gambas projects."
End

And the error is in fact symbol 'create' unknown in class watch.events

And if I try to use watch.Create = True the error message is
Watch.create is not a property...



[System]
Gambas=3.12.2
OperatingSystem=Linux
Kernel=4.4.0-53-generic
Architecture=x86_64
Distribution=Linux Mint 18.1 Serena
Desktop=KDE5
Theme=QtCurve
Language=fr_FR.UTF-8
Memory=5807M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.803.0
GTK+2=libgtk-x11-2.0.so.0.2400.30
GTK+3=libgtk-3.so.0.1800.9
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.58.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.6.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-8fQ9BEfIlD,guid=991bad816c378164635fc06e5c6950ef
DEFAULTS_PATH=/usr/share/gconf//usr/share/xsessions/plasma.default.path
DESKTOP_SESSION=/usr/share/xsessions/plasma
DISPLAY=:0
GB_GUI=gb.qt4
GPG_AGENT_INFO=<home>/.gnupg/S.gpg-agent:0:1
GS_LIB=<home>/.fonts
GTK_MODULES=gail:atk-bridge
HOME=<home>
KDE_FULL_SESSION=true
KDE_SESSION_UID=1001
KDE_SESSION_VERSION=5
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf//usr/share/xsessions/plasma.mandatory.path
PAM_KWALLET5_LOGIN=/tmp/kwallet5_<user>.socket
PAM_KWALLET_LOGIN=/tmp/kwallet_<user>.socket
PATH=<home>/bin:<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=<home>
QMLSCENE_DEVICE=
QSG_RENDER_LOOP=
QT_ACCESSIBILITY=1
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/2305,unix/<hostname>:/tmp/.ICE-unix/2305
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=2155
SSH_AUTH_SOCK=/tmp/ssh-WEsZzo1MpmOg/agent.2095
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XCURSOR_SIZE=0
XCURSOR_THEME=breeze_cursors
XDG_CONFIG_DIRS=/etc/xdg/xdg-/usr/share/xsessions/plasma:/etc/xdg:/usr/share/mint-artwork-kde/kf5-settings:/usr/share/mint-artwork-kde/kde4-profile/default/config
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=/usr/share//usr/share/xsessions/plasma:/usr/local/share/:/usr/share/
XDG_RUNTIME_DIR=/run/user/1001
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_COOKIE=28eb10fd1fbf4c859eb6983c8d87284f-1550405871.736004-595324829
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=3
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=7

-- 
        __
     __/o \_
     \____  \
         /   \
        //\   \
__/o \-//--\   \_/
\____  ___  \  |
     ||   \ |\ |
    _||   _||_||


More information about the User mailing list