Giter VIP home page Giter VIP logo

Comments (5)

hkupty avatar hkupty commented on June 8, 2024 2

I've never actually worked with CLJS, but I'd like to add support.
Not really sure about how to do that, though.

I'll take a look at piggieback to understand some more about it.

This will probably be the next major bump.

from acid.nvim.

SevereOverfl0w avatar SevereOverfl0w commented on June 8, 2024

Pseudo-code of python written in Clojure

(defn get-session
  [path]
  (if (string/ends-with? path ".cljs")
    (:cljs-session @state)
    (:session @state)))

To initialize the cljs session, you clone the current session (and get a new id), and call a user-supplied repl-env function. The one provided by boot-cljs-repl is the most stable in my experience. This will turn the new session into a cljs session.

from acid.nvim.

devth avatar devth commented on June 8, 2024

Some thoughts coming from working with .cljc files with fireplace.vim: fireplace only lets you connect to a single nrepl (either piggieback-or-similar for CLJS or a normal CLJ nrepl). When working with .cljc files it'd be very useful to be connected to both, and allow requires or any other sort of evals to target either CLJ or CLJS repls.

Not sure what the UX would be like. Separate mappings for CLJ and CLJS? Or some way to toggle which repl to target?

from acid.nvim.

hkupty avatar hkupty commented on June 8, 2024

It seems that some sort of session management is needed.. I've drafted a bit of this and a rudimentary implementation of 'sticky session' exists, while untested.

As soon as I have enough time to play with this, I'll come up with a long-lived branch that implements this behavior and make it available here for testing.

from acid.nvim.

hkupty avatar hkupty commented on June 8, 2024

I've recently added sessions to the new lua version. I believe there might be still a few bits until full cljs support out of the box, but it should be possible already.

Does anyone mind guiding me to test this?

from acid.nvim.

Related Issues (20)

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.