jlebon / textern

A Firefox add-on for editing text in your favourite external editor!
GNU General Public License v3.0
141 stars 21 forks source link

Error: this text is already being edited, but editor doesn't start #31

Closed valdisvi closed 6 years ago

valdisvi commented 6 years ago

Tested on Ubuntu with gedit, and Lubuntu with leafpad and gvim. When hot key is pressed, notification appears:

Textextern
Error: this text is already being edited

but editor is actually not opened (and there are no any running process).

jlebon commented 6 years ago

Can you check the browser console for error messages? Try from a freshly restarted Firefox instance.

valdisvi commented 6 years ago

Browser console is clear. System message happens, when in content.js, registerText() browser.runtime.sendMessage(...) is called. I couldn't figure out, how could I debug native part of the app.

jlebon commented 6 years ago

What editor are you using? Does it work with ["gedit"]?

valdisvi commented 6 years ago

The same message.

valdisvi commented 6 years ago

How can I test textern native binaries directly without involving browser? E.g. what should happen when I run:

/usr/local/libexec/textern/textern.py
jlebon commented 6 years ago

The script expects to be talking to Firefox, so it won't do anything if you just run it directly.

Some things to try:

If all the above fail, can you check after it gives the message whether Textern is still running in the background (e.g. ps aux | grep textern)?

valdisvi commented 6 years ago

Thanks! Reinstalling with make native-install USER=1 made it working.

zeorin commented 6 years ago

I had this same problem with terminal Emulator Kitty and Neovim. The posted solution worked for me, too.