Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.48 KB

README.md

File metadata and controls

31 lines (25 loc) · 1.48 KB

This repository provides an example of use of the vscode extension for the Coreact YADE editor (https://github.com/amblafont/vscode-coreact-yade). Instructions to build a virtual environement (virtualbox or docker) with everything installed are provided in the directory images/ (this is probably the easiest way to test the vscode extension). A video demonstrating the capabalities of the software for distributivelaw.v can be found at https://github.com/amblafont/vscode-yade-example/releases/download/v0.1/demo-yade-example.mp4.

Requirements

  • Coq (tested with v8.18.0)
  • Coq-lsp and coreact-yade vscode extensions
  • Coq hierarchy builder

Here are some installation commands based on opam (https://opam.ocaml.org/doc/Install.html). The above mentioned vscode extensions still need to be installed from vscode.

opam pin add coq 8.18.0
opam repo add coq-released https://coq.inria.fr/opam/released
opam install coq-lsp coq-hierarchy-builder

Instructions

  • make to compile
  • open the directory with vscode
  • open the file example.v or distributivelaw.v

Troubleshootings

Tested on Linux MINT and MacOS.

Note on MacOS

If the coq-lsp extension fails to start on vscode, try the following.

  1. install vscode with homebrew: ``brew install visual-studio-code`
  2. If you use opam, run opam switch and checks the output (it may instruct you to run an eval command to synchronise the shell)
  3. run code . in the same shell, assuming you are in this directory.