Skip to content

Ionide server won't start in dev container #2036

Open

Description

Hi, I tried the dev container for my fsharp solution, however, the ionide fsharp server won't start.
Here is my dev container json:

{
	"name": "F# (.NET)",
	"image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-bookworm",
	"customizations": {
		"vscode": {		
			"extensions": [
				"Ionide.Ionide-fsharp",
				"ms-dotnettools.csharp"
			]
		}
	}
}

and here is the log from ionide server:

[22:07:44 DEBUG] [LanguageService] FSAC (NETCORE): '/home/vscode/.vscode-server/extensions/ionide.ionide-fsharp-7.21.0/bin/net8.0/fsautocomplete.dll'
[22:07:44 DEBUG] [LanguageService] F# language server options: % {
  command: '/usr/bin/dotnet',
  args: [
    '/home/vscode/.vscode-server/extensions/ionide.ionide-fsharp-7.21.0/bin/net8.0/fsautocomplete.dll',
    '--project-graph-enabled',
    '--verbose',
    '--state-directory',
    '/home/vscode/.vscode-server/data/User/workspaceStorage/b0a7133744e834e1b5368edf9c31cd4d/Ionide.Ionide-fsharp'
  ],
  options: {
    env: {
      DOTNET_NOLOGO: 'true',
      HOSTNAME: '4fd55fd9a520',
      DOTNET_USE_POLLING_FILE_WATCHER: 'true',
      HOME: '/home/vscode',
      DOTNET_RUNNING_IN_CONTAINER: 'true',
      NVM_SYMLINK_CURRENT: 'true',
      POWERSHELL_DISTRIBUTION_CHANNEL: 'PSDocker-DotnetSDK-Debian-12',
      DOTNET_VERSION: '8.0.7',
      NVM_DIR: '/usr/local/share/nvm',
      DOTNET_GENERATE_ASPNET_CERTIFICATE: 'false',
      DOTNET_SDK_VERSION: '8.0.303',
      PATH: '/vscode/vscode-server/bin/linux-x64/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/bin/remote-cli:/usr/local/share/nvm/current/bin:/usr/local/share/nvm/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.dotnet:/home/vscode/.dotnet/tools:/home/vscode/.local/bin:/home/vscode/.dotnet:/home/vscode/.dotnet/tools',
      VSCODE_AGENT_FOLDER: '/home/vscode/.vscode-server',
      ASPNETCORE_HTTP_PORTS: '8080',
      APP_UID: '1654',
      SHELL: '/bin/bash',
      PWD: '/vscode/vscode-server/bin/linux-x64/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9',
      ASPNET_VERSION: '8.0.7',
      NUGET_XMLDOC_MODE: '',
      VSCODE_CWD: '/vscode/vscode-server/bin/linux-x64/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9',
      VSCODE_NLS_CONFIG: '{"userLocale":"en","osLocale":"en","resolvedLanguage":"en","defaultMessagesFile":"/vscode/vscode-server/bin/linux-x64/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/out/nls.messages.json","locale":"en","availableLanguages":{}}',
      VSCODE_HANDLES_SIGPIPE: 'true',
      VSCODE_AMD_ENTRYPOINT: 'vs/workbench/api/node/extensionHostProcess',
      VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true',
      NVM_RC_VERSION: '',
      REMOTE_CONTAINERS_IPC: '/tmp/vscode-remote-containers-ipc-1f074404-16f0-41c9-8c1c-22a57f38aeff.sock',
      LS_COLORS: '',
      REMOTE_CONTAINERS_SOCKETS: '["/tmp/vscode-ssh-auth-1f074404-16f0-41c9-8c1c-22a57f38aeff.sock","/tmp/.X11-unix/X4","/home/vscode/.gnupg/S.gpg-agent"]',
      USER: 'vscode',
      SHLVL: '1',
      NVM_CD_FLAGS: '',
      PROMPT_DIRTRIM: '4',
      _: '/usr/bin/cat',
      SSH_AUTH_SOCK: '/tmp/vscode-ssh-auth-1f074404-16f0-41c9-8c1c-22a57f38aeff.sock',
      DISPLAY: ':4',
      REMOTE_CONTAINERS_DISPLAY_SOCK: '/tmp/.X11-unix/X4',
      REMOTE_CONTAINERS: 'true',
      BROWSER: '/vscode/vscode-server/bin/linux-x64/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/bin/helpers/browser.sh',
      ELECTRON_RUN_AS_NODE: '1',
      VSCODE_IPC_HOOK_CLI: '/tmp/vscode-ipc-ed27482e-be20-41cd-83db-ccc2f6e39ee0.sock',
      VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME: '/home/vscode',
      APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL: '1',
      VSCODE_L10N_BUNDLE_LOCATION: '',
      DOTNET_GCNoAffinitize: 1,
      DOTNET_GCHeapCount: '2',
      DOTNET_GCConserveMemory: 0,
      DOTNET_GCServer: 1,
      FCS_ParallelReferenceResolution: 'true'
    }
  }
}
[22:07:48 DEBUG] [Main] Activating features
[22:08:10 ERROR] [Main] Error loading projects: Error: Pending response rejected since connection got disposed
[22:08:10 ERROR] [Main] Error loading all projects: Error: Starting server failed

I have checked the path to dotnet \usr\bin\dotnet is correct. Please help, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions