Skip to content

Instantly share code, notes, and snippets.

View c10r's full-sized avatar

Chander Ramesh c10r

View GitHub Profile
@c10r
c10r / gist:a90808ca726594c8e6c43d44148f8834
Created February 7, 2024 06:46
generate-types failed
Cannot read properties of undefined (reading 'kind')
file:///home/chander/workspace/motion/node_modules/zx/build/core.js:146
let output = new ProcessOutput(code, signal, stdout, stderr, combined, message);
^
ProcessOutput [Error]: Cannot read properties of undefined (reading 'kind')
at run (file:///home/chander/workspace/motion/scripts/generate-types.mjs:48:12)
exit code: 1
at ChildProcess.<anonymous> (file:///home/chander/workspace/motion/node_modules/zx/build/core.js:146:26)
at ChildProcess.emit (node:events:518:28)
This file has been truncated, but you can view the full file.
[
{
"id": "-LG_bjSWz2dvhrGjkZbf8",
"name": "My Tasks (Private)",
"teamId": null,
"type": "INDIVIDUAL",
"createdTime": "2023-10-01T20:01:05.241Z",
"updatedTime": "2023-10-01T20:01:05.412Z",
"labels": [],
"members": [
tail -f ~/Library/Logs/Motion/main.log
[2023-05-25 19:41:49.625] [info] Running did-become-active
[2023-05-25 19:41:52.868] [info] Running did-become-active
[2023-05-25 19:41:59.339] [info] IPC: To Webapp logEvent DESKTOP_UPDATE_MENU_CHECK undefined
[2023-05-25 19:41:59.340] [info] Check for updates
[2023-05-25 19:41:59.372] [info] Update App: Check for update
[2023-05-25 19:42:00.239] [info] Update App: Update available
[2023-05-25 19:42:00.239] [info] IPC: To Webapp logEvent DESKTOP_UPDATE_APP_AVAILABLE undefined
[2023-05-25 19:42:00.239] [info] IPC: To Webapp updateAppAvailable
[2023-05-25 19:42:00.246] [info] IPC: From Webapp requestUpdateDownloaded undefined
[2023-04-01 16:11:27.872] [info] Update App: Check for update
[2023-04-01 16:11:28.180] [info] Update App: No update available
[2023-04-01 16:12:03.800] [info] Running did-become-active
[2023-04-01 16:12:51.596] [info] Running did-become-active
[2023-04-01 16:12:52.911] [info] IPC: To Webapp logEvent DESKTOP_CLOSE_APP undefined
[2023-04-01 16:12:52.912] [info] Quitting app: running before-quit
[2023-04-01 16:12:53.330] [info] Quitting app: running quit
[2023-04-01 22:27:28.611] [info] Main process starting...
[2023-04-01 22:27:28.616] [info] Version Number: 0.28.2
[2023-04-01 22:27:28.800] [info] Mac deep link plain url: motion-desktop://projectManagement?workspace=u7_D-Iy8jdmn3IAvEkdfR&task=6fEg4JNjNss6VK_QNYpcb
@c10r
c10r / gist:c9e3e738d210ff73aa41dd369ef84bde
Last active March 17, 2023 01:07
All yarn.lock changes from the feb 2nd release
--- a/yarn.lock
+++ b/yarn.lock
-"@algolia/autocomplete-core@1.7.4":
- version "1.7.4"
+"@algolia/autocomplete-core@1.7.2":
+ version "1.7.2"
- "@algolia/autocomplete-shared" "1.7.4"
+ "@algolia/autocomplete-shared" "1.7.2"
-"@algolia/autocomplete-preset-algolia@1.7.4":
- version "1.7.4"
[2023-02-02 19:46:23.122] [info] Main process starting...
[2023-02-02 19:46:23.125] [info] Version Number: 0.21.2
[2023-02-02 19:46:23.307] [info] Initializing updater: {
url: 'https://update.electronjs.org/usemotion/desktopapp-dev/darwin-arm64/0.21.2'
}
[2023-02-02 19:46:24.414] [info] Main window ready to show https://dev-app.usemotion.com/web/#calendar
[2023-02-02 19:46:24.765] [info] Option space window ready to show https://dev-app.usemotion.com/web/#desktop?page=optionSpace
[2023-02-02 19:46:24.765] [info] Initialize network and crash handler
[2023-02-02 19:46:24.794] [info] App finished starting
[2023-02-02 19:46:24.795] [info] IPC: To Webapp logEvent DESKTOP_OPEN_APP undefined
@c10r
c10r / firebase.kt
Created April 3, 2021 00:41
An example firebase wrapper
@JsModule("firebase")
@JsNonModule
external interface FirebaseConfig {
var apiKey: String
var authDomain: String
var databaseURL: String
var projectId: String
var storageBucket: String
var messagingSenderId: String
@c10r
c10r / apirequest.kt
Created April 3, 2021 00:33
Making an API request in kotlin/js
val levelApi = window.fetch("$BACKEND_URL?level=$level")
.await()
val levelJson = levelApi
.json()
.await()
val partialLevel: Level = levelJson.unsafeCast<Level>()
val partialTubes = JSON.parse<Array<Array<String>>>(partialLevel.tubes as String)
val newLevel = Level(partialTubes)
@c10r
c10r / apirequest.kt
Created April 3, 2021 00:29
Example of a failing API Request
data class Level(val tubes: Array<Array<String>>)
val levelJson = levelApi
.json()
.await() as Level
@c10r
c10r / kotlinjs build failures
Created April 3, 2021 00:17
Periodic flakey build failures in KotlinJS
➜ paintmix ./gradlew build
> Task :kotlinNpmInstall
warning workspace-aggregator-26b03047-25a9-4ab1-9e54-91ef73ec87f0 > paintmix-test > mocha > debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning workspace-aggregator-26b03047-25a9-4ab1-9e54-91ef73ec87f0 > paintmix-test > mocha > mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning workspace-aggregator-26b03047-25a9-4ab1-9e54-91ef73ec87f0 > paintmix-test > mocha > chokidar > fsevents@2.1.3: "Please update to latest v2.3 or v2.2"
warning workspace-aggregator-26b03047-25a9-4ab1-9e54-91ef73ec87f0 > paintmix > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning workspac