ag91 / scala-cli-repl Goto Github PK
View Code? Open in Web Editor NEWEmacs REPL for scala-cli
Emacs REPL for scala-cli
Hello,
Thank you for creating an alternative to ob-ammonite
but compatible with scala-cli ๐ I was looking forward for this!
I am somewhat a Emacs newbie and I am using doom-emacs. I was used to Ctrl-C Ctrl-C
to execute code-blocks and see the results back. I managed to setup the plugin but I get a "Wrong number of arguments" error right after I execute the code-block:
To be honest, I am still getting acquainted with the emacs setup after a short break from using it. What is the best approach to debug? It is very likely a bug in my setup, although it is mostly vanilla Doom Emacs.
I am using Emacs 29.2, latest doom-emacs and the following config:
;; under packages.el
(package! scala-cli-repl
:recipe (:host github :repo "ag91/scala-cli-repl" :files ("*.el")) :pin "e19457e3a78674154959ad305a0ab7c3f87e6bab")
;; under config.el
(after! org-mode
:config
(add-to-list 'org-babel-load-languages '(scala-cli . t) '(scala .))
(setq ob-scala-cli-default-params '(:scala-version "3.3.1" :jvm 21)))
Thank you in advance!
Hello! Thanks for your module, very appreciated your work.
I tried to use an org-babel
integration and Emacs wasn't responding. All I see is the message "Waiting for scala-cli to start" with a lot of attempts. The solution was simple:
(setq scala-cli-repl-program (executable-find "scala-cli")) ;; HACK for macOS + nix (?)
There is a missed useful scala-cli parameter - :jvm
. To support this, add it as mentioned in README:
(setq ob-scala-cli-supported-params '(:scala-version :dep :jvm))
But you can get an error, e.g.:
#+begin_src scala :scala-version 2.13.11 :jvm 11
println(s"test1 ${1+1}")
#+end_src
format: Wrong type argument: sequencep, 11
To solve it, change the jvm
argument type to the string: :jvm "11"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.