Sha256: d2dd576c85342d8028c029fd23e478b698bdcb016a55b144323df5a0004fe420

Contents?: true

Size: 1.67 KB

Versions: 23

Compression:

Stored size: 1.67 KB

Contents

# Troubleshooting

## Issues with Language Server

### Language server erroring out on startup

The following error can cause language server to crash:
```bash
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
/Users/johndoe/.gem/ruby/3.1.2/gems/bundler-2.2.22/lib/bundler/spec_set.rb:91:in `block in materialize': Could not find ruby-prof-0.18.0 in any of the sources (Bundler::GemNotFound)
```

Confirm the version of platformos-check matches the version in the wrapper in `~/bin/platformos-check-language-server`. If it doesn't match the ruby version, run the following from the platformos-check directory:

```bash
chruby 3.1.2 #your `~/bin/platformos-check-language-server` ruby version
bundle install
```

### Language server sends an `initialize()` request to the client and stops

To debug, confirm these steps are included in your local language server startup script:

```bash
export PLATFORMOS_CHECK_DEBUG=true
export PLATFORMOS_CHECK_DEBUG_LOG_FILE="/tmp/platformos-check-debug.log"
touch "$PLATFORMOS_CHECK_DEBUG_LOG_FILE"
```

An example script can be found [here](/CONTRIBUTING.md#run-language-server).

Open `/tmp/platformos-check-debug.log` in your IDE. Check if there are any exceptions being raised by language server.

If there are no exceptions, check if there are any logs that aren't in jsonrpc. The language server and client use stdin and stdout to communicate using jsonrpc. Debugging statements that aren't in a jsonrpc format might trigger unexpected behavior (this includes any logs from language server or echo statements in your language server script).

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
platformos-check-0.4.12 TROUBLESHOOTING.md
platformos-check-0.4.11 TROUBLESHOOTING.md
platformos-check-0.4.10 TROUBLESHOOTING.md
platformos-check-0.4.9 TROUBLESHOOTING.md
platformos-check-0.4.8 TROUBLESHOOTING.md
platformos-check-0.4.7 TROUBLESHOOTING.md
platformos-check-0.4.6 TROUBLESHOOTING.md
platformos-check-0.4.5 TROUBLESHOOTING.md
platformos-check-0.4.4 TROUBLESHOOTING.md
platformos-check-0.4.3 TROUBLESHOOTING.md
platformos-check-0.4.2 TROUBLESHOOTING.md
platformos-check-0.4.1 TROUBLESHOOTING.md
platformos-check-0.4.0 TROUBLESHOOTING.md
platformos-check-0.3.3 TROUBLESHOOTING.md
platformos-check-0.3.1 TROUBLESHOOTING.md
platformos-check-0.3.0 TROUBLESHOOTING.md
platformos-check-0.2.2 TROUBLESHOOTING.md
platformos-check-0.2.1 TROUBLESHOOTING.md
platformos-check-0.2.0 TROUBLESHOOTING.md
platformos-check-0.1.0 TROUBLESHOOTING.md