Closed jaybosamiya closed 5 years ago
Looks like a bug in docker-tramp, actually ^^
Can you try adding this to your .emacs?
(require 'docker-tramp)
(defun docker-tramp-add-method ()
"Add docker tramp method."
(add-to-list 'tramp-methods
`(,docker-tramp-method
(tramp-login-program ,docker-tramp-docker-executable)
(tramp-login-args (,docker-tramp-docker-options ("exec") ("-u" "%u") ("%h") ("sh")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c")))))
(If that doesn't work, modifying docker-tramp.el directly might)
Ping?
Sorry, I haven't had a chance (need) to work with F* within docker via tramp yet, so I can't confirm whether it works with the fixes you suggested :/ Feel free to close this issue, since it doesn't seem to be an fstar-mode bug.
No problem. Feel free to reopen if needed.
Using docker-tramp, when trying to start up fstar-mode for interactive proving, it fails with "the input device is not a TTY". Any suggestions on how to work around this/fix it?
Reproduction steps
docker pull projecteverest/fstar-linux:806126a6e270
(use a more recent commit hash got from FStar CI if that hash isn't on docker hub at that time)docker exec youthful_bose sudo ln -s /home/everest/FStar/bin/fstar.exe /usr/bin/
(changeyouthful_bose
to the actual container name fromdocker ps
)docker exec youthful_bose sudo ln -s /home/everest/everest/z3-4.5.1.1f29cebd4df6-x64-ubuntu-14.04/bin/z3 /usr/bin/
(same as above)C-x C-f RET /docker:youthful_bose:/home/everest/temp.fst RET
inside emacs to go into the docker image.C-x C-n
.