-
Notifications
You must be signed in to change notification settings - Fork 327
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
Syntax error with first line comment pattern #...#? #1295
Comments
Most likely coming from here: Lines 252 to 258 in a1d7f7f
We should be stricter in detecting + handling postfix |
I can no longer reproduce this with v1.31. I believe this has been fixed in reticulate v1.29 as v1.28 is the last version I can observe this behavior. |
This was fixed with #1070 (comment) I think. |
I confirmed on my computer it no longer errors. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When adapting someone else's code, I discovered that any command with a comment pattern of
# something #?
at the end of the first line will error.This seems to be a
reticulate
bug to be aware of, easily fixable by avoiding this comment pattern.This behavior does not occur in the python REPL.
Examples:
If on a multiline command, this only occurs if the comment is on the first line. The following commands work fine, no error, so it seems to be the "?" character after a second #:
Running on Windows, R 4.2.1, python 3.10.6, reticulate 1.26
The text was updated successfully, but these errors were encountered: