cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
575 stars 7 forks source link

Run configuration keeps reverting to "use clojure.main" [0.1.63] #1095

Open hlship opened 8 years ago

hlship commented 8 years ago

edit_configuration_settings

I want to run this using nREPL (the first option, generally) and it keeps reverting to the 3rd option whenever I re-run it.

cursive-ide commented 8 years ago

Can you attach the run config xml from .idea/runConfigurations?

hlship commented 8 years ago

I don't seem to have that file (or directory).

cursive-ide commented 8 years ago

This should be in your project root. So it should be $PROJECT_ROOT/.idea/runConfigurations/$SOME_XML_FILE. If you don't have that, make sure that the configuration has been saved, i.e. is not a temporary config.

hlship commented 8 years ago

I converted it to a saved configuration.

<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="REPL for cassandra" type="ClojureREPL" factoryName="Local">
    <setting name="useLein" value="false" />
    <setting name="useClojureMain" value="true" />
    <setting name="leinProjectName" value="eReceipts/log:0.1.0-SNAPSHOT" />
    <module name="cassandra" />
    <setting name="jvmArgs" value="-Xmx1g -Xms1g -XX:NewSize=200m -XX:MaxNewSize=500m -XX:-OmitStackTraceInFa\
stThrow -Djava.awt.headless=true" />
    <setting name="parameters" value="" />
    <setting name="workingDir" value="$PROJECT_DIR$/cassandra" />
    <method />
  </configuration>
</component>

I'm beginning to think that the problem isn't that the values are stored incorrectly, it's that when using the edit option, they UI is initialized incorrectly.