Skip to content

Commit

Permalink
chore: add troubleshooting guide for intellij products (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
joerdav authored Apr 2, 2024
1 parent d57277f commit 44183ea
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docs/docs/09-commands-and-tools/02-ide-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ For VS Code, use the "Preferences: Open User Settings (JSON)" command in VS Code
```js
{
// More settings...
"templ.log": "/Users/adrian/logs/vscode-templ.txt",
"templ.goplsLog": "/Users/adrian/logs/vscode-gopls.txt",
"templ.log": "/Users/adrian/templ.log",
"templ.goplsLog": "/Users/adrian/gopls.log",
"templ.http": "localhost:7575",
"templ.goplsRPCTrace": true,
"templ.pprof": false,
Expand All @@ -397,6 +397,20 @@ configs.templ = {
}
```

For IntelliJ, configure the plugin settings `.idea/templ.xml`.

```xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="TemplSettings">
<option name="goplsLog" value="$USER_HOME$/gopls.log" />
<option name="goplsRPCTrace" value="true" />
<option name="http" value="localhost:7575" />
<option name="log" value="$USER_HOME$/templ.log" />
</component>
</project>
```

### Make a minimal reproduction, and include the logs

The logs can be quite verbose, since almost every keypress results in additional logging. If you're thinking about submitting an issue, please try and make a minimal reproduction.
Expand Down

0 comments on commit 44183ea

Please sign in to comment.