question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server timeout in github codespaces.

See original GitHub issue

Environment data

dotnet --info output:

.NET SDK (reflecting any global.json):
 Version:   6.0.201
 Commit:    ef40e6aa06

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  20.04
 OS Platform: Linux
 RID:         ubuntu.20.04-x64
 Base Path:   /opt/dotnet/6.0.201/sdk/6.0.201/

Host (useful for support):
  Version: 6.0.3
  Commit:  c24d9a9c91

.NET SDKs installed:
  3.1.417 [/home/codespace/.dotnet/sdk]
  6.0.201 [/home/codespace/.dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.23 [/home/codespace/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.417 [/home/codespace/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.3 [/home/codespace/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.201 [/home/codespace/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.23 [/home/codespace/.dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.417 [/home/codespace/.dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.3 [/home/codespace/.dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.201 [/home/codespace/.dotnet/shared/Microsoft.NETCore.App]

VS Code version: 1.69.2 C# Extension version: 1.25.0

OmniSharp log

Starting OmniSharp server at 8/4/2022, 3:08:58 PM
    Target: /workspaces/Zelda-Core

OmniSharp server started with .NET 6.0.201
.
    Path: /home/codespace/.vscode-remote/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/.omnisharp/1.39.0-net6.0/OmniSharp.dll
    PID: 8013

[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).

Steps to reproduce

  1. Open Command Pallet,
  2. “>omniSharp: Restart OmniSharp”
  3. Observe timeout

Expected behavior

Intellisense to populate with appropriate subclasses and method arguments.

Actual behavior

Auto complete list only populates with snippets and words common in the document.

Additional context

Problem arose suddenly yesterday. I am running in a standard github codespace, and have attempted many tests disabling all other extensions. I have set the timeout period up to 20 minutes, no help.

I have also rebuilt my container and reinstalled visualstudio code. I am unsure of how I can dig deeper into this issue.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
RDavis3000commented, Aug 23, 2022

I had the same issue; seems the problem is that OmniSharp is trying to execute \OmniSharp.dll If you go to settings Omnisharp:path and put the full path to OmniSharp.exe it works. In your example @spy653 it would be : ** /home/codespace/.vscode-remote/extensions/ms-dotnettools.csharp-1.25.0-linux-x64/.omnisharp/1.39.0-net6.0/OmniSharp.exe** So far its working for me (on Windows), no idea how its going to handle an update

0reactions
valididecommented, Dec 7, 2022

Unchecking Omnisharp:Wait For Debugger setting made it work for me.

I can confirm this works but I do not know if it’s intended behavior or not. At the moment it feels like a workaround.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Restricting the idle timeout period - GitHub Docs
By default, codespaces time out after 30 minutes of inactivity. When a codespace times out it is stopped and will no longer incur...
Read more >
Codespaces now have a configurable idle timeout
Codespaces now have a configurable idle timeout ... By default Codespaces time out after 30 minutes of inactivity. We've heard from many users ......
Read more >
Codespaces lifecycle, autosave, and timeout - YouTube
A # GitHub # Codespaces instance have default settings that can change like autosave and timeouts. Find what those are and how to...
Read more >
Language Server Extension Guide - Visual Studio Code
> git clone https://github.com/microsoft/vscode-extension-samples.git > cd vscode-extension-samples/lsp-sample > npm install > npm run compile > code . The ...
Read more >
Paulus Schoutsen on Twitter: "GitHub Codespaces are pure ...
Open it in your **local** VS Code. The backend runs in cloud, the UI local. Start a dev server and ports are automatically...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found