-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
windows: random things #9046
windows: random things #9046
Conversation
src/bun.js/bindings/BunProcess.cpp
Outdated
CString utf8 = filename.utf8(); | ||
HMODULE handle = LoadLibraryA(utf8.data()); | ||
HMODULE handle; | ||
printf("Trying to load %s\n", filename.utf8().data()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
printf
src/bun.js/bindings/BunProcess.cpp
Outdated
LPSTR messageBuffer = nullptr; | ||
size_t size = FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, | ||
NULL, errorId, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&messageBuffer, 0, NULL); | ||
WTF::String msg = makeString("LoadLibrary failed: ", WTF::String(messageBuffer, size)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WTF::String msg = makeString("LoadLibrary failed: ", WTF::String(messageBuffer, size)); | |
WTF::String msg = makeString("LoadLibrary failed: "_s, WTF::StringView(messageBuffer, size)); |
src/bun.js/javascript.zig
Outdated
// With trailing slash | ||
break :name if (dir.len == 1) dir else normalized_specifier[0 .. dir.len + 1]; | ||
// Normalized with trailing slash | ||
break :name bun.path.normalizeStringBuf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we always need to do this extra work?
src/bundler.zig
Outdated
break :name if (dir.len == 1) dir else entry_point[0 .. dir.len + 1]; | ||
// Normalized with trailing slash | ||
break :name bun.path.normalizeStringBuf( | ||
if (dir.len == 1) dir else entry_point[0 .. dir.len + 1], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we always need to do this extra work?
test/cli/install/bun-pm.test.ts
Outdated
@@ -338,8 +338,10 @@ it("should remove all cache", async () => { | |||
import { tmpdir } from "os"; | |||
it("bun pm migrate", async () => { | |||
const test_dir = join(tmpdir(), "contoso-test" + Math.random().toString(36).slice(2)); | |||
console.log("test_dir", test_dir); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you mean to commit this?
test/cli/install/bun-pm.test.ts
Outdated
|
||
cpSync(join(import.meta.dir, "migration/contoso-test"), test_dir, { recursive: true }); | ||
throw new Error("stop"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you mean to commit this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably should've marked this as draft
❌ @paperdave 2 files with test failures on bun-darwin-aarch64:
|
❌ @paperdave 2 files with test failures on linux-x64:
|
❌ @paperdave 3 files with test failures on linux-x64-baseline: |
✅ test failures on bun-darwin-x64 have been resolved. |
❌🪟 @paperdave, there are 40 test regressions on Windows x86_64
|
Thank you |
* random things * fix reliability of loading napi stuff * fix posix build * a
What does this PR do?