Skip to content

Add Windows database path regression test#14

Closed
adsharma wants to merge 1 commit intomainfrom
repro-windows-db-path-getcwd
Closed

Add Windows database path regression test#14
adsharma wants to merge 1 commit intomainfrom
repro-windows-db-path-getcwd

Conversation

@adsharma
Copy link
Copy Markdown
Contributor

@adsharma adsharma commented Apr 29, 2026

Related: LadybugDB/ladybug#383

Reproduce the reported regression on CI.

Suspected cause:

ladybug/src/storage/storage_utils.cpp:64

  std::filesystem::path normalizedPath = std::filesystem::absolute(fullPath).lexically_normal();

The core fix should be in StorageUtils::expandPath: avoid std::filesystem::absolute() for already-absolute paths, and ideally detect Windows drive/UNC paths before calling anything that needs cwd.

@adsharma adsharma force-pushed the repro-windows-db-path-getcwd branch from 3a78d6a to 23f1ad3 Compare April 29, 2026 18:08
@adsharma adsharma force-pushed the repro-windows-db-path-getcwd branch from 23f1ad3 to 2486c57 Compare April 29, 2026 18:19
@adsharma
Copy link
Copy Markdown
Contributor Author

The issue exists only in a electron + wasm env. Closing this.

@adsharma adsharma closed this Apr 29, 2026
@adsharma adsharma deleted the repro-windows-db-path-getcwd branch April 29, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant