Skip to content

Commit

Permalink
docs: add more troubleshooting steps for LSP
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed Oct 17, 2023
1 parent 4b6a0a7 commit 0e2b42f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/docs/09-commands-and-tools/02-ide-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ Run `templ lsp --help`, you should see help text.

* If you can't run the `templ` command at the command line:
* Check that the `templ` binary is within a directory that's in your path (`echo $PATH` for Linux/Mac/WSL, `$env:path` for Powershell).
* Update your profile to ensure that the change to your path applies to new shells and processes.
* On MacOS / Linux, you may need to update your `~/.zsh_profile`, `~/.bash_profile` or `~/.profile` file.
* On Windows, you will need to use the "Environment Variables" dialog. For WSL, use the Linux config.
* On MacOS / Linux, check that the file is executable and resolve it with `chmod +x /path/to/templ`.
* On MacOS, you might need to go through the steps at https://support.apple.com/en-gb/guide/mac-help/mh40616/mac to enable binaries from an "unidentified developer" to run.
* If you're running VS Code using Windows Subsystem for Linux (WSL), then templ must also be installed within the WSL environment, not just inside your Windows environment.
Expand Down

0 comments on commit 0e2b42f

Please sign in to comment.