dhruvasagar / vim-prosession

Handle vim sessions like a pro
254 stars 22 forks source link

Error opening session #59

Closed Dbz closed 5 years ago

Dbz commented 5 years ago

Hello again! I just created a new git branch, and I'm seeing an error on nvim. It's worth noting to make some plugins work better, I just switched to neovim:

Error detected while processing function <SNR>46_Prosession:
line   34:
Vim(mksession):E190: Cannot open "/Users/danielburt/.vim/session/%Users%danielburt%development%app-orchestrator_^M  Touch ID  C02W9812HV2R  [*] Touch required after idle^[[K^[[64G  [^[[1;32;48m
OKAY^[[0m]  ^@Identities available via memento-agent:^@  Soft Key  asd9sd98Xsd  [S] %Users%danielburt%.ssh%id_rsa^@add_instance_type_validation.vim" for writing

I actually went into my /Users/danielburt/.vim/session/ folder and deleted anything with Touch ID in it. I'm actually not sure why those sessions are being created.

This is what I have in my .vimrc for vim-prosession:

" session management via obsession+prosession
" Set session to be name of git branch
let g:prosession_per_branch = 1

" https://github.com/dhruvasagar/vim-prosession/issues/50
" The following saves the last buffer viewed so that <leader><leader> or <c-^> works

function! s:preserve_alt_buffer()
  let l:alternate = fnameescape(expand('#'))
  if !empty(l:alternate)
    call system('echo "let @#=\"'.l:alternate.'\"" >> '.v:this_session)
  endif
endfunction

autocmd User Obsession call s:preserve_alt_buffer()

" augroup ProsessionPreserveAlt
"   au!

"   autocmd VimLeave * call s:preserve_alt_buffer()
" augroup END
dhruvasagar commented 5 years ago

Thanks for reporting this, can you also share output of nvim --version, i'll investigate.

Dbz commented 5 years ago

Thank you for looking into it! Here is the output:

NVIM v0.3.1
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20181019-50893-1j0fv9i/neovim-0.3.1/build/config -I/tmp/neovim-20181019-50893-1j0fv9i/neovim-0.3.1/src -I/usr/local/include -I/usr/local/opt/gettext/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/tmp/neovim-20181019-50893-1j0fv9i/neovim-0.3.1/build/src/nvim/auto -I/tmp/neovim-20181019-50893-1j0fv9i/neovim-0.3.1/build/include
Compiled by brew@Mojave-2.local

Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.3.1/share/nvim"

Run :checkhealth for more info

Please let me know if there is any other information that I can get for you.

dhruvasagar commented 5 years ago

Hi, I am not exactly able to reproduce this issue, also there are no sessions being created for / referencing 'Touch ID', what we were seeing in the output you posted was regarding authentication being needed using Touch ID. I don't have one of these latest macbook's with Touch ID so I don't think i'll be able to reproduce this issue in particular, however I also don't think this is likely a prosession issue.

Dbz commented 5 years ago

No worries. I don't see to be facing this issue anymore! Thank you for looking into it :)