|
| 1 | +# EO Language Server |
| 2 | + |
| 3 | +To enable [EO](https://www.eolang.org/) language support in your IDE, you can integrate the [EO LSP Server](https://github.com/objectionary/eo-lsp-server) by following these steps: |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +## Step 1: Install the Language Server |
| 10 | + |
| 11 | +1. Open an `.eo` file in your project. |
| 12 | +2. Click on **Install LSP Server for EOLANG**: |
| 13 | + |
| 14 | +  |
| 15 | + |
| 16 | +3. This will open the [New Language Server Dialog](../UserDefinedLanguageServer.md#new-language-server-dialog) with `LSP Server for EOLANG` pre-selected: |
| 17 | + |
| 18 | +  |
| 19 | + |
| 20 | +4. Click **OK**. This will create the `LSP Server for EOLANG` definition and start the installation: |
| 21 | + |
| 22 | +  |
| 23 | + |
| 24 | +5. Once the installation completes, the server should start automatically and provide EO language support (diagnostics and semantic tokens.). |
| 25 | + |
| 26 | +### Troubleshooting Installation |
| 27 | + |
| 28 | +If the installation fails, you can customize the installation settings in the **Installer** tab, |
| 29 | +then click on the **Run Installation** hyperlink to reinstall the server: |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +See [Installer descriptor](../UserDefinedLanguageServerTemplate.md#installer-descriptor) for more information. |
| 34 | + |
| 35 | +--- |
| 36 | + |
| 37 | +## Step 2: Install TextMate Bundle |
| 38 | + |
| 39 | +Even if [EO LSP Server](https://github.com/objectionary/eo-lsp-server) can support LSP semantic tokens, You can also set up the EO TextMate bundle manually. |
| 40 | + |
| 41 | +* Clone the [eo-vscode](https://github.com/objectionary/eo-vscode) repository: |
| 42 | + |
| 43 | + ```bash |
| 44 | + git clone https://github.com/objectionary/eo-vscode.git |
| 45 | + |
| 46 | +* Open TextMate Bundles settings |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +* Click the `+` button and select the folder [eo-vscode](https://github.com/objectionary/eo-vscode) folder. |
| 51 | + This folder contains the modified package.json and the TextMate grammar. |
| 52 | + |
| 53 | +Once done, IntelliJ will apply syntax highlighting, bracket matching, and other basic editor features for .eo files. |
0 commit comments