Bug? CSSUtils Bug?

Guenter Becker

Active Member
Licensed User
Longtime User
In different Projects I'm working with several extended libraries. After Update B4J 10.5 I get allways the the error message:

CSSUtils wurde zwei Mal deklariert. Sie sollten entweder die Libraryreferenz oder das Codemodul entfernen.

> CSSUtil declared 2 times. You should delete the library reference or the code module.


In the projects there is no CSSUtils Module installed and CSSUtils lib is noch expecially activated!

This is a List of libs used in the projects:




I'm working with B4J 10.50 64 bit.
I tried to reinstall the suite after downloading latest version but this has no positive effect.
I think in the compiler code there is a lack of proofing wether a lib is declared and if yes to ignore the next declaration.

I need help what to do. Thank you.
 

Attachments

  • InfoTank.jsonrxr.txt
    161.8 KB · Views: 17
Last edited:

Guenter Becker

Active Member
Licensed User
Longtime User
Nothing happens if a library is referenced multiple times. It will be added once.

I guess that you are using a library that mistakenly embedded CSSUtils code inside it. You need to find it and remove the CSSUtils class.
 

Guenter Becker

Active Member
Licensed User
Longtime User
After a couple of hours research I found the bad guy. It was the additional lib GradientMaker.
I checked the lib and attached the unzip Version.
If you have a look into the code I can not understand why this lib leads to the CSSUtils Error. There is no CSSUtils Class inside. and There is no manifest as well.
 

Attachments

  • GradientMaker.bas
    3.4 KB · Views: 12

klaus

Expert
Licensed User
Longtime User
If you unzip the GradientMaker.b4xlib you find:
- In the manifest.txt file of the GradientMaker.b4xlib it is written:
B4J.DependsOn=CSSUtils

- And in the GradienMaker.bas file the GradientMaker.b4xlib there is a refernece to the CSSUtils library.
 

Guenter Becker

Active Member
Licensed User
Longtime User
If you unzip the GradientMaker.b4xlib you find:
- In the manifest.txt file of the GradientMaker.b4xlib it is written:
B4J.DependsOn=CSSUtils

- And in the GradienMaker.bas file the GradientMaker.b4xlib there is a refernece to the CSSUtils library.
That is correct but i use the GradientMaker lib without any manfest. I deleted it in the orign.
 

klaus

Expert
Licensed User
Longtime User
That is correct but i use the GradientMaker lib without any manfest. I deleted it in the orign.
If you unzip the GradientMaker.b4xlib file you get two file:


I am speaking of this manifest.txt file.
And if you look at the code of the GradientMaker.bas file you will find the reference to the CSSUtis library.
 

Guenter Becker

Active Member
Licensed User
Longtime User
If you unzip the GradientMaker.b4xlib file you get two file:

View attachment 171308
I am speaking of this manifest.txt file.
And if you look at the code of the GradientMaker.bas file you will find the reference to the CSSUtis library.
Yes Klaus your'e right! But to avoid CSS Error I tried it and modified the origin GradientMaker without the manifest.
 

klaus

Expert
Licensed User
Longtime User
But to avoid CSS Error I tried it and modified the origin GradientMaker without the manifest.
This will work, or you could add the GradienMaker.bas file to your project.
The only problem, in both cases, is that if there is an update of the GradientMaker.b4xlib library you will have the problem again.
And you need to either remove the manifest,txt file and re zip the b4xlib again or extract the GradienMaker.bas and copy it to your project.
 

Guenter Becker

Active Member
Licensed User
Longtime User
Thank you. At the moment I go to copy it into my project to go on with it.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…