Skip to content

Commit

Permalink
OCaml-LSP+esy: examples must be opened as root
Browse files Browse the repository at this point in the history
Found by @dangdennis during #65.
  • Loading branch information
aantron committed May 31, 2021
1 parent 06167cd commit 2dcc6c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion example/2-middleware/esy.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"ocaml": "4.12.x"
},
"devDependencies": {
// The OCaml Platform for VSCode require ocaml-lsp-server and ocamlfind-secondary to enable intellisense.
"@opam/ocaml-lsp-server": "*",
"@opam/ocamlfind-secondary": "*"
},
Expand Down
9 changes: 9 additions & 0 deletions example/w-esy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ and looks like this:
"@opam/dune": "^2.0",
"ocaml": "4.12.x"
},
"devDependencies": {
"@opam/ocaml-lsp-server": "*",
"@opam/ocamlfind-secondary": "*"
},
"resolutions": {
"@opam/conf-libev": "esy-packages/libev:package.json#0b5eb6685b688649045aceac55dc559f6f21b829"
},
Expand Down Expand Up @@ -72,6 +76,11 @@ Many of the packages you can obtain with esy are hosted in
names are prefixed with `@opam`, like `@opam/dream`. You can search the packages
[here](https://opam.ocaml.org/packages/).

The `devDependencies` field in this example lists packages needed to get
autocompletion working with esy in Visual Studio Code. You must also open the
example in its own workspace, i.e. the root of your Code workspace must be the
example directory.

<br>

In addition to the files you see in this example, `npx esy` also generates a
Expand Down

0 comments on commit 2dcc6c0

Please sign in to comment.