PTVS projects are sensitive to slash directionality


PTVS can't find Python files if the direction of slashes (forward slash vs. back slash) in the .pyproj file and the interpreter's file load call differs. I will attach a screenshot of the feedback dialog when failing to finding the file, as well as my example program of the error. The funny thing is that "Source search information" says that it found the file, and in the right location.

I have tried this with PTVS 2.0 with VS2012 and 2.1 Beta with VS2013 Express.

EDIT: This issue has been fixed and works in dev builds from 9th of May or newer.

file attachments

Closed Aug 4 at 11:21 PM by Zooba


pminaev wrote May 13 at 4:32 PM

This sounds a great deal like #1923, which I fixed recently with the following description for the change:

"Fix ProjectNode implementation of IVsProject.IsDocumentInProject to correctly handle paths with '/' separators in them."

This fix is in the most recent dev build - can you try that out and see if it solves your problem?

Tisten wrote May 14 at 5:43 AM

The build from the 9th of May works, thanks.