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

v0.20.1 issue #63

Closed
odtaa48 opened this issue Sep 20, 2020 · 5 comments
Closed

v0.20.1 issue #63

odtaa48 opened this issue Sep 20, 2020 · 5 comments

Comments

@odtaa48
Copy link

odtaa48 commented Sep 20, 2020

Hello, thanks for the updated binary for linux, however, it appears that there is something different in the REPL that happened between 19.3 and the current version using min -i

The prompt only appears AFTER enter is pressed, and what is typed is invisible and so are the features like command completion. The input seems to be interpreted correctly, however.

I don't think the shell is an issue, as I get the same results on tilix and my chromebook virtual linux shell which I think is dash.

$ min -i
[/home/odtaa/Downloads]$
[/home/odtaa/Downloads]$ version
"0.20.1"
[/home/odtaa/Downloads]$ cpu
"amd64"
[/home/odtaa/Downloads]$ os
"linux"

min -j has other issues where it seems to stack the prompt again and again;
it also seems to have the following error after ctrl-D:
io.nim(141) raiseEOF
Error: unhandled exception: EOF reached [EOFError]

Best regards, Dex

@h3rald
Copy link
Owner

h3rald commented Sep 29, 2020

Hi!

You are right, there seems to still be problems with the cross-compiled binary. I think at this point I'll just compile it on my actual Linux machine instead: I don't have any issue if I natively try to compile on linux.

@odtaa48
Copy link
Author

odtaa48 commented Sep 29, 2020 via email

@h3rald
Copy link
Owner

h3rald commented Sep 30, 2020

Thanks! 😄

Well, there are a few dependencies that are needed to build min, and you need to have nifty installed to fetch them... also compiling/installing via nimble may not work.

I am working on a small update to fix a few bits, I'll release native binaries this time if I get a chance.

About Factor... well, Factor docs are very good, but it is indeed quite complex. I wanted to keep min small while at the same time provide a decent feature set. Concatenative programming is complex anyway, no matter how you look at it, but it's also quite stimulating at times!

@h3rald
Copy link
Owner

h3rald commented Oct 3, 2020

This should be fixed in v0.21.0... now providing non cross-compiled binaries for windows and linux as well.

@h3rald h3rald closed this as completed Oct 3, 2020
@h3rald
Copy link
Owner

h3rald commented Nov 29, 2020

I figured out what was happening. It turns out that in the musl library, stdout.write doesn't automatically flush the stdout buffer... so characters were only appearing when a new line was entered.

I modified some nimline code and now it works as expected.

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

No branches or pull requests

2 participants