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

cant create vsix offline #2137

Closed
ronmara opened this issue Mar 25, 2018 · 4 comments
Closed

cant create vsix offline #2137

ronmara opened this issue Mar 25, 2018 · 4 comments
Assignees
Milestone

Comments

@ronmara
Copy link

ronmara commented Mar 25, 2018

Environment data

dotnet --info output:
.NET Command Line Tools (2.1.101)

Product Information:
Version: 2.1.101
Commit SHA-1 hash: 6c22303bf0

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

Microsoft .NET Core Shared Framework Host

Version : 2.0.6
Build : 74b1c703813c8910df5b96f304b0f2b78cdf194d

VS Code version: 1.21.1
C# Extension version: 1.15.0-beta3

Steps to reproduce

run
npm i
npm run compile

Open up gulpfile.js which is located at the root level of the repo and on line 95 change:
throw new Error('Do not build offline packages on windows. Runtime executables will not be marked executable in *nix packages.');

to:
console.log('Do not build offline packages on windows. Runtime executables will not be marked executable in *nix packages.');

now run

node node_modules/gulp/bin/gulp.js package:offline

(followed this guide)

Expected behavior

Ill get my offline VSIX package on windows

Actual behavior

getting exception

TypeError: eventStream.post is not a function
at downloadPackage (E:\omnisharp-vscode\out\src\packages.js:141:17)
at doesPackageTestPathExist.then (E:\omnisharp-vscode\out\src\packages.js:132:20)
at <anonymous>

@rchande
Copy link

rchande commented Mar 26, 2018

@akshita31 It looks like this might have gotten regressed with your eventStream changes. Want to take a look?

@akshita31
Copy link
Contributor

Yes, it seems that the downloadPackage function expects an eventStream but we are not providing it any. This part got ignored probably while we made those changes. Will make the necessary changes now.

@rchande
Copy link

rchande commented Mar 26, 2018

Also, we've had a couple of customers report bugs in this area (offline packaging). Should we add an "offline packaging" integration test that runs whatever scripts a user is expected to run a verifies that they work?

@akshita31
Copy link
Contributor

Yes we can, but the offline packaging( similar to the OmnisharpDownloader) calls upon the PackageManager to download some packages from the internet. Mocking the download behaviour is difficult at present, so if we upload some test packages to be downloaded during the integration test then only we can do the complete end to end testing here.

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