openwork icon indicating copy to clipboard operation
openwork copied to clipboard

[Bug]: The app is usuable

Open krixx646 opened this issue 4 months ago • 4 comments

Summary

I cannot use open work because of this

Image

To Reproduce

I opened my existing open work version and saw this error message.

Image

I manually installed the newest version, followed the prompt, but still had this obstacle

Expected behavior

It should clearly work.

Actual behavior

Not working

Screenshots (optional)

Image

OW version & Desktop info (optional)

No response

Additional context (optional)

No response

krixx646 avatar Jul 25 '26 18:07 krixx646

Same error message, different root cause — worth checking before landing #3134.

I hit ENOENT: no such file or directory, mkdir '\\?' on the boot screen, but on my machine it had nothing to do with Electron returning verbatim \\?\ paths. I dumped every path from the running main process and they were all clean:

call value
app.getPath('home') C:\Users\<me>
app.getPath('appData') C:\Users\<me>\AppData\Roaming
app.getPath('userData') C:\Users\<me>\AppData\Roaming\com.differentai.openwork
os.homedir() C:\Users\<me>

The actual trigger: a registered workspace pointing at a drive that no longer exists (an external drive I had unplugged the day before).

Minimal reproduction, no Electron required:

await fs.mkdir("D:\\youtube", { recursive: true });
// ENOENT: no such file or directory, mkdir '\\?'

krixx646 avatar Jul 25 '26 20:07 krixx646

During boot, OpenWork checks all registered local workspaces and runs fs.mkdir(..., { recursive: true }) on their paths. If a workspace is on an unplugged or missing drive, Node/Bun throws that ENOENT ... mkdir '\\?' error, crashing the app startup. I've wrapped this workspace check in a try/catch block so the app logs a warning and proceeds to boot normally instead of crashing. I'll open a PR with the fix and test coverage.

Pallavikumarimdb avatar Jul 27 '26 12:07 Pallavikumarimdb

Thanks, I will be awaiting the fix, probably on the next update. I would love to contribute to this project. Who do I meet to be joined up?

krixx646 avatar Jul 27 '26 13:07 krixx646

closed due to age, please reopen and tag me if still valid

OmarMcAdam avatar Oct 28 '26 22:10 OmarMcAdam