2008-03-06
| 16:07 | arbscht | why does (concat [4] [1 2 3]) => (4 1 2 3)? |
| 16:07 | arbscht | I would expect [4 1 2 3] |
| 17:55 | ericthor | Rich, u there? |
| 17:55 | rhickey | yup |
| 17:56 | ericthor | the debugger is looking for a classpath for this one setting in the examples I'm looking at. |
| 17:56 | ericthor | what package do clojure functions get loaded into? |
| 17:56 | ericthor | this is an example: "org.netbeans.api.debugger.jpda.testapps.* |
| 17:58 | rhickey | it's a 'munged' version of the namespace name - special chars remapped, most important would be - becomes _ |
| 17:59 | rhickey | user=> (class and) |
| 17:59 | rhickey | class clojure.fn__119 |
| 17:59 | rhickey | user=> (class xml/parse) |
| 17:59 | rhickey | class xml.fn__958 |
| 18:00 | ericthor | let me give that a shot. |
| 18:00 | rhickey | I can make Compiler.munge public if it helps |
| 18:01 | ericthor | that was my next question...it would be helpful to have access to it in java for the moment |
| 18:01 | ericthor | 1 hurdle at a time |
| 18:01 | ericthor | i could always just make that change locally and see if it gets me past this point |
| 18:01 | ericthor | let me do that...should not take me long to try out |
| 18:01 | rhickey | dashes become underscores is probably all you'll encounter right now |
| 18:02 | ericthor | ok |
| 18:06 | ericthor | is the class name considered the 'fully qualified' name? |
| 18:06 | rhickey | ? |
| 18:07 | ericthor | i'm trying to mimic the example....file name + line-number. |
| 18:07 | ericthor | then there is a namespace search path for all 'files' in the package. |
| 18:08 | rhickey | in the case of xml.fn__958, xml is the package, fn__958 is the class |
| 18:08 | ericthor | you're giving me a function name in a file. |
| 18:08 | ericthor | yes? |
| 18:08 | rhickey | what file/ |
| 18:08 | rhickey | ? |
| 18:08 | ericthor | boot.clj |
| 18:08 | ericthor | line ?55 |
| 18:08 | ericthor | that is the breakpoint data the UI will have. |
| 18:09 | rhickey | ok |
| 18:11 | rhickey | SMAP |
| 18:11 | rhickey | fn__18.java |
| 18:11 | rhickey | Clojure |
| 18:11 | rhickey | *S Clojure |
| 18:11 | rhickey | *F |
| 18:11 | rhickey | + 1 boot.clj |
| 18:11 | rhickey | boot.clj |
| 18:11 | rhickey | *L |
| 18:11 | rhickey | 1#1,1000:1 |
| 18:11 | rhickey | *E |
| 18:12 | ericthor | ok |
| 18:13 | rhickey | boot.clj is loaded from the jar, here's what it looks like when loaded from a file (zip.clj): |
| 18:13 | rhickey | SMAP |
| 18:13 | rhickey | fn__1026.java |
| 18:13 | rhickey | Clojure |
| 18:13 | rhickey | *S Clojure |
| 18:13 | rhickey | *F |
| 18:13 | rhickey | + 1 zip.clj |
| 18:13 | rhickey | *L |
| 18:13 | rhickey | 1#1,1000:1 |
| 18:13 | rhickey | *E |
| 18:13 | rhickey | SMAP |
| 18:13 | rhickey | fn__1026.java |
| 18:13 | rhickey | Clojure |
| 18:13 | rhickey | *S Clojure |
| 18:13 | rhickey | *F |
| 18:13 | rhickey | + 1 zip.clj |
| 18:13 | rhickey | *L |
| 18:13 | rhickey | 1#1,1000:1 |
| 18:13 | rhickey | *E |
| 18:13 | rhickey | not coming across, will email |
| 18:15 | ericthor | ok |
| 18:47 | ericthor | making headway....I'm in a clojure breakpoint...we're almost there |
| 19:08 | rhickey | cool! |
| 19:09 | ericthor | needless to say...just needed to find the correct formula. Did not need any of the class stuff (so far) |
| 19:09 | rhickey | is the difference between loaded-from-file and loaded-from-jar an issue? |
| 19:09 | ericthor | I will need to be able to determine if the user clicks on a valid executable point in the source file...have not gotten there yet... |
| 19:10 | ericthor | don't know yet. |
| 19:10 | ericthor | i'll try that next |
| 21:56 | ericthor | rich u up? |