Invalid Inspection Warning - Can't resolve target expression - relative paths
We have never been able to use the "Unresolved include" Inspection due to the fact that it does not work as expected (https://intellij-support.jetbrains.com/hc/en-us/community/posts/206378639-Can-t-resolve-target-expression and https://youtrack.jetbrains.com/issue/WI-3125 are examples). We've improved the structure of our project, so I thought I would try turning it on again, but still simple includes that seem like they should work, don't. This example works with the autocomplete, so why does it not work with the Inspection?

1 comment
Sort by
Date
Votes
|
I figured out why this is happening. This occurs anytime where are multiple files by the same name (in one or more composer packages, there was a common.php). I know this because it's happening again (https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000009384-Invalid-Inspection-Warning-Can-t-resolve-target-expression-relative-paths) with bootstrap.php - this even occurs with I use a relative path "library/bootstrap.php". Unresolved Include should just test to see if the file exists, IMO.
|
Please sign in to leave a comment.