CSS path unresolved, after adding the correct Resource Root

This question has been beaten to death, but I tried 10 times, closing / reopening the project and PhpStorm, cannot get it to resolve ...

[ Using 2018.1.6 on Ubuntu ( waiting for 2018.2.1 to upgrade...) ]


`/font` cannot be resolved as a Directory (and thus the font file that follows)

And in Settings / Directories, the dir `resources` that contains `font` is declared as a `Resource Root`

And the `font` dir contains the fonts

All files and dirs belong to me, there is no access problem.

Really don't know what to do next...

Comment actions Permalink

Works fine for me using similar setup:

Please can you share a project that can be used to recreate the issue? Do you have any symlinks in the project path? What does your resource folder look like - is it a subfolder of your project root directory, a different content root, or a separate project added to current?

Comment actions Permalink

Hi Elena, thanks for looking into this.

I'll have to make a different project to give you something.

But, to answer your questions

- there are no symlinks (there)

- the files structure is something like, on the same file system

   /home/es/all/theproject ... main project (root)
   /home/es/all/resources ... that contains 'font' (not part of any project path)

As you can see, the 'resources' dir is not under 'theproject', could that be a problem?

Comment actions Permalink

Did you add /home/es/all/resources as additional content root to your project? Please provide a screenshot of your Settings | Directories page, with both left and right panels shown

Comment actions Permalink

This is it: (sahp is the PHP project)

Comment actions Permalink

So, do you have your main project added as a content root to /home/es/all/resources project? This configuration also works fine for me - I don't even need marking resources as a Resource root...

So it seems that I still need a project for testing



Please sign in to leave a comment.