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 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
Member

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 as completed Dec 23, 2015
@pamu
Copy link
Author

pamu commented Dec 24, 2015

thanks 👍

@prozz
Copy link

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

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 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 commented Aug 6, 2019

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

@phyllisstein
Copy link

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 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
Labels
Projects
None yet
Development

No branches or pull requests

8 participants