Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elm-upgrade hangs and doesn't continue #90

Open
andys8 opened this issue May 12, 2020 · 7 comments
Open

elm-upgrade hangs and doesn't continue #90

andys8 opened this issue May 12, 2020 · 7 comments

Comments

@andys8
Copy link

andys8 commented May 12, 2020

  1. git clone https://github.com/jhrcek/graph-editor
  2. cd graph-editor
  3. elm-upgrade or npx elm-upgrade
elm-upgrade
INFO: Found elm at /home/andreas/.nix-profile/bin/elm
INFO: Found elm 0.19.1
INFO: Found elm-format at /home/andreas/.nix-profile/bin/elm-format
INFO: Found elm-format 0.8.3

***
*** ./elm.json already exists.
*** It looks like this project has already been upgraded to Elm 0.19.
*** Would you like me to upgrade your project's dependencies?
***

[Y/n]: Y

INFO: Updating elm-version to 0.19.1
INFO: Installing latest version of elm/browser
Here is my plan:

  Add:
    elm/browser    1.0.2

Would you like me to update your elm.json accordingly? [Y/n]:

Can't press a button or continue. I hope this issue is reproducible.

System

Tested in alacritty and st terminal
Tested with npx and with npm install -g
elm-upgrade 0.19.8

 OS: Manjaro 20.0 Lysia
 Kernel: x86_64 Linux 5.4.35-1-MANJARO
 Shell: fish 3.1.1
@bisgardo
Copy link

+1 experiencing exact same issue on PopOS 20.04/bash:

$ npx elm-upgrade@latest
npx: installed 57 in 1.396s
INFO: Found elm at node_modules/.bin/elm
INFO: Found elm 0.19.1
INFO: Found elm-format at /home/mo/.nvm/versions/node/v14.4.0/bin/elm-format
INFO: Found elm-format 0.8.3

***
*** ./elm.json already exists.
*** It looks like this project has already been upgraded to Elm 0.19.
*** Would you like me to upgrade your project's dependencies?
***

[Y/n]: y

INFO: Installing latest version of icidasset/elm-material-icons
Here is my plan:
  
  Add:
    ianmackenzie/elm-interval          2.0.0
    ianmackenzie/elm-units             2.6.0
    ianmackenzie/elm-units-interval    1.1.0
    icidasset/elm-material-icons       4.0.0

Would you like me to update your elm.json accordingly? [Y/n]: 

(btw. in the first question, Y is capital but it defaults to n)

@avh4
Copy link
Owner

avh4 commented Aug 13, 2020

huh, that prompt "Would you like me to update your elm.json accordingly? [Y/n]: " is coming from elm itself, which elm-upgrade is calling out to. I wonder if somehow the console streams aren't getting connected correctly when it runs elm? Or maybe the call to elm is succeeding, but then it's hanging afterwards for some reason?

@2mol
Copy link

2mol commented Jul 12, 2021

Same problem here, on MacOS. Completely locks up my terminal, not even Ctrl+C works

@guspower
Copy link

just hit this myself today with a 0.19.1 project on a x86_64 linux environment:

  • interpreter: GNU bash, version 5.1.8(1)-release (x86_64-pc-linux-gnu)
  • terminal: kitty 0.23.1

does anyone have any ideas how I might go about debugging this one?

@avh4
Copy link
Owner

avh4 commented Dec 2, 2021

Possible debugging ideas (no particular order):

  • confirm whether or not it happens in other shells (sh, zsh)
  • confirm whether or not it happens in other terminals (direct console, tmux, iTerm, xterm, alacritty, etc)
  • confirm whether or not it happens in a shell with a clean environment (disable .profile, .bashrc, etc)
  • maybe there's a way to let it hang and then kill it from another terminal and run it in some way that nodejs will print out a stack trace when it's killed?

@avh4
Copy link
Owner

avh4 commented Dec 2, 2021

I guess a workaround for folks hitting this would be to mount your project into a node docker container to run the upgrade, and then throw the container away once you're done?

@Erudition
Copy link

Still having this issue. :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants