Bug 508533 - On startup, I get an access denied to "~/.password-store"
Summary: On startup, I get an access denied to "~/.password-store"
Status: RESOLVED UPSTREAM
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.04.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-20 19:31 UTC by Douglas Silva
Modified: 2025-08-28 18:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Silva 2025-08-20 19:31:50 UTC
SUMMARY
When starting the Kate editor this morning (and restoring my last session), I noticed this error logged in along with the LSP entries:

[08:35:08 WRN] <Folder> Couldn't read the folder: {"dir": "Abs (AbsPath \"/home/dsilva/.password-store\")"}
System.UnauthorizedAccessException: Access to the path '/home/dsilva/.password-store' is denied.

(See the full logs pasted below)

".password-store" is where my password manager stores my GPG-encrypted password files. I've never used Kate to edit any file in there (and my file history does not show any file from there). I did use VSCodium recently to do a little scripting in that folder, but I don't think it uses the same LSP server.


STEPS TO REPRODUCE
1. Open Kate and restore your last session.
2. Look in the Output tab at the bottom.

OBSERVED RESULT
Unauthorized access attempt to "~/.password-store" (my password manager).

EXPECTED RESULT
n/a

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 13
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.12.41+deb13-amd64 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION

See the full logs:
[08:35:02  PATH Info] /home/dsilva/.nvm/versions/node/v22.18.0/bin:/home/dsilva/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin:/home/dsilva/.local/share/flatpak/exports/bin:/home/dsilva/.local/share/JetBrains/Toolbox/scripts
[08:35:02  Git Info] Failed to find .git directory for '/home/dsilva/Documents/Notes', things may not work correctly
[08:35:05  LSP Client Log] Started server markdown@/home/dsilva: /snap/bin/marksman server
[08:35:07  LSP Server Log] markdown@/home/dsilva
[08:35:07 INF] <LSP Entry> Starting Marksman LSP server: {}
[08:35:08  LSP Server Log] markdown@/home/dsilva
[08:35:08 WRN] <Folder> Couldn't read the folder: {"dir": "Abs (AbsPath \"/home/dsilva/.password-store\")"}
System.UnauthorizedAccessException: Access to the path '/home/dsilva/.password-store' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String, Boolean )
   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
   at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String, Boolean, EnumerationOptions )
   at System.IO.Enumeration.FileSystemEnumerable`1.DelegateEnumerator..ctor(FileSystemEnumerable`1, Boolean)
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String, FindTransform, EnumerationOptions, Boolean)
   at System.IO.Enumeration.FileSystemEnumerableFactory.FileInfos(String, String, EnumerationOptions, Boolean)
   at System.IO.DirectoryInfo.InternalEnumerateInfos(String, String, SearchTarget, EnumerationOptions)
   at System.IO.DirectoryInfo.GetFiles(String, EnumerationOptions)
   at System.IO.DirectoryInfo.GetFiles()
   at Marksman.Folder.FolderModule.collect@305(ParserSettings parserSettings, UriWith`1 folderId, LocalPath cur, FSharpList`1 ignoreMatchers) in /build/marksman/parts/marksman/build/Marksman/Folder.fs:line 314
[10:11:52  LSP Client Warning] Failed to find server binary: lemminx
Please check your PATH for the binary
See also https://github.com/redhat-developer/vscode-xml#lemminx-binary for installation or details
Comment 1 Waqar Ahmed 2025-08-28 07:22:48 UTC
Please report this issue to the LSP server you are using. This has nothing to do with kate, we are just showing the message that lsp sends us.
Comment 2 Douglas Silva 2025-08-28 18:12:53 UTC
Reported to the LSP server at https://github.com/artempyanykh/marksman/issues/420