Skip to content

Logical Bug In Updating DB #15

@j5shi

Description

@j5shi
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions