All files are red under IntelliJ project pane - user-interface

My project pane in IntelliJ has all files and folder in red color instead of the typical black. I can't find documentation on what does this color mean and how to fix whatever caused it so that it appears black again.
I notice that when I click on these files and folders, then choose Menu->VCS->Mercurial. It asks if I want to add them into source control. These files are already in Mercurial, perhaps this is a Mercurial problem?

Refer to help: File Status Highlights.

This can happen if there is an error with you VCS. To repair this:
Navigate to Settings | Version Control
Select the mapping(s)
Click [-] icon or press Delete to remove the mapping or change the association to None

Related

How can i fix intelliJ Spring red text error?

enter image description here
There is any error. It works well. But intelliJ show me red text on files. How can I fix it.
Looks like VCS (git, subversion, etc) is configured in the project, but these files are excluded from it.
That's why they are marked red.
To add files to version control, choose the Add action in the Git submenu of the file context menu:

How do I know which Workspace I have open in Xcode?

I currently have several workspaces open that all look similar. I'm wondering how can I know which Xcode window corresponds to which workspace on the file system.
I realize I could close all and re-open them, but I'm hoping there's a way to just tell which is which.
I cannot right-click > "show in finder" an item in the project navigator (e.g. like a project) because this is a workspace that houses several projects.
I tried going to File > Workspace settings, but it doesn't show the name nor the path of the current workspace.
I haven't found a way to find the Workspace path.
Well, there is one. Command-click on the left-most element of the jump bar:
You will see the entire containing folder hierarchy. If you've done this right, your workspaces will be in different folders, so the name of the containing folder (here, "MyWorkspace") will distinguish them. — Moreover, the name of your workspace is present at in the window's title bar (shown in the screen shot at top right).
I haven't found a way to find the Workspace path.
However, you can get the workspace name with either of these methods:
Find navigator > Click "In Workspace" you should see the name up top.
When building the project, the first message tells you which workspace it is building.
I found that you can go to File->Show in Finder to see the folder where the workspace file has been loaded from.

What do these Multi-Document like TFS Icons Mean?

Does anyone know what these icons mean in TFS 2017 Source Control Explorer? The files are .cpp and .h... The icons for the two newly added files show up correctly (as seen below), but the existing files all turn into the multi-yellow-document... why is it replacing the icon for file type?
The icons initially load correctly, but seem to change after being analyzed...
I just came across a more specific solution than uninstalling all of the TFS Source Control Explorer Extension. The "icon change" functionality that is causing this can be optionally toggled on its own from Tools->Options. Set "Files icon change" = False to disable this icon behavior.
If file is branched to more than one location its icon is changed to icon as this.
File icon change
In the file list on the left side of Source Control Explorer
window are branched files displayed with changed icon.
I was wondering if you or your mates have installed TFS Source Control Explorer Extension. Please also check this link for more detail information:

TortoiseSVN right click menu gone when selecting files

Short Question
Has anyone had an issue when right clicking files (.c/.h/etc..) and the TortoiseSVN menu is not present? Note that it is there when I right click a folder in the same directory.
Failed Attempts
I have seen that a number of issues like this have been resolved by running the installer again and selecting repair or modify, at this point neither of these attempts have worked.
Is there anything else I can try to get this working again? The DIFF functionality being gone is hurting something fierce.
Edit
I am the only developer working on the files. I actually found a way to see the diff: Move the parent folder TortoiseSVN->Check for modifications. This menu does indeed show all of my versioned files as well as any of them that have been modified.
I have also confirmed that the files really still are version controlled by checking out the same repo in on a different machine.
Edit2
It is worth noting that I am using Macdrive and it's right click menu is present all the time. In addition, I just saw that I am having the same issue with TortoiseGIT as well.
Go to registry editor using regedit
Go to and click on HKEY_CLASSES_ROOT/*/​shellex/ContextMenuH​andlers/TortoiseSVN
Observe error message box saying access is denied.
Right click on the key mentioned above, go to "Permissions"...
In the permission dialog, click on "Advanced"
Click on "Owner" tab, click on your account and click "Apply"
OK the dialog
Right click on the key mentioned above, go to "Permissions"...
Grant permissions for OWNER RIGHTS to "Full Control"
Apply the changes
Source
If still not works so try to use shift key + right click.
Are you sure that these files under version control? It is possible that someone has deleted these files from svn repo and after update your these files has become unversioned.
You can check that by going one dir level up (from folder where these files are located) and choose whether Tortoise-SVN->Repo-Browser menu (check that they are present on SVN server) or SVN Commit (make sure Show unversioned files checkbox is set and check Text Status Column if it contains "non-versioned") .
Shift + Right click on the folder which you want to checkout click TortoiseSVN --> settings --> Context Menu --> uncheck the Hide menus for unversioned paths

Files added to xcode project show red on another Mac

Files added to xcode project show red on another Mac. Both the windows while adding files to the project look the same. When I re-add them in the newly opened project, it starts working fine. I need to know what's causing this.
When you add files to Xcode project, you would see "Copy items to destination group's folder". By default it's unchecked. So it copies references. When you move the resource that you added to Xcode to a different location on same computer or open in another computer it looks for that reference which is missing. So you see missing items as red.
If you check that box "Copy items to destination group's folder" when prompted for, you wouldn't see that.
There can be another reason. If you or someone have accidentally removed file from the Project folder from finder but not Xcode, you would see same effect.
There is an option in the project selecting if files should be stored with absolute or relative paths; it may be set to absolute. If it is, other machines will only be able to find the files if they are in the exact same location and not just in the same location relative to the project file.
You can test this by adding a file and saving the project then checking it in a text editor. Right click on the project in Finder and click "Show package contents." You can then open project.pbxproj (or something like that) in any text editor. You can even use Xcode. Find the file you just added and see how it is storing the path.
I managed to get everything red by accidentally moving the project folder.
After moving the directory back all files were red-marked.
I resolved this by clicking on the project root on the left pane
Clicking the arrow pointing right next to the "Full path" on the right pane under Identity.
By selecting another option and back the project refreshed itself.
I guess it depends on your preferred work environment but i continuously copy all my files over to avoid the dreaded red triangles.
xcode buggyness, you should try this next time:
rm -rf ~/Library/Developer/Xcode/DerivedData/

Resources