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
[bug]: send file and send until cursor in python linux doesn't works as expected #369
Comments
Dear @nickeisenberg , I think the last approach for formatting python code of the last commits and PRs is not so solid. I think, parsing and splitting the code, should not be done manually and by case. See for example #210 |
@f3fora Did send_file or send_until_cursor ever work for you? I had errors with those in the past when only And I understand what you are saying about the formatting, when I have more time I will try and find better way. However, I believe I have a fix your your |
It worked until 95383e0 .
Thanks. It works. There is still some empty lines that are not required and fill the interpreter. |
I just checkout out the commit prior to the one you referenced. Are you using When I have some time, I'll see about removing that extra line that is added when sending to the terminal. Thanks! |
Same problem, using @nickeisenberg maybe try a somewhat "complicated" example? I can try figuring out a reproducible example if you are unable to reproduce. |
@anku94 its still not working after the latest commit to master? I cant produce an example where Im going to close this issue as I can't produce a example that causes an error, please reopen a new issue if you have an example that causes a bug though! |
@nickeisenberg sorry for the delayed response, I still seem to have issues. The extension now seems to separate code blocks by blank lines, and as a result, function definitions with blank lines end up getting passed as separate code blocks. Example code: def f():
a = 5
print(a) Will produce:
This is with both |
@anku94 this is weird, I do not have that issue
by any chance, does your config look like this?
|
Yes, that's what my config looks like. I did not have anything for python, and the new update complained about |
@anku94 Can you try this
Also I'm not sure why it complained about being set to nil. I have mine set to nil. |
This works - thank you!! :) |
commit 95383e0 breaks
send_file
andsend_until_cursor
in python linux.A file like the following one, which is sent to iron, is divided in an awkward way, and the interpreter raises several errors.
It works fine if I select all the text and then
send_visual
.The text was updated successfully, but these errors were encountered: