MPF Language Server
Language server for MPF config.
Installation (from pypi)
pip3 install mpf-language-server
Usage in IDE
IntelliJ Based IDE
For any IntelliJ based IDE (such as PyCharm, WebStorm or PhpStorm) you need to install a LSP (Language Server Protocol) plugin. Then add mpfls as Raw command for yaml files in “Settings -> Languages & Frameworks -> Language Server Protocol -> Server Definitions”.
VSCode
For vsCode install the extension in vscode-client.
Emacs
Integration with Emacs is accomplished using lsp-mode.
A minimal completion setup can be achieved with the lsp-mode, yaml-mode, company, and lsp-company packages. Company is a general purpose completion package for Emacs. lsp-company is a helper package for using Company with :code`lsp-mode`.
Install
lsp-mode,company,yaml-mode, andlsp-companyby runningM-x package-installand following the instructions.Add the following to your Emacs init file:
;; Register the mpfls server (require 'lsp-mode) (add-hook 'yaml-mode-hook #'lsp) (defvar lsp-language-id-configuration '((yaml-mode . "mpfls"))) (lsp-register-client (make-lsp-client :new-connection (lsp-stdio-connection "mpfls") :major-modes '(yaml-mode) :server-id 'mpfls)) (add-hook 'after-init-hook 'global-company-mode) ;; Configure company-lsp (require 'company-lsp) (push 'company-lsp company-backends)
Installation (from git for local development)
If you want to contribute to this repository:
git checkout https://github.com/missionpinball/mpf-ls/
cd mpf-ls
pip3 install -e .
License
This project is made available under the MIT License. Code is based on the Python language server (also MIT).
Metadata
Release files for mpf-language-server 0.54.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mpf-language-server-0.54.2.tar.gz | 40.1 kB | Without provenance | Details for mpf-language-server-0.54.2.tar.gz |
Release files / mpf-language-server-0.54.2.tar.gz
| Download URL | mpf-language-server-0.54.2.tar.gz |
|---|---|
| Size | 40.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c41ba6c60619162141a4e42c4d4804ff58793cfcc0a2a0b76982f5412fd14d1c
|
|
BLAKE2b-256 checksum How to use checksums |
9ce238d1932fabffd4b585e23505ae81d96780fdfe800fa9b1d0d00a0f5592ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.3
|
Security for mpf-language-server 0.54.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.