GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — NodeJS REPL first line strange behaviour · Issue #3194 · nodejs/node

NodeJS REPL first line strange behaviour #3194

New issue
Copy link
New issue
Copy link
Closed
Closed
NodeJS REPL first line strange behaviour#3194
Copy link
Labels
confirmed-bugIssues and PRs for confirmed bugs.replIssues and PRs related to the REPL subsystem.windowsIssues and PRs related to the Windows platform.

Description

@ghost
ghost
opened on Oct 5, 2015

NodeJS 4.1.2, Windows 10 (x64), REPL:

C:\Users\admin\Desktop>node
> 1+1 // also ctrl+c, ctrl+d dont work here
1+1 // wtf?
2
> 1+1 // now works as intended
2

Activity

  1. brendanashworth
    added
    replIssues and PRs related to the REPL subsystem.
    windowsIssues and PRs related to the Windows platform.
    on Oct 6, 2015
  2. silverwind commented on Oct 6, 2015

    @silverwind
    silverwind
    on Oct 6, 2015
    Contributor
    More actions

    Maybe a duplicate of #2996.

  3. silverwind commented on Oct 6, 2015

    @silverwind
    silverwind
    on Oct 6, 2015
    Contributor
    More actions

    Was able to reproduce in a VM and narrow it down a bit:

    • Last good: 3.0.0
    • First bad: 3.1.0
  4. silverwind
    added
    confirmed-bugIssues and PRs for confirmed bugs.
    on Oct 6, 2015
  5. silverwind commented on Oct 6, 2015

    @silverwind
    silverwind
    on Oct 6, 2015
    Contributor
    More actions

    Commit window: v3.0.0...v3.1.0. Nothing obvious there at least.

  6. Fishrock123 commented on Oct 7, 2015

    @Fishrock123
    Fishrock123
    on Oct 7, 2015
    Contributor
    More actions

    Fwiw, crtl+d will not exit the repl if there are still characters on the line. (Side note: it should delete them instead, but it doesn't? Probably another bug. Edit it does, to the RIGHT: https://github.com/nodejs/node/blob/master/lib/readline.js#L701-L708)

    @silverwind possible commits:

    1738c96 (Net interacts with stdio)
    1f12e03...455ec57 (buffers...)

  7. silverwind commented on Oct 7, 2015

    @silverwind
    silverwind
    on Oct 7, 2015
    Contributor
    More actions

    Looks like I was drunk when doing that regression window. Actual window is v2.3.4...v2.4.0. Suspecting bd01603, maybe 59f6b5d. cc: @rlidwka

  8. ghost changed the title [-]Node 4.1 REPL first line strange behaviour[/-] [+]NodeJS REPL first line strange behaviour[/+] on Oct 13, 2015
  9. anseki commented on Oct 17, 2015

    @anseki
    anseki
    on Oct 17, 2015
    More actions

    This may be related to #2504.
    This problem is existing since iojs-v2.3.2.

  10. silverwind commented on Oct 17, 2015

    @silverwind
    silverwind
    on Oct 17, 2015
    Contributor
    More actions

    #2504, like #2996 look to be caused by 8cee8f5.

    My earlier regression test on this issue points to an issue present since 2.4.0.

  11. anseki commented on Oct 17, 2015

    @anseki
    anseki
    on Oct 17, 2015
    More actions

    @silverwind
    I think so too.
    v2.3.2, v4.2.1, etc. have issue #2504.
    In v2.3.1-, no problem:

  12. silverwind commented on Oct 17, 2015

    @silverwind
    silverwind
    on Oct 17, 2015
    Contributor
    More actions

    Let's not confuse ourselves here. I'll try to bisect this (#3194) issue now.

  13. anseki commented on Oct 17, 2015

    @anseki
    anseki
    on Oct 17, 2015
    More actions

    Ok.
    Of course I confirmed that the #3194 (i.e. strange in REPLE) is existing in v2.3.2.

  14. Fishrock123 commented on Oct 19, 2015

    @Fishrock123
    Fishrock123
    on Oct 19, 2015
    Contributor
    More actions

    @silverwind any luck?

  15. silverwind commented on Oct 19, 2015

    @silverwind
    silverwind
    on Oct 19, 2015
    Contributor
    More actions

    The bug only seems to manifest on Windows 10, possibly 8, so no luck on my 7 machine. I'll have to set up a VM, it's going to take a while.

  16. Fishrock123 commented on Oct 19, 2015

    @Fishrock123
    Fishrock123
    on Oct 19, 2015
    Contributor
    More actions

    hmm, maybe it's something related to our handling of stdin on those machines?.

  17. silverwind commented on Nov 10, 2015

    @silverwind
    silverwind
    on Nov 10, 2015
    Contributor
    More actions

    I'm positive this was fixed in af46112, seems I forgot to reference this issue.

  18. silverwind
    closed this as completedon Nov 10, 2015
  19. fatfisz commented on Dec 22, 2015

    @fatfisz
    fatfisz
    on Dec 22, 2015
    More actions

    Is there a chance of this landing in LTS any time soon? This is a bug, not a feature :)

  20. MylesBorins commented on Dec 22, 2015

    @MylesBorins
    MylesBorins
    on Dec 22, 2015
    Contributor
    More actions

    this will be landing with 4.2.4 this week

  21. fatfisz commented on Dec 22, 2015

    @fatfisz
    fatfisz
    on Dec 22, 2015
    More actions

    Good to hear that, thanks.

  22. fatfisz commented on Apr 28, 2016

    @fatfisz
    fatfisz
    on Apr 28, 2016
    More actions

    The exact same thing is happening in node 6 😢

  23. silverwind commented on Apr 28, 2016

    @silverwind
    silverwind
    on Apr 28, 2016
    Contributor
    More actions

    Yes, it regressed again in 5.7.0, the current issue is at #5384.

    Reacted by fatfisz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for confirmed bugs.replIssues and PRs related to the REPL subsystem.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.