danielperna84 / hass-configurator

Configuration UI for Home Assistant
MIT License
306 stars 168 forks source link

File Editor caracters are shifted form cursor #197

Closed guiguid closed 1 year ago

guiguid commented 4 years ago

Hi, With the 5.0 update of the File Editor Addons, I've a 5/6 caracter shift with the cursor !

HA-FileEditor5 0-caracterbug

This strange bug isn't présent in previous release. It's fonts related ?

Tested with : Firefox 75, with -safe-mode + cache cleaning on linux manjaro 20 Chromium Version 81.0.4044.122 on linux manjaro 20

HA : 0.109.1 File editor : 5.0.0

arch | x86_64 dev | false docker | true hassio | true os_name | Linux os_version | 5.6.5-3-MANJARO python_version | 3.7.7 timezone | Europe/Paris version | 0.109.1 virtualenv | false

I've uninstall and reinstall File editor addon with no succes.

Link Issue : https://github.com/home-assistant/hassio-addons/issues/1261

itsyoshio commented 3 years ago

+1

danielperna84 commented 3 years ago

I can't reproduce this problem with a standalone-installation. Does this only apply to certain filetypes? And do you have the editor somehow embedded within another page, or is it a native page with just the editor?

itsyoshio commented 3 years ago

It happens in the core_configurator addon aswell as in esphome (all installed via hassos supervisor) and any other place this editor is used.

https://user-images.githubusercontent.com/12760988/103536318-97913600-4e92-11eb-8417-f31d3c2735cb.mp4

Doesn't matter wheather i'm on my instance or on a friends (different network, host, instance) so it is related to my Notebook. I tried Hard Reloading but not no avail.

I'm on Manjaro with GNOME Shell 3.38.2 on Wayland and Chromium 87.0.4280.88 (Official Build) Arch Linux (64-bit)

danielperna84 commented 3 years ago

What I meant by standalone is installing the HASS-Configurator application itself without any container. Since you are on Linux, please try the following:

cd /tmp
python3 -m venv venv
source venv/bin/activate
pip install hass_configurator
# This will install the HASS-Configurator application within the temporary virtual environment
# Then start with
hass-configurator
# The output will be something like:
INFO:2021-01-04 22:57:00,382:hass_configurator.configurator:Starting server
INFO:2021-01-04 22:57:00,383:hass_configurator.configurator:Listening on: http://0.0.0.0:3218

You should then be able to point your browser at http://127.0.0.1:3218 and get the configurator. This is a plain installation, and I now have done this multiple times on different machines and never got the problem you are reporting. So from my point of view, this is not a problem with the application.

Edit:
I just installed the latest Manjaro Linux in a VM, installed the configurator as mentioned above, and in Chromium it's working as designed as well. So as it stands, the cause of the problem is not the Configurator in my opinion.