sivertsenstian / visualclojure Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Currently an expression is evaluated when:
Should also evaluate an expression if cursor somewhere between ( and )
e.g. (+ 1 2 |3) => 6
Should find the closest previous parenthesis and use this to define the expression to be evaluated
Hi!
I cannot get much to work, apart from connecting to figwheel and evaluating expressions.
I seem to have a valid connection (it says nrepl://localhost:59627 (clj/cljs)
in the bottom bar), but I don't get any editor support.
I have checked that both figwheel-sidecar
and com.cemerick/piggieback
are in my dev-dependencies, and that the repl-options are correct.
Any hints?
The extension should loop through the available sessions, using ``:lssession` op to find existing sessions on connection and store the valid cljs session in the extension.
If no cljs extension exists, the user should be notified, and the connection should "fail" until #5 is resolved
Is it possible to show clj keywords in different color than default font color of code ?
i think the distinct color for keywords will make more readable
This extension is great but how are you getting multi color parentheses in vs code?
Use a simple (. js/Date. toLocaleString)
to test the connection.
Show this to the vscode output / console.
For
(when true
(println "hello")
(println "world"))
It should return:
=>
"hello"
"world"
nil
Now returns:
=>
"world"
If possible
Instead of console, use a popover or the editor to display results
Should show some sort of status if a cljs or clj session is used for the connection.
If no cljs-session exists fall back to supporting clj, and cljc files / namespaces only.
This to prevent annoying errors being displayed and compilation failing.
If no cljs is started, this if fine but the user should know about it and have to act accordingly.
Evaluate expression from selected start/end(?)-parentheses using a command
E.g. for the expression (3 3), it returns as a success for load-file. Even when executed directly in the cljs-repl.
This is not the case for clojure-files/repl..
(3 3) returns an error in cljs when evaluated as an expression..
Why??
loadFIle returns some false positives when evaluating cljs, not sure why.
Check if refresh also returns / generates stacktraces and use this if it is more reliable
Should be able to evaluate expression selected by user (blindly), and show result in vscode console.
Connect to existing nrepl from the extension when booting.
Right now cljs, cljc is supported when connecting to a cljs-repl
and clj, cljc when connecting to a clj-repl.
The extension should keep both a cljs and clj session when connecting and use the appropriate depending on the active file selected..
Should display in the lower-toolbar if connected or not.
It now calculates the specific text to send to nrepl, but the text is not selected in vscode after it is calculated, causing some complexities and bugs when underlining any errors.
|(+ 3 3) fails to evaluate
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.