LSP icon indicating copy to clipboard operation
LSP copied to clipboard

Ignored LSP disabled on project switch

Open psydvl opened this issue 3 years ago • 0 comments

Describe the bug I have LSP-gopls disabled globally

And disabled in project (let's name it project A for this issue)
{
	"folders": [
		...
	],
	"settings": {
		"LSP": {
			"LSP-gopls": {
				"enabled": false,
			},
			"gopls":
			{
				"enabled": false
			},
		},
	},
}
And I have another project [B] with gopls enabled On project switch from B to A gopls start evaluating A files

To Reproduce Steps to reproduce the behavior:

  1. Add big modules enough go project A and any go project B (for A you can use mine https://github.com/psydvl/gotk4-template; gopls will take time with gtk4 bindings)
  2. Disable LSP-gopls globally
  3. Disable LSP-gopls in project A
  4. Enable LSP-gopls in project B
  5. Open project B
  6. Switch to project A
  7. Look into any process utility and see gopls keep working (and processing project A files, ps -p $pid -o cmd shows, that processed mod file is related to project A)

Expected behavior gopls don't even touch project A files

Environment (please complete the following information):

  • OS: [openSUSE Tumbleweed 20220709-0]
  • Sublime Text version: [4126]
  • LSP version: [1.16.3]
  • Language servers used: [gopls, json]

Additional context

Troubleshooting: LSP-gopls

Troubleshooting: LSP-gopls

Version

  • LSP: 1.16.3
  • Sublime Text: 4126

Server Test Run

  • exit code: -1
  • output
neither "command" nor "tcp_port" is provided; cannot start a language server

Server Configuration

  • command
[]
  • shell command

  • selector

  • priority_selector

  • init_options
{}
  • settings
{}
  • env
{}

Active view

  • File name
/home/nixi/work/Projects/Mine/HackerNews/main.go
  • Settings
{
  "auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc", 
  "lsp_active": null, 
  "syntax": "Packages/Go/Go.sublime-syntax"
}
  • base scope
source.go

Project / Workspace

  • folders
[
  "/home/nixi/work/Projects/Mine/GLauncher", 
  "/home/nixi/work/Projects/Mine/gotk4-template", 
  "/home/nixi/work/Projects/Mine/HackerNews"
]
  • is project: True
  • project data:
{
  "folders": [
    {
      "path": "/home/nixi/work/Projects/Mine/GLauncher"
    }, 
    {
      "path": "/home/nixi/work/Projects/Mine/gotk4-template"
    }, 
    {
      "path": "/home/nixi/work/Projects/Mine/HackerNews"
    }
  ], 
  "settings": {
    "LSP": {
      "LSP-gopls": {
        "enabled": false
      }, 
      "gopls": {
        "enabled": false
      }
    }
  }
}

LSP configuration

{
  "clients": {
    "gopls": {
      "env": {
        "PATH": "/home/nixi/go/bin"
      }
    }
  }, 
  "inhibit_snippet_completions": true, 
  "inhibit_word_completions": true, 
  "log_debug": true, 
  "show_references_in_quick_panel": true
}

System PATH

  • /home/nixi/go/bin
  • /home/nixi/miniconda3/condabin
  • /home/nixi/.nix-profile/bin
  • /nix/var/nix/profiles/default/bin
  • /home/nixi/.local/bin
  • /usr/local/bin
  • /usr/bin
  • /bin

psydvl avatar Jul 16 '22 15:07 psydvl