-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
extension moduel getLocalExtHostExtensionService blocked #541
Comments
@coyzeng Please take your time to describe your problem properly. |
I'm having the same issue after upgrading the monaco-languageclient to v6.5.1. (it builds/bundles successfully though) did some debugging with break points on the front end. It looks like the getLocalExtHostExtensionService call promise in vscode/extensions.js never successfully resolve so the code doesn't hit line 39. (this call is triggered on initServices function under root monaco-languageclient lib, and because of this, the initServices promise never gets resolved.) any insights? @kaisalmen |
@CGNonofr do you have an idea? |
Was |
This should ensure it: |
was doing some debugging, the code I was showing is inside the the above initialize function is this function as @kaisalmen pointed out, it's the bundled version. and then I stepped into it, got the below image, and it stuck at the highlighted line and never got to the next line. |
I am having the same issue as above where getLocalExtHostExtensionService promise does not resolve or reject. |
@OliverwengFiltered and @samirzubi-db are you using @CGNonofr I have the suspicion it is related to this: |
@kaisalmen thanks for the quick response I am not using |
@samirzubi-db or @OliverwengFiltered can you publish a reproducible example / repo somewhere? I can't reproduce what you see. I assume you cannot reproduce this with the examples from this repo or can you? |
|
@coyzeng @OliverwengFiltered @CGNonofr thank you, whatever react does provokes the issue. I don't know why, yet. When I move the init code to your main and comment the react usage the init works as expected: const initMlc = async () => {
await initServices({
debugLogging: true
});
};
console.log(0)
initMlc();
console.log(1)
// const root = ReactDOM.createRoot(document.getElementById('root')!);
// root.render(<SQLEditor/>); Can it be that using |
Wasn't it called too late? (after the editor creation/default services instantiation) |
It works until, I put the render function back in |
Is it Monday again?! I don't see a fundamental difference in our react example. |
The actual problem is not react, but defining |
Sorry, closed this to quickly. @OliverwengFiltered should verify/comment if it is the same issue. |
I had the same issue with the theme being declared directly. Thank you for looking into this @kaisalmen and @coyzeng for the repro! |
I'll add a check in the monaco-vscode-api service initialization to make sure the services aren't already initialized to prevent such confusing issues |
well, that did not solve my issue on my end. I will put together a sample project to reproduce in a few hours. |
Thank you. |
Hi @kaisalmen and @CGNonofr I have uploaded a public repo to reproduce the issue: https://github.com/OliverwengFiltered/monaco-test simply follow the below steps to reproduce.
curious why calling |
|
@CGNonofr ok, so which api method should I use to check if it has been initialized or not ? |
so in this case, @CGNonofr |
I think wasVscodeApiInitialized only returns true if it was initialized using the You just need to wait for the service to be initialized before calling getModels |
that makes sense, @CGNonofr . and I can confirm that calling Thanks, we can close this ticket now. Thanks all. |
Wonderful. 🎉 |
No description provided.
The text was updated successfully, but these errors were encountered: