Debian Codegraph @

test/blackbox-tests/test-cases/pkg/ocamllsp/dev-tool-ocamllsp-outside-dune-project.t

raw
1 Exercise the behaviour of "dune tools exec ocamllsp" when run outside
2 of a dune project.
3
4 This is necessary for dune to act as it normally would outside of a
5 dune workspace.
6 $ unset INSIDE_DUNE
7
8 Run the wrapper command from a temporary directory. With INSIDE_DUNE
9 unset dune would otherwise pick up the dune project itself as the
10 current workspace.
11 $ cd $(mktemp -d)
12
13 $ dune tools exec ocamllsp
14 Error: I cannot find the root of the current workspace/project.
15 If you would like to create a new dune project, you can type:
16
17 dune init project NAME
18
19 Otherwise, please make sure to run dune inside an existing project or
20 workspace. For more information about how dune identifies the root of the
21 current workspace/project, please refer to
22 https://dune.readthedocs.io/en/stable/usage.html#finding-the-root
23 [1]