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
Thanks for creating this issue. It had to be done! We'll prioritize if there's enough 👍 on this issue.
Reacted by KayleaS, Daniel Asfaw, vicnoah, Emilio Alvarez Piñeiro, reignmaker, Advik, Ashish Kumar Uchadiya, Robispurple, Michael Lore, bret-walda and 2 more
Windows: file URIs and local paths in rune-go-sdk (design proposal)
We have rune.exe built from main + #82 + the open Windows slices, and running natively on Windows 11 up to the bootstrap wizard. Most of what was left after compiling came from one place, file URIs.
What breaks
workspaceapi.makeLocalURI builds "file://" + path. D:\work parses as host D: with an invalid port, so Rune exits before handling any flag.
uri.go uses filepath.Clean/Dir/Base on URL paths, which turns / into \ (file://%5CD:...).
Callers use URI.Path() as an OS path. The file scheme resolved /C:/Users/me as its cwd (file_scheme.go, 17 sites), and the watcher joined D:\x\D:\x.
Session flags travel inside syscall.SysProcAttr, which has no Setsid/Setctty on Windows. A Windows client can't ask a remote Linux workspace for a controlling tty.
Proposed SDK API
slashPath/localPath (per OS; identity on unix) map D:\x to and from /D:/x, the path of file:///D:/x.
URI.LocalPath() returns the path as an OS path. Path() stays the URL path.
FileURI(localPath) exports the local-path-to-URI conversion so callers stop concatenating "file://".
URL paths are edited with package path, not filepath. Nothing changes on unix, where they behave the same.
Explicit Setsid/Setctty fields on workspaceapi.Cmd, instead of carrying them in SysProcAttr.
Rune call sites that change
file_scheme.go uses LocalPath() for its cwd and FileURI in makeLocalURI.
The workspace_handler.go watcher uses LocalPath() for local URIs.
The debug adapter and extension root builders (debugshell, langext, extension_rust/pickcmd.go) use FileURI.
vte/workspacerpc set the new Cmd session fields.
This works locally with three small SDK commits, and the SDK's tests pass unchanged on Linux. Since it touches the SDK's public API, we'd like your view on the shape before opening PRs against rune-go-sdk and rune.
# github.com/unstablebuild/tcell/v3
..\..\go\pkg\mod\github.com\unstablebuild\tcell\[email protected]\console_win.go:177:33: cannot use &cScreen{} (value of type *cScreen) as screenImpl value in struct literal: *cScreen does not implement screenImpl (missing method Bell)
..\..\go\pkg\mod\github.com\unstablebuild\tcell\[email protected]\console_win.go:345:10: s.cells.Invalidate undefined (type CellBuffer has no field or method Invalidate)
..\..\go\pkg\mod\github.com\unstablebuild\tcell\[email protected]\console_win.go:357:4: s.evch undefined (type *cScreen has no field or method evch)
..\..\go\pkg\mod\github.com\unstablebuild\tcell\[email protected]\console_win.go:362:9: s.evch undefined (type *cScreen has no field or method evch)
..\..\go\pkg\mod\github.com\unstablebuild\tcell\[email protected]\console_win.go:377:18: s.evch undefined (type *cScreen has no field or method evch)
..\..\go\pkg\mod\github.com\unstablebuild\tcell\[email protected]\console_win.go:393:17: s.evch undefined (type *cScreen has no field or method evch)
..\..\go\pkg\mod\github.com\unstablebuild\tcell\[email protected]\console_win.go:399:11: s.evch undefined (type *cScreen has no field or method evch)
..\..\go\pkg\mod\github.com\unstablebuild\tcell\[email protected]\console_win.go:403:15: s.evch undefined (type *cScreen has no field or method evch)
..\..\go\pkg\mod\github.com\unstablebuild\tcell\[email protected]\console_win.go:762:46: not enough arguments in call to NewEventKey
have (Key, number, ModMask)
want (Key, rune, ModMask, []byte)
..\..\go\pkg\mod\github.com\unstablebuild\tcell\[email protected]\console_win.go:764:55: not enough arguments in call to NewEventKey
have (Key, rune, ModMask)
want (Key, rune, ModMask, []byte)
..\..\go\pkg\mod\github.com\unstablebuild\tcell\[email protected]\console_win.go:764:55: too many errors
# unstable.build/rune/internal/debug
internal\debug\pprof.go:64:28: undefined: syscall.SIGUSR1
# github.com/hajimehoshi/ebiten/v2/internal/ui
..\..\go\pkg\mod\github.com\unstablebuild\ebiten\[email protected]\internal\ui\ui_glfw.go:197:8: undefined: glfw.InitHint
This is on 732a588 with a very naive go build ./cmd/rune - CGO is not enabled.
Activity
ernestrc commentedon Sep 14, 2026
Thanks for creating this issue. It had to be done! We'll prioritize if there's enough 👍 on this issue.
ejb711 commentedon Sep 18, 2026
Windows: file URIs and local paths in rune-go-sdk (design proposal)
We have
rune.exebuilt frommain+ #82 + the open Windows slices, and running natively on Windows 11 up to the bootstrap wizard. Most of what was left after compiling came from one place, file URIs.What breaks
workspaceapi.makeLocalURIbuilds"file://" + path.D:\workparses as hostD:with an invalid port, so Rune exits before handling any flag.uri.gousesfilepath.Clean/Dir/Baseon URL paths, which turns/into\(file://%5CD:...).URI.Path()as an OS path. The file scheme resolved/C:/Users/meas its cwd (file_scheme.go, 17 sites), and the watcher joinedD:\x\D:\x.syscall.SysProcAttr, which has noSetsid/Setcttyon Windows. A Windows client can't ask a remote Linux workspace for a controlling tty.Proposed SDK API
slashPath/localPath(per OS; identity on unix) mapD:\xto and from/D:/x, the path offile:///D:/x.URI.LocalPath()returns the path as an OS path.Path()stays the URL path.FileURI(localPath)exports the local-path-to-URI conversion so callers stop concatenating"file://".path, notfilepath. Nothing changes on unix, where they behave the same.Setsid/Setcttyfields onworkspaceapi.Cmd, instead of carrying them inSysProcAttr.Rune call sites that change
file_scheme.gousesLocalPath()for its cwd andFileURIinmakeLocalURI.workspace_handler.gowatcher usesLocalPath()for local URIs.debugshell,langext,extension_rust/pickcmd.go) useFileURI.vte/workspacerpcset the newCmdsession fields.This works locally with three small SDK commits, and the SDK's tests pass unchanged on Linux. Since it touches the SDK's public API, we'd like your view on the shape before opening PRs against
rune-go-sdkandrune.IngwiePhoenix commentedon Sep 18, 2026
Just tried a build on my Windows 10 maschine:
This is on 732a588 with a very naive
go build ./cmd/rune- CGO is not enabled.Refactor the LSP socketpair into build-tagged files (#107)
Update firstmover to create the extension socket directory before lis…
Fix data directory and extensions command directory paths on Windows (#…
Refactor unix-only signal and dup2 handling into build-tagged files
Fix firstmover lock takeover on Windows
Refactor unix-only signal and dup2 handling into build-tagged files (#…
Fix firstmover lock takeover on Windows (#112)
Add procattr to start and stop process trees on each platform
Add procattr to start and stop process trees on each platform (#108)
Fix PATH setup on Windows and skip the login-shell PATH probe there
Fix PATH setup on Windows and skip the login-shell PATH probe there
Fix PATH setup on Windows and skip the login-shell PATH probe there
Fix building Rune on platforms other than Linux and macOS