[Gambas-user] [Gambas Bug Tracker] Bug #1008: Library window crashes IDE because of double libs

bugtracker at ...3416... bugtracker at ...3416...
Sun Oct 30 00:49:36 CEST 2016


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

Comment #5 by Zainudin AHMAD:

I have the same issue

/usr/lib/gambas3/hola/libmy-A:0.0.gambas    <--- lib A
/home/user/.local/share/gambas3/lib/hola/libmy-B:0.0.gambas  <--- lib B

My Patch:

diff -urNaX /tmp/gambas-patch-ignore a/.src/Project/Library/FSelectLibrary.class b/.src/Project/Library/FSelectLibrary.class
--- a/.src/Project/Library/FSelectLibrary.class	2016-10-30 05:36:38.000000000 +0700
+++ b/.src/Project/Library/FSelectLibrary.class	2016-10-30 05:38:26.000000000 +0700
@@ -45,7 +45,7 @@
     If Not IsDir(sDir) Then Continue
 
     For Each sVendor In Dir(sDir, "*", gb.Directory).Sort(gb.Natural)
-      bParent = False
+      If Not cvwLibrary.Exist(sVendor) Then bParent = False
       
       For Each sLib In Dir(sDir &/ sVendor, "*.gambas", gb.File).Sort(gb.Natural)






More information about the User mailing list