trixnz / rustsym

A tool to query symbols from rust code for use in IDEs
MIT License
91 stars 7 forks source link

search -g not return anything? #2

Closed fliar closed 8 years ago

fliar commented 8 years ago

rustsym search -g . main

returns

[]

while

rustsym search -l src/main.rs main

returns

[{"path":"src/main.rs","name":"main","container":"","kind":"function","line":8}]

trixnz commented 8 years ago

Hmm, it might be erroring on one of the files in the src directory. What is the directory structure of .? Are there any more files other than main.rs?

fliar commented 8 years ago

for your information:

$ rustsym search . main -g [] $ ls Cargo.lock Cargo.toml src target $ ls src/ main.rs

trixnz commented 8 years ago

Strange, its working fine here with that same structure. What OS are you running?

fliar commented 8 years ago

fyi, rustsym is installed by 'cargo install rustsym' btw:

Distributor ID: Debian Description: Debian GNU/Linux 8.5 (jessie) Release: 8.5 Codename: jessie

trixnz commented 8 years ago

Can confirm this is happening on Linux. Seems to be a sporadic failure.. sometimes I'm getting a panic. I'll get this fixed and deploy a new version.