Skip to content

Windows OS Support #68

Open
0 of 1 issue completed
Open

Description

@vitorfloriano

Problem

Okay, I'm gonna be that dev who asks for Windows OS support.

I understand that Windows s*cks, but I'm kinda forced to use it at work.

Oh, and don't forget WSL support, extremely necessary.

Anyway, is that on the roadmap?

Proposed behavior

Install Rune on Windows and have it support WSL2.

Area

Install, upgrade, or licensing

Alternatives considered

No response

Additional context

Since Zed and Warp support Windows, perhaps there's something to learn from them.

Checks

  • I searched existing issues and this is not a duplicate.
  • I would be willing to work on this.

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    enhancement
    on Sep 14, 2026
  2. ernestrc commented on Sep 14, 2026

    @ernestrc
    Contributor

    Thanks for creating this issue. It had to be done! We'll prioritize if there's enough 👍 on this issue.

  3. ejb711 commented on Sep 18, 2026

    @ejb711
    Contributor

    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.

  4. IngwiePhoenix commented on Sep 18, 2026

    @IngwiePhoenix

    Just tried a build on my Windows 10 maschine:

    # 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions