Open 50Wliu opened 8 years ago
From @tommyvdv on January 25, 2016 14:55
I believe i'm having the same issue in this example and hope a few extra examples can help you pinpoint the source of the problem.
The symbol definition for an optional parameter named $locale
seems to override the method name.
In dense classes i'm also getting some hits on the code inside methods. This makes it hard to navigate some files. Disregard this if this behavior is intentional (I'm new to Atom and was a sublime user).
edit: I've discovered that the package
goto
solves the inaccurate symbols.
From @bj7 on May 7, 2016 17:46
I also experience an issue with the symbol list not being correct in PHP files. I have a function:
When using Command-R (Mac) and searching on
view
, all I get back is the name of my class:
Which file handles symbol list definitions? I would be glad to investigate.
I'm seeing this issue all the time. I also struggle to find several methods in big classes. I end up just searching for them with cmd+f
I'll try to take a look at this in my spare time to determine a cause.
Moreover, declaration of class properties are reported as symbols, just like local variables inside class methods!
This makes symbols-view in php almost useless.
I've had the same issue, as someone switching from Sublime the behaviour of Cmd-R is not what I expected and pretty much useless. The Goto package is perfect though. :)
happy new year issus
@50Wliu any plans on this issue? It's a big deal when I use atom at work
Nope. Anyone is free to investigate this issue and submit a PR though.
From @sebastien-gallet on January 17, 2016 2:40
In PHP, if a function name first character is lowercased and the parameter is a strongly typed initialized array:![screen shot 2016-01-17 at 10 59 52 am](https://cloud.githubusercontent.com/assets/968164/12375536/62d04934-bd0a-11e5-8be5-c0fafefcfaf4.png)
Then pressing the shortcut "Goto Symbol", the list of symbols shows the parameter name instead of the function name. (As a side note, somehow it pick "name" in the comment as a symbol as well.)![screen shot 2016-01-17 at 11 00 00 am](https://cloud.githubusercontent.com/assets/968164/12375537/62d39d96-bd0a-11e5-8c15-6dc8ad518a15.png)
Copied from original issue: atom/language-php#118