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

feat: add rust binary to sit on top of "headless repl" backend #5041

Merged
merged 27 commits into from
Aug 30, 2022

Conversation

Westonside
Copy link
Contributor

Description

Added in my rusty line code from my other repo. The rustyline will send the user input to the headless repl over JSON RPC via the stdin and receive output from the stdout. The rustyline also provides completion suggestions through communication over the stdio with the flux lsp. Related to #5040.

Checklist

Dear Author 👋, the following checks should be completed (or explicitly dismissed) before merging.

  • ✏️ Write a PR description, regardless of triviality, to include the value of this PR
  • 🔗 Reference related issues
  • 🏃 Test cases are included to exercise the new code
  • 🧪 If new packages are being introduced to stdlib, link to Working Group discussion notes and ensure it lands under experimental/
  • 📖 If language features are changing, ensure docs/Spec.md has been updated

Dear Reviewer(s) 👋, you are responsible (among others) for ensuring the completeness and quality of the above before approval.

@Westonside Westonside requested a review from onelson August 2, 2022 21:32
@Westonside Westonside changed the title Westonside/intern project/new cli/rustyline Rustyline Code additions to communicate with the headless repl Aug 2, 2022
@onelson onelson changed the base branch from master to westonside/intern_proejct/new-cli August 11, 2022 03:08
Copy link
Contributor

@Marwes Marwes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly just style things. Haven't gone through all of it yet so will continue tomorrow.

internal/cmd/headless_repl/src/LSPSuggestionHelper.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/LSPSuggestionHelper.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/LSPSuggestionHelper.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/LSPSuggestionHelper.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/lib.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/lib.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/lib.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/lib.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/lib.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/LSPSuggestionHelper.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/processes/FluxServerImpl.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/processes/LSPServerImpl.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/processes/invoke_go.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/processes/invoke_go.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/processes/invoke_go.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/processes/invoke_go.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/processes/invoke_go.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/processes/lsp_invoke.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/processes/lsp_invoke.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/main.go Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/lib.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/lib.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/lib.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/lib.rs Outdated Show resolved Hide resolved
internal/cmd/headless_repl/src/processes/invoke_go.rs Outdated Show resolved Hide resolved
@Westonside Westonside changed the base branch from westonside/intern_proejct/new-cli to master August 26, 2022 19:38
@Westonside Westonside force-pushed the westonside/intern_project/new_cli/rustyline branch from 4cb43c4 to 610d3b9 Compare August 26, 2022 19:45
@Westonside Westonside changed the title Rustyline Code additions to communicate with the headless repl feat: Rustyline Code additions to communicate with the headless repl Aug 26, 2022
@Westonside Westonside force-pushed the westonside/intern_project/new_cli/rustyline branch from 610d3b9 to 7fd0998 Compare August 26, 2022 20:09
Weston Tuescher and others added 20 commits August 29, 2022 13:26
…function arguments so that arg hints will be given even if there is not any overlap with what has been typed
…an be removed so that hints are not being repeated
…s after an import the lsp stops giving completions for some reason
…now am showing suggestions if there is not a comma present with function args
…o auto suggest function args without user typing anything
@onelson onelson force-pushed the westonside/intern_project/new_cli/rustyline branch from 7fd0998 to 4c2684b Compare August 29, 2022 20:26
@onelson onelson force-pushed the westonside/intern_project/new_cli/rustyline branch from 4c2684b to 899c7a9 Compare August 30, 2022 00:06
@onelson onelson marked this pull request as ready for review August 30, 2022 00:07
@onelson onelson requested a review from a team as a code owner August 30, 2022 00:07
Copy link
Contributor

@onelson onelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spent some time looking things over again today and I think most of the stuff I'd like to change can be done as follow-up PRs.

The main thing will be to get this merged so we can iterate on it as time allows.

@onelson onelson changed the title feat: Rustyline Code additions to communicate with the headless repl feat: add rust binary to sit on top of "headless repl" backend Aug 30, 2022
@onelson onelson merged commit 6235ddd into master Aug 30, 2022
@onelson onelson deleted the westonside/intern_project/new_cli/rustyline branch August 30, 2022 00:25
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.

3 participants