Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logical Bug In Updating DB #15

Open
j5shi opened this issue May 21, 2015 · 0 comments
Open

Logical Bug In Updating DB #15

j5shi opened this issue May 21, 2015 · 0 comments

Comments

@j5shi
Copy link

j5shi commented May 21, 2015

  let id = s:dbs[a:dir]['id']
  let cscope_files = s:cscope_vim_dir."/".id."_inc.files"
  let cscope_db = s:cscope_vim_dir.'/'.id.'_inc.db'
  if ! filereadable(cscope_files) || a:init
    let cscope_files = s:cscope_vim_dir."/".id.".files"
    let cscope_db = s:cscope_vim_dir.'/'.id.'.db'
    if ! filereadable(cscope_files)
      let files = <SID>ListFiles(a:dir)
      call writefile(files, cscope_files)
    endif
  endif

So if x.files exist, the update will based on it, however, in some cases the there will be changes in file names and number of files, and path of files... so, obviously the x.files needs to be updated also everytime the databse is being updated to reliably update database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant