Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Bug: Function Completion

Lope
2013-02-22
2013-02-23
  • Lope
    Lope
    2013-02-22

    Thanks for the awesome release!
    Check out these 2 bugs:
    Example: (PHP file)

    Highlighting Bug
    strpos( #turns blue
    stripos(#does not turn blue (coloring is not reading php.xml)

    Function Complete Bug:
    strpos($a,$b #if you hit backspace or 'end' the function complete thing disappears, but it should not. The function complete thing should only disappear when the cursor is not on or inside the brackets.

     
  • Lope
    Lope
    2013-02-22

    If you come back to edit a function call any click inside the function or keypress should bring the function complete display back.
    At the moment you have to go delete the opening bracket and use left/right keys only, which is a workaround, but its still a hassle.

     
  • Lope
    Lope
    2013-02-23

    I'm experiencing the bug in other ways. Sometimes the function complete just doesn't open.

     
  • Lope
    Lope
    2013-02-23

    I pasted the code below on codepad.org. its easier to read there

    http://codepad.org/pj7QXGpK

    REPEAT THE BUG
    [1. Create a new file]
    [2. Paste]
    <?php

    ?>
    [3. Change the language to PHP]
    [4. type this]
    ctype_alnum(
    [auto complete will display]


    [5. remove the line, paste this line]
    if (!ctype_alnum(str_replace('_','',str_replace('-','',$fname)))) $result.='#';
    [6. remove the open bracket after ctype_alnum, type the bracket, autocomplete works]


    [7. remove the line, paste this line]
    foreach ($fields as $fname => $fromtable) if (!ctype_alnum(str_replace('','',str_replace('-','',$fname)))) $result.=show_warning("\$fname $fname in \$tname $fromtable contains illegal characters.","Only lowercase letters and - are allowed.","Its possible there are more identical \$fnames==$fname");
    [8. now auto complete is BROKEN permanently]


    [9. confirm auto-complete is broken]
    ctype_alnum(


    [auto-complete only works again if you change the language to something else, then back to PHP]

     
    Last edit: Lope 2013-02-23