question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Silently fails when running

See original GitHub issue

Summary

When running ng-lib-schematics the process exits without making any changes to the project. No error is thrown. I’ve also tried running with version 0.2.0 and had the same result.

Steps to reproduce

npm i -g @angular-devkit/core @angular-devkit/schematics-cli ng-lib-schematics
ng new schematics-test --skip-install
schematics ng-lib-schematics:lib-standalone --name lib-test

Output from ng -v

I’ve tried running ng-lib-schematics on a Windows 10 machine both in a normal command line and within WSL (my normal dev environment). Note that below I did run npm i so I could display the versions for the core cli libraries but did not install any libraries before running the schematics command.

   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/

Angular CLI: 1.7.3
Node: 8.9.4
OS: win32 x64
Angular: 5.2.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.7.3
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack: 3.11.0
    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
    
Angular CLI: 1.7.3
Node: 8.8.0
OS: linux x64
Angular: 5.2.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.7.3
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack: 3.11.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
caroso1222commented, Mar 22, 2018

@bniedermeyer thanks for the report and thanks @NetanelBasal for your help troubleshooting it!

0reactions
bniedermeyercommented, Mar 20, 2018

I’ll go ahead and close for now and keep an eye on the devkit issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

command silently failing when running from the root's crontab
I have a script that runs diskutil and since diskutil needs permissions to run I'm running the script from the root's crontab.
Read more >
ThreadPool Tasks Fail Silently (and how to fix it)
Asynchronous tasks issued to the ThreadPool can fail silently. ... Run your loops using all CPUs, download my FREE book to learn how....
Read more >
trying to run powershell script silently failing - Stack Overflow
A script that ran last week this way with output is silently failing this week. I checked the file has read/wright/run checked in...
Read more >
kubectl apply silently fails if `type` is omitted from a condition ...
When attempting to apply an AlertsPolicy configuration that includes an alert condition that omits the condition's type field, running kubectl ...
Read more >
Run Java Tests With Maven Silently (Only Log on Failure)
A better solution would be to run our tests with Maven silent with no log output and only dump the log output once...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found