Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add page for LSP troubleshooting #5554

Merged
merged 6 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
- [Sway LSP](./lsp/index.md)
- [Installation](./lsp/installation.md)
- [Features](./lsp/features.md)
- [Troubleshooting](./lsp/troubleshooting.md)
- [Sway Reference](./reference/index.md)
- [Compiler Intrinsics](./reference/compiler_intrinsics.md)
- [Attributes](./reference/attributes.md)
Expand Down
1 change: 1 addition & 0 deletions docs/book/src/lsp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Whether you are a beginner or an experienced Sway developer, this documentation

- [Installation](./installation.md)
- [Features](./features.md)
- [Troubleshooting](./troubleshooting.md)
29 changes: 29 additions & 0 deletions docs/book/src/lsp/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Troubleshooting

First, confirm you are running the most recent version:

```sh
fuelup toolchain install latest
fuelup update
forc-lsp --version
```

Second, confirm that your `$PATH` resolves to the `forc-lsp` binary in `$HOME/.fuelup/bin`.

```sh
which forc-lsp
```

## Server Logs

You can you enable verbose logging of the LSP server.

In VSCode, this is under the setting:

```json
"sway-lsp.trace.server": "verbose"
```

Once enabled, you can find this in the output window under Sway Language Server.

For other editors, see [Installation](./installation.md) for links to documentation.
Loading