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

stty: 'standard input': Inappropriate ioctl for device #35

Closed
Roger-luo opened this issue Aug 1, 2020 · 4 comments · Fixed by #36
Closed

stty: 'standard input': Inappropriate ioctl for device #35

Roger-luo opened this issue Aug 1, 2020 · 4 comments · Fixed by #36
Labels
bug Something isn't working

Comments

@Roger-luo
Copy link
Collaborator

It seems #34 is causing this error on Linux somehow, any idea? @mehalter

It breaks the build of PlutoCLI https://github.com/Roger-luo/PlutoCLI.jl

  Building PlutoCLI  `~/.julia/packages/PlutoCLI/yYmHi/deps/build.log`
┌ Error: Error building `PlutoCLI`:
│ stty: 'standard input': Inappropriate ioctl for device
│ [ Info: generating /home/roger/.julia/bin/pluto.jl
│ [ Info: generating /home/roger/.julia/bin/pluto
│ ERROR: LoadError: failed process: Process(`stty raw`, ProcessExited(1)) [1]
│
│ Stacktrace:
│  [1] pipeline_error at ./process.jl:525 [inlined]
│  [2] run(::Cmd; wait::Bool) at ./process.jl:440
│  [3] run at ./process.jl:438 [inlined]
│  [4] prompt(::IOStream, ::String, ::Bool) at /home/roger/.julia/packages/Comonicon/1Kc5X/src/tools/tools.jl:14
│  [5] prompt(::String, ::Bool) at /home/roger/.julia/packages/Comonicon/1Kc5X/src/tools/tools.jl:5
│  [6] write_path(::String, ::Bool, ::Base.EnvDict) at /home/roger/.julia/packages/Comonicon/1Kc5X/src/tools/build.jl:585
│  [7] write_path at /home/roger/.julia/packages/Comonicon/1Kc5X/src/tools/build.jl:571 [inlined]
│  [8] install_env_path(::Bool) at /home/roger/.julia/packages/Comonicon/1Kc5X/src/tools/build.jl:561
│  [9] install_script(::Module, ::Dict{String,Any}) at /home/roger/.julia/packages/Comonicon/1Kc5X/src/tools/build.jl:238
│  [10] install at /home/roger/.julia/packages/Comonicon/1Kc5
@Roger-luo Roger-luo added the bug Something isn't working label Aug 1, 2020
@Roger-luo
Copy link
Collaborator Author

It seems during the stdin is disabled somehow during Julia's Pkg build command. Things works fine if one build it using julia --project deps/build.jl

@mehalter
Copy link
Contributor

mehalter commented Aug 1, 2020

Oh yeah that makes sense because Julia's Pkg build probably doesn't run the command in a tty because it's non interactive

@Roger-luo
Copy link
Collaborator Author

I guess we need to remove the prompt of installing PATH and FPATH in the build but just print a log.

@Roger-luo
Copy link
Collaborator Author

but I guess I can let the build happen in a TTY for ion CLI which workaround this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants