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.

OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout'

See original GitHub issue

Environment data

dotnet --info output: VS Code version:1.16.0 C# Extension version:1.12.1

Steps to reproduce

Expected behavior

Actual behavior

1: vscode set “omnisharp.projectLoadTimeout”: 600, 2: src file patch a test code: … ". current is " + timeoutDuration));//it’s a test patch,file path:CShappPath/out/src/omnisharp/server.js,

    const promise = new Promise((resolve, reject) => {
        let listener;
        // Convert the timeout from the seconds to milliseconds, which is required by setTimeout().
        const timeoutDuration = this._options.projectLoadTimeout * 1000;
        // timeout logic
        const handle = setTimeout(() => {
            if (listener) {
                listener.dispose();
            }
            reject(new Error("OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute). current is " + timeoutDuration));
        }, timeoutDuration);
        // handle started-event
        listener = this.onOmnisharpStart(() => {
            if (listener) {
                listener.dispose();
            }
            clearTimeout(handle);
            resolve();
        });
    });

3:but console log write:[ERROR] Error: OmniSharp server load timed out. Use the ‘omnisharp.projectLoadTimeout’ setting to override the default delay (one minute). current is 10000

4: what ? currrnet is 10000?? Help me please! thanks!!!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DustinCampbellcommented, Sep 8, 2017

Could you copy and paste your settings.json here? I have no idea why this would have a value of 10 since it’s default is 60: https://github.com/OmniSharp/omnisharp-vscode/blob/master/src/omnisharp/options.ts#L48 and https://github.com/OmniSharp/omnisharp-vscode/blob/master/package.json#L362.

0reactions
shashibhanmauryacommented, Jun 21, 2018

I had the same problem with Omnisharp, Where intelligence was not working even with a Console application. I had to install .Net Framework 4, 4.5 and 4.7.2. Hope this will help in case of issue with Omnisharp.

Thanks, Shashi Bhan

Read more comments on GitHub >

github_iconTop Results From Across the Web

[ERROR] Error: OmniSharp server load timed out. #1585
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).
Read more >
MacOS OmniSharp and vscode timeout errror - Stack Overflow
0/bin/mono-sgen64 [ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay ( ...
Read more >
OmniSharp not loading : r/VisualStudioCode - Reddit
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).
Read more >
ひかえん2の日記
... Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).
Read more >
Vscode omnisharp autocomplete isn't working - Unity Forum
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).
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