Package settings not saved


I have a few settings that need to be set when starting up. I’m adding dialogs to let the user input this the first time. After that I’m running something like:

atom.config.set('Ensime.JAVA_HOME', filename)

However, next time I do it, the setting is gone. It just doesn’t seem to stick.

I have some vague recollection of similar problems earlier which was helped with some clearing of some file cache somewhere, but I couldn’t find it now.


My bad:

Did some debugging:

“Validation failed at Ensime.JAVA_HOME, [”/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home"] must be a string"

I used:
dialog.showOpenDialog which returned an array