GithubHelp home page GithubHelp logo

scala-cli-repl's Issues

Wrong number of arguments (when executing the code-block?)

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:

image

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!

Emacs isn't responding, sequencep error when specified jvm parameter

Hello! Thanks for your module, very appreciated your work.

  1. 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 (?)
    
  2. 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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.