It is currently Mon Jul 08, 2024 1:04 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Test for duplicate scripts (SOLVED)
PostPosted: Fri Sep 16, 2016 2:03 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Apr 09, 2016
Posts: 580
Location: Sheffield UK
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: New User

List any ERROR messages you received:
Error while executing script-fu-kp24_test_for_duplicate_scripts:

Error: (<unknown> : 53283677) syntax error: illegal token 1




I'm doing a complete inventory on my GIMP - is there any point retaining this script given the error message I get every time I run it?

_________________
Image


Last edited by RJKD on Fri Sep 16, 2016 4:32 pm, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri Sep 16, 2016 2:30 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
You probably have an extra parenthesis in there somewhere i imagine. Its a grand script. It looks for scripts that are the same and can conflict with each other. I would hold on to it.

Image

I attached a new copy for you here
Attachment:
kp24_test_for_duplicate_scripts.scm [27.38 KiB]
Downloaded 165 times


You will find it under Script-Fu>Kevin>Help>

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri Sep 16, 2016 4:32 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 09, 2016
Posts: 580
Location: Sheffield UK
Thank you Rod, it does what it says on the can. :jumpclap

_________________
Image


Top
 Post subject: Re: Test for duplicate scripts
PostPosted: Fri Sep 16, 2016 4:56 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
RJKD wrote:
Thank you Rod, it does what it says on the can. :jumpclap

Anytime. Happy to help. :bigthup I haven't seen Kevin around in a while. He could tell you more about it.
You can also search for the script in advanced search. Make sure and select search forum "scripts and plug-ins"

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Test for duplicate scripts (SOLVED)
PostPosted: Sat Sep 17, 2016 3:30 pm  (#5) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
I downloaded it as well. Looks to be very useful.

Does it check just by name or is it more advanced than that? I have quite a few scripts that perform the same general task. It would be nice to thin them down. But I don't know if they're different enough to justify keeping them.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: Test for duplicate scripts (SOLVED)
PostPosted: Sat Sep 17, 2016 4:18 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
It's checking for duplicate function names because having duplicates can cause unexpected problems.

Kevin


Top
 Post subject: Re: Test for duplicate scripts (SOLVED)
PostPosted: Sun Sep 18, 2016 3:43 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
paynekj wrote:
It's checking for duplicate function names because having duplicates can cause unexpected problems.

Kevin

Thanks for explaining Kevin. Great to see you again. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Test for duplicate scripts (SOLVED)
PostPosted: Mon Sep 19, 2016 3:03 am  (#8) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Rod wrote:
Thanks for explaining Kevin. Great to see you again. :)


I've been coming here regularly. Most of the time I just don't have anything to contribute.

Kevin


Top
 Post subject: Re: Test for duplicate scripts (SOLVED)
PostPosted: Tue Aug 24, 2021 2:43 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
I checked for duplicate scripts and I get this error:
Image

I also have a duplicate script here:
Image

My question is how do I get rid of the duplicate script?


Top
 Post subject: Re: Test for duplicate scripts (SOLVED)
PostPosted: Wed Aug 25, 2021 5:49 am  (#10) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
What have you set the logging to?

Attachment:
untitled01.png
untitled01.png [ 15.51 KiB | Viewed 1157 times ]


If you have it set to "Too Much" then a lot of information is saved into the duplicate_scripts.txt log file. With that we can try and find which file is causing the "Illegal token" error.

That error is preventing the script from displaying where your duplicates are.

Kevin


Top
 Post subject: Re: Test for duplicate scripts (SOLVED)
PostPosted: Wed Aug 25, 2021 3:22 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
paynekj wrote:
What have you set the logging to?

Attachment:
untitled01.png


If you have it set to "Too Much" then a lot of information is saved into the duplicate_scripts.txt log file. With that we can try and find which file is causing the "Illegal token" error.

That error is preventing the script from displaying where your duplicates are.

Kevin


I didn't have the logging set. The logging is set to none. I tried setting it to Everything and I still got the illegal token error. I also tried logging it as duplicates only. Still managed to get the error. I also tried logging it as Too Much. Still got the same error.


Top
 Post subject: Re: Test for duplicate scripts (SOLVED)
PostPosted: Wed Aug 25, 2021 3:45 pm  (#12) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
The point in setting the logging was to create the log file to try and find out where the problem is happening, by looking in the duplicate_scripts.txt log file. It wasn't ever going to cure the problem.

So set the logging to "Too Much" and post the resulting log file here.


Top
 Post subject: Re: Test for duplicate scripts (SOLVED)
PostPosted: Wed Aug 25, 2021 4:11 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2607
Location: California
paynekj wrote:
The point in setting the logging was to create the log file to try and find out where the problem is happening, by looking in the duplicate_scripts.txt log file. It wasn't ever going to cure the problem.

So set the logging to "Too Much" and post the resulting log file here.


The file has nothing on it but I still have a duplicate script.


Top
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Juxtapose exactly duplicate paths

2

No new posts Attachment(s) GEGL Jelly - Apply on Duplicate Layer above and use eraser

3

No new posts Attachment(s) pm_create_a_depthmap_image.py (Test)

8

No new posts Jewelry Text Test

8



* Login  



Powered by phpBB3 © phpBB Group