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

[createInstance] extensionManagementService depends on downloadService which is NOT registered. #58097

Closed
mrkanister opened this issue Sep 6, 2018 · 15 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded workbench-cli VS Code Command line issues

Comments

@mrkanister
Copy link

Issue Type: Bug

After upgrading to Visual Studio Code v1.27.1, managing extension via the command line started to show unexpected output on STDERR:

$ code --list-extensions
[createInstance] extensionManagementService depends on downloadService which is NOT registered.
DavidAnson.vscode-markdownlint
ms-vscode.Go
stkb.rewrap
timonwong.shellcheck

Apart from the output, everything else seems to work fine as far as I can see.

VS Code version: Code 1.27.1 (5944e81, 2018-09-06T09:21:47.222Z)
OS version: Linux x64 4.15.0-33-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (4 x 1960)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: unavailable_software
video_encode: unavailable_software
webgl: enabled
webgl2: enabled
Load (avg) 3, 2, 2
Memory (System) 7.41GB (1.73GB free)
Process Argv /usr/share/code/code .
Screen Reader no
VM 0%
Extensions (4)
Extension Author (truncated) Version
vscode-markdownlint Dav 0.20.0
Go ms- 0.6.89
rewrap stk 1.9.1
shellcheck tim 0.5.1
@Evan-Yang
Copy link

The same issue when i use Power Shell code --install-extension C:\Tools\***.vsix on Windows Server 2012 R2

@bdjurkan
Copy link

bdjurkan commented Sep 7, 2018

Same issue.

@brendonjwong
Copy link

I am experiencing the same issue on macOS High Sierra 10.13.4. My VS Code version matches the reporter's version.

@ke4ukz
Copy link

ke4ukz commented Sep 8, 2018

I had this issue (1.27.1 x64 on Windows 10 Pro). It turns out I had a rule blocking outbound connections to various IP addresses in Windows Firewall. I disabled the rule and no longer received this message.

@shizonic
Copy link

shizonic commented Sep 9, 2018

Same here on v. 1.27.1. On version 1.26.1 it didn't happen.

@bmarshalsea
Copy link

Fresh install of 1.2.7.1 (x64) on new machine (SBook2) and it's doing this.
So general issue, not only an upgrade.

@shizonic
Copy link

shizonic commented Sep 9, 2018

@bmarshalsea I think you mean 1.27.1

@vscodebot vscodebot bot removed the new release label Sep 11, 2018
@sandy081 sandy081 added bug Issue identified by VS Code Team member as probable bug workbench-cli VS Code Command line issues labels Sep 11, 2018
@sandy081 sandy081 added this to the September 2018 milestone Sep 11, 2018
@sandy081
Copy link
Member

@jrieken DownloadService is marked as optional and why is the service dependency message shown still?

https://github.com/Microsoft/vscode/blob/6023a8a4b8f439c87bd8770ddca6495777523d08/src/vs/platform/extensionManagement/node/extensionManagementService.ts#L144

@jrieken
Copy link
Member

jrieken commented Sep 11, 2018

@sandy081 This might be caused by a dependency of your dependencies

@sandy081
Copy link
Member

@jrieken There is no other service except ExtensionManagementService depends on IDownloadService. And, it marks the service as optional. When ExtensionManagementService is getting instantiated, IDownloadService is not available.

@jrieken
Copy link
Member

jrieken commented Sep 11, 2018

Hm, yeah. There is something with this. It might well be a false positive

@egorse
Copy link

egorse commented Sep 14, 2018

1.27.2 - same

$ uname -a
Linux PC15326 4.4.0-134-generic #160~14.04.1-Ubuntu SMP Fri Aug 17 11:07:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ code --version
1.27.2
f46c4c469d6e6d8c46f268d1553c5dc4b475840f
x64
$ code --install-extension ms-python.python-2018.7.1.vsix
[createInstance] extensionManagementService depends on downloadService which is NOT registered.
Corrupt ZIP: end of central directory record signature not found

@sandy081
Copy link
Member

@egorse Fix is not available in 1.27.2. It is currently in our insiders and will be available in next stable (1.28) release.

@egorse
Copy link

egorse commented Sep 14, 2018

@sandy081 sorry - misunderstood reference just above my comment

@mrkanister
Copy link
Author

Just wanted to confirm that this issue is fixed in the insiders build.
Thank you, @sandy081 :)

@jrieken jrieken added the verified Verification succeeded label Sep 26, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded workbench-cli VS Code Command line issues
Projects
None yet
Development

No branches or pull requests

10 participants