Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Live preview does not highlight HTML nodes after JavaScript change. #12997

@Worie

Description

@Worie

Prerequisites

  • Can you reproduce the problem with Debug -> Reload Without Extensions?
  • Did you perform a cursory search to see if your bug or enhancement is already reported?
  • Did you read the Troubleshooting guide?

Description

Saving a JS file while Live Development session is opened causes the page in Chrome to reload.
When you go back to the HTML markup and edit your code there, you cant see any highlights or changes.
This is probably due to fact that after the refresh the remote markup (the code in actual browser) does not contain data-brackets-id attributes.

You can see that this line throws an error https://github.com/adobe/brackets/blob/master/src/LiveDevelopment/Agents/RemoteFunctions.js#L716 (_queryBracketsID on the DOMEditHandler is undefined)

I didn't have any better idea for title of this issue.

Steps to Reproduce

  1. Start Live Preview on any HTML file.
  2. Have fun there (see that everything actually works, highlight and changes are applied)
  3. Attach some Javascript file to the main HTML file
  4. Edit linked javascript file
  5. The changes made in JS file are applied
  6. Go back to your HTML file
  7. Try to have fun again
  8. No luck - there's no highlighting nor live changes applied to the browser.

Expected behavior: Every part of Live Preview works even if you changed some javascript.

Actual behavior: Highlight and Live changing of text/tags does not work.

Versions

OSX Sierra 10.12.1 (16B2555)
Brackets 1.8

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