Skip to content

haskell-language-server crashed in wsl: "clock_getres: invalid argument" #263

Closed
@Shangyint

Description

@Shangyint

I am getting

The Haskell (haskell) server crashed 5 times in the last 3 minutes. The server will not be restarted.

on a Windows Linux Subsystem (VERSION="18.04.2 LTS (Bionic Beaver)"). The log is as follows

[client] run command: "/home/shangyit/.vscode-server/data/User/globalStorage/haskell.haskell/haskell-language-server-0.2.2-linux-8.8.4 --lsp"
[client] debug command: "/home/shangyit/.vscode-server/data/User/globalStorage/haskell.haskell/haskell-language-server-0.2.2-linux-8.8.4 --lsp"
[client] server cwd: undefined
haskell-language-server version: 0.2.2.0 (GHC: 8.8.4) (PATH: /home/shangyit/.vscode-server/data/User/globalStorage/haskell.haskell/haskell-language-server-0.2.2-linux-8.8.4) (GIT hash: e44f618c11b7978264a94beeee00d1f014867f6d)
Starting (haskell-language-server)LSP server...
  with arguments: LspArguments {argLSP = True, argsCwd = Nothing, argFiles = [], argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsDebugOn = False, argsLogFile = Nothing, argsThreads = 0, argsProjectGhcVersion = False}
  with plugins: [PluginId "eval",PluginId "floskell",PluginId "ghcide",PluginId "ormolu",PluginId "pragmas",PluginId "stylish-haskell"]
  in directory: /home/shangyit/haskell
If you are seeing this in a terminal, you probably should have run ghcide WITHOUT the --lsp option!
 haskell-language-server-0.2.2-linux-8.8.4: clock_getres: invalid argument (Invalid argument)
[Info  - 4:18:43 PM] Connection to server got closed. Server will restart.
haskell-language-server version: 0.2.2.0 (GHC: 8.8.4) (PATH: /home/shangyit/.vscode-server/data/User/globalStorage/haskell.haskell/haskell-language-server-0.2.2-linux-8.8.4) (GIT hash: e44f618c11b7978264a94beeee00d1f014867f6d)
Starting (haskell-language-server)LSP server...
  with arguments: LspArguments {argLSP = True, argsCwd = Nothing, argFiles = [], argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsDebugOn = False, argsLogFile = Nothing, argsThreads = 0, argsProjectGhcVersion = False}
  with plugins: [PluginId "eval",PluginId "floskell",PluginId "ghcide",PluginId "ormolu",PluginId "pragmas",PluginId "stylish-haskell"]
  in directory: /home/shangyit/haskell
If you are seeing this in a terminal, you probably should have run ghcide WITHOUT the --lsp option!
 haskell-language-server-0.2.2-linux-8.8.4: clock_getres: invalid argument (Invalid argument)
[Info  - 4:18:43 PM] Connection to server got closed. Server will restart.
haskell-language-server version: 0.2.2.0 (GHC: 8.8.4) (PATH: /home/shangyit/.vscode-server/data/User/globalStorage/haskell.haskell/haskell-language-server-0.2.2-linux-8.8.4) (GIT hash: e44f618c11b7978264a94beeee00d1f014867f6d)
Starting (haskell-language-server)LSP server...
  with arguments: LspArguments {argLSP = True, argsCwd = Nothing, argFiles = [], argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsDebugOn = False, argsLogFile = Nothing, argsThreads = 0, argsProjectGhcVersion = False}
  with plugins: [PluginId "eval",PluginId "floskell",PluginId "ghcide",PluginId "ormolu",PluginId "pragmas",PluginId "stylish-haskell"]
  in directory: /home/shangyit/haskell
If you are seeing this in a terminal, you probably should have run ghcide WITHOUT the --lsp option!
 haskell-language-server-0.2.2-linux-8.8.4: clock_getres: invalid argument (Invalid argument)
......

Any help is appreciated, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    os: windowstype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions