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.1.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.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: godot_wsl_proxy-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ab7af6f185b05c283a4379aac1e03d6c25cec4e5fc7d1779f350c4aeb122ec15
MD5 0df4f4c6debff03ffa15652304d43ca6
BLAKE2b-256 282ae3ad05fdbdbb7e20cb9ccbb428c3dd861d3a11133ff94ac9e16e28342925

See more details on using hashes here.

File details

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

File metadata

  • Download URL: godot_wsl_proxy-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f6ad04fc5e3894b68405988bfb9da1bd9c2a3abe0cf4a3f4be4619e1974930c
MD5 f22f6119ddb3ab15e5aecdef07119886
BLAKE2b-256 9e3a3d84c110fea5ce65c9015cb5704e6ae562a2fefc9aba845d5576be7d089f

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