Skip to content

[CLOSED] PHP diagnostic problems are not auto updated on typing or other file modifications #12024

@core-ai-bot

Description

@core-ai-bot

Issue by nayankankariya
Friday May 03, 2019 at 09:42 GMT
Originally opened as adobe/brackets#14763


PHP diagnostic problems are not auto updated on typing.

Linting is triggered consistently only on file save and on pressing Enter key in the code.
When validateOnType is set to True, linting should be triggered on every key press and file modifications like by cut/paste/delete, drag/drop, undo/redo, reloading of document due to external edits, beautify, etc.

Steps:

  1. Launch Brackets
  2. Create and save a PHP document
  3. Type <?php and save the file
  4. Paste below code
if ( current_user_can( 'read'  ) {
    $profile_url = get_edit_profile_url( $user_id )
} elseif ( is_multisite() ) 
    $profile_url = get_dashboard_url( $user_id, 'profile.php' );
} else {
    $profile_url = 'false;
}

Result: Linting is not triggered
5. Place IP on the list line and press Enter key
Result: Linting is triggered

6: Place IP after 'read' in the if condition and type )
Result: Linting is not triggered

  1. Save the file
    Result: Linting is triggered

Expected: Linting should be triggered on every key press and file modification like by cut/paste/delete, drag/drop, undo/redo, reloading of document due to external edits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions