brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

[CLOSED] Right-clicking randomly deletes text from the editor #9748

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by JordanTheriault Tuesday May 19, 2015 at 17:04 GMT Originally opened as https://github.com/adobe/brackets/issues/11142


Right-clicking on elements or properties will delete the text from the editor. After bisection by@humphd it's determined this is a recent regression caused by a recent commit

@humphd: I bisected, and this was caused by https://github.com/adobe/brackets/commit/a0daa3a79d679201c5017529d5f0e5aa3a3232ea upstream.

Here is a screen cap of it happening. randomdeletion

core-ai-bot commented 3 years ago

Comment by abose Tuesday May 19, 2015 at 19:16 GMT


Looks like a codemirror upstream issue. @prafulVaishnav@MarcelGerber

core-ai-bot commented 3 years ago

Comment by MarcelGerber Tuesday May 19, 2015 at 19:30 GMT


Ouch. https://github.com/codemirror/codemirror/commit/5d8347de1a6f137bf5d54659eaa2b8b6ac6b3d79 is the upstream culprit. Let's see if it's our fault or theirs.

core-ai-bot commented 3 years ago

Comment by MarcelGerber Tuesday May 19, 2015 at 19:55 GMT


Because I might not be able to file these today, I sum up my findings here: It looks like the content of the hidden textarea changes, which is then picked up by slowPoll.

I verified this is not a Chrome-only bug by successfully reproducing this in Brackets, Bracketron and Bramble with both Chrome and Firefox.

core-ai-bot commented 3 years ago

Comment by MarcelGerber Tuesday May 19, 2015 at 20:18 GMT


That's what the stack trace looks like, with the downright nonsensical call to applyTextInput in the console below.

image

core-ai-bot commented 3 years ago

Comment by MarcelGerber Thursday May 21, 2015 at 18:01 GMT


Upstream CM bug filed: codemirror/CodeMirror#3273

core-ai-bot commented 3 years ago

Comment by MarcelGerber Tuesday May 26, 2015 at 12:18 GMT


This is now fixed. Thanks for reporting!

core-ai-bot commented 3 years ago

Comment by redmoik Tuesday Jun 02, 2015 at 08:05 GMT


Hi!

How can I fix that issue on my end? My brackets is updated but I'm still getting that bug when I right click a text.

core-ai-bot commented 3 years ago

Comment by MarcelGerber Tuesday Jun 02, 2015 at 08:45 GMT


Please call git submodule sync && git submodule update --init.

core-ai-bot commented 3 years ago

Comment by redmoik Tuesday Jun 02, 2015 at 08:54 GMT


I'm new to this sorry... where will I call that?

core-ai-bot commented 3 years ago

Comment by MarcelGerber Tuesday Jun 02, 2015 at 09:00 GMT


I guess you have a cloned version of Brackets (Is that what "updated" is for you? If not, you shouldn't ever experience this issue with a Release build). If you have, just navigate in there cd xyz/brackets and then call the two commands from above.

core-ai-bot commented 3 years ago

Comment by redmoik Tuesday Jun 02, 2015 at 09:12 GMT


I navigated in there and typed the two commands but it gives error "no git repository,..."

I have no idea if this one is cloned or not. I just downloaded it here http://brackets.io/ and installed Code Folding plugin.

core-ai-bot commented 3 years ago

Comment by MarcelGerber Tuesday Jun 02, 2015 at 09:27 GMT


In that case, you don't have a clone.

So you're saying you see this exact issue in Release 1.3?

core-ai-bot commented 3 years ago

Comment by redmoik Tuesday Jun 02, 2015 at 10:06 GMT


I think yes. check the GIF's below

random_delete_text_on_right_click pluginsbracket-random_delete_text_on_right_click

core-ai-bot commented 3 years ago

Comment by MarcelGerber Tuesday Jun 02, 2015 at 10:15 GMT


Indeed. Could you just quickly try Debug > Reload without extensions?

core-ai-bot commented 3 years ago

Comment by redmoik Tuesday Jun 02, 2015 at 11:58 GMT


same problem..

core-ai-bot commented 3 years ago

Comment by redmoik Tuesday Jun 02, 2015 at 12:08 GMT


oh wait.. Without you say? yes it's not deleting anymore when Reload without extensions

core-ai-bot commented 3 years ago

Comment by mackenza Tuesday Jun 02, 2015 at 12:11 GMT


it would be good to get a list of your extensions then as it seems to be an extension issue.

core-ai-bot commented 3 years ago

Comment by abose Tuesday Jun 02, 2015 at 12:12 GMT


The first GIF shows that it is the release build;Did you correctly launch brackets from the sources at the time?

core-ai-bot commented 3 years ago

Comment by MarcelGerber Tuesday Jun 02, 2015 at 12:14 GMT


@mackenza You can see them in the second GIF:

@abose The thing is, he runs into this issue with his Release build (but caused by some extension).