-
Notifications
You must be signed in to change notification settings - Fork 26
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
store.json (settings file) not created by SaveSettings or SettingsFile RunParms (on Mac) #11
Comments
@digama0 : Added code in setSettings() of
setSettings()
Assuming this is a bug, not intended (must be local to Mac because impossible |
So the problem is that |
Ok. i propose to move the "fix" to SessionStore.
There is a different way to create a PrintStream. Probably
longer -- the doc says this is a convenience constructor
...creates the necessary intermediate OutputStreamWriter <eclipse-javadoc:%E2%98%82=mmj2/%5C/Library%5C/Java%5C/JavaVirtualMachines%5C/jdk1.8.0_181.jdk%5C/Contents%5C/Home%5C/jre%5C/lib%5C/rt.jar%3Cjava.io(PrintStream.class%E2%98%83PrintStream~PrintStream~Ljava.io.File;%E2%98%82java.io.OutputStreamWriter>, which will encode characters using the default charset <eclipse-javadoc:%E2%98%82=mmj2/%5C/Library%5C/Java%5C/JavaVirtualMachines%5C/jdk1.8.0_181.jdk%5C/Contents%5C/Home%5C/jre%5C/lib%5C/rt.jar%3Cjava.io(PrintStream.class%E2%98%83PrintStream~PrintStream~Ljava.io.File;%E2%98%82java.nio.charset.Charset%E2%98%82defaultCharset%E2%98%82> for this instance of the Java virtual machine.
I don't care about the empty settings file because
once they start using settings then they won't stop
and it is irrelevant if it was once empty.
I already put the fix into StoreBoss but it is easy
to move it. Let's take action and move forward.
I will just add it to the rest of my "fixes". About a
dozen modules at this point. I think the Search
works much better now and I've done a little
elsewhere. Just need more testing and I'm working
on setting that up now (it will be manual at first
while I work out the issues ...)
Best,
Mel.
… On Sep 29, 2018, at 18:59, Mario Carneiro ***@***.***> wrote:
So the problem is that new PrintStream doesn't create the file if it doesn't already exist? Surely there is an option for that. I would prefer that this is done in SessionStore#save() since that way we don't create an empty file if we never bother to save settings in the end for whatever reason.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#11 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ApDxkY4cBfKdYVE6z60FBGgnPgFvwNGNks5ugCWRgaJpZM4XAR24>.
|
ok @digama0 -- moved to mmj.pa.SessionStore.java :
(This is not the first time I have seen differences between Windows and Mac even |
generates E-UT-1602, Saving Settings File Failed error message.
The java doc for the code in mmj.pa.SessionStore#save()
indicates that the file will be created, but nooo...
Seems to me that in the SettingsFile code, if the filename is valid but
it does not exist at that time, then create an empty file. Boom.
Problem solved.
The text was updated successfully, but these errors were encountered: