Extension fails to start on vscode 1.96.4
Problems started quite recently, but I'm not sure exactly when.
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: illegal argument `name`. must not be falsy
EYi @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: illegal argument `name`. must not be falsy
at Lw.createOutputChannel (file:///vscode/vscode-server/bin/linux-x64/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/out/vs/workbench/api/node/extensionHostProcess.js:121:894)
at Object.createOutputChannel (file:///vscode/vscode-server/bin/linux-x64/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/out/vs/workbench/api/node/extensionHostProcess.js:157:48012)
at o.get outputChannel [as outputChannel] (/home/vscode/.vscode-server/extensions/pgourlain.erlang-1.1.1/out/lib/extension.js:1:156845)
at o.logOutputMessage (/home/vscode/.vscode-server/extensions/pgourlain.erlang-1.1.1/out/lib/extension.js:1:161984)
at o.error (/home/vscode/.vscode-server/extensions/pgourlain.erlang-1.1.1/out/lib/extension.js:1:161889)
at o.start (/home/vscode/.vscode-server/extensions/pgourlain.erlang-1.1.1/out/lib/extension.js:1:165948)
EYi @ console.ts:137
mainThreadExtensionService.ts:78 [pgourlain.erlang]illegal argument `name`. must not be falsy
$onExtensionRuntimeError @ mainThreadExtensionService.ts:78
mainThreadExtensionService.ts:79 Error: illegal argument `name`. must not be falsy
at Lw.createOutputChannel (/vscode/vscode-server/bin/linux-x64/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/out/vs/workbench/api/node/extensionHostProcess.js:121:894)
at Object.createOutputChannel (/vscode/vscode-server/bin/linux-x64/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/out/vs/workbench/api/node/extensionHostProcess.js:157:48012)
at o.get outputChannel [as outputChannel] (vscode-file://vscode-app/home/vscode/.vscode-server/extensions/pgourlain.erlang-1.1.1/out/lib/extension.js:1:156845)
at o.logOutputMessage (vscode-file://vscode-app/home/vscode/.vscode-server/extensions/pgourlain.erlang-1.1.1/out/lib/extension.js:1:161984)
at o.error (vscode-file://vscode-app/home/vscode/.vscode-server/extensions/pgourlain.erlang-1.1.1/out/lib/extension.js:1:161889)
at o.start (vscode-file://vscode-app/home/vscode/.vscode-server/extensions/pgourlain.erlang-1.1.1/out/lib/extension.js:1:165948)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:79
Hi @Mikaka27 ,
Thanks for your reports. can you give more details about your system ?
- it seems linux ?
- vs code version : 1.96.4
Hi, I see the same problem on two computers, first one linux. On this computer I have official vscode installed from snapcraft. Current vscode version is 1.97.2, I tried reverting as far as 1.95, and no difference was observed (which is strange to me, because it worked fine before). Specs:
Operating System: Manjaro Linux KDE Plasma Version: 6.2.5 KDE Frameworks Version: 6.10.0 Qt Version: 6.8.2 Kernel Version: 6.12.12-2-MANJARO (64-bit) Graphics Platform: Wayland Processors: 20 × 13th Gen Intel® Core™ i5-13600K Memory: 31.1 GiB of RAM Graphics Processor: Mesa Intel® Graphics Manufacturer: Micro-Star International Co., Ltd. Product Name: MS-7D96 System Version: 2.0
The second computer is a laptop, specs:
Device name E-5CG20409QJ Processor 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz 2.61 GHz Installed RAM 32.0 GB (31.7 GB usable) Device ID 3C5BC952-9E18-4E07-BE61-78B1F20A10E0 Product ID 00330-80000-00000-AA376 System type 64-bit operating system, x64-based processor Pen and touch No pen or touch input is available for this display Edition Windows 10 Enterprise Version 22H2 Installed on 02/23/2022 OS build 19045.5371 Experience Windows Feature Experience Pack 1000.19060.1000.0
On windows pc, I'm using WSL 2 as development environment, based on Ubuntu 22.04.5 LTS:
emiwaso@E-5CG20409QJ:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
emiwaso@E-5CG20409QJ:~$ uname -a
Linux E-5CG20409QJ 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Steps to reproduce the problem:
- git clone [email protected]:erlang/otp.git
- Open OTP directory in vscode (if on windows, connect current window to wsl2 first)
- When prompted click "Reopen in dev container"
- Disable 'Erlang LS' externsion that is preinstalled by repository
- Install this erlang extension
- Possibly reopen vscode window
- Open any erlang file
- Observe error in developer tools of vscode
I tried some investigation myself, but couldn't make out what is the issue, since all explicit calls to createOutputChannel seem to have name argument set to something.
Thanks for details
I will investigate
Hi @Mikaka27 ,
I didn't reproduce on my macos laptop. I can't use the same docker image, because it doesn't exist for my OS. I try with an alpine, and it's works. So, I made some changes, by using another overload of createOutputChannel(...). Let me know if better for your.
Pierrick
Hi, those changes didn't help, but if you couldn't reproduce maybe the problem isn't in this extension after all. Don't know yet where the problem is.