Skip to content

Extension issue: Connection to server got closed. Server will not be restarted. #479

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

Closed
panrosk opened this issue Oct 6, 2021 · 5 comments
Labels
os: macOS macOS related issues status: need info type: bug A bug or unintended effect

Comments

@panrosk
Copy link

panrosk commented Oct 6, 2021

  • Issue Type: Bug
  • Extension Name: haskell
  • Extension Version: 1.7.1
  • OS Version: Darwin arm64 20.5.0
  • VS Code version: 1.60.2

⚠️ We have written the needed data into your clipboard. Please paste! ⚠️

{
	"messages": [],
	"activationTimes": {
		"codeLoadingTime": 69,
		"activateCallTime": 21,
		"activateResolvedTime": 0,
		"activationReason": {
			"startup": false,
			"extensionId": {
				"value": "haskell.haskell",
				"_lower": "haskell.haskell"
			},
			"activationEvent": "onLanguage:haskell"
		}
	},
	"runtimeErrors": [
		{
			"name": "Error",
			"message": "Connection to server got closed. Server will not be restarted."
		},
		{
			"name": "Error",
			"message": "Connection to server got closed. Server will not be restarted."
		}
	],
	"runningLocation": 1
}
@jneira
Copy link
Member

jneira commented Oct 6, 2021

@panrosk thanks for rteporting the issue. It seems it was automatically generated and i am curious what tool or compoenent did it, very interesting.
Unfortunately the info is not very helpful, as it only tell us the lsp "server" needed (for haskell extension is the haskell-language-server) is crashing.
It would be great to post the specific log of the extension, as described here, to go deeper and trace the issue.

@jneira jneira changed the title Extension issue Extension issue: Connection to server got closed. Server will not be restarted. Oct 6, 2021
@jneira jneira changed the title Extension issue: Connection to server got closed. Server will not be restarted. Extension issue: Connection to server got closed. Server will not be restarted. Oct 6, 2021
@jneira jneira added the type: bug A bug or unintended effect label Oct 6, 2021
@jneira
Copy link
Member

jneira commented Oct 6, 2021

I've noted you are using OS Version: Darwin arm64 20.5.0. The extension is not able for now to download a suited server executable for that combination of architecture and os. You can check some workarounds here: haskell/haskell-language-server#2008

@jneira
Copy link
Member

jneira commented Oct 22, 2021

Closing as macos arm support is covered in #458 and it is the probable cause of the error. Feel free to reopen if that is no the case

@jneira jneira closed this as completed Oct 22, 2021
@jneira jneira added the os: macOS macOS related issues label Oct 22, 2021
@th3coop
Copy link

th3coop commented Feb 15, 2022

I'm hitting the same error on WSL :

Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 1.6.1.0, Git revision f4022c5bb8530cd306c53b941878244bf27a5d41 (dirty) x86_64 ghc-8.10.7
Current directory: [...redacted...path to project is correct]
Operating system: linux
Arguments: ["--lsp","-d"]
Cradle directory: [...redacted...path to project is correct]
Cradle type: Stack

Tool versions found on the $PATH
cabal:		3.6.2.0
stack:		2.7.3
ghc:		8.10.7


Consulting the cradle to get project GHC version...
Failed to get project GHC version:CradleError {cradleErrorDependencies = [], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Error when calling stack setup --silent","",""]}
[Error - 11:43:57 AM] Connection to server got closed. Server will not be restarted.

@th3coop
Copy link

th3coop commented Feb 15, 2022

Larger logs dump:

2022-02-15 19:43:52.4760000 [client] DEBUG Environment variables:
2022-02-15 19:43:52.4770000 [client] DEBUG   USER: [MY USERNAME]
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_WSL_EXT_LOCATION: /mnt/c/[redacted]/.vscode/extensions/ms-vscode-remote.remote-wsl-0.63.13
2022-02-15 19:43:52.4770000 [client] DEBUG   WT_PROFILE_ID: {07b52e3e-de2c-5db4-bd2d-ba144ed6c273}
2022-02-15 19:43:52.4770000 [client] DEBUG   SHLVL: 1
2022-02-15 19:43:52.4770000 [client] DEBUG   HOME: /home/[MY USERNAME]
2022-02-15 19:43:52.4770000 [client] DEBUG   OLDPWD: /mnt/c/Program Files/Microsoft VS Code
2022-02-15 19:43:52.4770000 [client] DEBUG   WSL_DISTRO_NAME: Ubuntu-20.04
2022-02-15 19:43:52.4770000 [client] DEBUG   LOGNAME: [MY USERNAME]
2022-02-15 19:43:52.4770000 [client] DEBUG   WSL_INTEROP: /run/WSL/150_interop
2022-02-15 19:43:52.4770000 [client] DEBUG   NAME: Code
2022-02-15 19:43:52.4770000 [client] DEBUG   _: /mnt/c/Program Files/Microsoft VS Code/bin/code
2022-02-15 19:43:52.4770000 [client] DEBUG   TERM: xterm-256color
2022-02-15 19:43:52.4770000 [client] DEBUG   PATH:  [[redacted  LET ME KNOW IF YOU WANT ME TO LOOK FOR SOMETHING SPECIFIC IN MY PATH]]
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_AGENT_FOLDER: /home/[MY USERNAME]/.vscode-server
2022-02-15 19:43:52.4770000 [client] DEBUG   WT_SESSION: dedef0b7-98be-4f54-ade4-002843211ed7
2022-02-15 19:43:52.4770000 [client] DEBUG   LANG: C.UTF-8
2022-02-15 19:43:52.4770000 [client] DEBUG   SHELL: /bin/zsh
2022-02-15 19:43:52.4770000 [client] DEBUG   PWD: /mnt/c/Program Files/Microsoft VS Code
2022-02-15 19:43:52.4770000 [client] DEBUG   HOSTTYPE: x86_64
2022-02-15 19:43:52.4770000 [client] DEBUG   WSLENV: ELECTRON_RUN_AS_NODE/w:WT_SESSION::WT_PROFILE_ID
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH: /home/[MY USERNAME]/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/remote/node_modules
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_CWD: /mnt/c/Program Files/Microsoft VS Code
2022-02-15 19:43:52.4770000 [client] DEBUG   ZSH: /home/[MY USERNAME]/.oh-my-zsh
2022-02-15 19:43:52.4770000 [client] DEBUG   PAGER: less
2022-02-15 19:43:52.4770000 [client] DEBUG   LESS: -R
2022-02-15 19:43:52.4770000 [client] DEBUG   LSCOLORS: Gxfxcxdxbxegedabagacad
2022-02-15 19:43:52.4770000 [client] DEBUG   LS_COLORS: rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
2022-02-15 19:43:52.4770000 [client] DEBUG   NVM_DIR: /home/[MY USERNAME]/.nvm
2022-02-15 19:43:52.4770000 [client] DEBUG   NVM_CD_FLAGS: -q
2022-02-15 19:43:52.4770000 [client] DEBUG   NVM_BIN: /home/[MY USERNAME]/.nvm/versions/node/v14.17.6/bin
2022-02-15 19:43:52.4770000 [client] DEBUG   NVM_INC: /home/[MY USERNAME]/.nvm/versions/node/v14.17.6/include/node
2022-02-15 19:43:52.4770000 [client] DEBUG   GOROOT: /usr/local/go-1.16
2022-02-15 19:43:52.4770000 [client] DEBUG   GOPATH: /home/[MY USERNAME]/projects/go
2022-02-15 19:43:52.4770000 [client] DEBUG   GOBIN: /home/[MY USERNAME]/projects/go/bin
2022-02-15 19:43:52.4770000 [client] DEBUG   PERL5LIB: /home/[MY USERNAME]/perl5/lib/perl5
2022-02-15 19:43:52.4770000 [client] DEBUG   PERL_LOCAL_LIB_ROOT: /home/[MY USERNAME]/perl5
2022-02-15 19:43:52.4770000 [client] DEBUG   PERL_MB_OPT: --install_base "/home/[MY USERNAME]/perl5"
2022-02-15 19:43:52.4770000 [client] DEBUG   PERL_MM_OPT: INSTALL_BASE=/home/[MY USERNAME]/perl5
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_LOG_NATIVE: false
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_AMD_ENTRYPOINT: vs/server/remoteExtensionHostProcess
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_PIPE_LOGGING: true
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_VERBOSE_LOGGING: true
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_EXTHOST_WILL_SEND_SOCKET: true
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_HANDLES_UNCAUGHT_ERRORS: true
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_LOG_STACK: false
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_NLS_CONFIG: {"locale":"en","availableLanguages":{}}
2022-02-15 19:43:52.4770000 [client] DEBUG   VSCODE_IPC_HOOK_CLI: /tmp/vscode-ipc-52a970ed-e0e1-4235-87a7-1d7a92656f9b.sock
2022-02-15 19:43:52.4770000 [client] INFO Searching for server executables haskell-language-server-wrapper,haskell-language-server in $PATH
2022-02-15 19:43:52.4770000 [client] INFO $PATH environment variable:  [[redacted  LET ME KNOW IF YOU WANT ME TO LOOK FOR SOMETHING SPECIFIC IN MY PATH]]
2022-02-15 19:43:52.4840000 [client] INFO Found server executable in $PATH: haskell-language-server-wrapper
2022-02-15 19:43:52.4840000 [client] INFO Activating the language server in working dir: /home/[MY USERNAME]/Projects/[REDACTED, IS CORRECT] (the workspace folder)
2022-02-15 19:43:52.4840000 [client] INFO run command: haskell-language-server-wrapper --lsp -d
2022-02-15 19:43:52.4840000 [client] INFO debug command: haskell-language-server-wrapper --lsp -d
2022-02-15 19:43:52.4840000 [client] INFO server environment variables:
2022-02-15 19:43:52.4840000 [client] DEBUG document selector patten: /home/[MY USERNAME]/Projects/[REDACTED, IS CORRECT] /**/*
2022-02-15 19:43:52.4890000 [client] INFO Starting language server
No 'hie.yaml' found. Try to discover the project type!
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 1.6.1.0, Git revision f4022c5bb8530cd306c53b941878244bf27a5d41 (dirty) x86_64 ghc-8.10.7
Current directory: /home/[MY USERNAME]/Projects/[REDACTED, IS CORRECT] 
Operating system: linux
Arguments: ["--lsp","-d"]
Cradle directory: /home/[MY USERNAME]/Projects/[REDACTED, IS CORRECT] 
Cradle type: Stack

Tool versions found on the $PATH
cabal:		3.6.2.0
stack:		2.7.3
ghc:		8.10.7


Consulting the cradle to get project GHC version...
Failed to get project GHC version:CradleError {cradleErrorDependencies = [], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Error when calling stack setup --silent","",""]}
[Info  - 11:43:54 AM] Connection to server got closed. Server will restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: macOS macOS related issues status: need info type: bug A bug or unintended effect
Projects
None yet
Development

No branches or pull requests

3 participants