Positron wont run invalid syntax and won't highlight it either #6329
Unanswered
JosiahParry
asked this question in
Feedback
Replies: 2 comments 7 replies
-
Can you tell me a bit more about what you mean by "won't execute this"? If I copy this and paste into the console, I see an error that tells me about the brace: |
Beta Was this translation helpful? Give feedback.
6 replies
-
Thanks for the clarification! This is another example of #4594, where the console doesn't think the code is "complete" and so won't execute it yet; the console is waiting for you to keep typing and finish the statement. I note in #4594 (comment) that the behavior in RStudio here feels more right, and we did some related work for Python in #2107. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This function has invalid syntax in the second across() function call. The
grepl()
needs to escape each brace twice instead of once (thanks for finding this chatgpt!). However there is no indication of this in the syntax highlighting in positron.Positron won't execute this, though. So there's no good way to figure out where things are going awry.
Positron Version: 2025.02.0 (Universal) build 79
Code - OSS Version: 1.96.0
Commit: a268bc8
Date: 2025-01-21T02:44:54.581Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.0.0
Beta Was this translation helpful? Give feedback.
All reactions