Giter Club home page Giter Club logo

Comments (27)

bajtos avatar bajtos commented on August 26, 2024 1

Hey @pavlospolianidis, the fix has landed on master. Could you please install loopback-generator from github and let me know if your problem is fixed?

npm install -g strongloop/loopback-generator
yo loopback:relation

from generator-loopback.

rmg avatar rmg commented on August 26, 2024

@ppoliani are you running under Cygwin or some other bash-on-Windows?

from generator-loopback.

pavlospolianidis avatar pavlospolianidis commented on August 26, 2024

I'm using cmd.exe on windows

from generator-loopback.

pavlospolianidis avatar pavlospolianidis commented on August 26, 2024

According to this page http://docs.strongloop.com/display/SL/Installation+troubleshooting
Cygwin is not supported on Windows.

from generator-loopback.

bajtos avatar bajtos commented on August 26, 2024

How do you run the generator - via slc loopback:relation or yo loopback:relation?

from generator-loopback.

bajtos avatar bajtos commented on August 26, 2024

In case you are using slc loopback:relation, can you reproduce the problem using yo loopback:relation too? (You need to npm install -g generator-loopback first in order to get yo loopback.)

from generator-loopback.

pavlospolianidis avatar pavlospolianidis commented on August 26, 2024

Tried both options; didn't work

from generator-loopback.

bajtos avatar bajtos commented on August 26, 2024

This is most likely a bug in inquirer (SBoudrias/Inquirer.js#48) that has been fixed last year. Unfortunately we are stuck with an older version of yeoman generator at the moment and this version explicitly uses an older version of Inquirer.

I have started work on upgrading our yeoman-generator dependency, however it is not as straightforward as I would like it - see #72. Once the upgrade is done, the issue should be resolved.

from generator-loopback.

bajtos avatar bajtos commented on August 26, 2024

I made good progress, the patch is almost ready. I need to get yeoman/generator#711 resolved before I can continue.

from generator-loopback.

pavlospolianidis avatar pavlospolianidis commented on August 26, 2024

Good news @bajtos. That was really quick. I hope the other issue is resolved soon.

from generator-loopback.

ppoliani avatar ppoliani commented on August 26, 2024

Hey @bajtos, that's great! no more problems with the arrow keys; that's wonderful.

from generator-loopback.

bajtos avatar bajtos commented on August 26, 2024

Thank you for verifying the fix. I have released it to npmjs.org as v1.6.1.

from generator-loopback.

jamesjjk avatar jamesjjk commented on August 26, 2024

@bajtos Having a problem with arrow keys on our win machines. Running windows 10, latest version of npm 2.13.4, node (io) 2.5, using standard command. Arrow keys work on slc:loopback, slc:model but do not work on relations, acl etc.

from generator-loopback.

bajtos avatar bajtos commented on August 26, 2024

@jamesjjk What version of loopback-generator do you use? Please upgrade to v1.11.0 released on Aug 17th and open a new GH issue if the problem is still present. Can you reproduce the bug using different yeoman generators (see http://yeoman.io/generators/)?

from generator-loopback.

jamesjjk avatar jamesjjk commented on August 26, 2024

@bajtos Not having the problem with other yo generators: version

strongloop v5.0.0 (node v2.5.0)
├── [email protected] (15814c0)
├── [email protected] (9294f54)
├── [email protected] (bee617c)
├── [email protected] (1b220f7)
├── [email protected] (dbaa1a5)
├── [email protected] (f46e58f)
├── [email protected] (b17cbc0)
├─┬ [email protected] (539c0ce)
│ └── [email protected]
├── [email protected] (dec0654)
├── [email protected]
└── [email protected]

from generator-loopback.

bajtos avatar bajtos commented on August 26, 2024

Thanks @jamesjjk.

I am afraid I don't have a Windows10 machine at the moment, thus I cannot troubleshoot this myself now :(

from generator-loopback.

aporlov avatar aporlov commented on August 26, 2024

Quick resolve for Windows 10. Choose "Use legacy console (requires relaunch)" and compatibility mode "Windows 95" in far.exe (Far Manager) shortcut properties.

from generator-loopback.

jannyHou avatar jannyHou commented on August 26, 2024

A workaround: from my experience, git bash(maybe win cmd too) is not working with arrows but node cmd works.

from generator-loopback.

imeninnik avatar imeninnik commented on August 26, 2024

Well, win 10: my experience shows that arrow does not works if we need to select on the very first prompt (like choose not first model in relations). But on next questions arrows works fine.
So you can create a model with any selections as at first you type the name, and you can create relations for first model in a list, as you select it and then arrow works... Both slc and yo

from generator-loopback.

jeysak avatar jeysak commented on August 26, 2024

works with ConEmu http://www.fosshub.com/ConEmu.html

from generator-loopback.

gvillenave avatar gvillenave commented on August 26, 2024

Any update on this?

from generator-loopback.

eXigentCoder avatar eXigentCoder commented on August 26, 2024

Confirmed working on ConEmu, also couldn't get it to work even in git bash or legacy console

from generator-loopback.

jannyHou avatar jannyHou commented on August 26, 2024

For windows users, I am afraid a workaround is still this one: #69 (comment)
@gvillenave

from generator-loopback.

YagoLopez avatar YagoLopez commented on August 26, 2024

f*cking windows. I'm stuck with this stupid issue. Incredibly weird arrow keys work sometimes and sometimes not. Any news or fix for this? I havent installed git bash

from generator-loopback.

YagoLopez avatar YagoLopez commented on August 26, 2024

Here is a temporary solution for Win10. Use this console: http://cmder.net/

from generator-loopback.

jamesobd avatar jamesobd commented on August 26, 2024

Any permanent solution in the works?

from generator-loopback.

stale avatar stale commented on August 26, 2024

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

from generator-loopback.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.