Clojure-contrib

31 views
Skip to first unread message

Emeka

unread,
Aug 30, 2009, 8:17:22 AM8/30/09
to scite-i...@googlegroups.com
Hello All,
 
I am having problem getting clojure-contrib to work with ScITe editor. Could somebody step in and assist me?
 
Thanks in advance.
 
Regards,
Emeka

Darío Macchi

unread,
Aug 30, 2009, 3:45:34 PM8/30/09
to scite-i...@googlegroups.com
Hi! Could you tell me what is the problem that you have?

I use scite for clojure and didn't have any problem...!

By the way, did you tried AnotherClojureBox (ACB).? It have a customized version of scite specially for clojure! 

Emeka

unread,
Aug 31, 2009, 5:05:20 AM8/31/09
to scite-i...@googlegroups.com
I run on wndows box, I was able to get clojure working but not clojure-contrib.
I have java -cp c:\clojure\clojure\cojure.jar:\clojure\clojure-contrib\clojure-contrib.jar clojure.lang.Repl
I will try out ACB.
 
Thanks.
 
Regards,
Emeka

2009/8/30 Darío Macchi <dari...@gmail.com>

Emeka

unread,
Sep 3, 2009, 11:36:32 AM9/3/09
to scite-i...@googlegroups.com
Macchi,

Where can I get a zip version of AnotherClojureBox? I have windows box.

Regards,
Emeka

2009/8/30 Darío Macchi <dari...@gmail.com>
Hi! Could you tell me what is the problem that you have?

Darío Macchi

unread,
Sep 3, 2009, 11:53:05 AM9/3/09
to scite-i...@googlegroups.com
Hi, you can download from http://sites.google.com/site/dariomac/Home/projects/anotherclojurebox
There you will find help files and how to install.

Ask if you have questions!!!

Emeka

unread,
Sep 3, 2009, 2:31:06 PM9/3/09
to scite-i...@googlegroups.com
I have a million questions  :) . I don't know how to unzip a file that ends with "xxx.rar". I need your help here.


2009/9/3 Darío Macchi <dari...@gmail.com>

Darío Macchi

unread,
Sep 3, 2009, 2:52:04 PM9/3/09
to scite-i...@googlegroups.com
jajajjaja...don't worry.

First of all, it's my fault because the file is compressed with rar and not with zip. You can download winrar that it's a shareware (use it as is) that let you compress/uncompress .rar files.

Continue asking or if you can't (don't want) to download winrar I will be uploading a zip version in 20 minutes!...

Emeka

unread,
Sep 3, 2009, 2:54:55 PM9/3/09
to scite-i...@googlegroups.com
I will wait for the zip version.

2009/9/3 Darío Macchi <dari...@gmail.com>

Emeka

unread,
Sep 3, 2009, 3:12:16 PM9/3/09
to scite-i...@googlegroups.com
I read somewhere, I hope am right, that ABC is meant for someone who is new to clojure. Why is it so? I am not a new bee or a beginner, only that I have not found a love yet, a good editor to use. I tried vimclojure with great pain nothing came out. Simply because I use windows box.

Darío Macchi

unread,
Sep 3, 2009, 3:17:49 PM9/3/09
to scite-i...@googlegroups.com
I just uploaded zip version!

Sorry and enjoy!

Ask if you have questions!

Darío Macchi

unread,
Sep 3, 2009, 3:27:48 PM9/3/09
to scite-i...@googlegroups.com
That's is a good question!
I said that because I think that when you are learning clojure you don't need to worry about the editor or setting up a good REPL, etc.
I make ACB in order to have a quickly "sandbox" to my applications and a simply (but powerfull) IDE to some people who is learning the language. 
Obviously that if you are not new in clojure you can use it too! 

John Yeung

unread,
Sep 3, 2009, 5:31:43 PM9/3/09
to scite-i...@googlegroups.com
On Thu, Sep 3, 2009 at 2:54 PM, Emeka<emeka...@gmail.com> wrote:
> I will wait for the zip version.

Well, it seems Darío already posted the Zip, but for future reference,
you should know that there are several good free decompression
programs out there that open RAR files. The best of these for Windows
are probably 7-Zip (open source) and IZArc (freeware).

John

Emeka

unread,
Sep 4, 2009, 2:43:29 AM9/4/09
to scite-i...@googlegroups.com
John,Thanks for that.

Dario, you will be hearing from me soon concerning your IDE. Thanks so much for your help.

Regards,
Emeka

Philippe Lhoste

unread,
Sep 4, 2009, 7:57:54 AM9/4/09
to scite-i...@googlegroups.com
On 03/09/2009 23:31, John Yeung wrote:
> Well, it seems Darío already posted the Zip, but for future reference,
> you should know that there are several good free decompression
> programs out there that open RAR files. The best of these for Windows
> are probably 7-Zip (open source) and IZArc (freeware).

I fully agree. I always install 7-Zip, which is much faster for large files (over 100MB)
and often IZArc, which looks more like the "familiar" WinZip and handles a larger number
of (exotic) formats. They are pretty complementary, actually.

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

KHMan

unread,
Sep 4, 2009, 9:49:45 AM9/4/09
to scite-i...@googlegroups.com
Philippe Lhoste wrote:
> On 03/09/2009 23:31, John Yeung wrote:
>> Well, it seems Darío already posted the Zip, but for future reference,
>> you should know that there are several good free decompression
>> programs out there that open RAR files. The best of these for Windows
>> are probably 7-Zip (open source) and IZArc (freeware).
>
> I fully agree. I always install 7-Zip, which is much faster for large files (over 100MB)
> and often IZArc, which looks more like the "familiar" WinZip and handles a larger number
> of (exotic) formats. They are pretty complementary, actually.

Also the author of 7-Zip threw his stuff totally open and is
working on the xz specification with non-Win32 people. With luck,
there will be a mass transition to xz in the next few years. So I
am a happy 7-Zip user too, and since I never create anything other
than tar/gz/zip/7z archives, 7-Zip is all I need.

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

Emeka

unread,
Sep 4, 2009, 2:56:06 PM9/4/09
to scite-i...@googlegroups.com
Macchi,

I fired you ABC, and I got the below message.
Error: no `server' JVM at `C:\Program Files\Java\jre6\bin\server\jvm.dll'.
Not wanting to look 'lazy' , I checked my jre6 folder and I found that it doesn't have server folder. But I have client folder which contains jvm.dll, I renamed this folder to server. I tried again and this is the result I got.

>D:\ACB1.4\bin\scite\..\clj.bat C:\Documents and Settings\ideal\My Documents\pop.clj
Listening for transport dt_socket at address: 8888
java.lang.NoClassDefFoundError: clojure/lang/Script
Caused by: java.lang.ClassNotFoundException: clojure.lang.Script
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: clojure.lang.Script.  Program will exit.
Exception in thread "main" >Exit code: 0


It is obvious to me that the problem is from my path. I need your help here.

Regards,
Emeka

Emeka

unread,
Sep 4, 2009, 3:20:20 PM9/4/09
to scite-i...@googlegroups.com
It appears that the first time is for me to get another jre6 for server

Darío Macchi

unread,
Sep 4, 2009, 3:56:18 PM9/4/09
to scite-i...@googlegroups.com
Try this
D:\ACB1.4\bin\scite\..\clj.bat "C:\Documents and Settings\ideal\My Documents\pop.clj"

Note the quotes outside C:\Documents and Settings\ideal\My Documents\pop.clj

Let me know if it's work!!

Emeka

unread,
Sep 4, 2009, 4:18:01 PM9/4/09
to scite-i...@googlegroups.com
It is working now.
This is what I found inside clj.bat.

set BOX-DRIVE=%~d0
set BOX-HOME=%BOX-DRIVE%\Lisp

I changed the highlighted part to ACB1.4. I created another folder inside jre6 and named it server and I copied the jvm.dll from client folder inside it.

And when I fired ACB, and everything went well.
I intend to "drive" :)

Regards,
Emeka

Darío Macchi

unread,
Sep 4, 2009, 6:47:32 PM9/4/09
to scite-i...@googlegroups.com
I'm glad to hear that!

clj.bat it's intended to make tests and I'm didn't update recently (so, it's my fault, sorry :-)

Test ACB and tell me if you have any other problem!!

Happy "driving"!!

Emeka

unread,
Sep 5, 2009, 12:33:43 PM9/5/09
to scite-i...@googlegroups.com
Macchi,

I have started using ACB, but I found certain stuff hard.
It behaves like a pure SciTe editor. When I click "GO" I expect my code to run.

(defn foo [p]
(+ p 1))
(foo 7)

I expect to see 8 , but I have to go back to the REPL prompt to type (foo 7). Am I doing something wrong or ACB is just another SciTE?
I have issue with prompt buffer, the the same kind of problem I have with SciTe editor. At the REPL prompt if I type "(eee" and erase the es and re-type say (foo 7) , I will get an error and it would be telling me that I called an unknown function, which means that I have not defined the function and it will also print the function I just called as (eeefoo 7). It shows that the erase or delete doesn't work and that it does appends to the previous.Is there a way of overcoming this?

Is it not possible to reduce the   number of menus inside tools menubar? It is just too long, I would like to see sub-menus for clojure-stuff and others.

Finally when I click "GO"  it picks the path I have in my SciTe editor and not that one inside the ACB for clojure and clojure-contrib. Why is it so?

I must thank you for ACB, it is just great. You did a great job. Hope I would be allowed to learn how you crafted ACB some day.

Regards,
Emeka



2009/9/4 Darío Macchi <dari...@gmail.com>

Darío Macchi

unread,
Sep 7, 2009, 10:41:02 AM9/7/09
to scite-i...@googlegroups.com
On Sat, Sep 5, 2009 at 1:33 PM, Emeka <emeka...@gmail.com> wrote:
Macchi,

I have started using ACB, but I found certain stuff hard.
It behaves like a pure SciTe editor. When I click "GO" I expect my code to run.

First, "GO" it's only for testing and I will remove it because it make the people be confused...

 
(defn foo [p]
(+ p 1))
(foo 7)

I expect to see 8 , but I have to go back to the REPL prompt to type (foo 7). Am I doing something wrong or ACB is just another SciTE?

If you want this behaviour you should open WinCommand, run Clojure and open SciTE. Then in the editor select the code and press Ctrl+Alt+E. This should send the selected code to WinCommand REPL.
 
I have issue with prompt buffer, the the same kind of problem I have with SciTe editor. At the REPL prompt if I type "(eee" and erase the es and re-type say (foo 7) , I will get an error and it would be telling me that I called an unknown function, which means that I have not defined the function and it will also print the function I just called as (eeefoo 7). It shows that the erase or delete doesn't work and that it does appends to the previous.Is there a way of overcoming this?


Because of these behaviour is that I develop WinCommand...!!
 
Is it not possible to reduce the   number of menus inside tools menubar? It is just too long, I would like to see sub-menus for clojure-stuff and others.


If you want to remove items, you should go to "Options - Open Lua Startup Script" and you will see common menu entries, lisp specific entris and finally clojure specific entries. You can comment the items that you don't want to use.
Sub menues are not supported in standard SciTE...

 
Finally when I click "GO"  it picks the path I have in my SciTe editor and not that one inside the ACB for clojure and clojure-contrib. Why is it so?

I must thank you for ACB, it is just great. You did a great job. Hope I would be allowed to learn how you crafted ACB some day.

Because of these comment I will be updating my site in order to make a "how-to work with ACB"!!
But for now, my answer is: 
1- Open ACB.exe
2- Open Wincommand.exe and run Clojure REPL
3- Open some .clj file drag&dropping over ACB logo or running SciTE and open it.
4- Now you can run Clojure code selecting it and sendit to REPL or working directly from WinCommand REPL.

Continue working with ACB and sending feedback because it help to detect some assumptions that I made and are not very clear to everybody.

Sergey Didenko

unread,
Nov 8, 2009, 4:56:45 AM11/8/09
to scite-i...@googlegroups.com
Emeka, your problem is not related for SCiTe.

":" must be ";" in "java -cp" option on Windows.

Emeka

unread,
Dec 3, 2009, 12:37:41 PM12/3/09
to scite-i...@googlegroups.com
Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-i...@googlegroups.com
To unsubscribe from this group, send email to scite-interes...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---


Reply all
Reply to author
Forward
0 new messages