blampe / blampe/taskwarrior-reminders

Not working with Monterey

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
97
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Tried to install this with macOS Monterey and it doesn't seem to work

I get the following:

> swift package clean
rm -rf .build
swift build -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __info_plist -Xlinker Info.plist --configuration release
Fetching https://github.com/eonil/FSEvents from cache
Fetching https://github.com/SwiftyJSON/SwiftyJSON from cache
Fetched https://github.com/eonil/FSEvents (2.60s)
Fetched https://github.com/SwiftyJSON/SwiftyJSON (2.60s)
Computing version for https://github.com/SwiftyJSON/SwiftyJSON
Computed https://github.com/SwiftyJSON/SwiftyJSON at 5.0.0 (0.52s)
Computing version for https://github.com/eonil/FSEvents
Computed https://github.com/eonil/FSEvents at 0.1.6 (0.51s)
Creating working copy for https://github.com/eonil/FSEvents
Working copy of https://github.com/eonil/FSEvents resolved at 0.1.6
Creating working copy for https://github.com/SwiftyJSON/SwiftyJSON
Working copy of https://github.com/SwiftyJSON/SwiftyJSON resolved at 5.0.0
remark: Incremental compilation has been disabled: it is not compatible with whoremark: Incremental compilation has been disabled: it is not compatible with whoremark: Incremental compilation has been disabled: it is not compatible with whoremark: Incremental compilation has been disabled: it is not compatible with who/Users/ryec/taskwarrior-reminders/Sources/Repositories/Taskwarrior.swift:29:9: warning: result of call to 'execTaskwarrior(args:input:)' is unused
execTaskwarrior(args: ["sync"])
^ ~~~~~~~~~~~~~~~~
/Users/ryec/taskwarrior-reminders/Sources/Repositories/Taskwarrior.swift:47:9: warning: result of call to 'execTaskwarrior(args:input:)' is unused
execTaskwarrior(args: ["reminderID:" + t.reminderID!, "-COMPLETED", "delete"])
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ryec/taskwarrior-reminders/Sources/Repositories/Taskwarrior.swift:88:9: warning: result of call to 'execTaskwarrior(args:input:)' is unused
execTaskwarrior(args: args, input: task)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ryec/taskwarrior-reminders/Sources/Repositories/Taskwarrior.swift:117:17: warning: initialization of immutable value 'jsonEncoder' was never used; consider replacing with assignment to '_' or removing it
let jsonEncoder = JSONEncoder.init()
~~~~^~~~~~~~~~~
_
/Users/ryec/taskwarrior-reminders/Sources/Repositories/Taskwarrior.swift:137:9: warning: no calls to throwing functions occur within 'try' expression
try process.launch()
^
remark: Incremental compilation has been disabled: it is not compatible with whoremark: Incremental compilation has been disabled: it is not compatible with who/Users/ryec/taskwarrior-reminders/Sources/Sync/main.swift:16:9: warning: initialization of immutable value 'fsobserver' was never used; consider replacing with assignment to '_' or removing it
let fsobserver = TaskwarriorObserver(reminders, syncSince: syncStart, lock: lock)
~~~~^~~~~~~~~~
_
/Users/ryec/taskwarrior-reminders/Sources/Sync/RemindersObserver.swift:43:25: warning: initialization of immutable value 'syncResult' was never used; consider replacing with assignment to '_' or removing it
let syncResult = self.tw.upsertToTaskwarrior(
~~~~^~~~~~~~~~
_
/Users/ryec/taskwarrior-reminders/Sources/Sync/TaskwarriorObserver.swift:33:25: warning: result of call to 'upsertToTaskwarrior' is unused
self.tw.upsertToTaskwarrior(syncResult.task)
^ ~~~~~~~~~~~~~~~~~
[8/8] Build complete!
rm -f /usr/local/bin/task-reminders-sync
launchctl remove com.blampe.task-reminders-sync || true
rm ~/Library/LaunchAgents/com.blampe.task-reminders-sync.plist || true
cp .build/release/task-reminders-sync task-reminders-sync
ln -Fs /task-reminders-sync /usr/local/bin/task-reminders-sync
cp com.blampe.task-reminders-sync.plist ~/Library/LaunchAgents/.
launchctl load -w ~/Library/LaunchAgents/com.blampe.task-reminders-sync.plist
Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.
`launchctl bootstrap` is a recommended alternative.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported installation on macOS Monterey using the shown swift package clean/build and launchctl commands. Inspect com.blampe.task-reminders-sync.plist and the installation commands around the completed build to identify why the launch agent does not work; done means the installation succeeds and the sync service loads correctly on Monterey.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, swift
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.