iafan / goplayspace

Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more
https://goplay.space
Other
982 stars 61 forks source link

Caret is not displayed #9

Open PumpkinSeed opened 7 years ago

PumpkinSeed commented 7 years ago

I really miss the cursor.

iafan commented 7 years ago

I guess by cursor you mean the blinking caret in the textarea? Can you please provide more information (your OS and browser version)?

PumpkinSeed commented 7 years ago

Yes, but I'm sorry I thought it's not there because of conscious implementation. I'm on Fedora 25 and Chomre 57.0.2987.133 (64-bit). Thank you.

iafan commented 7 years ago

I wouldn't expect any problems in modern Chrome, but this might be OS-specific somehow. Wish someone having Fedora could confirm the issue. Is that the latest version of Chrome on Fedora? On Mac I'm having version 58, so I'd suggest to update and restart the browser just in case.

Can you try a different theme (click the Settings button and then select a theme from a drop-down list) and see if the caret is invisible in any theme or just specific ones?

Also, could you try this in Firefox as well to see if this bug is browser-specific or OS-specific?

PumpkinSeed commented 7 years ago

I gave a try to all theme, but I got the same error. It is the latest Chrome for Fedora.

xi2 commented 7 years ago

Just as an additional data point, I also experience the missing caret.

Browser: Firefox ESR 45.9.0 (latest Debian version).

OS: Debian GNU/Linux.

iafan commented 7 years ago

Thanks for keeping the feedback coming, folks. Until I'm able to reproduce this issue, I'm planning to adjust the code so that it works as a vanilla textarea (but with line numbers) in a non-syntax-highlighted mode. Having no syntax highlighting is probably a lesser problem than having no caret at all.

iafan commented 7 years ago

Please try with syntax highlighting turned off. Will caret display as expected? (Make sure you force-reload the page for CSS changes to take effect.)

xi2 commented 7 years ago

Hi. With syntax highlighting off the caret is now displayed as expected. With syntax highlighting on the caret is not displayed.

Browser: Firefox ESR 52.2.0 (latest Debian version). OS: GNU/Linux

PumpkinSeed commented 7 years ago

With syntax highlighting off the caret is also displayed for me.

Chrome 53, Fedora

kylieCat commented 6 years ago

Turning off syntax highlighting fixes the issue for me as well:

Chrome: Version 56.0.2924.87 (64-bit) OS: OSX 10.13.3

Updating Chrome to 57 fixed the issue. It would seem this issue relates to the caret-color CSS attribute. It's not supported until Chrome 57 according to the MDN docs. Deactivating that attribute in dev tool with a compatible browser cause the issue to repro.

iafan commented 6 years ago

@im-auld thanks for the additional feedback. I'm glad it works for you now! Version 57 is pretty old (it's been a year already since its release; current Chrome on Mac is at version 65 already).