Closed 1dancook closed 1 month ago
I now see this is in #21 but the issue is closed.
If you want to check all files in a project, use the --main=<...>
argument instead of path.
Aye, indeed that works. My apologies for not trying it.
I think the wording in the readme and the cli tool led me to believe that --main
will just use --path
:
Different main file can be used
- defaults to path
- --main=<file>
Perhaps: "To check a main project file that has included sub-files, use --main=
I will close this.
The title summarizes it, but the below expands: b.typ contains errors but it is not evaluated. (Evaluating it on it's own does work).
To reproduce:
1. Create two files:
File: a.typ
File: b.typ
2. Run:
typst-languagetool check --host=http://localhost --port=8081 -p a.typ
Output:
Impact and importance
This is particularly impactful for a document structure that is broadly defined in one file. The actual content will not be evaluated. I.e.
main.typ