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

Loading current sbt project in ammonite repl like "sbt console" in current project directory #310

Closed
pamu opened this issue Dec 21, 2015 · 8 comments
Labels

Comments

@pamu
Copy link

@pamu pamu commented Dec 21, 2015

sbt console in the current sbt project loads the project into to the repl. Is it possible to do the same with ammonite repl as well.

something like this

sbt console

output: loading current sbt project ....
similarly

amm console

output: loading current sbt project....

@lihaoyi
Copy link
Owner

@lihaoyi lihaoyi commented Dec 23, 2015

This is probably made redundant by the fact you can already run Ammonite in any SBT project pretty trivially

http://lihaoyi.github.io/Ammonite/#Ammonite-REPL

@lihaoyi lihaoyi closed this Dec 23, 2015
@pamu
Copy link
Author

@pamu pamu commented Dec 24, 2015

thanks 👍

@prozz
Copy link

@prozz prozz commented Apr 24, 2018

@lihaoyi i dont think its trivial, i just failed to do this with use of docs description (probably dont know sbt enough and got multi-module project here). while searching for solution to the problem found this ticket.

i think you should reevaluate this feature request. easier level of entry is always welcome i guess.

regards

@estsauver
Copy link

@estsauver estsauver commented Jul 20, 2018

Another thought: It would be very nice to be able to say "Run this script in the context of this sbt project."

import $sbt:~/Dev/myrepo/

would be very exciting.

@fmv1992
Copy link

@fmv1992 fmv1992 commented Mar 22, 2019

This is probably made redundant by the fact you can already run Ammonite in any SBT project pretty trivially

http://lihaoyi.github.io/Ammonite/#Ammonite-REPL

I disagree and agree with @prozz . I'm also trying to figure out how to run ammonite inside an sbt session the same I can sbt 'project myproject' 'console'.

Any directions?

fmv1992 added a commit to fmv1992/learning_scala that referenced this issue Mar 22, 2019
@akaivola
Copy link

@akaivola akaivola commented Aug 6, 2019

Agreed, just spent close to two hours trying to get Ammonite running and gave up.

@phyllisstein
Copy link

@phyllisstein phyllisstein commented Aug 30, 2019

Since there's a little recent chatter, I thought I'd add that I found the linked instructions to mostly work... except that sbt kept forking. Adding this line to build.sbt let me start Ammonite with sbt test:run:

Test / run / fork := false
@soronpo
Copy link
Contributor

@soronpo soronpo commented Jun 15, 2020

@lihaoyi i dont think its trivial, i just failed to do this with use of docs description (probably dont know sbt enough and got multi-module project here). while searching for solution to the problem found this ticket.

i think you should reevaluate this feature request. easier level of entry is always welcome i guess.

regards

I agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
You can’t perform that action at this time.