Skip to main content

LSP proxy to work from editor located in WSL and Godot located in Windows seemlessly

Project description

WSL2 to Windows Godot LSP proxy

When using Neovim from WSL and Godot from Windows - the LSP file paths are not compatible

This is the simple TCP proxy that mirrors requests that LSP protocol does (JSON RPC), finds and replaces paths both ways: from linux to windows and from windows to linux

It works as a separate server that LSP Client from your editor should connect to

This project is inspired by godot-wsl-lsp but basically does this proxying on a lower level and thanks to that it works very fast

Installation

It is intended to be installed via pipx:

pipx install godot-wsl-proxy

(Not recommended) But you can do it via just pip and install it globally:

pip install --user godot-wsl-proxy

In future I plan to add this to Mason (for Neovim users)

Neovim LSP Config

You can easily configure this via small customization of nvim-lspconfig

if os.getenv("WSL_DISTRO_NAME") ~= nil then -- Easy way to check if it is WSL or no
    require("lspconfig").gdscript.setup({
        on_attach = on_attach,              -- Your buffer on_attach function
        cmd = { "godot-wsl-proxy", "run" },
    })
else
    require("lspconfig").gdscript.setup({
        on_attach = on_attach, -- Your buffer on_attach function
    })
end

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

godot_wsl_proxy-0.2.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

godot_wsl_proxy-0.2.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file godot_wsl_proxy-0.2.0.tar.gz.

File metadata

  • Download URL: godot_wsl_proxy-0.2.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.7 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for godot_wsl_proxy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4d405e4d0ea98a73c9e76818183e895c2f053cd235f82877e0d866d0a0a0a2bd
MD5 f036c2a7fa5beab0721b617ca111f522
BLAKE2b-256 aa73342fc57dd263ebbc24163587d591303a51993e370bb6901e854e57b84280

See more details on using hashes here.

File details

Details for the file godot_wsl_proxy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: godot_wsl_proxy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.7 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for godot_wsl_proxy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dda6dca6463b27bd53f17dbc5d7bb597a8a9646776e18fd1d268176b975d4b04
MD5 7d5cf8da7d0124d2112669cae4c51566
BLAKE2b-256 80c7b8fbf36cffc609f80ec561ce1d18dd0e127e66fb76217f60e697b4c669ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page