Switch to full style
Ask all general Gimp related questions here
Post a reply

Test for duplicate scripts (SOLVED)

Fri Sep 16, 2016 2:03 pm

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?

Re: Test for duplicate scripts

Fri Sep 16, 2016 2:30 pm

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
kp24_test_for_duplicate_scripts.scm
(27.38 KiB) Downloaded 165 times


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

Re: Test for duplicate scripts

Fri Sep 16, 2016 4:32 pm

Thank you Rod, it does what it says on the can. :jumpclap

Re: Test for duplicate scripts

Fri Sep 16, 2016 4:56 pm

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"

Re: Test for duplicate scripts (SOLVED)

Sat Sep 17, 2016 3:30 pm

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.

Re: Test for duplicate scripts (SOLVED)

Sat Sep 17, 2016 4:18 pm

It's checking for duplicate function names because having duplicates can cause unexpected problems.

Kevin

Re: Test for duplicate scripts (SOLVED)

Sun Sep 18, 2016 3:43 am

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. :)

Re: Test for duplicate scripts (SOLVED)

Mon Sep 19, 2016 3:03 am

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

Re: Test for duplicate scripts (SOLVED)

Tue Aug 24, 2021 2:43 pm

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?

Re: Test for duplicate scripts (SOLVED)

Wed Aug 25, 2021 5:49 am

What have you set the logging to?

untitled01.png
untitled01.png (15.51 KiB) Viewed 1164 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

Re: Test for duplicate scripts (SOLVED)

Wed Aug 25, 2021 3:22 pm

paynekj wrote:What have you set the logging to?

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.

Re: Test for duplicate scripts (SOLVED)

Wed Aug 25, 2021 3:45 pm

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.

Re: Test for duplicate scripts (SOLVED)

Wed Aug 25, 2021 4:11 pm

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.
Post a reply