Skip to content
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

Sorry, something went wrong activating IntelliCode support for TypeScript/JavaScript #545

Closed
waiaan opened this issue Mar 14, 2024 · 18 comments
Labels
reliability Issues causing IntelliCode features to not work or work inconsistently vscode-intellicode Core "IntelliCode" extension for VSCode

Comments

@waiaan
Copy link

waiaan commented Mar 14, 2024

Product and Version [VS/VSCode]: VSCode 1.87.2
OS Version [macOS/Windows]: Windows10 22H2 19045.4170
IntelliCode Extension Version: 1.3.0
Target Platform or Language [e.g. Node.js]: node 18.19.1

Steps to Reproduce / Scenario:

  1. open js file with VSCode;
  2. it shows tip:
    Sorry, something went wrong activating IntelliCode support for TypeScript/JavaScript. Please check the "VS IntelliCode" output window for details.
  3. output window shows:
    Acquiring model 'intellisense-members' for javascript
    Found bundled model for javascript
    Error while activating TypeScript/JavaScript: {}.
@oeyoews
Copy link

oeyoews commented Mar 14, 2024

It's very strange. 1.3.0 is a new version just released. The last update was a year ago. It's very strange.

@COOLIRON2311
Copy link

Having the same issue

@Rrhapsod
Copy link

Same problem here with 1.3.0 update

@oeyoews
Copy link

oeyoews commented Mar 14, 2024

Just roll back to the previous version for now

@MSK1206
Copy link

MSK1206 commented Mar 14, 2024

Disable Java input suggestions from IntelliCode settings in VsCode.

2024-03-14 23-06-27-668

Then restart VsCode.

@jcrasgado
Copy link

Same issue
Fedora 39 Kernel 6.7.9
IntelliCode 1.3.0

@MSK1206
Copy link

MSK1206 commented Mar 14, 2024

バージョン: 1.87.2 (vscode)
Node.js: 18.17.1
OS: Windows 10 Pro

開いているエディターが残っていると、100%発生します。
VsCodeを終了するときは、すべてのエディターを閉じてからVscodeを閉じれば良さそうです。

@COOLIRON2311
Copy link

COOLIRON2311 commented Mar 14, 2024

バージョン: 1.87.2 (vscode) Node.js: 18.17.1 OS: Windows 10 Pro

開いているエディターが残っていると、100%発生します。 VsCodeを終了するときは、すべてのエディターを閉じてからVscodeを閉じれば良さそうです。

Affirmative. Even switching to another editor tab (with no javascript or typescript) before closing VSCode temporarily resolves the issue.

@MSK1206
Copy link

MSK1206 commented Mar 14, 2024

バージョン: 1.87.2 (vscode) Node.js: 18.17.1 OS: Windows 10 Pro
開いているエディターが残っていると、100%発生します。 VsCodeを終了するときは、すべてのエディターを閉じてからVscodeを閉じれば良さそうです。

肯定的。VSCodeを閉じる前に別のエディタタブ(javascriptやtypescriptなし)に切り替えても、問題は一時的に解決します。

I would like an option to close all editors in setting.json when exiting VsCode. 💡

@geographerwang
Copy link

image

@oeyoews
Copy link

oeyoews commented Mar 15, 2024

install 1.2.x

@vivlimmsft vivlimmsft added vscode-intellicode Core "IntelliCode" extension for VSCode reliability Issues causing IntelliCode features to not work or work inconsistently labels Mar 15, 2024
@vivlimmsft
Copy link
Collaborator

Sorry about that, we're investigating now.

@osobeso
Copy link
Collaborator

osobeso commented Mar 15, 2024

This is a transient issue we are investigating.
It should go away if you restart VSCode or run Reload Window (Ctrl + Shift + P > Reload Window).

We will update the extension with a fix soon.

@waiaan
Copy link
Author

waiaan commented Mar 15, 2024

This is a transient issue we are investigating. It should go away if you restart VSCode or run Reload Window (Ctrl + Shift + P > Reload Window).

We will update the extension with a fix soon.

thanks, but it did not work even after I restarted my computer.

@vivlimmsft
Copy link
Collaborator

vivlimmsft commented Mar 15, 2024

@osobeso and I investigated this together, we found the issue is that in some scenarios, the IntelliCode extension would activate before the built-in extension, vscode.typescript-language-features. We need that to already be active at the time IntelliCode is activating, to be able to add to it the plugin which adds stars to the completion list.

We were able to reproduce this 100% of the time by synthetically forcing IntelliCode to activate on non-JavaScript/TypeScript files (to guarantee vscode.typescript-language-features isn't running), and have a promising fix that we're testing now.

Yesterday's update removed the network call for downloading model files from our web service, and replaced it with models that are bundled with the extension. I'm guessing that, because our extension now activates much more quickly than it did, it's way more likely to hit this issue.

@osobeso
Copy link
Collaborator

osobeso commented Mar 15, 2024

New version 1.3.1 has been released with a fix to the problem @vivlimmsft described above.

@waiaan thank you very much for reaching out and bringing this to our awareness.
Please let me know if the problem goes away for you so that I can close this issue.

Thanks!

@rexhang
Copy link

rexhang commented Mar 15, 2024

v1.3.1 This bug has been fixed

27b0219bc58e6d8ecebe91c6e3627aa

@waiaan
Copy link
Author

waiaan commented Mar 15, 2024

New version 1.3.1 has been released with a fix to the problem @vivlimmsft described above.

@waiaan thank you very much for reaching out and bringing this to our awareness. Please let me know if the problem goes away for you so that I can close this issue.

Thanks!

1.3.1 works fine now, thank you.

@osobeso osobeso closed this as completed Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reliability Issues causing IntelliCode features to not work or work inconsistently vscode-intellicode Core "IntelliCode" extension for VSCode
Projects
None yet
Development

No branches or pull requests

10 participants