golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
122.93k stars 17.52k forks source link

tour: can't edit code on Nexus 5X #14912

Open dmytrobr opened 8 years ago

dmytrobr commented 8 years ago

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
  2. What operating system and processor architecture are you using (go env)? https://tour.golang.org/methods/4
  3. What did you do? If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on play.golang.org is best.

Can't edit code in sandbox from Go tutorial on my Nexus 5x. I'm able to type nee code, but existing code "backspace" does not work ( does nothing)

  1. What did you expect to see? I should be able to edit code in go sandbox as any other web form
  2. What did you see instead?
dmytrobr commented 8 years ago

Why did you close it?

davecheney commented 8 years ago

I am very sorry, this was an accident.

dmytrobr commented 8 years ago

Thank you for updating title anyway :)

ianlancetaylor commented 8 years ago

CC @campoy

campoy commented 8 years ago

I can confirm this is a bug, I can also confirm this is really weird and help is welcome 😄 Working on it now

nathany commented 8 years ago

Does it make any difference whether syntax highlighting is on or off?

Does https://play.golang.org also misbehave or does backspace work fine there?

(I don't have a Nexus 5X to test on)

nathany commented 8 years ago

Here is a related issue in CodeMirror:

https://github.com/codemirror/CodeMirror/issues/2234#issuecomment-75757336

peggyl commented 8 years ago

I don't believe it's specific to Nexus 5X. I was able to reproduce on Nexus 6 (phone) and Nexus 9 (tablet), both on Android 6.0.1.

Edit: also, backspace works fine with the Google Hindi Input and Google Zhyin Input keywords, just not the default Google (English) keyboard.

nathany commented 8 years ago

Most likely a problem on any Android device. It sounds like a newer version of CodeMirror will solve the problem, though of course it needs testing. I'd help but I don't have any Android devices 😱 and I think @campoy has it under control.

Thanks for reporting the issue @dmytrobr.

dmytrobr commented 8 years ago

https://play.golang.org work fine, btw.

One more detail, I can use backspace on the text I typed in. Until I press format button. After that backspace doesn't work on any text. Syntax on/off does not make any difference.

Thank you for following up on this