jasongilman / proto-repl

A Clojure Development Environment package for the Atom editor
https://atom.io/packages/proto-repl
MIT License
565 stars 50 forks source link

project.clj size breaks protorepl #248

Open fgerard opened 7 years ago

fgerard commented 7 years ago

I have a project.clj:

-rw-r--r--   1 fgerard  staff   1262 18 May 21:40 project.clj

When I put any thing comments or else, and the size of the file increases to ~1400 bytes, then everything then on breaks. I added a comment :

 ;12312312312312312830123012830123801923801

File is:

-rw-r--r--   1 fgerard  staff   1307 18 May 21:43 project.clj

And now repl will refuse to load name space like so:

Refresh successful.
(use 'mx.interware.strauz.lco.core.state :reload-all)
CompilerException java.lang.Exception: namespace 'mx.interware.strauz.lco.core.state' not found after loading '/mx/interware/strauz/lco/core/state', compiling:(/private/var/folders/vf/yd3v64wd3bndw2sdd42kjk_r0000gn/T/form-init1927897706528835198.clj:1:5) 

Thanks (I know this is very very strange ;)

jasongilman commented 7 years ago

If you run lein repl at the command line do you see a failure?

Sent from my phone

On May 18, 2017, at 10:47 PM, Felipe Gerard notifications@github.com wrote:

I have a project.clj:

-rw-r--r-- 1 fgerard staff 1262 18 May 21:40 project.clj When I put any thing comments or else, and the size of the file increases to ~1400 bytes, then everything then on breaks. I added a comment :

;12312312312312312830123012830123801923801 File is:

-rw-r--r-- 1 fgerard staff 1307 18 May 21:43 project.clj And now repl will refuse to load name space like so:

Refresh successful. (use 'mx.interware.strauz.lco.core.state :reload-all) CompilerException java.lang.Exception: namespace 'mx.interware.strauz.lco.core.state' not found after loading '/mx/interware/strauz/lco/core/state', compiling:(/private/var/folders/vf/yd3v64wd3bndw2sdd42kjk_r0000gn/T/form-init1927897706528835198.clj:1:5) Thanks (I know this is very very strange ;)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

fgerard commented 7 years ago

Thank you for contacting me, in the end the problem wasn't the size, the problem is that proto-repl cant require/use namespaces if there is :main in project.clj pointing to a :gen-class namespace.

I fixed it putting :main in a profile and then proto-repl works fine.

Thanks for prot-repl (I am using it in Atom)

Felipe

[image: fgerard.jpg]

On Fri, May 19, 2017 at 3:10 AM, Jason Gilman notifications@github.com wrote:

If you run lein repl at the command line do you see a failure?

Sent from my phone

On May 18, 2017, at 10:47 PM, Felipe Gerard notifications@github.com wrote:

I have a project.clj:

-rw-r--r-- 1 fgerard staff 1262 18 May 21:40 project.clj When I put any thing comments or else, and the size of the file increases to ~1400 bytes, then everything then on breaks. I added a comment :

;12312312312312312830123012830123801923801 File is:

-rw-r--r-- 1 fgerard staff 1307 18 May 21:43 project.clj And now repl will refuse to load name space like so:

Refresh successful. (use 'mx.interware.strauz.lco.core.state :reload-all) CompilerException java.lang.Exception: namespace 'mx.interware.strauz.lco.core.state' not found after loading '/mx/interware/strauz/lco/core/state', compiling:(/private/var/folders/vf/ yd3v64wd3bndw2sdd42kjk_r0000gn/T/form-init1927897706528835198.clj:1:5) Thanks (I know this is very very strange ;)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jasongilman/proto-repl/issues/248#issuecomment-302638479, or mute the thread https://github.com/notifications/unsubscribe-auth/AAqEBEinymm2mBZBGHiVXxTATNJ9PUwtks5r7U5rgaJpZM4NgBED .