Fork me on GitHub
#protorepl
<
2017-03-10
>
jasongilman00:03:45

That's odd. There must be a bug when opening that var. Can you try opening a var from another library or even Clojure itself?

torbjornvatn09:03:34

Seems like only Clojure core has been downloaded

.
├── environ
│   └── environ
│       └── 1.1.0
│           └── environ-1.1.0.jar
└── org
    ├── clojars
    │   └── unacast
    │       └── datasplash
    │           └── 0.4.3
    │               └── datasplash-0.4.3.jar
    └── clojure
        ├── clojure
        │   └── 1.8.0
        │       └── clojure-1.8.0.jar
        │           ├── META-INF
        │           │   ├── MANIFEST.MF
        │           │   └── maven
        │           │       └── org.clojure
        │           │           └── clojure
        │           │               ├── pom.properties
        │           │               └── pom.xml
        │           └── clojure
        │               ├── asm
        │               │   ├── AnnotationVisitor.class
        │               │   ├── AnnotationWriter.class
        │               │   ├── Attribute.class
        │               │   ├── ByteVector.class
        │               │   ├── ClassReader.class
        │               │   ├── ClassVisitor.class

torbjornvatn09:03:10

does leiningen always download sources to .m2 ?

torbjornvatn09:03:56

And I get this when trying it on environ

decompressing /Users/torbjorn/.m2/repository/environ/environ/1.1.0/environ-1.1.0.jar to /Users/torbjorn/.lein/tmp-atom-jars/environ/environ/1.1.0/environ-1.1.0.jar
java.io.FileNotFoundException: /Users/torbjorn/.lein/tmp-atom-jars/environ/environ/1.1.0/environ-1.1.0.jar/META-INF/MANIFEST.MF (No such file or directory)

jasongilman13:03:42

I thought that it always went to that directory. It looks like there might be something odd about the environ jar. This could also be (probably) a Proto REPL bug in this feature.

torbjornvatn13:03:34

I can add an issue if you want

jasongilman14:03:08

That would be helpful if you could do that.

lum16:03:43

Hi, a novice question. Using Atom first time, already installed protorepl. Started a project fwpd from "Clojure for the Brave and True". In my core.clj file I have this: (ns fwpd.core) (def filename "suspects.csv") (slurp filename). In the repl tab, got this message:

lum16:03:49

nREPL server started on port 42481 on host 127.0.0.1 - <nrepl://127.0.0.1:42481> Refreshing code... No user namespace defined. Defaulting to clojure.tools.namespace.repl/refresh. clojure.tools.namespace.repl not available. Add proto-repl in your project.clj as a dependency to allow refresh. See https://clojars.org/proto-repl java.lang.IllegalArgumentException: No such namespace: clojure.tools.namespace.repl REPL already running

lum16:03:05

What and where should I add what namespace?

seancorfield17:03:46

That error means you need to add [proto-repl “0.3.1”] to the :dependencies vector in project.clj.

seancorfield17:03:45

ProtoREPL relies on that library to do some of its magic, and that in turn ensures tools.namespace is added to your project.

seancorfield17:03:58

Since you’re working with the Brave/True projects which have side-effecting forms at the top-level in a namespace, you’ll also want to turn off some of ProtoREPL’s namespace reloading settings (I wish they were off by default, to be honest). In Settings > Packages > proto-repl > settings turn off the following: https://www.dropbox.com/s/rmx5lzyao89f8fe/Screenshot%202017-03-10%2009.53.54.png?dl=0

lum19:03:51

Thank you very much @seancorfield!