My PhpStorm project marks several file paths as invalid because I am not able to set up web server mappings correctly.
These are mainly static file references such as images in templates and CSS files.
Here is a setup that is similar to the problem I am facing:
As per the documentation, this is:
- obviously not where I can use a remote server configuration;
- not an in-place environment, as the document root is not parent of the project root;
- not a local server configuration, as I don't want to copy anything -- the files are all in place.
Therefore I think I'm out of options, but I hardly can believe that this is a so special setup that PhpStorm wouldn't support it: a project that doesn't want to expose all of its files to the web server, but still wants to be tested locally.
Note: I don't really want to use the 'run' functionality in PhpStorm, so that is not necessary. My project is running fine with the locally installed development environment. I just would like PhpStorm to provide autocompletion to static files as well, and not mark them as invalid (as they are not invalid).
Any advice would be much appreciated.