profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/AlecStrong/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Alec Strong AlecStrong Square, Inc. Kitchener, Ontario https://twitter.com/Strongolopolis @CashApp

AlecStrong/kotlin-native-cocoapods 129

A Gradle plugin for configuring Kotlin/Native with Cocoapods

AlecStrong/pizzasort 78

Sort a given list of pizzas by tastiness

AlecStrong/sql-psi 62

An extendable parsing environment for sql which outputs PSI

AlecStrong/ResurgenceOfSQL 20

Sample data/queries for DroidconNYC2017 talk "The Resurgence of SQL"

AlecStrong/conway 7

Print statistics on module contribution

AlecStrong/projectDependencyGraph 6

A gradle task using Graphviz to display your projects dependency graph.

AlecStrong/Grammar-Kit-Composer 2

A Gradle Plugin which modifies IntelliJ grammar kit grammars to be composable

AlecStrong/sqlbrite 2

A lightweight wrapper around SQLiteOpenHelper which introduces reactive stream semantics to SQL operations.

AlecStrong/sqlite-bnf 2

Machine readable BNF form of the sqlite grammar and a script which generates it from published sqlite website

AlecStrong/alecstrong.com 1

https://alecstrong.com

issue commentcashapp/sqldelight

Add linuxX64 Kotlin Multiplatform target

Please send a PR when the dependency is ready. We won't be able to have a passing build until all our dependencies are updated.

grote

comment created time in 9 hours

push eventsqlite/sqlite

dan

commit sha 15de3ce9abaf4ebcc6c556faea743c976c7da8d1

Fix a segfault that could occur when optimizing a NOT NULL constraint against an IPK column of a sub-query. FossilOrigin-Name: e4d1970ef17b2330f78c750d71d625c2997f79ed1445d0351ec32b482485a954

view details

push time in 14 hours

push eventsqlite/sqlite

dan

commit sha 8ddf686267c58ee0e519cfd9024f177e606be0ab

Attempt to optimize "x IS NULL" and "x IS NOT NULL" expressions when x is a column with a NOT NULL constraint. FossilOrigin-Name: 5ecd842555009ce27ee6390325ac5c2504143474b12b730933f0833b3dad788a

view details

dan

commit sha eca6d60bfa384fbb65ae1261d55c0ba35b557f90

Attempt to optimize "x IS NULL" and "x IS NOT NULL" expressions when x is a column with a NOT NULL constraint. FossilOrigin-Name: de9c86c9e4cdb34f4b7d65f160d1e589fb969bbf64c66d2b24c502d1ee424dbb

view details

push time in 15 hours

create barnchsqlite/sqlite

branch : ifnull-opt

created branch time in 16 hours

Pull request review commenttouchlab/SQLiter

Implement linux target

+package co.touchlab.sqliter++import co.touchlab.sqliter.internal.File+import co.touchlab.sqliter.internal.FileFilter+import kotlinx.cinterop.memScoped+import kotlinx.cinterop.refTo+import kotlinx.cinterop.toKString+import platform.posix.NULL+import platform.posix.PATH_MAX+import platform.posix.getcwd+import platform.posix.getenv++actual object DatabaseFileContext {+    actual fun deleteDatabase(name: String, basePath: String?) {+        deleteDatabaseFile(databaseFile(name, basePath))+    }++    actual fun databasePath(databaseName: String, datapathPath: String?): String {+        return databaseFile(databaseName, datapathPath).path+    }++    internal fun databaseDirPath(): String {+        return getHomeDirPath() ?: memScoped {

Actually here I'm not sure where the fallback path should lead to? I just defined the home dir but of course this is suboptimal. But another arbitrary fallback dir is also IMO. But you did something similar on windows as well and one should configure the path anyways in most cases. Maybe you have a preference where the fallback path should be? Or is home fine for you?

chippmann

comment created time in 19 hours

issue commentcashapp/sqldelight

Add linuxX64 Kotlin Multiplatform target

I opened a PR on the SQLiter repo which adds support for linux targets. Once that one (or something similar) is merged it actually should be pretty straight forward to add linux as a target here (the changes i needed to make on my local build were pretty minimal but maybe I don't see the full picture). Depending on the outcome of said PR i could also file a PR here once it's merged. It depends on whether this is wanted with the current state of SQLiter (refering to the above comment of @kpgalligan) and you would welcome such a PR regardless of the state of SQLiter.

grote

comment created time in 19 hours

PR opened touchlab/SQLiter

Implement linux target

This implements linuxX64 as a target with the corresponding linux specific actual implementations. Primarily this was implemented to hopefully pave the way for https://github.com/cashapp/sqldelight/issues/1835.

I did some minor testing with a local build of SQLDelight and so far everything seems to work. I did not figure out how your test setup with that arbitrary script could work and based on @kpgalligan's comment on the above mentioned issue I did not spend too much time on it as it's probably rewritten anyways? But if you require it I'm of course willing to spend some more time to figure that one out as well.

+790 -73

0 comment

8 changed files

pr created time in 19 hours

issue openedcashapp/sqldelight

java.lang.IllegalStateException in ExprUtil.kt:136

Error in SQL Delight IntelliJ Plugin

java.lang.IllegalStateException in ExprUtil.kt:136 Failed to compile SqlCompoundSelectStmtImpl(COMPOUND_SELECT_STMT): [] : SELECT their_id, is_outstanding, _id, payment.token, payment_render_data, sender_render_data, recipient_render_data, loyalty_render_data, state, role, amount, is_badged, is_bitcoin, is_scheduled, scheduled_for, scheduled_payment_token, avatar.photo_url, avatar.accent_color, avatar.lookup_key, coalesce(display_name, customer_display_name, cashtag, email, sms) AS display_name, avatar.merchant_data, avatar.email, avatar.sms, avatar.threaded_customer_id, display_date, itemizedReceipt.render_json AS receipt_render_data, payment.rollup_type AS rollup_type, payment.investment_order_type AS investment_order_type, payment.payment_type AS payment_type, payment.gifted_investment_entity_token AS gifted_investment_entity_token, loyaltyHiddenPaymentTypes.payment_type IS NOT NULL AS loyalty_activity, () FROM payments_model AS payment LEFT JOIN itemizedReceipt ON p...

View on Bugsnag

Stacktrace

SqlDelightCompiler.kt:224 - com.squareup.sqldelight.core.compiler.SqlDelightCompilerKt.tryWithElement
SqlDelightCompiler.kt:186 - com.squareup.sqldelight.core.compiler.SqlDelightCompiler.writeQueryInterfaces
SqlDelightCompiler.kt:155 - com.squareup.sqldelight.core.compiler.SqlDelightCompiler.writeViewInterfaces$sqldelight_compiler
SqlDelightCompiler.kt:150 - com.squareup.sqldelight.core.compiler.SqlDelightCompiler.writeViewInterfaces$sqldelight_compiler$default
SqlDelightCompiler.kt:45 - com.squareup.sqldelight.core.compiler.SqlDelightCompiler.writeInterfaces
SqlDelightFileViewProviderFactory.kt:131 - com.squareup.sqldelight.intellij.lang.SqlDelightFileViewProvider$generateSqlDelightCode$2.run
SqlDelightFileViewProviderFactory.kt:123 - com.squareup.sqldelight.intellij.lang.SqlDelightFileViewProvider.generateSqlDelightCode
SqlDelightFileViewProviderFactory.kt:61 - com.squareup.sqldelight.intellij.lang.SqlDelightFileViewProvider.access$generateSqlDelightCode
SqlDelightFileViewProviderFactory.kt:95 - com.squareup.sqldelight.intellij.lang.SqlDelightFileViewProvider$contentsSynchronized$1$1.run

View full stacktrace

Created automatically via Bugsnag

created time in 20 hours

push eventsqlite/sqlite

dan

commit sha 4b17455ab2f38d51ab0dcd6f01dd8d99c8229e8c

Minor simplification in resolve.c. FossilOrigin-Name: 310dac342e7b1f9b5a5df6a9d598e85d5fef59bba9307d9230baf77c8f2351a2

view details

push time in 20 hours

issue openedcashapp/sqldelight

com.intellij.openapi.externalSystem.model.ExternalSystemException in NativeConstructorAccessorImpl.java:-2

Error in SQL Delight IntelliJ Plugin

com.intellij.openapi.externalSystem.model.ExternalSystemException in NativeConstructorAccessorImpl.java:-2 Unable to resolve Version:[version=lastSuccessful, resolved=false]. Server response: com.github.jk1.tcdeps.client.RestClient$Response(401, <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>JetBrains Authentication Required</title> <link rel="stylesheet" type="text/css" href="https://resources.jetbrains.com/storage/ui/fonts/fonts.css" /> <style> * { margin: 0; padding: 0; } html, body { height: 100%; } body { font-family: "Gotham SSm A", "Gotham SSm B", Helvetica, Arial, sans-serif; color: #27282C; font-size: 15px; line-height: 1.6; } p { font-family: system-ui, -apple...

View on Bugsnag

Stacktrace

FileIndexMap.kt:53 - com.squareup.sqldelight.intellij.gradle.FileIndexMap$FetchModuleModels.run

View full stacktrace

Created automatically via Bugsnag

created time in 20 hours

issue commentcashapp/duktape-android

facing issue Progress bar not showing when using duktape

You haven't told us anything. What makes you think it's related to this project? Can you provide a self-contained executable sample that reproduces?

ardinh

comment created time in 21 hours

issue openedcashapp/duktape-android

facing issue Progress bar not showing when using duktape

i have to show my progress bar but when duktape was loaded progress bar not showing

can anyone help me with this case?

created time in a day

issue commenttouchlab/Stately

HMPP (Hierarchical Projects) support?

For reference, here's the issue blocking that one: https://youtrack.jetbrains.com/issue/KT-45163

martinbonnin

comment created time in a day

issue openedcashapp/sqldelight

com.intellij.openapi.externalSystem.model.ExternalSystemException in FileIndexMap.kt:57

Error in SQL Delight IntelliJ Plugin

com.intellij.openapi.externalSystem.model.ExternalSystemException in FileIndexMap.kt:57 Supplied javaHome is not a valid folder. You supplied: C:\Users\noyaz\AppData\Local\Programs\Python\Python39\python.exeSupplied javaHome is not a valid folder. You supplied: C:\Users\noyaz\AppData\Local\Programs\Python\Python39\python.exe

View on Bugsnag

Stacktrace

FileIndexMap.kt:53 - com.squareup.sqldelight.intellij.gradle.FileIndexMap$FetchModuleModels.run

View full stacktrace

Created automatically via Bugsnag

created time in 2 days

push eventsqlite/sqlite

dan

commit sha a4656e390ac4e8f04bee327ed4307610bce23e6a

Fix a problem with UPDATE and DELETE statements that use both INDEXED BY and LIMIT clauses in SQLITE_ENABLE_UPDATE_DELETE_LIMIT builds. FossilOrigin-Name: cc2b4b38668bd32ebd8cf2e0d244eef2a6c7e0a1ee0a34c9c43eaf25c9cc09ae

view details

dan

commit sha b3617e9d2d96822baf8caa641bb09e302ab44046

Fix test case in altercorrupt.test so that it works with SQLITE_ENABLE_OVERSIZE_CELL_CHECK builds. FossilOrigin-Name: 062b338ff2ea71633b4fb3c75c6a47b5fc4fe9c2a72daacd987d1eca0bda5217

view details

push time in 2 days

issue commentcashapp/sqldelight

Generated Classes are removed on CI

@AlecStrong I do not have variants but my module graph is like this

android---\
web-------client----\
ios-------/          common
          backend---/

I have SqlDelight in common

can it be still the case ?

mustafaozhan

comment created time in 2 days

push eventsqlite/sqlite

dan

commit sha 3dc864b575a74daa38ff2f0e73591978030fe0ab

Fix handling of INSERT on views with implicitly named hidden columns in SQLITE_ENABLE_HIDDEN_COLUMNS builds. FossilOrigin-Name: 15795a96a8b3f4ea368b3eb29a4ff8d1b4b33ebb2bff2a5ccb045b8f01f9f99b

view details

push time in 2 days

push eventsqlite/sqlite

dan

commit sha ce5de60ff956a09e035bcccd388ac9b7d93d9392

Ensure that tests like "rbu.test" and "notify2.test" that are only run by specific configurations during release testing are run for both release and debug versions of the tests. FossilOrigin-Name: 911df43f98297bf645688dc51e988106a0297cb60bb97dde699c2848404fcf72

view details

push time in 2 days

issue commentcashapp/sqldelight

Column named data is renamed to data_ after updating to 1.5.0-SNAPSHOT

Almost certainly a KotlinPoet problem that we have no control of here. Need to file a reproducer upstream.

eygraber

comment created time in 3 days

PublicEvent

push eventsqlite/sqlite

dan

commit sha f43fef29bb78dd5194cf39c12e74552f411cd4d0

When a sub-transaction is released, if no pages required by containing sub-transactions were journaled, truncate the statement journal. This might prevent out-of-control statement journal growth in some cases. FossilOrigin-Name: e36327fb22db08763a82fb517407ff5ab0dbc053953098033e7e50796a777810

view details

dan

commit sha e9cfe878439fdc1d23c21becf6a308399b14dfd3

When a sub-transaction is released, if no pages required by containing sub-transactions were journaled, truncate the statement journal. This prevents out of control statement journal growth in some cases. FossilOrigin-Name: 23ca23894af352ea351c9efcdd7d86b82455f4c81b6001052a6d13aa2d705e84

view details

push time in 4 days

issue commentcashapp/sqldelight

Support for upsert

Yea I just did, and still the same issue

Btw windows 10, AS 4.1.2, plugin 1.4.4

NilsLattek

comment created time in 4 days

push eventsqlite/sqlite

dan

commit sha 34a224a13bbcfa71cb3f5d05f8f340395ada243e

Further tests for the push-down optimization with window functions. FossilOrigin-Name: 4b089f70117bfb440eaefd830c05576be0cc624d9d6018c869270dc68e44513e

view details

push time in 4 days

push eventsqlite/sqlite

dan

commit sha 903fdd483415cd3e5db94cd532ef42734aeac0c1

Allow WHERE terms to be pushed down into sub-queries that contain window functions, provided that the WHERE term is made up of entirely of constants and copies of expressions found in the PARTITION BY clauses of all window functions in the sub-query. FossilOrigin-Name: dac51f303bba1a0aac7768c688b0c134deb7641062cce2071d546f2d8f241dec

view details

dan

commit sha 34a224a13bbcfa71cb3f5d05f8f340395ada243e

Further tests for the push-down optimization with window functions. FossilOrigin-Name: 4b089f70117bfb440eaefd830c05576be0cc624d9d6018c869270dc68e44513e

view details

dan

commit sha 601ec240a9c5d8086bdde0fd4d94aad3d818f098

Allow WHERE terms to be pushed down into sub-queries that contain window functions, provided that the WHERE term is made up of entirely of constants and copies of expressions found in the PARTITION BY clauses of all window functions in the sub-query. FossilOrigin-Name: 20689468100aed264877111367b42837ca19e63e717fed2ebd4b20b908f13178

view details

push time in 4 days

push eventcashapp/sqldelight

Matthew Haughton

commit sha 7404fdcafc4e179690d7b7cc69206ac19a6eef60

Fix deprecation warnings on IntelliJ platform 193 (#2181)

view details

push time in 4 days

pull request commentAlecStrong/sql-psi

Only download IntelliJ if no local copy exists

Thanks! Just gonna link https://github.com/cashapp/sqldelight/pull/2167 for future reference as you made the same change and described it there 😄

3flex

comment created time in 4 days

PR opened AlecStrong/sql-psi

Only download IntelliJ if no local copy exists
+3 -1

0 comment

1 changed file

pr created time in 4 days

issue openedAlecStrong/sql-psi

Don't use internal APIs

From runPluginVerifier task run on sqldelight-idea-plugin:;

Internal class com.intellij.openapi.roots.impl.DirectoryIndex is referenced in com.alecstrong.sql.psi.core.SqlCoreEnvironment.<init>(List, List). This class is marked with @org.jetbrains.annotations.ApiStatus.Internal annotation and indicates that the class is not supposed to be used in client code.

created time in 4 days

PR opened cashapp/sqldelight

Fix deprecation warnings on IntelliJ platform 193

Only the quick fix code is not just a direct replacement with an updated API, but I'm assuming good test coverage exists for that.

This will address all deprecated usages on platform 193 once https://github.com/AlecStrong/sql-psi/pull/237 makes its way to the plugin.

+22 -18

0 comment

3 changed files

pr created time in 4 days

issue commentcashapp/sqldelight

Support for upsert

when exactly? after typing? IDE didn't complain it needs syncing, so unsure

NilsLattek

comment created time in 4 days