-
Notifications
You must be signed in to change notification settings - Fork 229
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
Julia: Code being sent does not conform the original one. #449
Comments
which target are you using? does indentation never work, or just in this case? does sending smaller block make things better/worse? |
I am using the tmux as target. The specific settings are:
The indention does not work just in this case. Sending small block, for example only the "for" loop itself can solve the problem. |
does the value of it's possible this is happening due to an unfortunate alignment of chunk_size with that paragraph (which |
if set g:slime_bracketed_paste to be 0, it will send the code block line by line to julia console which will make the indention become even worse. Tune the chunk size cannot solve the problem. |
This is the full code that I have encountered the problem. Copy / Paste to Julia console does not have this problem. |
I'll need to play with this code and Julia to see if I can reproduce. Do I need to install anything else for this code to work, on the Julia side? |
Only the packages at the beginning of the code are needed.
You can use the code above to install any missing packages. |
Yes, my output is the same as yours. If you select the Julia console and use Ctrl-[ to get into copy mode, you can find that there are many repeated code text. Almost 2000 lines. It should also be noted that the results cannot be guaranteed since Copy/Paste works properly in the Julia console. |
I'm not sure I see the same "problem" in R. I can see how the paste mangles and might duplicate, based on how fast pasting versus executing is happening. Generally I don't let it bother me, because the alternatives all seem worse 😬 Though I try to proceed in with pasting small-ish paragraphs, one at a time. Other targets (not tmux) might have better inject-like-a-paste semantics, you can experiment. Let me know |
Thanks for all your comments and explanations! I like the vim-slime and enjoy using this great work! |
For the above julia code, select all text under VIM visual-line mode, and then ctrl-c ctrl-c to send to julia console.
The last "for" loop code will be sent with the wrong indent.
With more contents in the for loop, the code being sent will become more messy.
If I just copy / paste the above code to julia console, it works properly.
The text was updated successfully, but these errors were encountered: