Skip to content

Conversation

@Gekkio
Copy link
Contributor

@Gekkio Gekkio commented Nov 27, 2014

Running a Rust program with some arguments such as files is a common use
case. The ZSH completion did not declare support for extra arguments to
"cargo run", so file completion was impossible. In practice pressing TAB
after writing "cargo run -- " gave no completion at all.

After this patch, cargo run can do "normal completion",
which in practice does file/directory completion. This works nicely
with "cargo run -- ".

Running a Rust program with some arguments such as files is a common use
case. The ZSH completion did not declare support for extra arguments to
"cargo run", so file completion was impossible. In practice pressing TAB
after writing "cargo run -- " gave no completion at all.

After this patch, cargo run can do "normal completion",
which in practice does file/directory completion. This works nicely
with "cargo run -- ".
@Gekkio
Copy link
Contributor Author

Gekkio commented Nov 27, 2014

Build failure seems to be unrelated:

task '<main>' panicked at 'failed to spawn native thread: 11', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/librustrt/thread.rs:447

That is caused by EAGAIN (11) return code from pthread_create(). Too many threads on the travis machine...?

bors added a commit that referenced this pull request Nov 27, 2014
Running a Rust program with some arguments such as files is a common use
case. The ZSH completion did not declare support for extra arguments to
"cargo run", so file completion was impossible. In practice pressing TAB
after writing "cargo run -- " gave no completion at all.

After this patch, cargo run can do "normal completion",
which in practice does file/directory completion. This works nicely
with "cargo run -- ".
bors added a commit that referenced this pull request Nov 27, 2014
Running a Rust program with some arguments such as files is a common use
case. The ZSH completion did not declare support for extra arguments to
"cargo run", so file completion was impossible. In practice pressing TAB
after writing "cargo run -- " gave no completion at all.

After this patch, cargo run can do "normal completion",
which in practice does file/directory completion. This works nicely
with "cargo run -- ".
@bors bors merged commit bfed208 into rust-lang:master Nov 27, 2014
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

Successfully merging this pull request may close these issues.

2 participants