jasongilman / proto-repl-demo Goto Github PK
View Code? Open in Web Editor NEWA sample Clojure project for demoing capabilities of the Proto REPL package for the Atom editor.
License: Eclipse Public License 1.0
A sample Clojure project for demoing capabilities of the Proto REPL package for the Atom editor.
License: Eclipse Public License 1.0
I am using boot with proto-repl. These problems do not occur using lein.
In the demos.md there were some issues with
"## Demo: Refresh all Code in the Project".
(defn start
[](println "Starting"))
## Demo: Run All Tests
The keybindings for evaluating code in a code window conflict with the atom core keybindings
For example: ctrl-, b
opens up the atom keybindings window.
All the proto-repl keybindings that start with ctrl-,
seem to conflict
Curious if its possible to use this package with Parinfer (https://shaunlebron.github.io/parinfer/)? When starting the REPL it seems to clobber the functionality.
I just installed proto-repl and proto-repl-demos and can't get the demo to work. I did a fresh Atom install but the problem is still there.
When I open the demos.md
and choose "Start REPL", I get the following error output in the REPL:
Starting REPL with lein in /Users/robert/Google Drive/Projekt/Clojure/code/proto-repl-demo
Exception in thread "main"
java.lang.ExceptionInInitializerError
at clojure.main.<clinit>(main.java:20)
Caused by: java.io.FileNotFoundException: Could not locate proto__init.class or proto.clj on classpath., compiling:(user.clj:1:1)
at clojure.lang.Compiler.load(Compiler.java:7391)
at clojure.lang.RT.loadResourceScript(RT.java:372)
at clojure.lang.RT.loadResourceScript(RT.java:359)
at clojure.lang.RT.maybeLoadResourceScript(RT.java:355)
at clojure.lang.RT.doInit(RT.java:475)
at clojure.lang.RT.<clinit>(RT.java:331)
... 1 more
Caused by: java.io.FileNotFoundException: Could not locate proto__init.class or proto.clj on classpath.
at clojure.lang.RT.load(RT.java:456)
at clojure.lang.RT.load(RT.java:419)
at clojure.core$load$fn__5677.invoke(core.clj:5893)
at clojure.core$load.invokeStatic(core.clj:5892)
at clojure.core$load.doInvoke(core.clj:5876)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5697)
at clojure.core$load_one.invoke(core.clj:5692)
at clojure.core$load_lib$fn__5626.invoke(core.clj:5737)
at clojure.core$load_lib.invokeStatic(core.clj:5736)
at clojure.core$load_lib.doInvoke(core.clj:5717)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:648)
at clojure.core$load_libs.invokeStatic(core.clj:5774)
at clojure.core$load_libs.doInvoke(core.clj:5758)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:648)
at clojure.core$require.invokeStatic(core.clj:5796)
at clojure.core$require.doInvoke(core.clj:5796)
at clojure.lang.RestFn.invoke(RestFn.java:436)
at user$eval3$loading__5569__auto____4.invoke(user.clj:1)
at user$eval3.invokeStatic(user.clj:1)
at user$eval3.invoke(user.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6927)
at clojure.lang.Compiler.eval(Compiler.java:6916)
at clojure.lang.Compiler.load(Compiler.java:7379)
... 6 more
Subprocess failed
REPL Closed
--------------------
Same problem in the terminal if I run lein repl
. Leiningen version is 2.6.1 on Java 1.8.0_60.
Any thoughts on what causes this? Appreciate any input.
well looks like I can't continue with this since ctrl-, spawns settings and none of the other keyboard shortcuts work ๐
update: just downloaded lighttable, highlighted clojure code ctrl+enter and it printed out the result in less than a minute including time spent on downloading.
Potential usability problem for Windows users (poor souls). Attempt to clone on Windows 10 using git bash ends like that:
$ git clone [email protected]:jasongilman/proto-repl-demo.git
Cloning into 'proto-repl-demo'...
remote: Counting objects: 149, done.
Receiving objects: 37% (56/149) 0 (delta 0), pack-reReceiving objects: 36% (54/149) used 149
Receiving objects: 100% (149/149), 25.07 KiB | 0 bytes/s, done.
Resolving deltas: 100% (66/66), done.
Checking connectivity... done.
error: unable to create file file\ with\slashes_in_name.clj (No such file or directory)
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
Maybe it would be good idea to generate the file\ with\slashes_in_name.clj
file using a script when testing handling of filenames with backslashes is needed on OSes that should support it?
I'm not sure that I have boot setup correctly for the proto-repl-demo project. The test directories are not loaded when refresh is run.
Getting this on Git Bash on Win 7
$ git clone [email protected]:jasongilman/proto-repl-demo.git
Cloning into 'proto-repl-demo'...
Enter passphrase for key '/c/Users/bo/.ssh/id_rsa':
remote: Counting objects: 128, done.
remote: Total 128 (delta 0), reused 0 (delta 0), pack-reused 128
Receiving objects: 100% (128/128), 22.07 KiB | 0 bytes/s, done.
Resolving deltas: 100% (55/55), done.
Checking connectivity... done.
error: unable to create file file\ with\slashes_in_name.clj (No such file or directory)
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
update: ended up using Lighttable
If I follow the instructions an select a test name and try to run it using C-, t
I get the following error:
=> CompilerException java.lang.RuntimeException: Unable to resolve var: subtract-numbers-test in this context, compiling:(/tmp/form-init6780976928482547280.clj:1:1)
If I run all tests first using using C-, a 0
the test runs correctly using C-, t
.
I am using:
proto-repl 0.15.1
ATOM 1.4.1
and
Leiningen 2.5.3 on Java 1.8.0_45-internal OpenJDK 64-Bit Server VM
on Ubuntu.
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.