Skip to content

Extension fails to start with "Unexpected function type in substitution" #14022

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

Closed
AaronKutch opened this issue Jan 25, 2023 · 1 comment · Fixed by #14023
Closed

Extension fails to start with "Unexpected function type in substitution" #14022

AaronKutch opened this issue Jan 25, 2023 · 1 comment · Fixed by #14023

Comments

@AaronKutch
Copy link

rust-analyzer version: v0.4.1379

rustc version: rustc 1.68.0-nightly (9e75dddf6 2023-01-15)

As of the latest prerelease, I am getting

2023-01-24 21:59:13.388 [error] Activating extension rust-lang.rust-analyzer failed due to an error:
2023-01-24 21:59:13.389 [error] Error: Unexpected function type in substitution
	at Yr (c:\Users\aaron\.vscode\extensions\rust-lang.rust-analyzer-0.4.1379-win32-x64\out\main.js:41:5460)
	at Yr (c:\Users\aaron\.vscode\extensions\rust-lang.rust-analyzer-0.4.1379-win32-x64\out\main.js:41:5420)
	at wa.getOrCreateClient (c:\Users\aaron\.vscode\extensions\rust-lang.rust-analyzer-0.4.1379-win32-x64\out\main.js:96:2623)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async wa.start (c:\Users\aaron\.vscode\extensions\rust-lang.rust-analyzer-0.4.1379-win32-x64\out\main.js:96:2959)
	at async V_ (c:\Users\aaron\.vscode\extensions\rust-lang.rust-analyzer-0.4.1379-win32-x64\out\main.js:100:1948)
	at async K_ (c:\Users\aaron\.vscode\extensions\rust-lang.rust-analyzer-0.4.1379-win32-x64\out\main.js:100:763)
	at async v.n (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:92:7006)
	at async v.m (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:92:6969)
	at async v.l (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:92:6426)
bors added a commit that referenced this issue Jan 25, 2023
fix: config substitution failing extension activation

Closes #14022

Not sure how a function can appear there, but there is also no reason for us to care about it anyways.
@bors bors closed this as completed in 8bf338f Jan 25, 2023
@Veykril
Copy link
Member

Veykril commented Jan 25, 2023

Kicked off a nightly with the fix, should be available in a 1-2 hours hopefully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants