Can't insert citation in text box in LibreOffice
Not sure if this is expected, but I ran into an error using the Zotero connector in LibreOffice today:
Zotero experienced an error updating your document.
An error occurred communicating with Zotero:
com.sun.star.uno.RuntimeException: no text selection
at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:185)
at com.sun.proxy.$Proxy25.getText(Unknown Source)
at org.zotero.integration.ooo.comp.Document.cursorInField(Document.java:267)
at org.zotero.integration.ooo.comp.CommMessage.execute(CommMessage.java:93)
at org.zotero.integration.ooo.comp.CommMessage.getBytes(CommMessage.java:61)
at org.zotero.integration.ooo.comp.CommServer.run(CommServer.java:84)
at java.lang.Thread.run(Thread.java:745)
It happened when I tried to insert a citation into a text box.
My version of LibreOffice:
Version: 5.3.5.2
Build ID: 50d9bf2b0a79cdb85a3814b592608037a682059d
CPU Threads: 2; OS Version: Linux 3.13; UI Render: default; VCL: kde4; Layout Engine: new;
Locale: en-GB (en_GB.UTF-8); Calc: group
My version of Zotero: 5.0.8
Zotero experienced an error updating your document.
An error occurred communicating with Zotero:
com.sun.star.uno.RuntimeException: no text selection
at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method)
at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:185)
at com.sun.proxy.$Proxy25.getText(Unknown Source)
at org.zotero.integration.ooo.comp.Document.cursorInField(Document.java:267)
at org.zotero.integration.ooo.comp.CommMessage.execute(CommMessage.java:93)
at org.zotero.integration.ooo.comp.CommMessage.getBytes(CommMessage.java:61)
at org.zotero.integration.ooo.comp.CommServer.run(CommServer.java:84)
at java.lang.Thread.run(Thread.java:745)
It happened when I tried to insert a citation into a text box.
My version of LibreOffice:
Version: 5.3.5.2
Build ID: 50d9bf2b0a79cdb85a3814b592608037a682059d
CPU Threads: 2; OS Version: Linux 3.13; UI Render: default; VCL: kde4; Layout Engine: new;
Locale: en-GB (en_GB.UTF-8); Calc: group
My version of Zotero: 5.0.8
- Citation style: Journal of Plant Physiology
- Store citations as: ReferenceMarks
- [x] Use MEDLINE journal abbreviations
If I insert in the text body, no problem. If I insert in a text box, same error.
The error appears after setting the document preferences (if it is the first time I try to add the citation, or as soon as I click the "add/edit citation button" (and therefore the "quick format citation" box never appears).
(Edit: @adomasven I can replicate this with Zotero 4 on my Ubuntu setup: open a text box in LO, put cursor in it, try to insert add-on, produces the error above)
Cheers