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

Various autocomplete issues #1473

Closed
kittycat2002 opened this issue Jul 8, 2024 · 2 comments
Closed

Various autocomplete issues #1473

kittycat2002 opened this issue Jul 8, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@kittycat2002
Copy link
Contributor

Bitburner v2.6.2 (633da38)

There are a couple issues with the current autocomplete implementation:

  1. it doesn't handle partial quotes correctly so you may have difficulty autocompleting anything with spaces.
    for example run test.js "foo bar" will pass ["foo bar"] while run test.js "foo bar and run test.js "foo bar will pass ['"foo', "bar"]
  2. there is currently no way to determine in a script's autocomplete method what argument the user is currently trying to complete.
    for example run test.js foo and run test.js foo will pass ["foo"] to the method.
@d0sboots
Copy link
Collaborator

d0sboots commented Jul 8, 2024

Yup. This relates to how the argument parsing is pretty rudimentary. It's not likely to change, but the issues are valid and real.

@gmcew
Copy link
Collaborator

gmcew commented Jul 11, 2024

To add to d0s' point above; there's a few other references for autocomplete's limitations, as well as some workarounds by other users at #522 and #1014
To avoid too much duplication, I'll close this one

@gmcew gmcew closed this as completed Jul 11, 2024
@gmcew gmcew added the duplicate This issue or pull request already exists label Jul 11, 2024
@gmcew gmcew closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants