Skip to content

Unable to save plugin settings when printing unprintable characters to the REPL #336

@deaddowney

Description

@deaddowney

I get this scary warning when I try to run any Run Configuration in IntelliJ, not just Clojure things:

"Unable to save plugin settings!

The plugin com.cursiveclojure.cursive failed to save settings and has been disabled. Please restart IntelliJ IDEA"

This appears to be due to the fact that I am putting some unprintable characters to the REPL:

Caused by: org.jdom.IllegalDataException: The data "{:repl-history {:ide [], :local ["(defn create-md-entries [symbol levels]\n  (let [currency (ccy/base-ccy symbol)\n        groups (map-i
.....
session-1)))" "(def order-cancel (qfscriptz.to-qfix/string-to-msg \"8=FIX.4.4^A9=208^A35=F^A34=822^A49=OG
GT_ALGO^A52=20140412-04:23:55^A56=713N^A115=PB456^A116=Client123^A11=1si5ozkx00000h^A37=ordId--0412-04:20:37-8^A41=1si5ozkx00000g^A54=1^A55=EUR/USD^A60=20140412-04:23:55.808^A453=0^A583=-0
412-04:20:37-5^A10=144^A\"\n                                                   session-1))" "(defn limit-2[]\n  (set-on-behalf-2 (session/address-to-session (orders/limit-order) session-1)
))" "(def std-order-ack-scenario\n  (create-scenario\n    limit-1\n    (respond-to execs/ack? limit-2)\n    (respond-to execs/ack? limit-1)))" "(defn limit-1 [msg state]\n  (set-on-behalf-
1 (session/address-to-session (orders/limit-order) session-1)))" "(defn limit-1 []\n  (set-on-behalf-1 (session/address-to-session (orders/limit-order) session-1)))" "(defn limit-2[msg sta
te]\n  (set-on-behalf-2 (session/address-to-session (orders/limit-order) session-1)))" "(defn limit1-response[msg state]\n  (limit-1))" "(def std-order-ack-scenario\n  (create-scenario\n  
  limit-1\n    (respond-to execs/ack? limit-2)\n    (respond-to execs/ack? limit1-response)))" "(def r (run-predefined-scenario std-order-ack-scenario test-state))"], :remote []}}" is not 
legal for a JDOM character content: 0x1 is not a legal XML character.
        at org.jdom.Text.setText(Text.java:188)
        at org.jdom.Text.<init>(Text.java:99)
        at org.jdom.Element.addContent(Element.java:822)
        at cursive.config.ClojureSettingsComponent.getState(ClojureSettingsComponent.java:35)
        at cursive.config.ClojureSettingsComponent.getState(ClojureSettingsComponent.java:18)
        at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(ComponentStoreImpl.java:148)
        at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$600(ComponentStoreImpl.java:43)
        at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.commit(ComponentStoreImpl.java:448)
        at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSave(ComponentStoreImpl.java:105)
        ... 23 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions