Developer Forum »
100 class icons are attempted removed
47 posts

With new Relatude upgrades, some new class icons are added to Relatude and these I have commited when doing the upgrade.

Ever since, upon every time I run the site, these icons are attempted removed again from the solution. I discard the changes, but they keep coming back. With the last version (2079), there were about 30 of them. Now the number of icons has passed 100 (2100).

What is the reason behind attempting to remove these icons?

If they should not be commited, why are they added at all?

Anna

Attachments
181 posts

Hi!

All the icons for the old interface are stored in the content.definition file. In order for them to be used, they need to be written to disk. This is why they keep appearing. 

The new interface is not using the same system, but the old icons are fallback if no new svg icon is specified for the content classes.

47 posts

Hmm, okay.

Would you recommend adding these to .gitignore?

47 posts

Update on this:

 

I tried to add one of the icons to .gitignore by adding this line (suggested by Visual Studio Code):

SOSBarnebyer/SOSBarnebyer/WAF/Files/ClassIcons/9_16_16_.png

This however does not seem to work.

 

Do you have any suggestion on what to do here?

3 posts

Quote:

Update on this:

 

I tried to add one of the icons to .gitignore by adding this line (suggested by Visual Studio Code):

SOSBarnebyer/SOSBarnebyer/WAF/Files/ClassIcons/9_16_16_.png

This however does not seem to work.

 

Do you have any suggestion on what to do here?

 

Hi, if you've already added a file to the repo then ignoring it won't do anything. In that case you'll have to remove it from the repo, for the ignore to have any effect.

 

Other than that, if you want to ignore all classicon files, I would recommend adding this line to .gitignore instead: "**/WAF/**/ClassIcons/*". That should catch all of them.

47 posts

Hmm, I tried adding this to the .gitignore, but the change seem to appear anyway.

Please notice that the change involves deleting all these class icons.

Attachments
3 posts

Yeah, you'll need to delete them (so that they are removed from the repo) before the ignore works. After doing that no more should show up though.

47 posts

Ok, I will try to do so. Thank you

47 posts

That seemed to do the trick :)
Thank you a lot!

3 posts

You're welcome :)

1