First we need to make sure that you have a running version of the language server.
- In your
settings.json
add the following to enable language server logging in the OUTPUT tab:
"shopifyLiquid.trace.server": "verbose",
- Restart the language server from the command palette (
cmd+p
>Liquid Theme Check: Restart Server
):
- From the OUTPUT tab, select
Theme Check Language Server
:
- You should see logs, search for
serverInfo
in the logs (cmd+f
+serverInfo
)
-
We expect either the path to your
shopify
CLI or the path totheme-check-language-server
on your machine.If you don't see that, either you did not install it or we can't find it (presumably because of a problem with you
$PATH
environment variable).When that happens, try hardcoding ONE of the two following
settings.json
configuration:"shopifyLiquid.languageServerPath"
the path to thetheme-check-language-server
executable.- OR
"shopifyLiquid.shopifyCLIPath"
, the path to theshopify
CLI.
Note: If you are on Windows, you'd find the path with the where
command, also note that JSON requires escaping backslashes in paths.
Note: If you are on Linux/macOS, you should be able to find it with the which
command