In addition to long path name issue, there is another issue to pay attention at.
If the path has space, which is supported by MS Windows OSs but not by DOS, then you will have issues => inconsistent issues.
That may explain why sometimes it works for you.
For this reason the best way would be to open a project directory in root, and keep all project files in there.
Root does not have to be C:\ drive though; D:\, E:\, F:\, G:\ etc. also ok.
----------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks