Skip to content

Instantly share code, notes, and snippets.

@detly
Created October 5, 2021 08:46
Show Gist options
  • Save detly/0e32f20151ece988a4c8ab8ddf305fea to your computer and use it in GitHub Desktop.
Save detly/0e32f20151ece988a4c8ab8ddf305fea to your computer and use it in GitHub Desktop.
LSP diagnostics

Troubleshooting: rust-analyzer

Version

  • LSP: 1.12.0
  • Sublime Text: 4113

Server Test Run

  • exit code: 0
  • output

Server Configuration

  • command
[
  "~/.cargo/bin/rustup", 
  "run", 
  "nightly", 
  "rust-analyzer"
]
  • shell command
/home/jason/.cargo/bin/rustup run nightly rust-analyzer
  • selector

  • priority_selector

  • init_options
{
  "checkOnSave": {
    "command": "clippy", 
    "enable": true
  }, 
  "procMacro": {
    "enable": true
  }
}
  • settings
{}
  • env
{}

Active view

  • File name
/home/jason/Code/ase-firmware/ase-modem/src/modem_source/platform.rs
  • Settings
{
  "auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc", 
  "lsp_active": null, 
  "syntax": "Packages/Rust Enhanced/RustEnhanced.sublime-syntax"
}
  • base scope
source.rust

Project / Workspace

  • folders
[
  "/home/jason/Code/ase-firmware/ase-modem", 
  "/home/jason/Code/ase-firmware/ase-ipc", 
  "/home/jason/Code/ase-firmware/lib/calloop-zmq", 
  "/home/jason/Code/ase-firmware/lib/calloop-subproc"
]
  • is project: True
  • project data:
{
  "folders": [
    {
      "path": "ase-firmware/ase-modem"
    }, 
    {
      "path": "ase-firmware/ase-ipc"
    }, 
    {
      "path": "ase-firmware/lib/calloop-zmq"
    }, 
    {
      "path": "ase-firmware/lib/calloop-subproc"
    }
  ], 
  "settings": {
    "LSP": {
      "log_debug": true, 
      "rust-analyzer": {
        "enabled": true, 
        "initializationOptions": {
          "checkOnSave": {
            "command": "clippy", 
            "enable": true
          }, 
          "procMacro": {
            "enable": true
          }
        }, 
        "settings": {}
      }
    }
  }
}

LSP configuration

{
  "clients": {
    "rust-analyzer": {
      "command": [
        "~/.cargo/bin/rustup", 
        "run", 
        "nightly", 
        "rust-analyzer"
      ], 
      "enabled": true
    }
  }, 
  "log_debug": true, 
  "log_server": [
    "panel"
  ]
}

System PATH

  • /usr/local/sbin
  • /usr/local/bin
  • /usr/sbin
  • /usr/bin
  • /sbin
  • /bin
  • /usr/games
  • /usr/local/games
  • /snap/bin
  • /snap/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment