[Gambas-user] [Gambas Bug Tracker] Bug #787: Beautify has to be run several times

bugtracker at ...3416... bugtracker at ...3416...
Sun Oct 4 12:58:39 CEST 2015


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

Moviga TECHNOLOGIES reported a new bug.

Summary
-------

Beautify has to be run several times

Type             : Bug
Priority         : Medium
Gambas version   : 3.8.90 (TRUNK)
Product          : Development Environment


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

Paste this code in a class file, and hit Ctrl+F. It will only add void lines to the top most function that currently has none. One has to hit Ctrl+F once for each function block.

Private $hRect As Rect
Private $sShape As String
Private $iLineWidth As Integer
Private $iLineColor As Integer
Private $iFillColor As Integer
Private $iZ As Integer

Property Rect As Rect
Property Shape As String
Property LineWidth As Integer
Property LineColor As Integer
Property FillColor As Integer
Property Z As Integer

Private Function Rect_Read() As Rect
  Return $hRect
End

Private Sub Rect_Write(Rect As Rect)
  $hRect = Rect
End

Private Function Shape_Read() As String
  Return $sShape
End

Private Sub Shape_Write(Shape As String)
  $sShape = Shape
End

Private Function LineWidth_Read() As Integer
  Return $iLineWidth
End

Private Sub LineWidth_Write(LineWidth As Integer)
  $iLineWidth = LineWidth
End

Private Function LineColor_Read() As Integer
  Return $iLineColor
End

Private Sub LineColor_Write(LineColor As Integer)
  $iLineColor = LineColor
End

Private Function FillColor_Read() As Integer
  Return $iFillColor
End

Private Sub FillColor_Write(FillColor As Integer)
  $iFillColor = FillColor
End

Private Function Z_Read() As Integer
  Return $iZ
End

Private Sub Z_Write(Z As Integer)
  $iZ = Z
End


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

[System]
Gambas=3.8.90 r7312
OperatingSystem=Linux
Kernel=4.1.6-1-ARCH
Architecture=x86_64
Distribution=arch 
Desktop=KDE5
Theme=Proxy
Language=nb_NO.UTF-8
Memory=9901M

[Libraries]
Cairo=libcairo.so.2.11400.2
Curl=libcurl.so.4.2.0
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.3
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.405.0
GTK+2=libgtk-x11-2.0.so.0.2400.28
GTK+3=libgtk-3.so.0.1600.6
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.52.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.5.0
SDL=libSDL-1.2.so.0.11.4

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-7rvPN8rlRD,guid=75534cfdb433e848ad9f896a55f965a8
DESKTOP_SESSION=plasma
DISPLAY=:0
GB_GUI=gb.qt5
GS_LIB=<home>/.fonts
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:<home>/.gtkrc-2.0:<home>/.config/gtkrc-2.0
GTK_MODULES=canberra-gtk-module
GTK_RC_FILES=/etc/gtk/gtkrc:<home>/.gtkrc:<home>/.config/gtkrc
HOME=<home>
KDE_FULL_SESSION=true
KDE_MULTIHEAD=false
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LANG=nb_NO.UTF-8
LANGUAGE=nb
LOGNAME=<user>
MAIL=/var/spool/mail/<user>
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
PAM_KWALLET5_LOGIN=/tmp/kwallet5_<user>.socket
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=<home>
QT_IM_MODULE=compose
QT_NO_GLIB=1
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/899,unix/<hostname>:/tmp/.ICE-unix/899
SHELL=/bin/bash
SHLVL=1
SSH_ASKPASS=/usr/bin/ksshaskpass
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=/tmp/xauth-1000-_0
XCURSOR_SIZE=0
XCURSOR_THEME=Breeze_Snow
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/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=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=1
_=/usr/lib/kf5/start_kdeinit_wrapper






More information about the User mailing list