These are chat archives for Shougo/dein.vim

3rd
Jul 2017
Zhaosheng Pan
@brglng
Jul 03 2017 03:19

Hi Shougo, I am trying to read the rollback file, however I found the rollback file is not a valid dictionary, either in VimL's dictionary or in JSON, e.g., the file ~/.cache/dein/.cache/.vimrc/rollbacks/vim/20170703105900 on my machine looks like this

{"denite.nvim":"81357ae400f3213cfb4948b7d2444df0285baeee","vim-ps1":"dcdca6abb4db10fb6e7597d2e21a4a99952134ab","vim-easymotion":"d55e7bf515eab93e0b49f6f762bf5b0bf808264d",undotree:"ad08a88df70c1865b8c9ef6eeac5cdb051d2a18a","papercolor-theme":"3ca1fba362e90ab0fc4e7f0168e0126a7e5f0a7a","vim-airline":"b78c2ec475022cd9de7b7c7c080482cdc5e1b8fb","vim-unimpaired":"e1e0cc3859323f354b8d905ca177e172c7d69f0e","vim-gitgutter":"dcac1f74ee5c26125363dca164463bde6657c838","plantuml-syntax":"522fb10685b88c2422962e674cf07bbebacd8acf",tabular:"00e1e7fcdbc6d753e0bc8043e0d2546fa81bf367","targets.vim":"050335f848d57cb1c59bffe6f32f901307b7e504","vim-nerdtree-tabs":"01ae3cdc7018fa33f140cce3e7cdf210c04ffbab",fencview:"3269798ba91b3f264d0be85ed712cdff3dc9ea56","vim-dirdiff":"db1fe77dcefa7a5b1089c8a84d1b401a4bd780bc","vim-tomorrow-theme":"46994f3a4d4574ce0d48c26a3bc1e528b8092c93","vim-surround":"e49d6c2459e0f5569ff2d533b4df995dd7f98313","vim-airline-themes":"7865fd8ba435edd01ff7b59de06a9be73e01950d","vim-sleuth":"fc5cf44466d50fada784530de933af80c6448db5","vim-monokai":"ece3e6f0dd6970412e09b01f8e2d7de1129970c4","vim-fugitive":"be2ff98db543990d7e59a90189733d7a779788fd",ale:"51f256e897891617eb8539c31f0c48e037600de7",ultisnips:"423f264e753cec260b4f14455126e6db7ba429af","vim-endwise":"d5655263af8b3611a2bcb907a9963831a88d154b","jellybeans.vim":"2ca7d8a27072a8f449887179c3fee81cb00f8c18","dein.vim":"fe55e0b2d70c40b2ad425181b2510982c4c3eeee","base16-vim":"a86dfe417dcf852a8985b6115e4a19cde00ce7cb",nerdtree:"2e43ad074bb3b7fafc77b9eea5098047d6fe6e90","seoul256.vim":"2309b5c8724970c4ad16a7510fbf70100e95ac11","vim-commentary":"be79030b3e8c0ee3c5f45b4333919e4830531e80","vim-python-pep8-indent":"8b215aac0192f74b5aeb6ae5a2e1766db2ebecb8","vim-snippets":"4e45931fa693946cc6d384edbfb838dda2fb96e5",tagbar:"f5792732de16b8a2cc202f920e363eb413d7241d","neomru.vim":"c7bf447627679a3f06f0f3caf893b0497d0aa90b","Conque-GDB":"855adfca8d4b120e54a9a76f25a4f987ccd21abb","dein-command.vim":"319b2c5f7d6d431a2fe46fdad214440423bb4eaa",delimitMate:"728b57a6564c1d2bdfb9b9e0f2f8c5ba3d7e0c5c",YouCompleteMe:"25a2e3120ce2b33630dda698c1d2b9a87ce01616"}

You can find there is no double quotes around "undotree", "tabular" and "ultisnips". This only happens for vim not nvim. The nvim's rollback files are good. I am not sure if this is expected behavior or bug, so asking here. Thank you!

Shougo
@Shougo
Jul 03 2017 03:28
Oh, js_decode(), js_encode() is broken.
What is your Vim version?
Zhaosheng Pan
@brglng
Jul 03 2017 03:33
My Vim version is 8.0.95. Maybe I should try update my Vim?
Shougo
@Shougo
Jul 03 2017 03:35
Please upgrade it.
It is too old.
Zhaosheng Pan
@brglng
Jul 03 2017 03:38
OK. I will upgrade it.
Zhaosheng Pan
@brglng
Jul 03 2017 05:28
It seems Vim 8.0.685 still have this problem. Well, I was just doing a test with Vim but I actually use Neovim most of the time. I can just stick with Neovim at the moment.
Shougo
@Shougo
Jul 03 2017 05:33
OK. I will fix the issue.
I think neovim json implementation is mature than Vim.
It seems Vim 8.0.685 still have this problem. Well, I was just doing a test with Vim but I actually use Neovim most of the time. I can just stick with Neovim at the moment.
Update Vim and call dein#recache_runtimepath() does not fix the problem?
Zhaosheng Pan
@brglng
Jul 03 2017 05:35
No, it does not.
Shougo
@Shougo
Jul 03 2017 05:36
Hm...
I will use json_encode() / json_decode() instead.
js_encode()/js_decode() is faster, but it seems broken.
Zhaosheng Pan
@brglng
Jul 03 2017 05:38
Thanks. I will try to figure out a minimal test case to reproduce the problem and report to Vim if I get time...