Closed michaelkonecny closed 7 years ago
I've come across this behaviour once, try the following:
does matlab create any log file?
I set
feature.enableReplacements = false
because I don't need it so I didn't set any value to path.mepr.rep
and path.mepr.var
.
Is that OK?
javaclasspath.txt is correct, the classes get correctly loaded and I can use them, just not via the startup.m
I will look for the log file.
Sorry, I can't find any usable .log file. I tried launching matlab using matlab --logfile "c:\mylogfile.log"
, but that doesn't seem to do anything.
I've also set some real paths to path.mepr.rep
and path.mepr.var
, (even though feature.enableReplacements
is false
), but that didn't change anything.
My instinct would be to think startup.m gets executed before the classes get fully loaded, which might create some mess.
Do you have any ideas?
Could you turn off all features and turn them on one by another, restarting matlab in between?
Even with all features turned off, Matlab won't start.
When I add a 10 sec pause before calling the start method, it works fine:
pause(10);
at.justin.matlab.Start.start('c:\Users\user\Documents\MATLAB\MatlabEditorPlugin\CustomProps.properties', ...
'c:\Users\user\Documents\MATLAB\MatlabEditorPlugin\CustomProps.properties');
5 secs don't work, however.
This workaround is OK for me, but I would say MEP should be able to wait for whatever it needs to wait for by itself.
8cd457a3998cc4e83febdf728ac9144bda3712e2 may resolve this problem (i forgot to upload V1.08)
Now I get this error on startup: (splash screen is still open)
Is the error statement here even remotely true? Do you have any .M file open in MATLAB?
Well, yes, because this thing appears when starting matlab, i.e. when the splash screen is still visible - before the main matlab window gets opened, so I suppose no Editor or CommandWindow instance has been created at that moment.
What happens if you press ok? Does matlab start or does matlab stay on the splash screen? If matlab starts is there an error message? Does it even close the error message?
Lemme try...
The message closes, but it stays on the splash screen.
Argh....
Okay. Thanks, I'll look into it tomorrow. Sorry for the inconvenience.
@me check if local *.Jar is actually the same as the one on github.
No probs, thanks for caring ;)
i think i reproduced the error. it might be that we were lucky because we don't start MEP untill the very end of startup, this i think buys us enough time to start properly
could you try this *.jar MEP_1.10.jar.zip
Thanks. I now get this sequence off errors :) :
i think i might have fixed it, could you try this *jar? MEP_1.10.jar.zip
Yes! 🤝 That works.
good!
Thank you for reporting the bug and for your patience.
Loading MEP via the command line works fine.
However, if i try to put
at.justin.matlab.Start.start('<path>/CustomProps.properties', ... '<path>/DefaultProps.properties');
in startup.m, Matlab won't start, in fact it won't even get past the splash screen.Any ideas on what to do?
I'm using Matlab R2016b and MEP 1.07.