Open mcisne4 opened 1 month ago
@mcisne4 I am not seeing this issue when using the latest bun and edgedb. Can you try again?
Thanks!
@corbinu I have been getting things to work by installing Node alongside Bun. Previously I was only running on Bun.
To check that it wasn't my system, I tried it again on a fresh install of Ubuntu 23.10 (in preview mode). I installed Bun and EdgeDB and tried the above steps again.
Bun v1.1.9 | No Node - Everything works as expected
Bun v1.1.10 | No Node - ...forgot to test
Bun v1.1.17 | No Node - The generation commands do not execute completely. No errors are thrown.
Bun v1.1.17 | Node v22.3.0 - Everything works as expected
The bug seems to persist with the latest version of Bun if Node is not present. However, everything works as expected when rolling back to Bun v1.1.9, without the need to also have Node installed.
NOTE: I have not tried the above steps in the latest Ubuntu version, which would be a better target
@mcisne4 I installed bun in a brand new lubuntu vm with no node and can confirm this is still an issue. Thanks!
What version of Bun is running?
1.1.9+bb13798d9
What platform is your computer?
Linux 6.5.0-35-generic x86_64 x86_64
What steps can reproduce the bug?
The latest version of
bun
(v1.1.10) has potential incompatibilities with EdgeDB's TypeScript/JavaScript generators. #1032When using the latest version of
bun
(v1.1.10), thebunx @edgedb/generate queries
and thebunx @edgedb/generate interfaces
scripts do not fully execute. Execution of the scripts starts properly but suddenly terminates after attempting to connect to the database. No errors are emitted, execution just stops. No files are generated as a result.The above issue is resolved if I roll back to the previous version of bun (v1.1.9).
Quick Project Setup:
Bug: Executing the
queries
orinterfaces
command should generate database related TypeScript files.When using
bun
version 1.1.10, execution does not complete and no files are generated. When using version 1.1.9 or older, the files are generated successfully.What is the expected behavior?
Executing the
queries
generation script:Executing the
interfaces
generation script:What do you see instead?
Executing the
queries
generation scriptExecuting the
interfaces
generation script:Additional information
No response