You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not opening an issue yet, because I'm typing this on mobile ... here it goes.
I'm using Deno 1.41.1 and when I run deno compile on Linux with target Windows, the command generates a .exe file without issues. But when I copy that file to my windows machine and run it I get a error deno panic something something.
I have tried running it with rust_backtrace="full" but I can't find anything useful in the output. Just a bunch of gibberish.
Things that I have tried:
deno compile on linux without target (to linux binary) and it works on linux
deno compile on linux with windows target and it does not work on windows (panics)
BUT when I clone the repo to my windows machine and run deno compile from there, it generates a .exe file and the executable works as expected.
This signals to me that the issue is somewhere in the cross compilation, and not in the compilation in general.
When I comment out the import for this package and any related code from my application, the cross compilation works.
Hopefuly, someone will find this info useful. I have tried reading the source code for cli/tools/compile.rs but I can't seem to find anything interesting there, also I'm not a rust programmer yet so maybe that is the issue too 😊
I will try to create a reproduction repository and open a issue in the following week.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm not opening an issue yet, because I'm typing this on mobile ... here it goes.
I'm using Deno 1.41.1 and when I run deno compile on Linux with target Windows, the command generates a .exe file without issues. But when I copy that file to my windows machine and run it I get a error deno panic something something.
I have tried running it with rust_backtrace="full" but I can't find anything useful in the output. Just a bunch of gibberish.
Things that I have tried:
deno compile
from there, it generates a .exe file and the executable works as expected.This signals to me that the issue is somewhere in the cross compilation, and not in the compilation in general.
I have even reduced the bug in my source code to a specific NPM package: https://github.com/sindresorhus/ink-big-text
When I comment out the import for this package and any related code from my application, the cross compilation works.
Hopefuly, someone will find this info useful. I have tried reading the source code for cli/tools/compile.rs but I can't seem to find anything interesting there, also I'm not a rust programmer yet so maybe that is the issue too 😊
I will try to create a reproduction repository and open a issue in the following week.
Beta Was this translation helpful? Give feedback.
All reactions