Page 1 of 1

the specified path file name or both are too long

PostPosted: November 2nd, 2016, 9:47 am
by b3wii
Hi i recently purchased php tools for vs and i now have a problem opening my project. I get the following error:

the specified path file name or both are too long. the fully qualified file name must be less than 260 characters...

My phpproj file is attached.

I installed .NET Framework 4.6.2 and allowed long win32 paths but i still cann't open my projects.

Please help.

Re: the specified path file name or both are too long

PostPosted: November 8th, 2016, 4:27 pm
by Miloslav Beno
Hello,

Thanks for the feedback. Unfortunately this is known limitation. It is .net exception, because in ANSI mode file system API can't handle file paths longer than 260 character. The workaround you've sent wasn't tested yet, but we'll take a look.

I can see from the attachment that you are using npm. So the real cause of the issue is not php stuff, it's this. This has known issues in Windows, but if you'd excluded it from the project ( which you should do anyway ) the issue will be gone.

Thanks,