You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you hit a return, lldb takes the current expression text and passes it to
swift::ide::isSourceInputComplete
If that returns true, we submit the expression to be parsed & executed, if it returns false we let you add another line to the current expression. Sounds like that was fixed to understand """ but not #""".
I switched this over to the compiler (though maybe swift::ide is SourceKit, I'm not sure...) We are just getting the wrong answer back from isSourceInputComplete.
Extend solution marking incomplete multi-line string literals as
incomplete during input in REPL to also cover raw multi-line strings.
Fixesapple#52840
poya
added a commit
to poya/swift
that referenced
this issue
Feb 2, 2023
Extend handling of incomplete multi-line string literals during input in
REPL to also cover raw multi-line strings.
Fixesapple#52840 and apple/llvm-project#4628
Additional Detail from JIRA
md5: c0f63a7f04231f79dbf796d6a8638fbe
Issue Description:
In the Swift REPL, we can use multi-line strings (using `"""`), but we can't use the delimiter syntax (e.g. `#"""`). I expected to be able to type:
But when I press Enter, the REPL complains:
error: unterminated string literal
The text was updated successfully, but these errors were encountered: