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

Packaging on Windows fails - Keeps Downloading package '.NET Core Debugger (linux / x64)' #1912

Closed
bigabdoul opened this issue Dec 7, 2017 · 7 comments
Assignees
Milestone

Comments

@bigabdoul
Copy link

bigabdoul commented Dec 7, 2017

Environment data

dotnet --info output:

.NET Command Line Tools (2.0.3)

Product Information:
 Version:            2.0.3
 Commit SHA-1 hash:  12f0c7efcc

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.0.3\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.3
  Build    : a9190d4a75f4a982ae4b4fa8d1a24526566c69df
VS Code version:
1.18.1
929bacba01ef658b873545e26034d1a8067445e9

C# Extension version: 1.13.1

Steps to reproduce

Checkout this page: https://github.com/OmniSharp/omnisharp-vscode/wiki/Installing-the-C%23-extension-to-a-computer-without-internet-connectivity at instruction number 9:
node node_modules/gulp/bin/gulp.js package:offline

Expected behavior

Actual behavior

[01:48:14] Using gulpfile ~\Documents\VSCode-Projects\osvscode\omnisharp-vscode\gulpfile.js
[01:48:14] Starting 'clean'...
[01:48:14] Finished 'clean' after 11 ms
[01:48:14] Starting 'package:offline'...
[01:48:14] 'package:offline' errored after 20 ms
[01:48:14] Error: Do not build offline packages on windows. Runtime executables will not be marked executable in *nix packages.
    at doOfflinePackage (C:\Users\hp\Documents\VSCode-Projects\osvscode\omnisharp-vscode\gulpfile.js:100:15)
    at promise.then (C:\Users\hp\Documents\VSCode-Projects\osvscode\omnisharp-vscode\gulpfile.js:146:24)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:169:7)
    at Function.Module.runMain (module.js:607:11)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3

C:\Users\hp\Documents\VSCode-Projects\osvscode\omnisharp-vscode>node node_modules/gulp/bin/gulp.js package:offline
[01:49:03] Using gulpfile ~\Documents\VSCode-Projects\osvscode\omnisharp-vscode\gulpfile.js
[01:49:03] Starting 'clean'...
[01:49:03] Finished 'clean' after 7.27 ms
[01:49:03] Starting 'package:offline'...
Downloading package 'OmniSharp for Windows (.NET 4.6 / x64)' (20728 KB) .................... Done!
Downloading package '.NET Core Debugger (Windows / x64)' (39233 KB) .................... Done!
Installing package 'OmniSharp for Windows (.NET 4.6 / x64)'
Installing package '.NET Core Debugger (Windows / x64)'
Downloading package 'OmniSharp for OSX' (23645 KB) .................... Done!
Downloading package '.NET Core Debugger (macOS / x64)' (43968 KB) .................... Done!
Installing package 'OmniSharp for OSX'
Installing package '.NET Core Debugger (macOS / x64)'
Downloading package 'OmniSharp for Linux (x64)' (23528 KB) .................... Done!
Downloading package '.NET Core Debugger (linux / x64)' (54878 KB) .................... Done!
Installing package 'OmniSharp for Linux (x64)'
Installing package '.NET Core Debugger (linux / x64)'
Skipping package 'OmniSharp for Linux (x64)' (already downloaded).
Downloading package '.NET Core Debugger (linux / x64)' (54878 KB) .................... Done!
Installing package 'OmniSharp for Linux (x64)'
Installing package '.NET Core Debugger (linux / x64)'
Skipping package 'OmniSharp for Linux (x64)' (already downloaded).
Downloading package '.NET Core Debugger (linux / x64)' (54878 KB) .................... Done!
Installing package 'OmniSharp for Linux (x64)'
Installing package '.NET Core Debugger (linux / x64)'
Skipping package 'OmniSharp for Linux (x64)' (already downloaded).
Downloading package '.NET Core Debugger (linux / x64)' (54878 KB) .................... Done!
Installing package 'OmniSharp for Linux (x64)'
Installing package '.NET Core Debugger (linux / x64)'
Skipping package 'OmniSharp for Linux (x64)' (already downloaded).
Downloading package '.NET Core Debugger (linux / x64)' (54878 KB) .................... Done!
Installing package 'OmniSharp for Linux (x64)'
Installing package '.NET Core Debugger (linux / x64)'
Skipping package 'OmniSharp for Linux (x64)' (already downloaded).
Downloading package '.NET Core Debugger (linux / x64)' (54878 KB) .................... Done!
Installing package 'OmniSharp for Linux (x64)'
Installing package '.NET Core Debugger (linux / x64)'
Skipping package 'OmniSharp for Linux (x64)' (already downloaded).
Downloading package '.NET Core Debugger (linux / x64)' (54878 KB) ..^C
@rchande
Copy link

rchande commented Dec 7, 2017

@bigabdoul You're right, this is downloading the same package in a loop. We'll investigate.

@rchande rchande self-assigned this Dec 7, 2017
@rchande
Copy link

rchande commented Dec 18, 2017

@akshita31 You can assign this to yourself if you want to investigate.

@akshita31 akshita31 self-assigned this Dec 19, 2017
@akshita31
Copy link
Contributor

akshita31 commented Dec 19, 2017

dotnet --info :
.NET Command Line Tools (2.0.2)

Product Information:
Version: 2.0.2
Commit SHA-1 hash: a04b4bf512

Runtime Environment:
OS Name: Windows
OS Version: 10.0.16299
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.2\

Microsoft .NET Core Shared Framework Host

Version : 2.0.3
Build : a9190d4a75f4a982ae4b4fa8d1a24526566c69df

VSCode Version : 1.19.0
C# Extension Version : 1.13.1

On my system, the packaging finishes after 7 iterations for the Linux (x64) ,ie, after the line
Downloading package '.NET Core Debugger (linux / x64)' (54878 KB) .................... Done!
is printed 7 times on the Console.
@bigabdoul In your output, I see you terminated it at the 7th iteration. Do you mind checking whether it finishes after 7 iterations or continues after that as well ?

@rchande Could you verify this as well ?

@akshita31
Copy link
Contributor

My guess here is that we are performing packaging for 7 LinuxDistributions (as listed in the gulpfile.js) and so it is downloading the appropriate packages for each of them which is fine.
To avoid confusion, better print statements are required I think. Something like
`Downloading package '.NET Core Debugger (linux / x64) Centos 7 '

Thoughts @rchande ?

@rchande
Copy link

rchande commented Dec 19, 2017

@akshita31 Good idea. Let's do that.

@rchande
Copy link

rchande commented Dec 19, 2017

@akshita31 Yes, I also see 7 downloads and then the script finishes.

@akshita31
Copy link
Contributor

akshita31 commented Feb 7, 2018

This issue has been fixed in the 1.14 milestone. We just released a beta of 1.14 - https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.14.0-beta4. Follow these instructions to install a beta release of C# for VS Code.

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

No branches or pull requests

4 participants