Ignoring/Hiding folders doesn't work

I’ve made a folder on top level for the steam-building
But I want that to be ignored or hidden

I’ve tried adding;

ContentBuilder
contentbuilder
ContentBuilder/*
contentbuilder/*

in the
ignore.conf and the hidden_changes.conf

But it’s still visible.

Manually adding; does not work either.
8047337--1038515--hey_2.png

Can I get some help please?

8047337--1038518--hey_1.png

I suspect this is because the folders have not only been created, but they have also been Added to Source Control, either manually or automatically by the plugin, meaning they are in a controlled state.

Please can you move all the files you want to be ignored outside of your workspace, this may cause Plastic to think that these files have now been deleted, undo everything on these files so they no longer exist in your Workspace.

Now add the ignore rules that you desire and then manually paste them back in with Windows Explorer (not within Unity).

Does this alleviate the issue?

The “delete” was instant and it said something about files do not exist or something.
But the issue is solved!
Thank you so much!

I came looking for a solution for this issue thinking it is a bug, but are you telling me this is the way Plastic scm works? Something that is easy on any other scm like ignoring a file does not work with plastic without having the extra, unnecessary, trouble of doing things outside the tool scope. Looks like it was a really bad idea trying Plastic, just gonna undo everything and go with Git instead. Every single Unity tool creates more frustration than solve problems…

2 Likes

Hi EternalMerodach,

I’m afraid I don’t fully understand your issue.

Ignoring files in Plastic should work without any extra operation. But we need to consider that the ignore rules are only applied to private files. If the files are already added to source control, the ignore rules won’t work. You will need to add the items to the hidden changes list.

Regards,
Carlos.

My issue was similar to OP. I had new files, not yet commited, they were only staged (added by the plugin/Unity, not by me) and when trying to ignore a file, the option is grayed out. And adding to the ignore.conf does nothing.

The instructions given by ollieblanks requests the files to be moved out of the project folder before adding them to the ignore.conf and pasting them back for the ignore to properly work. This is basically requiring extra steps that could just be solved by some option to unstage files (if that is the reason the ignore does not work). On git this would be a simple git reset, no file juggling needed.

These files were never commited, they don’t exists in the repository.

The workaround proposed by Ollie was a path to undo the changes in the files.
At the end of the day, the problem is if the private files are already “Added to source control” and in this scenario, the ignore rules are not applied. You should be able to just undo the changes on this files from, the pending changes view.

As soon as the files are tracked as private again (not added to source control), the ignore rules will be properly applied again.

But how can u undo the changes when the changes are adding new objects? Delete objects then u will have no objects

If you undo the changes for new files that are “Added to your control”, the files will be set as Private again and the ignore rules will be applied.
There is no need to delete them.

Can you explain then why is “add to ignored list” grayed out in this situation?
Files never were in my workspace, they were added just now

8573858--1148105--upload_2022-11-9_17-11-38.png

It’s because the was already added to source control/checked-out.
If you undo the changes in the workspace (undo the checkout), you should be able to add them to the ignore list.

1 Like

I don’t believe this is correct. I have assets I just now added to my project that were absolutely never part of the project before, have not committed any changes to source control, and it only gives me the “Add to hidden changes list” option.

1 Like

You can only add to the hidden changes list items that are already committed to the project. Not sure if they were committed in the initial checkin. But at least Plastic is tracking them as controlled.

Could you attach a screenshot? Is the same behavior also happening in the Plastic GUI?

That is easy to verify as false. In 2022.2.2f1, and Version Control 1.17.7, you can simply right-click and create a brand new folder, then without doing anything else, right-click that folder you just created and you’ll see the only option is to add it to the hidden changes list. And yes, the same behavior is in the Plastic GUI.

Resurrecting this. Im getting this issue now. I have items only showing up as Added. I tried "undo changes (and keep in mind this is on stuff in ADDED, not CHANGED) and it breaks my project. This is counter intuitive.

This should be done automatically by just adding them to ignore. Workarounds like this are unproductive and should be handled by the source control. Why have something sitting under “Added” but then have it already “in source control”. In my case these are files have not been checked in yet.

Also, moving the files out takes them out of plastic SCM’s view, but adding them back just adds the red exclamation back and cant add them to the ignore list again.

Retried removing the items and now plastic picks up that the folders were “deleted”… but can’t commit the these removals:
8839669--1204345--upload_2023-2-28_0-7-16.png

Then waiting a few seconds, they aren’t showing up as deleted anymore. Adding them back in again and now I can add them to Ignore list. This really should be done by just clicking ignore…

how deal all the library folder’s files added to vcs window? over 18000 numbers. ignore.conf default has library, and this is project’s starting point. install vcs and it immediately shows library and temp folder.
Why? how to remove these? can’t find solution, can’t find answer at googling. totally mess.

What do you want to do? Do you want to ignore all of these items so they are not appearing in the “Checkin changes” view? In that case, you should be able to add them to the ignore list.

yes I want that. But why I should manually add them to list by mouse right click and select that menu?
Why ignore.conf does not take affect from the first.