php.sugar icon indicating copy to clipboard operation
php.sugar copied to clipboard

class methods containing certain things don't show properly in navigator

Open donut opened this issue 15 years ago • 1 comments

The title really says it all. Here's some code for you!

Check the context!

Update: At first I thought it was just HTML in strings that messed things up. But I'm finding other things as well. I'll use the code block below to keep a running list of things that mess up the navigator in this same way:

<?php   
class Goomba {
    function nav_sees_me () {
        echo "I'm loved!"; }

    function nav_hate_HTML () {
        echo "<b>I'm not loved :(</b>"; }

    function nav_hate_STATIC () {
        static $i_mess_things_up_to;
        echo "The navigator hates me cuz of the static. :("; }
}

Note that these methods have to be in a class since non-class methods (functions?) are not seen by the navigator at all.

Espresso 1.0.4 & PHP.sugar 1.0b6

donut avatar Apr 30 '09 19:04 donut

I have a good idea how to fix this. Should be ready for the official 1.0b6 release.

derekr avatar May 07 '09 15:05 derekr