Closed vagreargnatry closed 1 year ago
Could it be that this is a timing issue, that the REPL took to long to start? VS Code does not give me a way to know if the REPL in the terminal I have started has finished it's startup before sending the file, as of now I'm just waiting 1s.
Please test if the same issue appears when first starting the REPL by clicking at the Chez Scheme REPL: Start REPL button on the upper right or executing the command Chez Scheme REPL: Start REPL
and only after the REPL has been started sending the whole file to the REPL.
If it is, I could make the delay between the start of the terminal and REPL and sending data to it configurable.
A remark: exiting the REPL but leaving the REPL Window open does not work. Because VS Code does not let me know if the REPL is running or not, I can only control the existence of the terminal window named Chez Scheme REPL
. If this window exists, I do not start the REPL but just send the Scheme source to the terminal.
So please always close the Chez Scheme REPL
Terminal window after exiting the REPL.
Could it be that this is a timing issue, that the REPL took to long to start? VS Code does not give me a way to know if the REPL in the terminal I have started has finished it's startup before sending the file, as of now I'm just waiting 1s.
Please test if the same issue appears when first starting the REPL by clicking at the Chez Scheme REPL: Start REPL button on the upper right or executing the command
Chez Scheme REPL: Start REPL
and only after the REPL has been started sending the whole file to the REPL.If it is, I could make the delay between the start of the terminal and REPL and sending data to it configurable.
When using this method, the issue will no longer occur.
Great, I'll make that delay between starting the terminal and sending the code to the REPL configurable.
The new version 0.4.0 has this configurable delay, chezScheme.replDelay
.
Please try if increasing this delay solves your problem.
Thank you! Increasing this delay solves my problem.
Great to hear.
Thank you again very much for your help!
Thank you to the author for creating this fantastic software. It has helped me write Scheme code more comfortably. But I still have some questions below.
Describe the bug The content of the file is as follows. When using
Send the whole current file to the REPL
the code appearing in the REPL is missing the initial lines (the number of missing lines seems to be related to the number of characters in the preceding lines).To Reproduce Steps to reproduce the behavior:
Powershell 7.3.4
orGNU bash, version 5.2.15(1)-release (x86_64-pc-msys)
orPowershell 5.1.22621.1778
as VS Code default terminal.Send the whole current file to the REPL
Expected behavior The file content can be sent to the REPL all at once, ensuring that all the code is executed correctly.
Screenshots Powershell 7.3.4
Git Bash
Command Prompt (cmd)
![cmd](https://github.com/Release-Candidate/vscode-scheme-repl/assets/104709852/74d09ca0-3e7e-4bca-b751-649234b44c91)
Logs
Environment (please complete the following information):
v0.2.0
1.79.2 (user setup)
Windows 11 22H2
Additional context When using
cmd (Command Prompt)
as VS Code's default terminal, there is no such issue. This issue may not occur consistently, but it seems to be happening frequently in my case.This issue will also make "Send selected s-expression to the REPL" unavailable.![4](https://github.com/Release-Candidate/vscode-scheme-repl/assets/104709852/63feb477-9d35-49d1-be55-3d9e78bcce1c)