Closed fouquet closed 1 year ago
Hm, that seems to work fine for me:
/// The SQL used to create the `TestTable` table.
public static let create =
#"""
CREATE TABLE "TestTable" (
"id" integer PRIMARY KEY NOT NULL,
"someText" text(128),
"someInt" integer(128),
"someFloat" real(128)
);
"""#
Maybe that happens on copy/paste in Xcode?
Oh, is this the Swift Package Plugin or actually Enlighter the app?
Oh sorry, forgot to mention - it's the plugin.
BTW: I've bought the "Code for SQLite3" app, and guess what: it happens there too. No big deal in that case though because the file is only generated once.
The strange thing is that it works for me 🤔
I've recently updated to Ventura. And guess what, it works fine now. Could this actually be a bug that only shows up on Monterey?
Since I'm not on Ventura yet, that seems unlikely. Rather some option which doesn't transfer or sth
I guess we can close this then :-)
I've got the issue that the
create
code generated by Enlighter does not properly indent the multi-line string literal and thus creates a compilation error:Insufficient indentation of next 4 lines in multi-line string literal
Sample SQL:
Code generated:
Manually adding the generated code to the codebase and fixing the indentation compiles just fine.
Lighter: 1.0.16 Xcode 14.1