macvim-dev / macvim-dev/macvim

kCFURLVolumeIsAutomountedKey missing, from Time Machine

未关闭
#889 25 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Vim Script
星标
7.9k
派生
691
PR 合并指标
30 天内没有已合并 PR

描述

when I launch mvim from the command line, then I am seeing messages throughout the day stream to the terminal that look like this:

2019-04-29 02:00:00.308 MacVim[25865:2008397] kCFURLVolumeIsAutomountedKey missing for file:///Volumes/ccc/: Error Domain=NSCocoaErrorDomain Code=257 "The file “ccc” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///Volumes/ccc/, NSFilePath=/Volumes/ccc, NSUnderlyingError=0x7fd205d05aa0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}

2019-04-29 03:00:15.539 MacVim[25865:2016017] kCFURLVolumeIsAutomountedKey missing for file:///Volumes/timemachine/: Error Domain=NSCocoaErrorDomain Code=257 "The file “timemachine” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///Volumes/timemachine/, NSFilePath=/Volumes/timemachine, NSUnderlyingError=0x7fd2072289d0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}

These seem to coincide time wise with when my Time Machine and/or Carbon Copy Cloner backups are timed to auto mount SMB shares in order to run backups. No idea why this would cause macvim to complain. I don't remember this happening before, but its quite annoying to have my terminal clutter up. Mvim seems to run ok otherwise.

Detailed steps to reproduce the behavior:

  1. Run mvim from the command line
  2. Wait for Timemachine to run a backup over network

Vim Version 8.1.950
OSX sierra 10.12.6

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在 macOS Sierra 上从命令行运行 mvim,并在 Time Machine 或 Carbon Copy Cloner 挂载 SMB 备份共享时重现该警告。追踪是哪个 MacVim 入口点发出了 kCFURLVolumeIsAutomountedKey 消息,并确定应更改哪些行为,同时不影响正常使用。当备份挂载期间不再出现重复的终端警告,并且 mvim 仍能正常运行时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
macos, vim
领域
desktop, operating-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。