-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Python SyntaxError: EOL while scanning string literal #437
Comments
Thanks for the report! What's fun is the log is telling us Conjure selected all the right code with tree sitter:
The issue is probably some escaping that's required when sending Python code across this stdin stream. Like the |
Current investigation has revealed that Python's If I don't use If I do that though you'll lose state between your evals, so I'd need to find a way to:
Maybe there's a Python function that lets me run a file of Python code and capture the scope for future reference 🤔 Just sharing my findings here really, this seems tricky because Python's REPL makes it REALLY hard to just pipe code into it. It's intended for humans to use, not other programs, which really sucks. We need to find a way to configure it to play nicely with another program piping things into it. The current workarounds that deal with these problems cause this |
That's interesting! I was about to add, that |
I've been trying to work on this problem. Unfortunately, no success. I was initially OK with having to change |
The problem with using |
I think I've fixed this on the |
Wow! I tested the change on the dev/python/sandbox.py file and four of my Python scripts that use modules like BeautifulSoup, requests, etc. Seems to be a good fix! Thanks! |
Hi 🖖
Thanks for the awesome plugin! And for the recent Python support, looks like I don't need
vim-repl
anymore 😄I've found the following issue while using Conjure with Python.
This code runs as expected:
But putting this concatenation in a function fails:
The same is also true for using
join
:All of the above code runs when executed from console.
From my very limited understanding
escape-strs
fromfnl/conjure/client/python/stdio.fnl
should not escape already escaped characters. Please let me know if I can help further.The text was updated successfully, but these errors were encountered: