-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken link to jabref.json #77
Conversation
Thanks for the report and the fix. I would guess that it's better to use the Linux version https://github.com/JabRef/jabref/blob/master/buildres/linux/org.jabref.jabref.json on Mac. As I don't have a Mac, I'm not sure how it works and what changes are necessary. In case you are a mac user, it would be great if you could play around a bit and then report what worked for you. |
@tobiasdiez I tried both windows and linux files. I followed the readme to setup |
How can I verify if this is working? I tried on wikipedia and can see message till |
This error means that Firefox cannot find JabRef, so in other words the path specified in the |
@tobiasdiez I downloaded this file https://github.com/JabRef/jabref/blob/master/buildres/linux/jabrefHost.py and used this location as path in my |
Mhh, strange. That should have worked. Maybe try to put the |
According to https://stackoverflow.com/a/54187367/873661, there should be more details in Firefox Menu --> Web Developer --> Browser Console |
In #75, we just found out that the problem on linux was a missing executable flag. Could you please try to run |
@tobiasdiez I tried setting permission of I did the following,
Am I missing anything in this? |
😞 That should have worked. I'm running out of ideas what the problem could be. What is printed in Firefox's Browser console? |
@LyzardKing Any idea? |
I don't have a mac, but I can say that the python script should not be moved around, because it mostly uses relative paths if I remember correctly.. |
so the json should point to the python file |
@LyzardKing what do you mean by proper location? Same directory where json file exists? |
The mac version doesn't include the python script yet! I forgot... which version did you download? Just to be sure.. the portable/dmg? |
Yes. Correct |
Ok.. so you can open it like a folder, to see where the executable is |
could you open the python script and try setting JABREF_PATH to |
Updated the python script to this
Above is the two file with updated code. both the files are kept at Am I doing anything wrong here? I s there a way to debug the python file? |
The path in the json file has to be absolute |
and the line in the python script has to be changed to this: |
Updated the path and reinstalled the addon. Still seeing the same error |
just to be sure, if you call that path in a terminal jabref starts, right? |
Yes it starts |
For checking this I am going to this page https://en.wikipedia.org/wiki/Hacker |
Ok, so the path is correct.. and the json has the full path, not just |
The disconnected port message is only shown if the python script is not found by Firefox. If the python script does not find JabRef then a different error message would be shown. However, I have no idea how to find out the reason why Firefox does not find the python script (or is not able to run it). |
@LyzardKing So I tried running the python script using python3. I am seeing this error
|
Because it's a Path object instead. |
Updated the path, now python script is working, Still seeing same error on addon |
json file is at this location Firefox will read it from there right? or it needs to be somewhere else or something needs to be configured for this? |
That seems correct. Are there any errors in the Firefox Menu --> Web Developer --> Browser console? |
Yes.
This is the error I am getting. Looks like it can't open the json file itself |
Do you have two copies of the json file, one in ~/.. and another one in /Library/..? |
@LyzardKing Yes. I do. in |
try removing that and keeop only the one in ~/.. |
Seeing this error now |
Just to make sure, please try the following:
Thanks for your consistent help in this endeavour! |
I tried above steps. Now its reading the json file, but can't execute |
By same error do you mean the |
Yes. |
Is the path in the json file correct? |
Yes. I tried moving the
and this error in addon inspect logs
|
That seems to be an error regarding the DRM implementation (widevine).. |
Anything else we can try to validate this? |
Sorry, I've no idea why this is not working...I think the above error is also not helpful as it's not JabRef related (and probably not even related to the native messaging stuff). 😢 |
@arshadkazmi42 Could you solved the issue in the meantime? Maybe it's working now with the new JabRef 5.0 release? |
@tobiasdiez I will look into it ASAP. I will try it with the latest version of JabRef 5.0 |
@arshadkazmi42 Did you had any luck fixing this? In the meantime, we had some improvements by @LyzardKing concerning the linux scripts, so this might work now?! |
@tobiasdiez havent got a chance to look into this in sometime. will try to have a look at it |
Since there has been no progress in some time, I'll close this PR for now. Please feel free to resolve the conflicts after you tested the latest versions! |
Fixes #76