-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PHPStorm][annotations] Missing route #828
Comments
Just to say that I have the exact same issue. |
Same problem here, something like one week ago, "missing route" starting to appear while they exist and the completion was working before. All routes are not concerned and I didn't manage to identidy the common denominator. |
I ran into same problem. Noticed that only specific controller were missing routes. Replaced The issue was resolved following the change. Must have selected wrong class when controller was created. Symfony had no issues working with either one of the classes, but this plugin does not work unless using FrameworkExtraBundle Route class. Maybe this will help someone else.
|
@dspiegel thx |
@dspiegel Great investigation! Great job! Your solution works perfect. |
both "@route" are supported since Feb, closing |
PHPStorm 2018.3 ("Build #PS-183.4284.150, built on November 21, 2018"), Symfony 4.1.6, pretty small project based on
|
Symfony Plugin v0.17.172
However it only applies to some files and not others... so I investigated the root cause and it seems that our custom DocBlock @user annotation was causing the issue. As soon as I remove it, the routes defined in that file are found as expected. Wierd! Seems it must be preventing the Plugin from inspecting the file. Anyway here is an example of the culprit!
As the @user annotation is not a PHPDoc or Pear Standard annotation we will remove it. |
I have a problem with "Missing route" exception in PHPStorm. I've already created support ticket in JetBrains and after couple of e-mail they suggested to contact with plugin author. Problem is that with no reason PHPStorm doesn't recognize some of the router. Some of theme are find ok, but other are mark as missing route. In prod, dev, test environment everything works just fine. Problem is only with finding route in PHPStorm itself. Here is an example of code that shows this issue
The text was updated successfully, but these errors were encountered: