Comments (5)
Hello, thank you for reporting this issue. Is it possible that your application is allocating resources running in background (e.g. a connection pool used by a database driver behind a LoopBack datasource) that's blocking the process from exiting? You can verify this assumption by running the following command in your application/project directory:
node -e "require('./')"
If the command hangs, then it's your application what's blocking lb export-api-def
from exiting. This can be fixed e.g. by modifying lb export-api-def
to explicitly kill the process once the spec file was written - would you like to contribute the fix yourself?
from loopback-cli.
Thanks for the feedback, I understand now why I was seeing a hanging redis connection when running the lb export-api-def
command with all debug strings enabled :) (I have a few bits of redis code inside my server)
No problem for making the fix, I'll submit a PR
from loopback-cli.
I've made a PR, but I'm not sure how to test this feature. More specifically, how to generate a app that never finishes loading using the template from loopback-workspace
. Let me know if you have something obvious in mind.
from loopback-cli.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from loopback-cli.
Closing as fixed by strongloop/generator-loopback#316
from loopback-cli.
Related Issues (20)
- New warning about Loopback 4.x get in the way of the output HOT 2
- Can not Use CLI on IBMI P7 HOT 8
- lb relations ignores models from paths other than common/models HOT 6
- Loopback CLI crashing with type error HOT 8
- Can't install loopback cli HOT 24
- Unable to install loopback-cli HOT 2
- Prototype pollution in lodash via strong-docs > dox > jsdoctypeparser > lodash HOT 8
- Unable to generate repository using lb4 command HOT 1
- Publish a new version of loopback-cli using dependency [email protected] HOT 4
- Not able to create model's properties using loopback-cli HOT 4
- lp: Error - no default destination available. error. HOT 1
- Json file formatted as single line HOT 8
- Continuous errors when running dev server on a fresh install HOT 8
- Can't install loopback-cli HOT 6
- terminal hangs when creating a new app HOT 7
- unable to run project . HOT 2
- updating to ES6 HOT 5
- LICENSE file is ambiguous HOT 7
- LB commands take forever (5-10min) HOT 3
- remote-method command does nothing HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loopback-cli.