GithubHelp home page GithubHelp logo

jasongilman / proto-repl-demo Goto Github PK

View Code? Open in Web Editor NEW
28.0 6.0 9.0 26 KB

A sample Clojure project for demoing capabilities of the Proto REPL package for the Atom editor.

License: Eclipse Public License 1.0

Clojure 100.00%

proto-repl-demo's Introduction

Proto REPL Demo

This is a sample Clojure project meant to demonstrate the Proto REPL package for the Atom editor.

Setup

  1. Install Atom and install the proto-repl package. See https://github.com/jasongilman/proto-repl#installation
  2. Optional: Install the Atom Tool Bar package. The tool-bar package is optional for Proto REPL. Some of the demo steps assume you have it installed.
  3. Clone this repository git clone [email protected]:jasongilman/proto-repl-demo.git
  4. Open it in the Atom editor. atom proto-repl-demo/
  5. Open demos.md from this project in the Atom editor.

License

Copyright ยฉ 2015 Jason Gilman

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

proto-repl-demo's People

Contributors

burnash avatar jasongilman avatar phreed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

proto-repl-demo's Issues

Issues with demos.md

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".

  • There was nothing to uncomment in the 'start' function of user.clj so I added to the start function:
(defn start
 [](println "Starting"))
  • When doing the reset with 'ctrl-, r' the user.clj did not reload. Using 'ctrl-, f' did reload user.clj.

## Demo: Run All Tests

  • The description states that one of the tests is supposed to fail, but all of them pass.
  • If I run 'ctrl-, f' on demo_test.clj then rerun this example one of the tests does fail.

Keybindings conflict with atom core on Linux / Ubuntu

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

Run selected tests fail

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.

Clone on Windows OS fails because of backslashes in filename

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?

pressing ctrl-, spawns settings on win 7

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.

error: unable to create file file\ with\slashes_in_name.clj (No such file or directory)

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

proto-repl demos fail to run in lein on fresh Atom install

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.

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.