[Gambas-user] IDE and VERSION

Bruce Steers bsteers4 at gmail.com
Sun Dec 27 01:24:35 CET 2020

It's cool, the merge wasn't much. I canceled it when i saw your reply as it
did confirm what i already suspected.
This loop at line 2967 in App/src/Gambas3/.src/Project.Module

*  sDir = Project.Dir  Do    sDir = File.Dir(sDir)    If sDir = "/" Then
Return True    If Exist(sDir &/ "VERSION") Then Break  Loop*

I simply rearranged the order to ...

*  sDir = Project.Dir  Do    If Exist(sDir &/ "VERSION") Then Break    If
sDir = "/" Then Return True    sDir = File.Dir(sDir)  Loop*
That way it also checked Project Dir (and also top level dir /).

But yeah , not really needed i guess.
the only reason i ever wanted to use a VERSION file for single project was
to ensure Version stays the same (sometimes if i load a project and compile
in different/older versions of Gambas i loose the "Do Not Increment
Version" setting and it starts clocking up again) I figured a VERSION file
would keep it the same.

It gave me something to do on an otherwise pretty boring Christmas day at
least :)
All the best

On Sat, 26 Dec 2020 at 20:06, Benoît Minisini <g4mba5 at gmail.com> wrote:

> Le 26/12/2020 à 21:00, Bruce Steers a écrit :
> > Yes, sorry , after i submitted the merge i realised and explained to
> > Jean (they were responding privately) That i don't think it will be
> > accepted or really needed and pretty much said what you said, if only
> > one project may as well just use the IDE.
> >
> > Sorry to waste time.
> > BruceS
> >
> No problem. I didn't see your merge request, I came back online this
> afternoon only.
> --
> Benoît Minisini
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201227/585a85ca/attachment-0001.htm>

More information about the User mailing list