Skip to content

list of files inaccurate #9

@jerdmann

Description

@jerdmann

I'm seeing a weird behavior when running lsp. When I run lsp in pretty much any directory, the number of files is accurate but I'm seeing lots of repeated filenames. For example, in a given directory with 100 files, I see 100 files in the list but only one or two filenames, almost like a couple of the names "smear" over everything else.

Below is how to reproduce this problem. I'm running ubuntu 14.04 LTS x64 and I built lsp using go version xgcc (Ubuntu 4.9.1-0ubuntu1) 4.9.1 linux/amd64. I ran a simple 'go get ' like the README specifies.

Thanks for the awesome tool. Hopefully we can fix this. I'll take a look too but I have zero go programming experience. =)

To reproduce the problem:

  1. In some directory, create some files:
    for i in {1..20}; do touch file$i; done
  2. Run lsp and get this:

                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)
                                                  file9  Empty File (Empty File)

               lsp "/tmp/problem", 20 files, 0 directories

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