[Gambas-user] [Gambas Bug Tracker] Bug #983: Indentation: Formatting of a Module goes wrong

2016-10-31 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.983=L21haW4-

Comment #3 by C THAL:

This bug is quite annoying. It is very difficult to overlook structures of some 
ifs and elses when one "Sql.Begin" is inside. Unfortunately this occurs 
frequently in my code. So I rise the priority to "Medium".



--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MediaPlayer bug with AboutToFinish and URL?

2016-10-31 Thread Piper984
Hi,

Were you able to confirm that the video clips I attached could play via the
.NextURL + AboutToFinish events successfully on your development machine? 
For what's it's worth, I do see this error message now in the console output
window when after I play any video file (either just one and then the END
event fires, or if I try to set the .NextURL property during the
AboutToFinish event:

The program 'prjVideoTest01' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 1632 error_code 9 request_code 150 minor_code 9)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

If you don't have the error (and I am assuming you don't) then perhaps there
is some GTK lib or other dependence I could check into?  

Thanks for looking into this still! I could try to take a screencam type
video of my test running if that would be helpful at all? 




--
View this message in context: 
http://gambas.8142.n7.nabble.com/MediaPlayer-bug-with-AboutToFinish-and-URL-tp57513p57694.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Flyer Invasion Game - And a possible bug-report

2016-10-31 Thread Moviga Technologies
Hi!

This weekend I had some fun making a simple game in SDL that you can 
find on the farm, or download here: 
http://forum.gambas.one/download/file.php?id=12

There is a warning in the console in the Gambas IDE that says:
gbx3: warning: 2 allocation(s) non freed.
Not sure where that comes from, but as C++ needs to free up stuff, I 
suppose it has to do with the gb.sdl2 component?


--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2016-10-31 Thread Jorge Carrión
I agree with that, Fabien.

Regards

2016-10-31 9:33 GMT+01:00 Fabien Bodard :

> 2016-10-30 13:48 GMT+01:00 Jorge Carrión :
> > It would be great if Gambas would report of Farm's actualizations on
> > installed projects at start... I think.
>
> Maybe not at Ide start but at the farm start... It avoid some slow.
>
> >
> > Best Regards
> > 
> --
> > The Command Line: Reinvented for Modern Developers
> > Did the resurgence of CLI tooling catch you by surprise?
> > Reconnect with the command line and become more productive.
> > Learn the new .NET and ASP.NET CLI. Get your free copy!
> > http://sdm.link/telerik
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> --
> Fabien Bodard
>
> 
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get name of the calling function?

2016-10-31 Thread alexchernoff
System.Backtrace[1] did it, thanks ub2@ !!!





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Get-name-of-the-calling-function-tp57684p57691.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Methods on a property?

2016-10-31 Thread Fabien Bodard
2016-10-31 4:31 GMT+01:00 adamn...@gmail.com :
> Probably a dq, but..
> Is it possible to write a method, apart from _read and _write, on a property 
> of a class? Specifically, I'd like to implement a boolean function to return 
> true if the property has a specific value. Something along the lines of 
> MyClass.MyDateProperty.IsFuture() which would return true if the current 
> value of the property is a date in the future?
> There are obvious solutions along the lines of If 
> MyClass.MyDateProperty>Date(Now()), I'm just trying to shortcut coding common 
> checks in the client class.
>
> regards
> Bruce

I your case MyDateProperty is not a property but a class

Maybe if you create a new DateType that inneritate from Date and
adding some analysis feature.


--- MyDate Class---

inherit Date

Public sub IsFuture()
if super.value..
end


--Your Class--

Property Date as MyDate





So you can use like that

MyClass.Date = Date(...

If MyClass.Date.Future() then ...






> --
> B Bruen 
>
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ?

2016-10-31 Thread Fabien Bodard
Hi Vuott,

First, Thank you for using my code... It need user and reports o be
debugged and inprooved.

So by making an example i've just find i never use polyline :-) ... so
i've not see that polyline simply not work.
This is corrected in the last svn. (I've also remove a bad visual
thing in the back zoom)

Yes i know that component really nee doc as it is quite complexto
unerstand. Even if i've do all my possible to make it simpler.

Public Sub Form_Open()


  Dim hPolyLine As New MapPoint[]
  MapView1.Map.AddTile("GoogleMap",
"https://khms{s}.google.fr/kh/v={version}=app={x}={y}={z}=Galile;,
["version": "702"]).SubDomains = ["0", "1", "2"]
  MapView1.Map["GoogleMap"].Visible = True


  With MapView1.Map.AddShape("Poly")

hPolyLine = [MapPoint(48.457454, -4.638139), MapPoint(51.123363,
2.217329), MapPoint(48.921609, 8.106001), MapPoint(43.833550,
7.666547),
MapPoint(42.487303, 3.008345), MapPoint(43.324192, -1.825640)]



.AddPolyLine("Section 1", hPolyLine)


  End With



End


gb.map was a try to have a tool OffLine. So if you add a cache name in
the addtile call he map is auto magically cached and usable of line.

Then the mapview class is just a dynamic call to the composer class
Map. The advantage is i can use map everywhere for static catch like
in a printed report (this was my goal first).

gb.map can show every kind of map (near)





2016-10-30 18:04 GMT+01:00 Gianluigi :
> Relaunch this request from Ru Vuott:
>
> Hello,
>
> is it possible a very simple example of
> MapView1.Map.AddShape(".").AddPolyLine(...) Method ?
>
> Regards
>
> vuott
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1014: org.freedesktop.DBus.Properties Method:GetALL not implemented?

2016-10-31 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1014=L21haW4-

Comment #7 by Antonio OREFICE:

I never experienced a crash, it is just that the answer to GetAll() is an empty 
array and i suspect some mpris clients like the kde plasmoid needs that to 
validate the player.

Anyway, there were some errors in the previous example, so i uploaded another 
here.
http://wpage.unina.it/aorefice/sharevari/mpris.tar.gz

I tried it with the last gambas revision and set DBus.Debug = True, but i'm 
experiencing the very same results.

Here is what happens:

Start the application, plasma already running:
-
gb.dbus: start watching connection
gb.dbus: add match: type='method_call',path='/',destination=':1.2385'
gb.dbus: add match: type='method_call',path='/org',destination=':1.2385'
gb.dbus: add match: type='method_call',path='/org/mpris',destination=':1.2385'
gb.dbus: add match: 
type='method_call',path='/org/mpris/MediaPlayer2',destination=':1.2385'
gb.dbus: warning: unhandled message: signal sender=org.freedesktop.DBus -> 
dest=:1.2385 serial=2 path=/org/freedes
ktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.2385"
gb.dbus: warning: unhandled message: signal sender=org.freedesktop.DBus -> 
dest=:1.2385 serial=3 path=/org/freedes
ktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string "org.mpris.MediaPlayer2.xt7"
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Properties Get
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Properties Get
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Properties 
GetAll
gb.dbus: GetAll("org.mpris.MediaPlayer2"): ["CanQuit": True, "CanRaise": True, 
"Identity": xt7-player, "DesktopEnt
ry": xt7-player, "HasTrackList": True, "SupportedMimeTypes": (String[] 
0x561a9f6bcce8), "SupportedUriSchemes": (St
ring[] 0x561a9f6a69e8)]
gb.dbus: error: org.freedesktop.Properties.GetAll: Not enough arguments 
DBusObject.GetAllProperties.539 DBusObject
.DBusObserver_Message.612
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Properties 
GetAll
gb.dbus: GetAll("org.mpris.MediaPlayer2.Player"): ["Rate": 0, "Volume": 10, 
"CanPlay": False, "CanSeek": False, "S
huffle": True, "CanPause": False, "Position": 0, "CanGoNext": False, 
"CanControl": False, "LoopStatus": Playlist, 
"MaximumRate": 0, "MinimumRate": 0, "CanGoPrevious": False, "PlaybackStatus": 
Playing]
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Properties Get
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Properties Get
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Properties Get
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Properties Get

## Then i restart plasmashell.
In the plasmashell logs i read:
[ 1.715][WW][kde.dataengine.mpris][unknown] "org.mpris.MediaPlayer2.xt7" 
does not implement org.freedesktop.DBus.Properties correctly
[ 1.715][WW][kde.dataengine.mpris][unknown] Failed to find working MPRIS2 
interface for "org.mpris.MediaPlayer2.xt7"
##


Back to the gambas logs:
--
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Properties 
GetAll
gb.dbus: GetAll("org.mpris.MediaPlayer2"): ["CanQuit": True, "CanRaise": True, 
"Identity": xt7-player, "DesktopEntry": xt
7-player, "HasTrackList": True, "SupportedMimeTypes": (String[] 
0x55f5ad11eb78), "SupportedUriSchemes": (String[] 0x55f5a
d11eb28)]
gb.dbus: error: org.freedesktop.Properties.GetAll: Not enough arguments 
DBusObject.GetAllProperties.539 DBusObject.DBusOb
server_Message.612
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Properties 
GetAll
gb.dbus: GetAll("org.mpris.MediaPlayer2.Player"): ["Rate": 0, "Volume": 10, 
"CanPlay": False, "CanSeek": False, "Shuffle"
: True, "CanPause": False, "Position": 0, "CanGoNext": False, "CanControl": 
False, "LoopStatus": Playlist, "MaximumRate":
 0, "MinimumRate": 0, "CanGoPrevious": False, "PlaybackStatus": Playing]



If i query now via qdbusviewer:
-
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Introspectable 
Introspect
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Introspectable 
Introspect
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Introspectable 
Introspect
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Introspectable 
Introspect
gb.dbus: void signature
gb.dbus: void signature
gb.dbus: void signature
gb.dbus: void signature
gb.dbus: void signature
gb.dbus: void signature
gb.dbus: void signature
gb.dbus: void signature
gb.dbus: call: [org.mpris.MediaPlayer2.xt7] org.freedesktop.DBus.Properties 
GetAll
gb.dbus: GetAll(""): []

Still 

[Gambas-user] [Gambas Bug Tracker] Bug #1014: org.freedesktop.DBus.Properties Method:GetALL not implemented?

2016-10-31 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1014=L21haW4-

Antonio OREFICE added an attachment:

.BUILDINFO



--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1014: org.freedesktop.DBus.Properties Method:GetALL not implemented?

2016-10-31 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1014=L21haW4-

Antonio OREFICE added an attachment:

mpris-0.0.2.tar.gz



--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2016-10-31 Thread Fabien Bodard
2016-10-30 13:48 GMT+01:00 Jorge Carrión :
> It would be great if Gambas would report of Farm's actualizations on
> installed projects at start... I think.

Maybe not at Ide start but at the farm start... It avoid some slow.

>
> Best Regards
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Get name of the calling function?

2016-10-31 Thread alexchernoff
Hello Gambas users,

anyone have any idea how to get the name of the calling function and pass it
to logger or complexlogger ?

The $(callLocation)] format option shows "[ComplexLogger.Log.60] ", but not
where the log was called from.

Would be very useful to know which function the log was called from instead
of manually adding its name to each log line.

Cheers 



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Get-name-of-the-calling-function-tp57684.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user