linux: ensure dynamic library loads report clear error messages #1327

Open
opened 2024-12-31 20:41:06 +00:00 by emidoots · 1 comment
emidoots commented 2024-12-31 20:41:06 +00:00 (Migrated from github.com)

throughout the codebase we use std.DynLib to dynamically load libraries such as Vulkan, Wayland, X11, etc.

The goal of this issue is to ensure that when such libraries are not available and an error would be reported to the user, that it is a clear and well-explained error rather than something obscure like FileNotFound bubbling up the stack.

https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/hexops/mach%24+std.DynLib.open&patternType=keyword&sm=0

throughout the codebase we use `std.DynLib` to dynamically load libraries such as Vulkan, Wayland, X11, etc. The goal of this issue is to ensure that when such libraries are not available and an error would be reported to the user, that it is a clear and well-explained error rather than something obscure like `FileNotFound` bubbling up the stack. https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/hexops/mach%24+std.DynLib.open&patternType=keyword&sm=0
Keerpich commented 2025-02-02 20:14:03 +00:00 (Migrated from github.com)

I think PR #1328 fixed this, right?

I think PR #1328 fixed this, right?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach#1327
No description provided.