facebook / facebook/buck2

How does Python LSP integration work?

Open
#783 3 comments 0 reactions 0 assignees View on GitHub
IDE VS Code Extension
Dominant language
Rust
Stars
4.4k
Forks
394
PR merge metrics
No merged PRs in 30d

Description

My understanding is that Python LSP integration is supposed to be built using the `source-db` subtargets (and accompanying BXL scripts in the prelude), but I cannot find any mentions of "source db" in language server docs.
I'm very unfamiliar with the Python ecosystem, could somebody give me some pointers for where to start looking?

My understanding is that in the Bazel world, this is achieved by making venvs that contain both third-party and local dependencies. Is it similar in the Buck2 world?

I've looked at the git log for `prelude/python/sourcedb/ide.bxl`, but it's not quite enough context I believe.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.