A language server generated with the MCLSG (MontiCore Language Server Generator).
- Install NPM and add it to
$PATH
. - Install the SysMLv2 VSCode plugin
- Download the plugin from the paketregistry.
- Install it by opening VS Code, navigating to the extension tab,
Views and further actions
(three dots), and selecting the entry to load the VSIX.
- Start the
LanguageServerCLI
with parameters--socket -port 3000
.- Adapting the run configuration using IntelliJ Idea:
- Navigate to the
LanguageServerCLI
, right-click on the main method > "Run.../Debug..." - Stop the running process again
- Edit the run configuration ("Run" > "Edit Configurations") that was just created
- Add
--socket -port 3000
to the CLI arguments textbox - Apply and run/debug from IntelliJ's main window
- Navigate to the
- Adapting the run configuration using IntelliJ Idea:
- Restart VS Code and select a
sysml
-file. - After a few seconds the editor should display syntax highlighting.
- If the language server functionality fails, restart and/or reopen the sysml files and check the debugging information of the language server.