Skip to content

hhu-stups/b-language-extension

Repository files navigation

b-language-extension README

Compiler support for B via ProB. You don't need your own version of ProB. This plugin comes with one packed. You can, however, provide your own ProB command-line version (aka probcli), but be cautious; this can lead to unexpected and untested behavior. In order to change the probcli version you need to make the change in the settings and restart the extension (open and close vscode).

Features

animation

Requirements

  • Java v.8 or higher. By default, Java home is considered to be accessible by typing 'java' in terminal/powershell

Extension Settings

This extension contributes the following settings:

  • prob.probHome: to set the path to ProB. Default ist 'DEFAULT' and means that shipped version of prob ist used
  • prob.wdChecks: to enable/disable WD (Well-Definedness) Checks.
  • prob.strictChecks: to enable/disable stricter Checks.
  • prob.performanceHints: to enable/disable performance-related Hints.
  • prob.debugMode: to enable/disable the server log

Bugs

Server

The language server can be found here https://github.com/hhu-stups/b-language-extension.

Installation on VSCodium

You can also install the plugin in VSCodium by downloading the artefact (b-language-extension-<VERSION>.vsix) and typing codium --install-extension b-language-extension-<VERSION>.vsix

Future plans

  • Quickfix support aka Code Completion
  • Definition provider

Release Notes

2.2.1

  • (no changes yet)

Acknowledgements

  • big thanks to Sebastian Krings for providing his snippets.