Repository navigation
[Bug]: Default Snippets folder symlink still fails to load #1903
Unanswered
luoph
asked this question in
Issue Triage
Replies: 1 comment
|
Thanks for opening this! Tinycast stays small and focused, so new features are chosen Tip Planning to build this? Discussing the approach here first is highly preferred. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Existing issues
Related: #1086 reported the same default-folder symlink problem on 0.11.3. It was closed before custom folders were added. The issue still reproduces with the default folder on 0.12.11.
What happened?
When the default
~/Library/Application Support/com.tinycast.app/Snippetsdirectory is a symbolic link to an existing directory, Search Snippets showsNo snippets yeteven though the target contains Markdown files. The files remain accessible on disk. Pointing thesnippetsFoldersetting explicitly to the target directory and restarting Tinycast makes them available again.The default path returned by
AppPaths.contentFolderis not resolved, unlike a custom path. On this Mac, callingFileManager.contentsOfDirectory(at:includingPropertiesForKeys:options:)with the default directory URL returnsNSCocoaErrorDomain Code=256, withNSPOSIXErrorDomain Code=20(Not a directory). Resolving the symlink first allows the directory to be listed. The same default path code is used for Notes; a local path-level test reproduces the listing failure for both names, but I have not verified Notes in the app.Steps to reproduce
Snippetspath is a symbolic link to a directory containing at least one valid snippet Markdown file.No snippets yet; the linked directory and files are still accessible on disk.Expected: the snippets in the linked directory are loaded and searchable. If loading fails, an error would also be more informative than an empty-library message.
Tinycast version + channel
0.12.11 (build 138), stable
macOS version
27.0.1 (26A434)
Contribution
approved.All reactions