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

bloop completer #2597

Closed
igor-ramazanov opened this issue Nov 21, 2024 · 6 comments · Fixed by #2605
Closed

bloop completer #2597

igor-ramazanov opened this issue Nov 21, 2024 · 6 comments · Fixed by #2605
Labels
completer High level tracking issue for completer enhancement New feature or request fund Fundable with polar.sh help wanted Extra attention is needed

Comments

@igor-ramazanov
Copy link

igor-ramazanov commented Nov 21, 2024

Command

bloop

Description

Bloop is a build server and CLI tool for the Scala programming language developed by the Scala Center.

Homepage

https://scalacenter.github.io/bloop/

Documentation

https://scalacenter.github.io/bloop/docs/cli/reference

Repository

https://github.com/scalacenter/bloop

Complexity

M

Anything else?

It already provides completions for bash/zsh/fish.

But would be nice to have something carapace native.

Polar

Fund with Polar
@igor-ramazanov igor-ramazanov added completer High level tracking issue for completer enhancement New feature or request fund Fundable with polar.sh labels Nov 21, 2024
@rsteube
Copy link
Member

rsteube commented Nov 21, 2024

related https://github.com/scalacenter/bloop/tree/main/frontend/src/main/scala/bloop/cli/completion

@rsteube rsteube mentioned this issue Nov 21, 2024
@rsteube rsteube added the help wanted Extra attention is needed label Nov 24, 2024
@rsteube
Copy link
Member

rsteube commented Nov 24, 2024

Added an initial version, but the documentation is quite lacking so it still needs some work.

Also can't add completion for projects and such at the moment as I don't have a project to test with.

bloop autocomplete --format fish --mode projects 2> /dev/null
bloop autocomplete --format fish --mode commands 2> /dev/null
bloop autocomplete --format fish --mode reporters 2> /dev/null
bloop autocomplete --format fish --mode protocols 2> /dev/null

see https://github.com/scalacenter/bloop/releases/download/v2.0.5/fish-completions

@igor-ramazanov
Copy link
Author

@rsteube Thanks, here's an example project: https://github.com/igor-ramazanov/bloop-example-project.

@rsteube
Copy link
Member

rsteube commented Nov 25, 2024

I think I'm doing sth. wrong:

root@ac63f77e3fcd:/tmp# cd bloop-example-project/
root@ac63f77e3fcd:/tmp/bloop-example-project# sbt bloopInstall
# ...
[error] Not a valid command: bloopInstall
[error] Not a valid project ID: bloopInstall
[error] Expected ':'
[error] Not a valid key: bloopInstall
[error] bloopInstall
[error]             ^
root@ac63f77e3fcd:/tmp/bloop-example-project# 

@rsteube
Copy link
Member

rsteube commented Nov 25, 2024

Ok this was missing in project/plugins.sbt:

addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "2.0.5")

@igor-ramazanov
Copy link
Author

@rsteube Oh, yeah, forgot to add it. Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completer High level tracking issue for completer enhancement New feature or request fund Fundable with polar.sh help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants