Skip to content
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

Fix crash in LibraryInitializer because readdir() was not in scope. #6

Closed
wants to merge 1 commit into from

Conversation

men8th
Copy link

@men8th men8th commented Sep 3, 2021

Fix problem in class LibraryInitializer where function readdir() was defined as a static method. Needs to be either defined as a local function, or called with a fully qualified name, ie logger.internal.LibraryInitializer.readdir(). I chose local function.

Tested with helloWorld.m and test_log.m. Now appears to be working correctly.

Fix problem in class LibraryInitializer where function readdir() was defined as a static method. Needs to be either defined as a local function, or called with a fully qualified name, ie logger.internal.LibraryInitializer.readdir(). I chose local function.

Tested with helloWorld.m and test_log.m. Now appears to be working correctly.
@apjanke
Copy link
Member

apjanke commented Jun 16, 2022

Lot of unrelated-looking changes in XML files here! Could that be cleaned up?

@apjanke apjanke self-assigned this Jun 16, 2022
@apjanke apjanke added the bug Something isn't working label Jun 16, 2022
@apjanke apjanke added this to the 1.4.0 milestone Jun 16, 2022
@apjanke apjanke closed this in f80e15c Jun 16, 2022
@apjanke
Copy link
Member

apjanke commented Jun 16, 2022

Oh, shoot! Good catch. I'm kinda embarrassed that this one snuck out. My only excuse is that this code path is only hit when running under specifically R2020a. I just don't have the time to test on every version.

Fixed in f80e15c. Sorry for doing a commit myself and not giving you committer credit, but this is bad enough I wanted to get it fixed right away, and wanted do go with a private function instead of a local function.

Sorry for the slow reply here! My Watch settings for this repo weren't set right, so I wasn't getting notifications of new Issues and PRs. I've fixed that, and will see stuff sooner in the future.

@apjanke
Copy link
Member

apjanke commented Jun 16, 2022

This went out in v1.3.1: https://github.com/janklab/SLF4M/releases/tag/v1.3.1

Wasn't planning on rolling a release for this issue because the bug came in after 1.3.0, but it got accidentally picked up by the 1.3.1 I cut to get out documentation about SLF4M's breakage under Matlab R2021b+; see #7.

@men8th
Copy link
Author

men8th commented Jun 22, 2022 via email

@apjanke
Copy link
Member

apjanke commented Jun 22, 2022

You're welcome. Thanks for being a user! That's why I do this in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants