lassik

Results 381 comments of lassik

Are your PHP files in a Node project (with its own `package.json`)? In that case, it might work to try `npm install prettier @prettier/plugin-php` with no `--global` option.

Thanks, glad to have this sorted out. This is excellent information. We should add this link to the readme if more people stumble upon the same problem.

> BTW @lassik, what are the bugs you have seen with the current implementation? The first bug is the above: ``` stklos> #s8(1 2 3) **** Error: %read: bad sharp...

> An unrecognized `#foo` token should stop it from reading more stuff. This may require special handling when reading from a terminal (as opposed to a file)?

> The reader sees `#s8` and `(1 2 3)` as two separate tokens, and complains about the first. It keeps reading... You could first read all available input from the...

I.e. something like this pseudo-code: ```C while (terminal_fd_is_not_closed) { buffer_clear(); while (poll(terminal_fd)) { char input_char[1]; read(terminal_fd, input_char, 1); buffer_putc(input_char); } try { input_port = make_string_input_port(buffer); while (datum = read_scheme_datum(input_port)) {...

Reading until end-of-line is not the best way to do it. If you paste 50 lines of code into a terminal, and the 5th line raises an error, then the...

In other words: * Buffer all the text that comes within the given timeout - whether it's one line or 500 lines. * Read and eval the text in the...

It's probably good to add some extra logic to that, so that a partial line is never read and evaluated, even if it comes within the timeout.

The public interface of a SRFI is frozen when the SRFI is finalized, so it can no longer change. I'm not sure whether or not an existing SLIB library's interface...