https://github.com/lark-parser/lark-language-server
Provides a language server for grammars based on Lark
https://github.com/lark-parser/lark-language-server
Last synced: 2 months ago
JSON representation
Provides a language server for grammars based on Lark
- Host: GitHub
- URL: https://github.com/lark-parser/lark-language-server
- Owner: lark-parser
- License: mit
- Created: 2020-09-18T13:59:08.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-14T15:54:16.000Z (about 4 years ago)
- Last Synced: 2025-04-01T13:43:28.084Z (3 months ago)
- Language: Python
- Size: 43 KB
- Stars: 18
- Watchers: 6
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lark-language-server
Provides a language server for grammars based on Lark## Development
Layout:
```
├── lark_language_server # The lang server python package
└── editors # Editor specific extensions
└── vscode # VSCode language server client extension
```Development is against the VSCode extension:
- Open the root directory in VSCode
- Create a local python virtualenv i.e. `python -m venv .venv`
- Install the language server package in development mode `pip install -e .`
- Create `.vscode/settings.json` file and set `python.pythonPath` to point to your python venv `python` executable
- Goto the vscode extension `cd editors/vscode`
- Install the environment `npm install`
- Compile the extension `npm run compile`
- Within the debug view of VSCode, select `Server + Client` and press `F5` or click on the green arrow (Start Debugging).
- This is boot a vscode extension host & the python language server under debuggers.
- Open a `.lark` document, it currently just sends some notifications to the client.