PhpStorm 2017
Hello,
There were somethings i don't understand.
Example :
<link rel="stylesheet" href="css/app.css">
i have an error "cannot resolve file 'app.css' more... (Ctrl+F1)".
I have the same on many lines of my source.
Other example in the same source:
<div class="col-md-3">
<h6 id="sema"><a href="#sem1">Premier semestre</a></h6>
<h6 id="semb"><a href="#sem2">Deuxième semestre</a></h6>
</div>
Unknown encoding '#sem1' more... (Ctrl+F1)
These is errors, not warning. How to do not having these kinds of notifications ?
Is there someone for helping me to correctly configure the IDE ?
Please sign in to leave a comment.
Hello,
It means that PhpStorm cannot find the "css/app.css" path which is relative to the current file. So if your file is located in /some/folder/index.html, it will look for /some/folder/css/app.css. Does this file exist? Where is it located actually? You can try to remove everything from within the quotes and press Ctrl+Space to see the path completion. You also can mark the directory where "css" folder is located as Resource Root via File | Settings | Directories for paths completion.
Is it HTML file? I cannot reproduce this. Please place the caret at sem1 and press Alt+Enter - it should show you the list of actions. What does it say there?