Closed nhrones closed 1 year ago
Tried to run example cube2.ts and got following error:
error: Uncaught (in promise) TypeError: Cannot convert object to primitive value
return Number(Deno.UnsafePointer.of(v));
^
at Number (<anonymous>)
at Module.toPointer (https://raw.githubusercontent.com/DjDeveloperr/deno_win32/0.2.0/util.ts:7:12)
at DwmSetWindowAttribute (https://win32.deno.dev/0.2.0/Graphics.Dwm:775:106)
at applyMicaAlt (file:///C:/Users/nhron/Desktop/scratch/dwm-main/ext/styles/windows.ts:71:3)
at file:///C:/Users/nhron/Desktop/scratch/dwm-main/examples/cube2.ts:21:1
Example cursor.ts
works as it should.
example events.ts
works as exspected.
The IMGUI examples also work?
mouse-capture also OK?
The opengl example errors with:
\C:\Users\nhron\Desktop\scratch\dwm-main\examples> run opengl
GlfwError: 65543 WGL: Driver does not support OpenGL ES version 3.2
error: Uncaught Error: Failed to create window
throw new Error("Failed to create window");
^
at new WindowGlfw (file:///C:/Users/nhron/Desktop/scratch/dwm-main/src/platform/glfw/window.ts:674:13)
at createWindow (file:///C:/Users/nhron/Desktop/scratch/dwm-main/src/platform/mod.ts:43:10)
at file:///C:/Users/nhron/Desktop/scratch/dwm-main/examples/opengl.ts:4:16
Looks like you have a GUI (IMGUI) example! I'll just park mine and watch yours.
Can't use close button on Windows! Can't close the window from the taskbar menu?
update dwm latest update should have fixed it
I'm getting the following when trying to create a new window on deno 1.31.1 and the latest dwm.
error: Uncaught TypeError: Cannot read properties of undefined (reading 'ops')
const DECODED = Deno.build.os === "darwin" && Deno.build.arch === "aarch64" ? Deno.core.ops.op_base64_decode(BASE64) : new Uint8Array();
^
at https://glfw-binaries.deno.dev/3.4.0-patch1/glfw3_darwin_aarch64.js:2:89
did you try refreshing the cache
I did. I updated Deno to canary and it works, downgrading to stable again gives the same error.
I'll just wait for canary to drop to stable. Oh, just saw that DWM has a new update. I'll try that.
Updating to dwm-latest has fixed all my issues.
Thanks again guys. Your the best!
@jakehl Try running your app with Deno run -Ar
to force a refresh.
Deno 0.31.1 has broken all my apps? I've upgraded skia-canvas to 0.5.2 and that fixed an initial error on start. Now, I get no input from mouse or keyboard on any of my addEventListeners!
There were no other changes other than the Deno upgrade!
I'll download the DWM demos and try those. That may help me track down the issue.