strongloop / loopback-api-definition

Loopback API Definition
Other
2 stars 4 forks source link

slc loopback:export-api-def does not exit on windows #14

Open b-admike opened 7 years ago

b-admike commented 7 years ago

Bug or feature request

Description of feature (or steps to reproduce if bug)

1) install strongloop globally 2) use slc loopback:app to scaffold a LB application (use notes template) 3) run slc loopback:export-api-def -o <file>.yaml

Link to sample repo to reproduce issue (if bug)

N/A

Expected result

Swagger file is generated and process exits gracefully.

Actual result (if bug)

Swagger file is generated but process hangs (waited up to 10 mins).

Additional information (Node.js version, LoopBack version, etc)

C:\Users\Administrator\sebadm>slc loopback -v
generator-loopback: 1.25.0

C:\Users\Administrator\sebadm>slc -v
strongloop v6.0.3 (node v4.4.5)
├── strong-arc@1.8.9 (3dd25ac)
├── strong-build@2.1.2 (a98f310)
├── strong-deploy@3.1.4 (9b29df0)
├── strong-mesh-models@8.1.0 (62e539b)
├── strong-pm@5.2.3
├── strong-registry@1.1.6 (f8c2339)
├── strong-start@1.3.4 (28c261d)
├─┬ strong-supervisor@3.3.3
│ └── strong-agent@2.1.1 (b51fc45)
├── generator-loopback@1.25.0 (6a0e2c0)
├── node-inspector@0.7.4
└── nodefly-register@0.3.3

C:\Users\Administrator\sebadm>node -v
v4.4.5

C:\Users\Administrator\sebadm>npm -v
4.0.5
sebastianhaas commented 7 years ago

I can confirm the same behavior on OSX 10.12.1.

f0rmiga commented 7 years ago

Same here on OSX 10.12.3, Node.js 7.5.0

lukewendling commented 7 years ago

Same on ubuntu 16... altho after trying this with a new LB app (created just to test this, and it works fine on new app) perhaps the problem is with datasource conf. Originally the api generator worked fine when my models were backed by memory, but once I switched to mongo, it failed. Just a theory...

jdschreck commented 6 years ago

This still seems to be a problem. Is there any hope for addressing it?

anagrath commented 5 years ago

I had this working with lb, but now my lb started generating an empty file and my build and development environment is broken.

slc generates the json, but it does not exit. what a pita