It is currently Thu Jul 25, 2024 2:46 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 200 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 10  Next
Author Message
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Thu May 16, 2013 3:16 pm  (#61) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
dinasset wrote:
Thanks Ofnuts!!!
the new version is OK, my brushes are loaded!!!
(maybe, you are so nice to consider - do not hit me, please - also my question whether it would be possible to keep the sub-folder name when loaded onto the brush dock, so that the filter can select by group...)
Anyhow, thanks a lot...


See attached improved version, that now keeps activated add-ons in subfolders (this is the default but is configurable). On Linux (and likely OSX) this means that collections can be activated by merely linking the storage subdirectory in the active add-ons directory, which is very fast.

Check the ReadMe.

Attachment:
addonCollectionManager.zip [7.41 KiB]
Downloaded 94 times

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 17, 2013 2:03 am  (#62) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Yuppee!!! Many many thanks Ofnuts!!!
I will try it as soon as I'm back home, on my Windows 7 PC...

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 17, 2013 9:16 am  (#63) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
dinasset wrote:
Yuppee!!! Many many thanks Ofnuts!!!
I will try it as soon as I'm back home, on my Windows 7 PC...


Windows... too bad you cannot take advantage of the symlinks...

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 17, 2013 10:22 am  (#64) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Ofnuts, one small question: does the new version "trace" the loading like the before-last version you sent to me (and other people)? I liked very much that feature...

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 17, 2013 10:59 am  (#65) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
dinasset wrote:
Ofnuts, one small question: does the new version "trace" the loading like the before-last version you sent to me (and other people)? I liked very much that feature...


No but the attached one does:

Attachment:
addonCollectionManager-tracing.zip [4.8 KiB]
Downloaded 84 times

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 17, 2013 11:31 am  (#66) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
thanks Ofnuts

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 17, 2013 12:43 pm  (#67) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Ofnuts,
I was impatient to try your new version of the plug-in, so I decided to install it on my old PC running Windows XP here on the country, and I like to share with you the results:
- it seems that it fails during the copy of the single items from the *_storage folder to the base folder
- last entries on the trace file are the following:
Creating main dialog
Main dialog created
Scrollbox created
VBox created
Cancel button created
OK button created
OK sensed
Old containers; set([])
New containers; set([u'acqua'])
Activated containers; set([u'acqua'])
Deactivated containers; set([])
2 addons stored in C:\Documents and Settings\Diego\.gimp-2.8/patterns_storage\acqua
Creating C:\Documents and Settings\Diego\.gimp-2.8/patterns/acqua
Copying C:\Documents and Settings\Diego\.gimp-2.8/patterns_storage\acqua\acqua-con-ondine.pat to C:\Documents and Settings\Diego\.gimp-2.8/patterns/acqua/patterns_storage\acqua\acqua-con-ondine.pat

so it appears like if it is trying to copy the item(s) on a wrong path

well, maybe the test is not significant due to the environment I have here, but could you have a look into the code?

many thanks in advance

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 17, 2013 1:28 pm  (#68) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
dinasset wrote:
Ofnuts,
I was impatient to try your new version of the plug-in, so I decided to install it on my old PC running Windows XP here on the country, and I like to share with you the results:
- it seems that it fails during the copy of the single items from the *_storage folder to the base folder
- last entries on the trace file are the following:
Creating main dialog
Main dialog created
Scrollbox created
VBox created
Cancel button created
OK button created
OK sensed
Old containers; set([])
New containers; set([u'acqua'])
Activated containers; set([u'acqua'])
Deactivated containers; set([])
2 addons stored in C:\Documents and Settings\Diego\.gimp-2.8/patterns_storage\acqua
Creating C:\Documents and Settings\Diego\.gimp-2.8/patterns/acqua
Copying C:\Documents and Settings\Diego\.gimp-2.8/patterns_storage\acqua\acqua-con-ondine.pat to C:\Documents and Settings\Diego\.gimp-2.8/patterns/acqua/patterns_storage\acqua\acqua-con-ondine.pat

so it appears like if it is trying to copy the item(s) on a wrong path

well, maybe the test is not significant due to the environment I have here, but could you have a look into the code?

many thanks in advance


:gaah Just a bugs that only shows up on Windows... and I thought :pound I had tested that part :pound

Fixed version attached (you get the non-tracing one for the same price):

Attachment:
addonCollectionManager.zip [12.18 KiB]
Downloaded 93 times

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 17, 2013 1:40 pm  (#69) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Excellent!!! everything OK!!!
Thanks a lot...

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 17, 2013 2:20 pm  (#70) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
dinasset wrote:
Excellent!!! everything OK!!!


Good. Making a tracing version was indeed a good idea :)

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 24, 2013 4:04 am  (#71) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Hi Ofnuts,
a small note on your managers.
I started using also the "scripts manager" (in addition to gradients, brushes, patterns, palettes).
I created sub-folders under scripts_storage folder. Scripts are not zipped.
One of those sub-folders is that one I use for my scripts tests.
I always have it selected, and when I enter or modify a new (or modified) script, I do the following:
1 - call the scripts manager
2 - remove the selection mark from that sub-folder
3 - hit OK
(scripts are refreshed/removed: fine!)
and I wanted to continue with
4 - enter again the selection mark on that folder to reload the modified contents
5 - hit OK
(scripts are refreshed/reloaded: fine!)
My small note on this procedure is:
after step 3, the small scripts manager window and the please-wait window are not removed from the screen, so that to perform steps 4 and 5 I have to select again the scripts manager.
Then I can operate as expected, but those 4 small windows remain on the screen until I close Gimp.
Not a serious problem, just to inform you so that - if possible - also this small incorrect behaviour can be removed
The trace is as follows:
....
Searching directories as C:\Users\User\.gimp-2.8/scripts_storage/* for scripts
4 directories as C:\Users\User\.gimp-2.8/scripts_storage/* for scripts
Manager of scripts created OK
Creating main dialog
Main dialog created
Scrollbox created
VBox created
Cancel button created
OK button created
OK sensed
Old containers; set([])
New containers; set([u'scripts in prova one-by-one'])
Activated containers; set([u'scripts in prova one-by-one'])
Deactivated containers; set([])
2 addons stored in C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one
Copying C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one\My_Flowers.scm to C:\Users\User\.gimp-2.8/scripts/scripts in prova one-by-one-My_Flowers.scm
Copying C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one\Rusted.scm to C:\Users\User\.gimp-2.8/scripts/scripts in prova one-by-one-Rusted.scm
Refresh: script-fu-refresh
Refresh OK
Many thanks

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 24, 2013 7:11 am  (#72) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
dinasset wrote:
Hi Ofnuts,
a small note on your managers.
I started using also the "scripts manager" (in addition to gradients, brushes, patterns, palettes).
I created sub-folders under scripts_storage folder. Scripts are not zipped.
One of those sub-folders is that one I use for my scripts tests.
I always have it selected, and when I enter or modify a new (or modified) script, I do the following:
1 - call the scripts manager
2 - remove the selection mark from that sub-folder
3 - hit OK
(scripts are refreshed/removed: fine!)
and I wanted to continue with
4 - enter again the selection mark on that folder to reload the modified contents
5 - hit OK
(scripts are refreshed/reloaded: fine!)
My small note on this procedure is:
after step 3, the small scripts manager window and the please-wait window are not removed from the screen, so that to perform steps 4 and 5 I have to select again the scripts manager.
Then I can operate as expected, but those 4 small windows remain on the screen until I close Gimp.
Not a serious problem, just to inform you so that - if possible - also this small incorrect behaviour can be removed
The trace is as follows:
....
Searching directories as C:\Users\User\.gimp-2.8/scripts_storage/* for scripts
4 directories as C:\Users\User\.gimp-2.8/scripts_storage/* for scripts
Manager of scripts created OK
Creating main dialog
Main dialog created
Scrollbox created
VBox created
Cancel button created
OK button created
OK sensed
Old containers; set([])
New containers; set([u'scripts in prova one-by-one'])
Activated containers; set([u'scripts in prova one-by-one'])
Deactivated containers; set([])
2 addons stored in C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one
Copying C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one\My_Flowers.scm to C:\Users\User\.gimp-2.8/scripts/scripts in prova one-by-one-My_Flowers.scm
Copying C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one\Rusted.scm to C:\Users\User\.gimp-2.8/scripts/scripts in prova one-by-one-Rusted.scm
Refresh: script-fu-refresh
Refresh OK
Many thanks


There is likely a problem, but you have to show me the log contents after step 3 (because step 4 restarts a new log)...

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 24, 2013 7:26 am  (#73) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Thanks Ofnuts.
By looking at the trace immediately after step 3 I understood when the problem occurs:
ONLY when adding a new script to be tested, the manager cannot find the new one as an entry to delete! in fact this is the trace:
......
Searching directories as C:\Users\User\.gimp-2.8/scripts_storage/* for scripts
4 directories as C:\Users\User\.gimp-2.8/scripts_storage/* for scripts
Manager of scripts created OK
Creating main dialog
Main dialog created
Scrollbox created
VBox created
Cancel button created
OK button created
OK sensed
Old containers; set([u'scripts in prova one-by-one'])
New containers; set([])
Activated containers; set([])
Deactivated containers; set([u'scripts in prova one-by-one'])
3 addons stored in C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one
Cannot de-activate C:\Users\User\.gimp-2.8/scripts/scripts in prova one-by-one-cossins_circulaires.scm: [Error 2] Impossibile trovare il file specificato: u'C:\\Users\\User\\.gimp-2.8/scripts/scripts in prova one-by-one-cossins_circulaires.scm'
Refresh: script-fu-refresh
Refresh OK
......
Do you think you can detect this OS error and close the "please wait.." window anyway?

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 24, 2013 9:15 am  (#74) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
dinasset wrote:
Thanks Ofnuts.
By looking at the trace immediately after step 3 I understood when the problem occurs:
ONLY when adding a new script to be tested, the manager cannot find the new one as an entry to delete! in fact this is the trace:
......
Searching directories as C:\Users\User\.gimp-2.8/scripts_storage/* for scripts
4 directories as C:\Users\User\.gimp-2.8/scripts_storage/* for scripts
Manager of scripts created OK
Creating main dialog
Main dialog created
Scrollbox created
VBox created
Cancel button created
OK button created
OK sensed
Old containers; set([u'scripts in prova one-by-one'])
New containers; set([])
Activated containers; set([])
Deactivated containers; set([u'scripts in prova one-by-one'])
3 addons stored in C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one
Cannot de-activate C:\Users\User\.gimp-2.8/scripts/scripts in prova one-by-one-cossins_circulaires.scm: [Error 2] Impossibile trovare il file specificato: u'C:\\Users\\User\\.gimp-2.8/scripts/scripts in prova one-by-one-cossins_circulaires.scm'
Refresh: script-fu-refresh
Refresh OK
......
Do you think you can detect this OS error and close the "please wait.." window anyway?


Yes, easy to fix. Stay tuned.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Fri May 24, 2013 6:25 pm  (#75) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
dinasset wrote:
Thanks Ofnuts.
By looking at the trace immediately after step 3 I understood when the problem occurs:
ONLY when adding a new script to be tested, the manager cannot find the new one as an entry to delete! in fact this is the trace:
......
Searching directories as C:\Users\User\.gimp-2.8/scripts_storage/* for scripts
4 directories as C:\Users\User\.gimp-2.8/scripts_storage/* for scripts
Manager of scripts created OK
Creating main dialog
Main dialog created
Scrollbox created
VBox created
Cancel button created
OK button created
OK sensed
Old containers; set([u'scripts in prova one-by-one'])
New containers; set([])
Activated containers; set([])
Deactivated containers; set([u'scripts in prova one-by-one'])
3 addons stored in C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one
Cannot de-activate C:\Users\User\.gimp-2.8/scripts/scripts in prova one-by-one-cossins_circulaires.scm: [Error 2] Impossibile trovare il file specificato: u'C:\\Users\\User\\.gimp-2.8/scripts/scripts in prova one-by-one-cossins_circulaires.scm'
Refresh: script-fu-refresh
Refresh OK
......
Do you think you can detect this OS error and close the "please wait.." window anyway?


Actually, the error logged was expected and the script carries on... And the "Main" window (the one with the list and Close/OK buttons) won't disappear by itself, you have to click the "Close" button (but it can remain up if you need to activate things often).

So the only unexpected behavior you have is that the status dialog ("Please wait..." and progress indicator) doesn't hide when it should, but I can't reproduce that behavior on Linux or Windows. I have added some more logging in the attached version(*). Check for 'Hiding status dialog' in the log.

Attachment:
addonCollectionManager.zip [4.91 KiB]
Downloaded 72 times


(*) logging is enhanced: the log file is now under a more recognizable name in the Gimp profile directory and the script logs to file on Windows/OSX and to the terminal on Linux.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat May 25, 2013 2:29 am  (#76) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Hi Ofnuts, thanks.
I did the following:
1 - unchecked the sub-folder using the OLD version, to clean the status on Gimp
2 - substituted the plug-in with the new version
3 - removed pluginrc file, again to clean the status on Gimp
4 - started Gimp
5 - checked the sub-folder
at this point I wanted to proceed with the test but with this trial already the plug-in remained with the two windows open (the first one, the main, I have to close it manually, but it's impossible if the second one, the wait..., does not close automatically)
the new trace (addonCollectionManager.log) is empty
I attach it here together with a snapshot of my screen taken with Ashampoo Snap 6
Many thanks for your support


Attachments:
Ashampoo_Snap_2013.05.25_09h18m35s_001_.7z [177.13 KiB]
Downloaded 65 times
addonCollectionManager.7z [120 Bytes]
Downloaded 56 times

_________________
"Where am I ?"
Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat May 25, 2013 2:46 am  (#77) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
...(to continue the test)
closed and reopened Gimp
the clicked on scripts were there (so, previous step did the job, even if it did not close the wait...window)
closed Gimp
added a new script to the sub-folder
reopened Gimp
unchecked the sub-folder
OK, the scripts were removed and the wait...window closed
checked again the sub-folder (with one additional script in it)
the job was done (the complete sub-folder loaded), but..
the wait...window did not close itself
now the log is full
a report the last entries here
-----------------------------------------
Creating main dialog
Main dialog created
Scrollbox created
VBox created
Cancel button created
OK button created
OK sensed
Old containers: set([u'scripts in prova one-by-one'])
New containers: set([])
Activated containers: set([])
Deactivated containers: set([u'scripts in prova one-by-one'])
4 addons stored in C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one
Showing status dialog
Cannot de-activate C:\Users\User\.gimp-2.8/scripts/scripts in prova one-by-one-FlattingTools-new.scm: [Error 2] Impossibile trovare il file specificato: u'C:\\Users\\User\\.gimp-2.8/scripts/scripts in prova one-by-one-FlattingTools-new.scm'
Refresh: script-fu-refresh
Refresh OK
Hiding status dialog
OK sensed
Old containers: set([])
New containers: set([u'scripts in prova one-by-one'])
Activated containers: set([u'scripts in prova one-by-one'])
Deactivated containers: set([])
4 addons stored in C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one
Showing status dialog
Copying C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one\cossins_circulaires.scm to C:\Users\User\.gimp-2.8/scripts/scripts in prova one-by-one-cossins_circulaires.scm
Copying C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one\FlattingTools-new.scm to C:\Users\User\.gimp-2.8/scripts/scripts in prova one-by-one-FlattingTools-new.scm
Copying C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-on
---------------------------------------------------------------------------------------------
it seems the log is interrupted before ending the third "copying"

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat May 25, 2013 3:21 am  (#78) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
The missing lines in the log are likely due to the internal output buffer not written out. The output "Copying C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one\cossins_circulaires.scm to C:\Users\User\.gimp-2.8/scripts/scripts in prova one-by-one-cossins_circulaires.scm" is a single "print" instruction (if you look at the size of the log file in bytes (it is very likely a multiple of 512 (or even of 4096)). If you exit Gimp at that point that should make the plugin terminate, which in turn should flush the buffer and you should get the end of the log.

You can also keep Gimp up and terminate the plugin in the Task Manager or any process explorer (look for "python", and if the explorerd allows it, it should be under Gimp, which is its parent process.

_________________
Image


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat May 25, 2013 5:18 am  (#79) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I did already close the Gimp, but the log is still incomplete.
Maybe a problem of my environment?
Thanks

(total size is 8 kB)

_________________
"Where am I ?"


Top
 Post subject: Re: Improved MrQ add-on manager (dinasset's request)
PostPosted: Sat May 25, 2013 10:40 am  (#80) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
Trying to make sure we get all the log:


Attachments:
addonCollectionManager.zip [4.91 KiB]
Downloaded 73 times

_________________
Image
Top
Post new topic Reply to topic  [ 200 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 10  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Thank you Dinasset

7

No new posts Attachment(s) dinasset's photos modified

35

No new posts Lines Art 2024 by Dinasset (Video)

9

No new posts Attachment(s) Addon Manager not working

14

No new posts Resource Manager advice

6



* Login  



Powered by phpBB3 © phpBB Group