JabRef / JabRef-Browser-Extension

Browser extension for JabRef to allow importing of new items directly from the browser.
https://www.jabref.org/
GNU Affero General Public License v3.0
83 stars 22 forks source link

Error connecting to JabRef: Native host has exited #604

Open Kominii opened 11 months ago

Kominii commented 11 months ago

I am using Chrome and MacOS. But I have a problem with an error message like this:

= Screenshot 2023-11-07 at 02 21 20

Could you help me to solve this error pls?

mj-ramirez commented 8 months ago

Just got this error. Vaguely remember similar issue years ago. Now on MacOS M2 Firefox 121.01. Since Update Jabref 5.12. Backroll to 5.11 does not solve. ?OS/Browser/Jabref/Python chnages ?

mj-ramirez commented 8 months ago

stderr output from native app org.jabref.jabref: ERROR:root:Could not determine JABREF_PATH stderr output from native app org.jabref.jabref: Traceback (most recent call last): stderr output from native app org.jabref.jabref: File "/Applications/JabRef.app/Contents/Resources/jabrefHost.py", line 26, in stderr output from native app org.jabref.jabref: send_message({"message": "error", "output": "Could not find JabRef. Please check that it is installed correctly."}) stderr output from native app org.jabref.jabref: NameError: name 'send_message' is not defined

goshng commented 8 months ago

I have the same error. Any luck?

mj-ramirez commented 8 months ago

Copy the >org.jabref.jabref.json< file to /Library/Application Support/Mozilla/NativeMessagingHosts/org.jabref.jabref.json. Solved the error. However, Macos Gatekeeper would not let the application run (recent upgrade Sonoma 14.2.1). Disabling the Gatekeeper with <sudo spctl --global-disable> and the plugin runs.

So, probably an issue for the brilliant developer to solve with Apple.

mj-ramirez commented 8 months ago

Interestingly, now that it is up and running again, switching the Gatekeeper back on does not interfere any longer. All working nicely.

tobiasdiez commented 6 months ago

We had issues with the macos certificates. Maybe that's the reason why the gatekeeper blocker the execution.

Otherwise, please follow https://docs.jabref.org/collect/jabref-browser-extension#manual-installation

homocomputeris commented 2 months ago

Otherwise, please follow https://docs.jabref.org/collect/jabref-browser-extension#manual-installation

This part of the manual does not work:

Check that the Python script works. In Terminal run /Applications/JabRef.app/Contents/Resources/jabrefHost.py. If there are no errors the script is working properly. Stop the script by pressing Ctrl + D.

% /Applications/JabRef.app/Contents/Resources/jabrefHost.py
zsh: no such file or directory: /Applications/JabRef.app/Contents/Resources/jabrefHost.py