Fork me on GitHub
#cider
<
2016-06-20
>
robert-stuttaford11:06:54

when i use cljr-project-clean, after accepting the warning, it asks me to save a file (which turns out to likely be the first file it'd work on), and then it hangs. what gives?

robert-stuttaford11:06:16

on refactor-nrepl 2.3.0-SNAPSHOT. upgrading Emacs packages now.

benedek12:06:19

I assume you run clean-ns on your project with project clean

benedek12:06:36

That is the default afaik

benedek12:06:28

Can you try to run clean-ns on the ns project clean hangs on?

robert-stuttaford12:06:44

yes, that's right. i'll run clean-ns manually on the first couple nses in the list and see what happens

robert-stuttaford12:06:17

they all clean fine

robert-stuttaford12:06:30

how do i tell which ns it hangs on, @benedek ?

robert-stuttaford12:06:32

i don't understand why it's asking to save a file

benedek12:06:53

Hm.. that is weird.. rings a bell tho let me dig around a bit.

benedek12:06:50

are there any irregular files in your project with clj or cljc extension?

benedek12:06:23

By irregular I mean w/o ns declaration like data or config edns or the like

robert-stuttaford13:06:38

yes, there are a couple like that

robert-stuttaford13:06:01

if i can know where it's failing, i'll just move those files out temporarily

benedek13:06:19

you can add those to cljr-project-clean-exceptions

benedek13:06:48

use customize-variable

robert-stuttaford13:06:11

ERROR: Unhandled REPL handler exception processing message {:op clean-ns, :prefix-rewriting false, :debug false, :path test.txt, :libspec-whitelist [^cljsns ^slingshot.test ^monger.joda-time ^monger.json], :prune-ns-form true, :session df361756-9b31-4aa2-a9d8-8fe727e78db3, :id 11}
java.lang.AssertionError: Assert failed: (core/source-file? path)

robert-stuttaford13:06:33

i got this after i triggered clean-project, and it asked me to save a file, so i gave test.txt

robert-stuttaford13:06:03

test.txt contains source from the first clj file clean-project would likely have found when globbing the fs

robert-stuttaford13:06:24

although its lost all of its indentation

robert-stuttaford13:06:46

i did this after a clean repl and emacs start, with only project.clj open and the repl connected (which i used lein repl :headless to do)

robert-stuttaford13:06:17

so, no unsaved buffers etc

benedek13:06:33

sounds weird. can you pls dump this into a bugreport on github?

robert-stuttaford13:06:24

thank you for spending some time so far, i'll try to provide a repro case for you

robert-stuttaford13:06:31

perhaps learn some elisp 🙂

benedek13:06:38

sounds cool, thx 🙂

malabarba23:06:53

WRT tracking down a hang, debug on quit is your friend. ;-)