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

Binary not downloaded under ST4 (though plugin uses ST3 paths) #2

Open
nvtkaszpir opened this issue Jun 4, 2021 · 1 comment
Open

Comments

@nvtkaszpir
Copy link

Troubleshooting: lsp-promql

Version

  • LSP: 1.4.0
  • Sublime Text: 4107

Server Test Run

  • exit code: -1
  • output
[Errno 2] No such file or directory: '/home/kaszpir/.cache/sublime-text-3/Cache/LSP-promql/promql-langserver'

Server Configuration

  • command
[
  "/home/kaszpir/.cache/sublime-text-3/Cache/LSP-promql/promql-langserver"
]
  • shell command
/home/kaszpir/.cache/sublime-text-3/Cache/LSP-promql/promql-langserver
  • selector
(source.yaml)|(source.promql)
  • priority_selector
(source.yaml string.unquoted)|(source.promql)
  • init_options
{}
  • settings
{}
  • env
{
  "LANGSERVER_PROMETHEUSURL": "http://127.0.0.1:9090"
}

Active view

  • File name
/home/kaszpir/apl/temporal-metrics/shit.promql
  • Settings
{
  "auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc", 
  "lsp_active": null, 
  "syntax": "Packages/LSP-promql/promql.sublime-syntax"
}
  • base scope
source.promql

Project / Workspace

  • folders
[]
  • is project: False

LSP configuration

{
  "clients": {
    "bashls": {
      "enabled": true
    }, 
    "gopls": {
      "command": [
        "gopls"
      ], 
      "enabled": true, 
      "initializationOptions": {
        "experimentalWorkspaceModule": false
      }, 
      "languageId": "go", 
      "scopes": [
        "source.go"
      ], 
      "syntaxes": [
        "Packages/Go/Go.sublime-syntax", 
        "Packages/GoSublime/syntax/GoSublime-Go-Recommended.sublime-syntax"
      ]
    }, 
    "pyls": {
      "command": [
        "/home/kaszpir/.pyenv/versions/3.7.3/envs/pyls/bin/pyls"
      ], 
      "enabled": true, 
      "languageId": "python", 
      "scopes": [
        "source.python"
      ], 
      "syntaxes": [
        "Packages/Python/Python.sublime-syntax", 
        "Packages/MagicPython/grammars/MagicPython.tmLanguage", 
        "Packages/Djaneiro/Syntaxes/Python Django.tmLanguage"
      ]
    }
  }
}

System PATH

  • /home/kaszpir/bin
  • /usr/local/sbin
  • /usr/local/bin
  • /usr/sbin
  • /usr/bin
  • /sbin
  • /bin
  • /usr/games
  • /usr/local/games
  • /snap/bin
  • /home/kaszpir/.local/bin
@nvtkaszpir
Copy link
Author

nvtkaszpir commented Jun 4, 2021

Binary is not downloaded either.
Solved issue by manually downloading and copying binary to /home/kaszpir/.cache/sublime-text-3/Cache/LSP-promql/promql-langserver and restarting editor.

Troubleshooting: lsp-promql

Version

  • LSP: 1.4.0
  • Sublime Text: 4107

Server Test Run

  • exit code: 0
  • output
No config file provided, configuration is reading from System environment

Server Configuration

  • command
[
  "/home/kaszpir/.cache/sublime-text-3/Cache/LSP-promql/promql-langserver"
]
  • shell command
/home/kaszpir/.cache/sublime-text-3/Cache/LSP-promql/promql-langserver
  • selector
(source.yaml)|(source.promql)
  • priority_selector
(source.yaml string.unquoted)|(source.promql)
  • init_options
{}
  • settings
{}
  • env
{
  "LANGSERVER_PROMETHEUSURL": "http://127.0.0.1:9090"
}

Active view

  • File name
/home/kaszpir/apl/temporal-metrics/shit.promql
  • Settings
{
  "auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc", 
  "lsp_active": null, 
  "syntax": "Packages/LSP-promql/promql.sublime-syntax"
}
  • base scope
source.promql

Project / Workspace

  • folders
[]
  • is project: False

LSP configuration

{
  "clients": {
    "bashls": {
      "enabled": true
    }, 
    "gopls": {
      "command": [
        "gopls"
      ], 
      "enabled": true, 
      "initializationOptions": {
        "experimentalWorkspaceModule": false
      }, 
      "languageId": "go", 
      "scopes": [
        "source.go"
      ], 
      "syntaxes": [
        "Packages/Go/Go.sublime-syntax", 
        "Packages/GoSublime/syntax/GoSublime-Go-Recommended.sublime-syntax"
      ]
    }, 
    "pyls": {
      "command": [
        "/home/kaszpir/.pyenv/versions/3.7.3/envs/pyls/bin/pyls"
      ], 
      "enabled": true, 
      "languageId": "python", 
      "scopes": [
        "source.python"
      ], 
      "syntaxes": [
        "Packages/Python/Python.sublime-syntax", 
        "Packages/MagicPython/grammars/MagicPython.tmLanguage", 
        "Packages/Djaneiro/Syntaxes/Python Django.tmLanguage"
      ]
    }
  }
}

System PATH

  • /home/kaszpir/bin
  • /usr/local/sbin
  • /usr/local/bin
  • /usr/sbin
  • /usr/bin
  • /sbin
  • /bin
  • /usr/games
  • /usr/local/games
  • /snap/bin
  • /home/kaszpir/.local/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant