Closed aussig closed 3 weeks ago
When in the heck did this bug get introduced???
Bug confirmed, #2233 created to fix. Thanks for reporting!
Erm, well now I'm confused. Launched EDMC today and went to settings (to look at something else) and I see that the EDSM tab is now showing. Checked the logs and the exception is no longer being thrown.
It seems this will be fixed anytime something tries to set an EDSM config set. 2233 seems to have fixed it, so will mark issue as staged for next release. Will include in 5.11.
Please complete the following information:
Describe the bug After a first install of EDMC on a brand new machine, the EDSM tab in the preferences is failing to load because the core EDSM plugin is throwing an exception.
Note that I have only noticed this while starting to work on my own plugin again on the new machine, so I have run the game a couple of times and set all my controls up. However I have tested that this bug is exhibiting itself with no other plugins installed (I have removed them for testing this bug).
To Reproduce Steps to reproduce the behavior:
cmdr
.File
→Settings
Expected behavior The EDSM tab should show to allow configuration.
Screenshots
Additional context I see in the logs that this is being caused by
len()
being called foredsm_usernames
beforeedsm_usernames
has a value.I had a look at the code - In the code block just above the exception:
Shouldn't the other two lists also be initialised if
not cmdrs
. e.g. something like:The reason I haven't put in a PR for the above is that although I believe this would fix the problem for future clean installs, it doesn't recover my current situation - i.e. on my machine
edsm_cmdrs
is set correctly but the other two lists are not. I don't know whether you consider that important enough to add code to guard against it too?EDMarketConnector-debug.log EDMarketConnector.log