Frederick888/external-editor-revived

Add more debug messages

tyalie opened this issue · 5 comments

When trying to use this extension with flatpak there are a few pitfalls that one needs to handle. Sadly it is almost impossible to get information from this extension what exactly is happening right now or where any kind of errors are to be found. Is it possible to get more debug logs of what is happening under the hood? i.e. stdout / stderr by the messaging host.

What kinds of pitfalls you bumped into in your flatpak setup?

If it's about the initial native messaging / manifest setup, error info I can get from Thunderbird is quite limited in the first place. In my experience, except for 'no such native application' which often means TB cannot locate the manifest file, it's usually just a generic 'unexpected error'.

If it happened after the initial setup (so that TB can already invoke the messaging host), I can potentially add more logs, but it really depends on what you wanted.

I'd appreciate it if you can contribute a post to Discussions regarding flatpak btw :)

Hi. In this case the external-editor-revived replied with smth along the lines of field "configuration" missing on line 1 column 22. As it turns out this was a result of having an older version of the binary running than what the extension expected, but I was only able to find this, by modifying the external_editor_revived.json to open a bash script with the following content

flatpak-spawn --host ./external-editor-revived "$@" 2>&1 | tee /tmp/out

Getting a dump of the stdout and stderr without needing to bend them and printing it into the Error Console would be lovely.

I'd appreciate it if you can contribute a post to Discussions regarding flatpak btw :)

I'm not sure if this is specific to flatpak right now, but maybe to helps to talk there about how I got it running.

EDIT: I've added a discussion post talking about my config

That's alright. I'll close the ticket then. Please just file another one when you have more details.