This is a plugin for the verification tool VerCors. It supports basic functionality such as syntax highlighting for PVL and executing the tool directly from VSCode.
This plugin allows has the following features:
- Select and switch VerCors versions from installed versions
- Execute the vercors command on the currently focused file
- Provides syntax highlighting for
.pvl
files - Provides syntax highlighting for verification language (method contracts) in java & C files
- Provides autocomplete and snippets for verification language
- Graphically selecting CLI options, unique to each open file
- Sources of errors are displayed in the file and in the problem
- Display progress of verification and manually stop
The only requirement is having npm
installed. The plugin is known to work with npm
version 10.2.4. For installing npm
one option is nvm
: https://github.com/nvm-sh/nvm.
Running the plugin can be done from within VS Code or by installing the vsix file.
- Execute
npm install
- Press ▷ to run the launch config (F5).
- Execute
npm install
- Run
npm run build
- Run
code --install-extension vercorsplugin-0.0.1.vsix
To run all tests, go to VS Code's 'Run and Debug' window and select Extension Tests
from the dropdown menu.
The tests require VerCors to be installed in client/src/test/fakeVercors
.
This can also be done using a symlink.