Blue question mark in files in solution explorer

I often get blue question marks in files in VS2012 Solution Explorer when opening a Perforce related solution via P4VS.

It looks like something is having problems "syncing" with depot / workspace / whatnot. Clicking "Refresh View" always solves the problem, but I get tired of it all the time:

Screenshot

This is my VS version:

Microsoft Visual Studio Professional 2012
Version 11.0.61030.00 Update 4

      

And P4VS:

2014.1.85.4506

      

This has been repeated in P4VS versions over the course of several months and seems to sometimes affect individual files, sometimes entire projects, with no visible patterns.

How can I diagnose what is going wrong, be it a server problem, a VS problem, a workspace problem? ... The Perforce Source Control output does not show anything special.


In fact, these are not entire folders, they are entire projects. It looks like even if updating the project "fixes" the problem for one run, reopening the solution brings it back. Whereas, for individual files, updating them fixes the problem once and for all. I will play with him a little more to confirm this.

+3


source to share


3 answers


This "solved" the problem for me, at least for all projects that were marked in blue:

1) Tools> Options

2) Source control

3) Perforce - General

4) Check the option "Treat solution / project as directory when selected"



Not sure why, but it annoys me less every day. Thanks to Perforce support offering this.

+2


source


To help diagnose what's going on, you should probably turn on logging and check the settings that will display everything in the output window. For P4VS log go to:

     Tools- > Options -> Source Control -> Perforce - Logging

      



(This is not the same as the Visual Studio activity log.)

There might be a chance that you will disconnect and refresh your connection. I'm not sure if you have a connection with application specific settings, since you did not specify that the connection dialog is appropriate.

+2


source


The file is probably not marked for version control. I noticed this icon in one file and opened Perforce to check. For some reason this file has not been marked for adding to Perforce. After marking the file to add and submit, the blue question mark disappeared.

0


source







All Articles