Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-23 Thread Michael Jaaka
Here is a diff of fix http://pastebin.com/KE6U3Pqb

On Nov 23, 12:13 am, Michael Jaaka 
wrote:
> Well, it is easy to break tests on any system. All you need to do is to put
> space into file name path.
> For example in clojure  / 
> test/
> clojure  /
> test_clojure/
> java/
>  io.clj
> Change
>
> (defn temp-file
>   [prefix suffix]
>   (doto (File/createTempFile prefix suffix)
>     (.deleteOnExit)))
>
> to
>
> (defn temp-file
>   [prefix suffix]
>   (doto (File/createTempFile (str "a b c" prefix) suffix)
>     (.deleteOnExit)))
>
> The solution is to use java.net.URLDecoder/decode everywhere where .getPath 
> is called in java/io.clj
>
> and change protocol for URI like below
>
> (extend-protocol Coercions
>
>   URI
>   (as-url [u] (URL. (java.net.URLDecoder/decode (.toString u
>   (as-file [u] (as-file (as-url u

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-22 Thread Michael Jaaka
Well, it is easy to break tests on any system. All you need to do is to put 
space into file name path.
For example in clojure  / 
test/ 
clojure  / 
test_clojure/
 
java/
 io.clj
Change 

(defn temp-file
  [prefix suffix]
  (doto (File/createTempFile prefix suffix)
(.deleteOnExit)))

to

(defn temp-file
  [prefix suffix]
  (doto (File/createTempFile (str "a b c" prefix) suffix)
(.deleteOnExit)))


The solution is to use java.net.URLDecoder/decode everywhere where .getPath is 
called in java/io.clj

and change protocol for URI like below 

(extend-protocol Coercions

  URI
  (as-url [u] (URL. (java.net.URLDecoder/decode (.toString u
  (as-file [u] (as-file (as-url u

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-22 Thread Michael Jaaka

I'm not and don't feel like an expert to contribute.
However I have found that this is a common pitfall
Here is the full story described
http://maven.apache.org/plugin-developers/common-bugs.html#Converting_between_URLs_and_Filesystem_Paths
The same is in official doc from Oracle


On 22 Lis, 12:49, Chris Perkins  wrote:
> I suspect that Windows users are a minority here, and cygwin users are a
> minority of that minority :)
>
> So I'm sure that help with maintaining cygwin compatibility would be
> appreciated.  You should start by sending a contributor 
> agreement:http://clojure.org/contributing
>
> - Chris

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-22 Thread Chris Perkins
I suspect that Windows users are a minority here, and cygwin users are a 
minority of that minority :)

So I'm sure that help with maintaining cygwin compatibility would be 
appreciated.  You should start by sending a contributor agreement: 
http://clojure.org/contributing

- Chris

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-22 Thread Michael Jaaka
Here is the sample code which shows the difference



(ns clojure.test-clojure.java.io
  (:use clojure.test clojure.java.io
[clojure.test-helper :only [platform-newlines]])
  (:import (java.io File BufferedInputStream
FileInputStream InputStreamReader InputStream
FileOutputStream OutputStreamWriter OutputStream
ByteArrayInputStream ByteArrayOutputStream)
   (java.net URL URI Socket ServerSocket)))

(defn temp-file
  [prefix suffix]
  (doto (File/createTempFile prefix suffix)
(.deleteOnExit)))

(let[ f (temp-file "clojure.java.io" "test-reader-writer") ]
(println "valid on cygwin and windows" (reader (.getPath (.toURI
f)

(let[ f (temp-file "clojure.java.io" "test-reader-writer") ]
(println "valid only on windows" (reader (.toURI f

On Nov 22, 11:41 am, Michael Jaaka 
wrote:
> Sorry the line is 46 not 56 in the 
> filehttps://github.com/richhickey/clojure/blob/master/test/clojure/test_c...
>
> On Nov 22, 11:39 am, Michael Jaaka 
> wrote:
>
>
>
>
>
>
>
> > I have made some investigation and I noticed a problem at line 56 in
> > test/clojure/test_clojure/java/io.clj
>
> > There is a difference between toURL and toURI
> > first returns absolute path with spaces, second returns absolute path
> > with %20 in places where the spaces should be
> > now in cygwin and probably on other shells the %20 is not properly
> > interpreted
> > so after commenting line
>
> >            (.toURI f) (.toURI f)
>
> > in tests all works fine
>
> > I would say that this is a problem in Clojure because it is already
> > interpreting file: protocol, so it should also make sure that %20 is
> > properly interpreted
>
> > On Nov 22, 10:15 am, Roberto Mannai  wrote:
>
> > > The classpath option -cp is not handling correctly the spaces. I'd
> > > suggest you to not have spaces in the Windows's paths.
>
> > > Install Java not in "c:\Program Files", but for example in 
> > > c:\develop\Java6
>
> > > On Tue, Nov 22, 2011 at 10:04 AM, Michael Jaaka
>
> > >  wrote:
> > > > Here is too a problem with building proper path, after M-x clojure-
> > > > jack-in I got in buffer
>
> > > > Debugger entered--Lisp error: (error "Could not start swank server:
> > > > java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> > > > zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> > > > standalone/jar
> > > > Caused by: java.lang.ClassNotFoundException: Files\\Java\\jre6\\lib\
> > > > \ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-installs\
> > > > \leiningen-1.6.0-standalone.jar
> > > >        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> > > >        at java.security.AccessController.doPrivileged(Native Method)
> > > >        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> > > >        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > > >        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> > > >        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> > > > Could not find the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;
> > > > \";;test;src;C:\\Java\\.lein\\self-installs\\leiningen-1.6.0-
> > > > standalone.jar.  Program will exit.
> > > > Exception in thread \"main\" ")
> > > >  signal(error ("Could not start swank server:
> > > > java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> > > > zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> > > > standalone/jar\nCaused by: java.lang.ClassNotFoundException: Files\
> > > > \Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-
> > > > installs\\leiningen-1.6.0-standalone.jar\n      at 
> > > > java.net.URLClassLoader
> > > > $1.run(URLClassLoader.java:202)\n       at
> > > > java.security.AccessController.doPrivileged(Native Method)\n    at
> > > > java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n    at
> > > > java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n at
> > > > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n at
> > > > java.lang.ClassLoader.loadClass(ClassLoader.java:247)\nCould not find
> > > > the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:
> > > > \\Java\\.lein\\self-installs\\leiningen-1.6.0-standalone.jar.  Program
> > > > will exit.\nException in thread \"main\" "))
> > > >  error("Could not start swank server: %s"
> > > > "java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> > > > zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> > > > standalone/jar\nCaused by: java.lang.ClassNotFoundException: Files\
> > > > \Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-
> > > > installs\\leiningen-1.6.0-standalone.jar\n      at 
> > > > java.net.URLClassLoader
> > > > $1.run(URLClassLoader.java:202)\n       at
> > > > java.security.AccessController.doPrivileged(Native Method)\n    at
> > > > java.net.URLClassLoader.findClass(U

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-22 Thread Michael Jaaka
Sorry the line is 46 not 56 in the file
https://github.com/richhickey/clojure/blob/master/test/clojure/test_clojure/java/io.clj

On Nov 22, 11:39 am, Michael Jaaka 
wrote:
> I have made some investigation and I noticed a problem at line 56 in
> test/clojure/test_clojure/java/io.clj
>
> There is a difference between toURL and toURI
> first returns absolute path with spaces, second returns absolute path
> with %20 in places where the spaces should be
> now in cygwin and probably on other shells the %20 is not properly
> interpreted
> so after commenting line
>
>            (.toURI f) (.toURI f)
>
> in tests all works fine
>
> I would say that this is a problem in Clojure because it is already
> interpreting file: protocol, so it should also make sure that %20 is
> properly interpreted
>
> On Nov 22, 10:15 am, Roberto Mannai  wrote:
>
>
>
>
>
>
>
> > The classpath option -cp is not handling correctly the spaces. I'd
> > suggest you to not have spaces in the Windows's paths.
>
> > Install Java not in "c:\Program Files", but for example in c:\develop\Java6
>
> > On Tue, Nov 22, 2011 at 10:04 AM, Michael Jaaka
>
> >  wrote:
> > > Here is too a problem with building proper path, after M-x clojure-
> > > jack-in I got in buffer
>
> > > Debugger entered--Lisp error: (error "Could not start swank server:
> > > java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> > > zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> > > standalone/jar
> > > Caused by: java.lang.ClassNotFoundException: Files\\Java\\jre6\\lib\
> > > \ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-installs\
> > > \leiningen-1.6.0-standalone.jar
> > >        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> > >        at java.security.AccessController.doPrivileged(Native Method)
> > >        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> > >        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > >        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> > >        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> > > Could not find the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;
> > > \";;test;src;C:\\Java\\.lein\\self-installs\\leiningen-1.6.0-
> > > standalone.jar.  Program will exit.
> > > Exception in thread \"main\" ")
> > >  signal(error ("Could not start swank server:
> > > java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> > > zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> > > standalone/jar\nCaused by: java.lang.ClassNotFoundException: Files\
> > > \Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-
> > > installs\\leiningen-1.6.0-standalone.jar\n      at java.net.URLClassLoader
> > > $1.run(URLClassLoader.java:202)\n       at
> > > java.security.AccessController.doPrivileged(Native Method)\n    at
> > > java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n    at
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n at
> > > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n at
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:247)\nCould not find
> > > the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:
> > > \\Java\\.lein\\self-installs\\leiningen-1.6.0-standalone.jar.  Program
> > > will exit.\nException in thread \"main\" "))
> > >  error("Could not start swank server: %s"
> > > "java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> > > zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> > > standalone/jar\nCaused by: java.lang.ClassNotFoundException: Files\
> > > \Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-
> > > installs\\leiningen-1.6.0-standalone.jar\n      at java.net.URLClassLoader
> > > $1.run(URLClassLoader.java:202)\n       at
> > > java.security.AccessController.doPrivileged(Native Method)\n    at
> > > java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n    at
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n at
> > > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n at
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:247)\nCould not find
> > > the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:
> > > \\Java\\.lein\\self-installs\\leiningen-1.6.0-standalone.jar.  Program
> > > will exit.\nException in thread \"main\" ")
> > >  clojure-jack-in-sentinel(# "finished\n")
>
> > > On Nov 22, 8:55 am, Roberto Mannai  wrote:
> > >> If you're having problems with cygwin, you could use Emacs/lein without 
> > >> it:http://sourceforge.net/apps/wordpress/codesounding/2011/09/29/install...
>
> > >> On Tue, Nov 22, 2011 at 8:24 AM, Michael Jaaka
>
> > >>  wrote:
> > >> > Well, in plugins i had 1.3.3 but in project/dev had 1.2.1 and 1.3.3 so
> > >> > I deleted the 1.2.1.
> > >> > Then tried again to jack-in and got something like this:
>
> > >> > error in process filter: Opening input file: no such file or

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-22 Thread Michael Jaaka
I have made some investigation and I noticed a problem at line 56 in
test/clojure/test_clojure/java/io.clj

There is a difference between toURL and toURI
first returns absolute path with spaces, second returns absolute path
with %20 in places where the spaces should be
now in cygwin and probably on other shells the %20 is not properly
interpreted
so after commenting line

   (.toURI f) (.toURI f)

in tests all works fine

I would say that this is a problem in Clojure because it is already
interpreting file: protocol, so it should also make sure that %20 is
properly interpreted



On Nov 22, 10:15 am, Roberto Mannai  wrote:
> The classpath option -cp is not handling correctly the spaces. I'd
> suggest you to not have spaces in the Windows's paths.
>
> Install Java not in "c:\Program Files", but for example in c:\develop\Java6
>
> On Tue, Nov 22, 2011 at 10:04 AM, Michael Jaaka
>
>
>
>
>
>
>
>  wrote:
> > Here is too a problem with building proper path, after M-x clojure-
> > jack-in I got in buffer
>
> > Debugger entered--Lisp error: (error "Could not start swank server:
> > java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> > zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> > standalone/jar
> > Caused by: java.lang.ClassNotFoundException: Files\\Java\\jre6\\lib\
> > \ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-installs\
> > \leiningen-1.6.0-standalone.jar
> >        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> > Could not find the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;
> > \";;test;src;C:\\Java\\.lein\\self-installs\\leiningen-1.6.0-
> > standalone.jar.  Program will exit.
> > Exception in thread \"main\" ")
> >  signal(error ("Could not start swank server:
> > java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> > zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> > standalone/jar\nCaused by: java.lang.ClassNotFoundException: Files\
> > \Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-
> > installs\\leiningen-1.6.0-standalone.jar\n      at java.net.URLClassLoader
> > $1.run(URLClassLoader.java:202)\n       at
> > java.security.AccessController.doPrivileged(Native Method)\n    at
> > java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n    at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n at
> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:247)\nCould not find
> > the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:
> > \\Java\\.lein\\self-installs\\leiningen-1.6.0-standalone.jar.  Program
> > will exit.\nException in thread \"main\" "))
> >  error("Could not start swank server: %s"
> > "java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> > zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> > standalone/jar\nCaused by: java.lang.ClassNotFoundException: Files\
> > \Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-
> > installs\\leiningen-1.6.0-standalone.jar\n      at java.net.URLClassLoader
> > $1.run(URLClassLoader.java:202)\n       at
> > java.security.AccessController.doPrivileged(Native Method)\n    at
> > java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n    at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n at
> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:247)\nCould not find
> > the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:
> > \\Java\\.lein\\self-installs\\leiningen-1.6.0-standalone.jar.  Program
> > will exit.\nException in thread \"main\" ")
> >  clojure-jack-in-sentinel(# "finished\n")
>
> > On Nov 22, 8:55 am, Roberto Mannai  wrote:
> >> If you're having problems with cygwin, you could use Emacs/lein without 
> >> it:http://sourceforge.net/apps/wordpress/codesounding/2011/09/29/install...
>
> >> On Tue, Nov 22, 2011 at 8:24 AM, Michael Jaaka
>
> >>  wrote:
> >> > Well, in plugins i had 1.3.3 but in project/dev had 1.2.1 and 1.3.3 so
> >> > I deleted the 1.2.1.
> >> > Then tried again to jack-in and got something like this:
>
> >> > error in process filter: Opening input file: no such file or
> >> > directory, /home/mjaaka/tmp/test-project/src/test_project/C:Documents
> >> > and Settings^Gmjaaka/.emacs.d/swank/slime-cdf283b4.el
>
> >> > So there is a problem with building absolute path on cygwin (by
> >> > swank?).
>
> >> > My .emacs.d is located at C:\cygwin\home\mjaaka\.emacs.d and there is
> >> > no /swank/slime-cdf2

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-22 Thread Roberto Mannai
The classpath option -cp is not handling correctly the spaces. I'd
suggest you to not have spaces in the Windows's paths.

Install Java not in "c:\Program Files", but for example in c:\develop\Java6

On Tue, Nov 22, 2011 at 10:04 AM, Michael Jaaka
 wrote:
> Here is too a problem with building proper path, after M-x clojure-
> jack-in I got in buffer
>
>
> Debugger entered--Lisp error: (error "Could not start swank server:
> java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> standalone/jar
> Caused by: java.lang.ClassNotFoundException: Files\\Java\\jre6\\lib\
> \ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-installs\
> \leiningen-1.6.0-standalone.jar
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Could not find the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;
> \";;test;src;C:\\Java\\.lein\\self-installs\\leiningen-1.6.0-
> standalone.jar.  Program will exit.
> Exception in thread \"main\" ")
>  signal(error ("Could not start swank server:
> java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> standalone/jar\nCaused by: java.lang.ClassNotFoundException: Files\
> \Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-
> installs\\leiningen-1.6.0-standalone.jar\n      at java.net.URLClassLoader
> $1.run(URLClassLoader.java:202)\n       at
> java.security.AccessController.doPrivileged(Native Method)\n    at
> java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n    at
> java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n at
> java.lang.ClassLoader.loadClass(ClassLoader.java:247)\nCould not find
> the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:
> \\Java\\.lein\\self-installs\\leiningen-1.6.0-standalone.jar.  Program
> will exit.\nException in thread \"main\" "))
>  error("Could not start swank server: %s"
> "java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> standalone/jar\nCaused by: java.lang.ClassNotFoundException: Files\
> \Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-
> installs\\leiningen-1.6.0-standalone.jar\n      at java.net.URLClassLoader
> $1.run(URLClassLoader.java:202)\n       at
> java.security.AccessController.doPrivileged(Native Method)\n    at
> java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n    at
> java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n at
> java.lang.ClassLoader.loadClass(ClassLoader.java:247)\nCould not find
> the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:
> \\Java\\.lein\\self-installs\\leiningen-1.6.0-standalone.jar.  Program
> will exit.\nException in thread \"main\" ")
>  clojure-jack-in-sentinel(# "finished\n")
>
>
>
>
> On Nov 22, 8:55 am, Roberto Mannai  wrote:
>> If you're having problems with cygwin, you could use Emacs/lein without 
>> it:http://sourceforge.net/apps/wordpress/codesounding/2011/09/29/install...
>>
>> On Tue, Nov 22, 2011 at 8:24 AM, Michael Jaaka
>>
>>
>>
>>
>>
>>
>>
>>  wrote:
>> > Well, in plugins i had 1.3.3 but in project/dev had 1.2.1 and 1.3.3 so
>> > I deleted the 1.2.1.
>> > Then tried again to jack-in and got something like this:
>>
>> > error in process filter: Opening input file: no such file or
>> > directory, /home/mjaaka/tmp/test-project/src/test_project/C:Documents
>> > and Settings^Gmjaaka/.emacs.d/swank/slime-cdf283b4.el
>>
>> > So there is a problem with building absolute path on cygwin (by
>> > swank?).
>>
>> > My .emacs.d is located at C:\cygwin\home\mjaaka\.emacs.d and there is
>> > no /swank/slime-cdf283b4.el
>> > The nearest silme.el is located at C:\cygwin\home\mjaaka\.emacs.d\elpa
>> > \slime-20100404.1\slime.el
>> > Beside this in elpa I have clojure-mode-1.11.4, clojure-project-
>> > mode-1.0, clojurescript-mode-0.5, levenshtein-1.0, project-mode-1.0.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Googl

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-22 Thread Michael Jaaka
Maybe I can fix it? Just point me the routine for building path.
I will extract it and make unit test which reproduces this error.
Than I will fix it. Maybe it will help in both cases - on standalone
emacs for windows and emacs in cygwin.

On Nov 22, 10:04 am, Michael Jaaka 
wrote:
> Here is too a problem with building proper path, after M-x clojure-
> jack-in I got in buffer
>
> Debugger entered--Lisp error: (error "Could not start swank server:
> java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> standalone/jar
> Caused by: java.lang.ClassNotFoundException: Files\\Java\\jre6\\lib\
> \ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-installs\
> \leiningen-1.6.0-standalone.jar
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Could not find the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;
> \";;test;src;C:\\Java\\.lein\\self-installs\\leiningen-1.6.0-
> standalone.jar.  Program will exit.
> Exception in thread \"main\" ")
>   signal(error ("Could not start swank server:
> java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> standalone/jar\nCaused by: java.lang.ClassNotFoundException: Files\
> \Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-
> installs\\leiningen-1.6.0-standalone.jar\n      at java.net.URLClassLoader
> $1.run(URLClassLoader.java:202)\n       at
> java.security.AccessController.doPrivileged(Native Method)\n    at
> java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n    at
> java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n at
> java.lang.ClassLoader.loadClass(ClassLoader.java:247)\nCould not find
> the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:
> \\Java\\.lein\\self-installs\\leiningen-1.6.0-standalone.jar.  Program
> will exit.\nException in thread \"main\" "))
>   error("Could not start swank server: %s"
> "java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
> zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
> standalone/jar\nCaused by: java.lang.ClassNotFoundException: Files\
> \Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-
> installs\\leiningen-1.6.0-standalone.jar\n      at java.net.URLClassLoader
> $1.run(URLClassLoader.java:202)\n       at
> java.security.AccessController.doPrivileged(Native Method)\n    at
> java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n    at
> java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n at
> java.lang.ClassLoader.loadClass(ClassLoader.java:247)\nCould not find
> the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:
> \\Java\\.lein\\self-installs\\leiningen-1.6.0-standalone.jar.  Program
> will exit.\nException in thread \"main\" ")
>   clojure-jack-in-sentinel(# "finished\n")
>
> On Nov 22, 8:55 am, Roberto Mannai  wrote:
>
>
>
>
>
>
>
> > If you're having problems with cygwin, you could use Emacs/lein without 
> > it:http://sourceforge.net/apps/wordpress/codesounding/2011/09/29/install...
>
> > On Tue, Nov 22, 2011 at 8:24 AM, Michael Jaaka
>
> >  wrote:
> > > Well, in plugins i had 1.3.3 but in project/dev had 1.2.1 and 1.3.3 so
> > > I deleted the 1.2.1.
> > > Then tried again to jack-in and got something like this:
>
> > > error in process filter: Opening input file: no such file or
> > > directory, /home/mjaaka/tmp/test-project/src/test_project/C:Documents
> > > and Settings^Gmjaaka/.emacs.d/swank/slime-cdf283b4.el
>
> > > So there is a problem with building absolute path on cygwin (by
> > > swank?).
>
> > > My .emacs.d is located at C:\cygwin\home\mjaaka\.emacs.d and there is
> > > no /swank/slime-cdf283b4.el
> > > The nearest silme.el is located at C:\cygwin\home\mjaaka\.emacs.d\elpa
> > > \slime-20100404.1\slime.el
> > > Beside this in elpa I have clojure-mode-1.11.4, clojure-project-
> > > mode-1.0, clojurescript-mode-0.5, levenshtein-1.0, project-mode-1.0.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-22 Thread Michael Jaaka
Here is too a problem with building proper path, after M-x clojure-
jack-in I got in buffer


Debugger entered--Lisp error: (error "Could not start swank server:
java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
standalone/jar
Caused by: java.lang.ClassNotFoundException: Files\\Java\\jre6\\lib\
\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-installs\
\leiningen-1.6.0-standalone.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;
\";;test;src;C:\\Java\\.lein\\self-installs\\leiningen-1.6.0-
standalone.jar.  Program will exit.
Exception in thread \"main\" ")
  signal(error ("Could not start swank server:
java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
standalone/jar\nCaused by: java.lang.ClassNotFoundException: Files\
\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-
installs\\leiningen-1.6.0-standalone.jar\n  at java.net.URLClassLoader
$1.run(URLClassLoader.java:202)\n   at
java.security.AccessController.doPrivileged(Native Method)\nat
java.net.URLClassLoader.findClass(URLClassLoader.java:190)\nat
java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n at
java.lang.ClassLoader.loadClass(ClassLoader.java:247)\nCould not find
the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:
\\Java\\.lein\\self-installs\\leiningen-1.6.0-standalone.jar.  Program
will exit.\nException in thread \"main\" "))
  error("Could not start swank server: %s"
"java.lang.NoClassDefFoundError: Files\\Java\\jre6\\lib\\ext\\QTJava/
zip;\";;test;src;C:\\Java\\/lein\\self-installs\\leiningen-1/6/0-
standalone/jar\nCaused by: java.lang.ClassNotFoundException: Files\
\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:\\Java\\.lein\\self-
installs\\leiningen-1.6.0-standalone.jar\n  at java.net.URLClassLoader
$1.run(URLClassLoader.java:202)\n   at
java.security.AccessController.doPrivileged(Native Method)\nat
java.net.URLClassLoader.findClass(URLClassLoader.java:190)\nat
java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n at
java.lang.ClassLoader.loadClass(ClassLoader.java:247)\nCould not find
the main class: Files\\Java\\jre6\\lib\\ext\\QTJava.zip;\";;test;src;C:
\\Java\\.lein\\self-installs\\leiningen-1.6.0-standalone.jar.  Program
will exit.\nException in thread \"main\" ")
  clojure-jack-in-sentinel(# "finished\n")




On Nov 22, 8:55 am, Roberto Mannai  wrote:
> If you're having problems with cygwin, you could use Emacs/lein without 
> it:http://sourceforge.net/apps/wordpress/codesounding/2011/09/29/install...
>
> On Tue, Nov 22, 2011 at 8:24 AM, Michael Jaaka
>
>
>
>
>
>
>
>  wrote:
> > Well, in plugins i had 1.3.3 but in project/dev had 1.2.1 and 1.3.3 so
> > I deleted the 1.2.1.
> > Then tried again to jack-in and got something like this:
>
> > error in process filter: Opening input file: no such file or
> > directory, /home/mjaaka/tmp/test-project/src/test_project/C:Documents
> > and Settings^Gmjaaka/.emacs.d/swank/slime-cdf283b4.el
>
> > So there is a problem with building absolute path on cygwin (by
> > swank?).
>
> > My .emacs.d is located at C:\cygwin\home\mjaaka\.emacs.d and there is
> > no /swank/slime-cdf283b4.el
> > The nearest silme.el is located at C:\cygwin\home\mjaaka\.emacs.d\elpa
> > \slime-20100404.1\slime.el
> > Beside this in elpa I have clojure-mode-1.11.4, clojure-project-
> > mode-1.0, clojurescript-mode-0.5, levenshtein-1.0, project-mode-1.0.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Roberto Mannai
If you're having problems with cygwin, you could use Emacs/lein without it:
http://sourceforge.net/apps/wordpress/codesounding/2011/09/29/installing-emacs-24-and-clojure-mode-on-windows-7-step-by-step/

On Tue, Nov 22, 2011 at 8:24 AM, Michael Jaaka
 wrote:
> Well, in plugins i had 1.3.3 but in project/dev had 1.2.1 and 1.3.3 so
> I deleted the 1.2.1.
> Then tried again to jack-in and got something like this:
>
> error in process filter: Opening input file: no such file or
> directory, /home/mjaaka/tmp/test-project/src/test_project/C:Documents
> and Settings^Gmjaaka/.emacs.d/swank/slime-cdf283b4.el
>
> So there is a problem with building absolute path on cygwin (by
> swank?).
>
> My .emacs.d is located at C:\cygwin\home\mjaaka\.emacs.d and there is
> no /swank/slime-cdf283b4.el
> The nearest silme.el is located at C:\cygwin\home\mjaaka\.emacs.d\elpa
> \slime-20100404.1\slime.el
> Beside this in elpa I have clojure-mode-1.11.4, clojure-project-
> mode-1.0, clojurescript-mode-0.5, levenshtein-1.0, project-mode-1.0.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Michael Jaaka
Well, in plugins i had 1.3.3 but in project/dev had 1.2.1 and 1.3.3 so
I deleted the 1.2.1.
Then tried again to jack-in and got something like this:

error in process filter: Opening input file: no such file or
directory, /home/mjaaka/tmp/test-project/src/test_project/C:Documents
and Settings^Gmjaaka/.emacs.d/swank/slime-cdf283b4.el

So there is a problem with building absolute path on cygwin (by
swank?).

My .emacs.d is located at C:\cygwin\home\mjaaka\.emacs.d and there is
no /swank/slime-cdf283b4.el
The nearest silme.el is located at C:\cygwin\home\mjaaka\.emacs.d\elpa
\slime-20100404.1\slime.el
Beside this in elpa I have clojure-mode-1.11.4, clojure-project-
mode-1.0, clojurescript-mode-0.5, levenshtein-1.0, project-mode-1.0.



On Nov 21, 5:54 pm, Chris Perkins  wrote:
> On Monday, November 21, 2011 11:27:04 AM UTC-5, Michael Jaaka wrote:
>
> > Then I entered into Clojure project, used: M-x clojure-jack-in (almost
> > there!!!)
> > And got exception:
>
> > Unable to resolve symbol print-doc.
> > LOL :-)
> > Any suggestions?
>
> Do you have the latest version of swank-clojure?  Look in ~/.lein/plugins -
> it should be version 1.3.3
>
> - Chris

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Phil Hagelberg
On Mon, Nov 21, 2011 at 7:03 AM, Chris Perkins  wrote:
> I think you have an old version of clojure-mode.  The default archive that
> comes with package.el is at http://tromey.com/elpa.  It contains an old
> clojure-mode. marmalade-repo contains the new version.

This confusion has been a long-standing problem with Marmalade which I
reported ages ago but hasn't been fixed. Please add comments on
http://code.google.com/p/marmalade/issues/detail?id=20 encouraging the
maintainer to apply the patch that provides correct instructions if
this has bitten you.

-Phil

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Chris Perkins
On Monday, November 21, 2011 11:27:04 AM UTC-5, Michael Jaaka wrote:
>
> Then I entered into Clojure project, used: M-x clojure-jack-in (almost
> there!!!)
> And got exception:
>
> Unable to resolve symbol print-doc.
> LOL :-)
> Any suggestions?
>

Do you have the latest version of swank-clojure?  Look in ~/.lein/plugins - 
it should be version 1.3.3

- Chris
 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Michael Jaaka
OK. I have replaced content of package.el with this recommended by
http://marmalade-repo.org/
Added (add-to-list 'package-archives '("marmalade" . "http://marmalade-
repo.org/packages/")) to .emacs
installed clojure-mode, swank etc.
Then I entered into Clojure project, used: M-x clojure-jack-in (almost
there!!!)
And got exception:

Unable to resolve symbol print-doc.
LOL :-)
Any suggestions?



On Nov 21, 5:16 pm, Michael Jaaka 
wrote:
> Have tried to put in .emacs
>
> (when
>     (load
>      (expand-file-name "~/.emacs.d/elpa/package.el"))
>   )
>
>    (setq package-archives '(
>                                                         ("marmalade" . 
> "http://marmalade-repo.org/packages/";)
>                              ("gnu"  . "http://elpa.gnu.org/
> packages/")))
>
> (package-initialize)
>
> But didn't work.
> I have defined in package.el (defconst package-archive-base "http://
> tromey.com/elpa/")
> should i chanve that? I tried to replace it with "http://marmalade-
> repo.org/packages/" but this resource doesn't have builtin-packages or
> somthing
>
> On Nov 21, 5:08 pm, Michael Jaaka 
> wrote:
>
>
>
>
>
>
>
> > I have added (add-to-list 'package-archives '("marmalade" . "http://
> > marmalade-repo.org/packages/"))
> > to .emacs but getting Warning initialziation: An error occured while
> > loading .emacs
> > Symbols value as variable is void: package-archives
>
> > On Nov 21, 4:03 pm, Chris Perkins  wrote:
>
> > > I'm far from being an expert on this stuff, but I did go through all the
> > > same frustration as you are going through, about 2 years ago, so I'll try
> > > to help.
>
> > > I think you have an old version of clojure-mode.  The default archive that
> > > comes with package.el is athttp://tromey.com/elpa.  It contains an old
> > > clojure-mode. marmalade-repo contains the new version.
>
> > > Try doing M-x package-list-packages, and then search the list for
> > > clojure-mode - it should be version 1.11.4.  Put the cursor beside that,
> > > press i (for install), then x (for execute).
>
> > > Then restart emacs.  Let me know if that works.
>
> > > - Chris

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Michael Jaaka
Have tried to put in .emacs

(when
(load
 (expand-file-name "~/.emacs.d/elpa/package.el"))
  )

   (setq package-archives '(
("marmalade" . 
"http://marmalade-repo.org/packages/";)
 ("gnu"  . "http://elpa.gnu.org/
packages/")))

(package-initialize)


But didn't work.
I have defined in package.el (defconst package-archive-base "http://
tromey.com/elpa/")
should i chanve that? I tried to replace it with "http://marmalade-
repo.org/packages/" but this resource doesn't have builtin-packages or
somthing


On Nov 21, 5:08 pm, Michael Jaaka 
wrote:
> I have added (add-to-list 'package-archives '("marmalade" . "http://
> marmalade-repo.org/packages/"))
> to .emacs but getting Warning initialziation: An error occured while
> loading .emacs
> Symbols value as variable is void: package-archives
>
> On Nov 21, 4:03 pm, Chris Perkins  wrote:
>
>
>
>
>
>
>
> > I'm far from being an expert on this stuff, but I did go through all the
> > same frustration as you are going through, about 2 years ago, so I'll try
> > to help.
>
> > I think you have an old version of clojure-mode.  The default archive that
> > comes with package.el is athttp://tromey.com/elpa.  It contains an old
> > clojure-mode. marmalade-repo contains the new version.
>
> > Try doing M-x package-list-packages, and then search the list for
> > clojure-mode - it should be version 1.11.4.  Put the cursor beside that,
> > press i (for install), then x (for execute).
>
> > Then restart emacs.  Let me know if that works.
>
> > - Chris

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Michael Jaaka
I have added (add-to-list 'package-archives '("marmalade" . "http://
marmalade-repo.org/packages/"))
to .emacs but getting Warning initialziation: An error occured while
loading .emacs
Symbols value as variable is void: package-archives

On Nov 21, 4:03 pm, Chris Perkins  wrote:
> I'm far from being an expert on this stuff, but I did go through all the
> same frustration as you are going through, about 2 years ago, so I'll try
> to help.
>
> I think you have an old version of clojure-mode.  The default archive that
> comes with package.el is athttp://tromey.com/elpa.  It contains an old
> clojure-mode. marmalade-repo contains the new version.
>
> Try doing M-x package-list-packages, and then search the list for
> clojure-mode - it should be version 1.11.4.  Put the cursor beside that,
> press i (for install), then x (for execute).
>
> Then restart emacs.  Let me know if that works.
>
> - Chris

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Michael Jaaka
The list of clojure- commands decreased to clojure-enable-slime-on-
existing-buffers and clojure-mode


On Nov 21, 4:03 pm, Chris Perkins  wrote:
> I'm far from being an expert on this stuff, but I did go through all the
> same frustration as you are going through, about 2 years ago, so I'll try
> to help.
>
> I think you have an old version of clojure-mode.  The default archive that
> comes with package.el is athttp://tromey.com/elpa.  It contains an old
> clojure-mode. marmalade-repo contains the new version.
>
> Try doing M-x package-list-packages, and then search the list for
> clojure-mode - it should be version 1.11.4.  Put the cursor beside that,
> press i (for install), then x (for execute).
>
> Then restart emacs.  Let me know if that works.
>
> - Chris

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Michael Jaaka
The only available clojure-mode is 1.7.1
The package is 0.9
The package.el I have installed from "http://tromey.com/elpa/package-
install.el"
I can see also slime in version 20100404, slime-repl in the same
and swank-clojure in 1.1.0, the swank-clojure doesn't want to install
because clojure-mode-1.7.1/clojure-mode.el already exists
(I have then deleted elpa/clojure-mode-1.7.1 and installed again but
after all in M-x package-list-packages there still no position like
"isntalled" but "available")



On Nov 21, 4:03 pm, Chris Perkins  wrote:
> I'm far from being an expert on this stuff, but I did go through all the
> same frustration as you are going through, about 2 years ago, so I'll try
> to help.
>
> I think you have an old version of clojure-mode.  The default archive that
> comes with package.el is athttp://tromey.com/elpa.  It contains an old
> clojure-mode. marmalade-repo contains the new version.
>
> Try doing M-x package-list-packages, and then search the list for
> clojure-mode - it should be version 1.11.4.  Put the cursor beside that,
> press i (for install), then x (for execute).
>
> Then restart emacs.  Let me know if that works.
>
> - Chris

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Chris Perkins
I'm far from being an expert on this stuff, but I did go through all the 
same frustration as you are going through, about 2 years ago, so I'll try 
to help.

I think you have an old version of clojure-mode.  The default archive that 
comes with package.el is at http://tromey.com/elpa.  It contains an old 
clojure-mode. marmalade-repo contains the new version.

Try doing M-x package-list-packages, and then search the list for 
clojure-mode - it should be version 1.11.4.  Put the cursor beside that, 
press i (for install), then x (for execute).

Then restart emacs.  Let me know if that works.

- Chris

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Chris Perkins
"In a project" just means that the active buffer in emacs is a file under 
the project root.  When you do clojure-jack-in, it will start from the 
current file's directory, and look up through parent directories until it 
finds a project.clj file.


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Michael Jaaka
Already done, some report is a post above your reply.
What does the "from inside a project" mean? Do I have to enter in bash
to the dir root where is project.clj and run emacs?

BTW. For all newbies the C-g is usefull. It aborts any command mode
(like C-x C-f).


On Nov 21, 3:38 pm, Chris Perkins  wrote:
> On Monday, November 21, 2011 9:27:00 AM UTC-5, Michael Jaaka wrote:
>
> > now as tutorial onhttps://github.com/technomancy/clojure-modestates used:
>
> > M-x run-lisp
>
> > and got Searching for program: no such file or directory, lisp
>
> > any help?
>
> Try using the instructions from the next section of that page, entitled
> "SLIME".
>
> $ lein plugin install swank-clojure 1.3.3
>
> M-x clojure-jack-in # from inside a project
>
> Make sure you are in a project when you run clojure-jack-in.  Initially,
> you can just do "lein new dummy-project", then open the generated
> project.clj in emacs, change the clojure version to 1.3, and then run
> clojure-jack-in.  That should get you a repl.  Also you may need a "lein
> deps" in there somewhere.
>
> - Chris

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Chris Perkins
On Monday, November 21, 2011 9:27:00 AM UTC-5, Michael Jaaka wrote:
>
>
> now as tutorial on https://github.com/technomancy/clojure-mode states used: 
>
> M-x run-lisp
>
>
> and got Searching for program: no such file or directory, lisp
>
>
> any help?
>
>
>  
Try using the instructions from the next section of that page, entitled 
"SLIME".

$ lein plugin install swank-clojure 1.3.3

M-x clojure-jack-in # from inside a project


Make sure you are in a project when you run clojure-jack-in.  Initially, 
you can just do "lein new dummy-project", then open the generated 
project.clj in emacs, change the clojure version to 1.3, and then run 
clojure-jack-in.  That should get you a repl.  Also you may need a "lein 
deps" in there somewhere.

- Chris 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Michael Jaaka
I have ran: lein plugin install swank-clojure 1.3.3
from command line clojure-1.2.1 have been installed (why not 1.3.0???)
and  swank-clojure 1.3.3
later created test-project with: lein new test-project
ran: emacs tmp/test-project/src/test_project/core.clj

when used: M-x clojure-jack-in
got: no match
when used: M-x clojure- 
got list of available commands:
clojure-enable-slime-on-existing-buffers
clojure-load-file
clojure-mode
clojure-mode-font-lock-setup

any thoughts?

at least when opening clj file I have syntax highlighment, I wonder if
paraedit is running and what it is.
When I type [ a closing ] doesn't happen so I suppose that paraedit is
turned off

On Nov 21, 3:27 pm, Michael Jaaka 
wrote:
> Manage to install package.el
>
> I have put
>
>   (let ((buffer (url-retrieve-synchronously
>                "http://tromey.com/elpa/package-install.el";)))
>   (save-excursion
>     (set-buffer buffer)
>     (goto-char (point-min))
>     (re-search-forward "^$" nil 'move)
>     (eval-region (point) (point-max))
>     (kill-buffer (current-buffer
>
> into .emacs
>
> ran emacs
>
> removed from .emacs what have previously added
>
> ran from emacs: M-x package-refresh-contents
>
> then: M-x package-install  clojure-mode
>
> got to warning on clojure-mode.el:69:1:Warning cl package required at runtime
>
> and
>
> clojure-mode:179:34:Warning : reference to free variable paraedit-mode
>
> doesn't know what it mean but also added
>
> (add-to-list 'load-path "~/.emacs.d/")
>
> (require 'clojure-mode)
>
> (require 'paredit)
>
> (defun turn-on-paredit () (paredit-mode 1))
>
> (add-hook 'clojure-mode-hook 'turn-on-paredit)
>
> to init.el
>
> so final file is
>
> (require 'package)
> (add-to-list 'package-archives
>              '("marmalade" . "http://marmalade-repo.org/packages/";))
> (package-initialize)
>
> (add-to-list 'load-path "~/.emacs.d/")
> (require 'clojure-mode)
>
> (require 'paredit)
> (defun turn-on-paredit () (paredit-mode 1))
> (add-hook 'clojure-mode-hook 'turn-on-paredit)
>
> now as tutorial onhttps://github.com/technomancy/clojure-modestates used:
>
> M-x run-lisp
>
> and got Searching for program: no such file or directory, lisp
>
> any help?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Michael Jaaka
Manage to install package.el

I have put 

  (let ((buffer (url-retrieve-synchronously
   "http://tromey.com/elpa/package-install.el";)))
  (save-excursion
(set-buffer buffer)
(goto-char (point-min))
(re-search-forward "^$" nil 'move)
(eval-region (point) (point-max))
(kill-buffer (current-buffer


into .emacs


ran emacs


removed from .emacs what have previously added


ran from emacs: M-x package-refresh-contents

then: M-x package-install  clojure-mode


got to warning on clojure-mode.el:69:1:Warning cl package required at runtime


and


clojure-mode:179:34:Warning : reference to free variable paraedit-mode


doesn't know what it mean but also added



(add-to-list 'load-path "~/.emacs.d/")

(require 'clojure-mode)


(require 'paredit) 

(defun turn-on-paredit () (paredit-mode 1))

(add-hook 'clojure-mode-hook 'turn-on-paredit)


to init.el


so final file is



(require 'package)
(add-to-list 'package-archives
 '("marmalade" . "http://marmalade-repo.org/packages/";))
(package-initialize)

(add-to-list 'load-path "~/.emacs.d/")
(require 'clojure-mode)

(require 'paredit) 
(defun turn-on-paredit () (paredit-mode 1))
(add-hook 'clojure-mode-hook 'turn-on-paredit)



now as tutorial on https://github.com/technomancy/clojure-mode states used: 

M-x run-lisp


and got Searching for program: no such file or directory, lisp


any help?





-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Michael Jaaka
My Emcas is GNU Emacs 23.3.1 (2011-08-14 on fiona)

On Nov 21, 2:30 pm, Michael Jaaka 
wrote:
> Well I thing that I don't have package.el
>
> Doing
>
> ;; add to ~/.emacs.d/init.el if you aren't already using Marmalade.
> (require 'package)
> (add-to-list 'package-archives
>  '("marmalade" . "http://marmalade-repo.org/packages/";))
> (package-initialize)
>
> Didn't change anything.
>
> When I opened test.clj and ran M-x eval-buffer I got that symbol's
> function definition is void: def
>
> So where to put package.el?
>
> On Nov 21, 2:18 pm, David Nolen  wrote:
>
>
>
>
>
>
>
> > Have you looked at 
> > this,http://dev.clojure.org/display/doc/Getting+Started+with+Emacs?
>
> > David
>
> > 2011/11/21 Michael Jaaka 
>
> > > Hmmm... When trying to do
> > >http://riddell.us/ClojureSwankLeiningenWithEmacsOnLinux.html
>
> > > especially
>
> > > Add the following:
>
> > > (defproject test-project "0.1.0"
> > >  :description "Test Project"
> > >  :dependencies [[org.clojure/clojure "1.3.0"]
> > > [org.clojure/clojure-contrib "1.2.0"]]
> > >  :dev-dependencies [[swank-clojure "1.2.1"]])
> > > Save and exit the file.
>
> > > ~$ lein deps
>
> > > ~$ lein swank
>
> > > there is an exception about not finding print-doc
>
> > > Any help? Emacs/swank thing is a nightmare. I wanted to give it a
> > > chance again but I see that nothing has changed in that area. Sine
> > > Clojure 1.3, the clojure-contrib or what ever it is now makes only
> > > trouble. More over the tutorial above asks to clone clojure from
> > > github which already outdates this tutorial because in github the
> > > current version is 1.4, and lein generates project description for
> > > 1.2. Is there any chance it will be cleaned up? Maybe there should be
> > > ENV variable which defines base version of clojure to which lein,
> > > swank, ant, mvn, clojure, emacs, clojure-contrib would align?
>
> > > On Nov 21, 1:13 pm, Michael Jaaka 
> > > wrote:
> > > > Hi!
>
> > > > When running ant command in cygwin on content cloned fromhttp://
> > > github.com/clojure/clojure.git
>
> > > > I get 2 errors:
>
> > > >[java] Testing clojure.test-clojure.java.io
> > > >  [java]
> > > >  [java] ERROR in (test-streams-defaults)
> > > > (FileOutputStream.java:-2)
> > > >  [java] expected: (= content (do (spit (.toURI f)
> > > > content :encoding "UTF-8") (slurp (.toURI f) :encoding "UTF-8")))
> > > >  [java]   actual: java.io.FileNotFoundException: C:\Documents%20and
> > > > %20Settings\mjaaka\clojure.java.io5093958105426009259test-reader-
> > > > writer (System nie może odnaleźć określonej ścieżki)
> > > >  [java]  at java.io.FileOutputStream.open
> > > > (FileOutputStream.java:-2)
> > > >  [java] java.io.FileOutputStream. (FileOutputStream.java:
> > > > 194)
> > > >  [java] clojure.java.io/fn (io.clj:224)
> > > >  [java] clojure.java.io$fn__7808$G__7784__7815.invoke (io.clj:
> > > > 63)
> > > >  [java] clojure.java.io/fn (io.clj:236)
> > > >  [java] clojure.java.io$fn__7808$G__7784__7815.invoke (io.clj:
> > > > 63)
> > > >  [java] clojure.java.io/fn (io.clj:243)
> > > >  [java] clojure.java.io$fn__7808$G__7784__7815.invoke (io.clj:
> > > > 63)
> > > >  [java] clojure.java.io/fn (io.clj:160)
> > > >  [java] clojure.java.io$fn__7834$G__7788__7841.invoke (io.clj:
> > > > 63)
> > > >  [java] clojure.java.io$writer.doInvoke (io.clj:113)
> > > >  [java] clojure.lang.RestFn.applyTo (RestFn.java:139)
> > > >  [java] clojure.core$apply.invoke (core.clj:602)
> > > >  [java] clojure.core$spit.doInvoke (core.clj:6041)
> > > >  [java] clojure.lang.RestFn.invoke (RestFn.java:464)
> > > >  [java] clojure.test_clojure.java.io$fn__7581$fn__7598.invoke
> > > > (io.clj:42)
> > > >  [java] clojure.test_clojure.java.io/fn (io.clj:42)
> > > >  [java] clojure.test$test_var$fn__6484.invoke (test.clj:693)
> > > >  [java] clojure.test$test_var.invoke (test.clj:693)
> > > >  [java] clojure.test$test_all_vars$fn__6488$fn__6495.invoke
> > > > (test.clj:709)
> > > >  [java] clojure.test$default_fixture.invoke (test.clj:663)
> > > >  [java] clojure.test$test_all_vars$fn__6488.invoke (test.clj:
> > > > 709)
> > > >  [java] clojure.test$default_fixture.invoke (test.clj:663)
> > > >  [java] clojure.test$test_all_vars.invoke (test.clj:705)
> > > >  [java] clojure.test$test_ns.invoke (test.clj:728)
> > > >  [java] clojure.core$map$fn__3811.invoke (core.clj:2431)
> > > >  [java] clojure.lang.LazySeq.sval (LazySeq.java:42)
> > > >  [java] clojure.lang.LazySeq.seq (LazySeq.java:60)
> > > >  [java] clojure.lang.Cons.next (Cons.java:39)
> > > >  [java] clojure.lang.RT.boundedLength (RT.java:1607)
> > > >  [java] clojure.lang.RestFn.applyTo (RestFn.java:130)
> > > >  [java] clojure.core$apply.invoke (core.clj:602)
> > >

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Michael Jaaka
Well I thing that I don't have package.el

Doing

;; add to ~/.emacs.d/init.el if you aren't already using Marmalade.
(require 'package)
(add-to-list 'package-archives
 '("marmalade" . "http://marmalade-repo.org/packages/";))
(package-initialize)




Didn't change anything.

When I opened test.clj and ran M-x eval-buffer I got that symbol's
function definition is void: def

So where to put package.el?






On Nov 21, 2:18 pm, David Nolen  wrote:
> Have you looked at 
> this,http://dev.clojure.org/display/doc/Getting+Started+with+Emacs?
>
> David
>
> 2011/11/21 Michael Jaaka 
>
>
>
>
>
>
>
> > Hmmm... When trying to do
> >http://riddell.us/ClojureSwankLeiningenWithEmacsOnLinux.html
>
> > especially
>
> > Add the following:
>
> > (defproject test-project "0.1.0"
> >  :description "Test Project"
> >  :dependencies [[org.clojure/clojure "1.3.0"]
> >                 [org.clojure/clojure-contrib "1.2.0"]]
> >  :dev-dependencies [[swank-clojure "1.2.1"]])
> > Save and exit the file.
>
> > ~$ lein deps
>
> > ~$ lein swank
>
> > there is an exception about not finding print-doc
>
> > Any help? Emacs/swank thing is a nightmare. I wanted to give it a
> > chance again but I see that nothing has changed in that area. Sine
> > Clojure 1.3, the clojure-contrib or what ever it is now makes only
> > trouble. More over the tutorial above asks to clone clojure from
> > github which already outdates this tutorial because in github the
> > current version is 1.4, and lein generates project description for
> > 1.2. Is there any chance it will be cleaned up? Maybe there should be
> > ENV variable which defines base version of clojure to which lein,
> > swank, ant, mvn, clojure, emacs, clojure-contrib would align?
>
> > On Nov 21, 1:13 pm, Michael Jaaka 
> > wrote:
> > > Hi!
>
> > > When running ant command in cygwin on content cloned fromhttp://
> > github.com/clojure/clojure.git
>
> > > I get 2 errors:
>
> > >    [java] Testing clojure.test-clojure.java.io
> > >      [java]
> > >      [java] ERROR in (test-streams-defaults)
> > > (FileOutputStream.java:-2)
> > >      [java] expected: (= content (do (spit (.toURI f)
> > > content :encoding "UTF-8") (slurp (.toURI f) :encoding "UTF-8")))
> > >      [java]   actual: java.io.FileNotFoundException: C:\Documents%20and
> > > %20Settings\mjaaka\clojure.java.io5093958105426009259test-reader-
> > > writer (System nie może odnaleźć określonej ścieżki)
> > >      [java]  at java.io.FileOutputStream.open
> > > (FileOutputStream.java:-2)
> > >      [java]     java.io.FileOutputStream. (FileOutputStream.java:
> > > 194)
> > >      [java]     clojure.java.io/fn (io.clj:224)
> > >      [java]     clojure.java.io$fn__7808$G__7784__7815.invoke (io.clj:
> > > 63)
> > >      [java]     clojure.java.io/fn (io.clj:236)
> > >      [java]     clojure.java.io$fn__7808$G__7784__7815.invoke (io.clj:
> > > 63)
> > >      [java]     clojure.java.io/fn (io.clj:243)
> > >      [java]     clojure.java.io$fn__7808$G__7784__7815.invoke (io.clj:
> > > 63)
> > >      [java]     clojure.java.io/fn (io.clj:160)
> > >      [java]     clojure.java.io$fn__7834$G__7788__7841.invoke (io.clj:
> > > 63)
> > >      [java]     clojure.java.io$writer.doInvoke (io.clj:113)
> > >      [java]     clojure.lang.RestFn.applyTo (RestFn.java:139)
> > >      [java]     clojure.core$apply.invoke (core.clj:602)
> > >      [java]     clojure.core$spit.doInvoke (core.clj:6041)
> > >      [java]     clojure.lang.RestFn.invoke (RestFn.java:464)
> > >      [java]     clojure.test_clojure.java.io$fn__7581$fn__7598.invoke
> > > (io.clj:42)
> > >      [java]     clojure.test_clojure.java.io/fn (io.clj:42)
> > >      [java]     clojure.test$test_var$fn__6484.invoke (test.clj:693)
> > >      [java]     clojure.test$test_var.invoke (test.clj:693)
> > >      [java]     clojure.test$test_all_vars$fn__6488$fn__6495.invoke
> > > (test.clj:709)
> > >      [java]     clojure.test$default_fixture.invoke (test.clj:663)
> > >      [java]     clojure.test$test_all_vars$fn__6488.invoke (test.clj:
> > > 709)
> > >      [java]     clojure.test$default_fixture.invoke (test.clj:663)
> > >      [java]     clojure.test$test_all_vars.invoke (test.clj:705)
> > >      [java]     clojure.test$test_ns.invoke (test.clj:728)
> > >      [java]     clojure.core$map$fn__3811.invoke (core.clj:2431)
> > >      [java]     clojure.lang.LazySeq.sval (LazySeq.java:42)
> > >      [java]     clojure.lang.LazySeq.seq (LazySeq.java:60)
> > >      [java]     clojure.lang.Cons.next (Cons.java:39)
> > >      [java]     clojure.lang.RT.boundedLength (RT.java:1607)
> > >      [java]     clojure.lang.RestFn.applyTo (RestFn.java:130)
> > >      [java]     clojure.core$apply.invoke (core.clj:602)
> > >      [java]     clojure.test$run_tests.doInvoke (test.clj:743)
> > >      [java]     clojure.lang.RestFn.applyTo (RestFn.java:137)
> > >      [java]     clojure.core$apply.invoke (core.clj:600)
> > >      [java]     clojure.test_clojure$eval20599.invoke (run_tests.clj:
> > > 59)
>

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread David Nolen
Have you looked at this,
http://dev.clojure.org/display/doc/Getting+Started+with+Emacs ?

David

2011/11/21 Michael Jaaka 

> Hmmm... When trying to do
> http://riddell.us/ClojureSwankLeiningenWithEmacsOnLinux.html
>
> especially
>
> Add the following:
>
> (defproject test-project "0.1.0"
>  :description "Test Project"
>  :dependencies [[org.clojure/clojure "1.3.0"]
> [org.clojure/clojure-contrib "1.2.0"]]
>  :dev-dependencies [[swank-clojure "1.2.1"]])
> Save and exit the file.
>
> ~$ lein deps
>
> ~$ lein swank
>
>
> there is an exception about not finding print-doc
>
> Any help? Emacs/swank thing is a nightmare. I wanted to give it a
> chance again but I see that nothing has changed in that area. Sine
> Clojure 1.3, the clojure-contrib or what ever it is now makes only
> trouble. More over the tutorial above asks to clone clojure from
> github which already outdates this tutorial because in github the
> current version is 1.4, and lein generates project description for
> 1.2. Is there any chance it will be cleaned up? Maybe there should be
> ENV variable which defines base version of clojure to which lein,
> swank, ant, mvn, clojure, emacs, clojure-contrib would align?
>
> On Nov 21, 1:13 pm, Michael Jaaka 
> wrote:
> > Hi!
> >
> > When running ant command in cygwin on content cloned fromhttp://
> github.com/clojure/clojure.git
> >
> > I get 2 errors:
> >
> >[java] Testing clojure.test-clojure.java.io
> >  [java]
> >  [java] ERROR in (test-streams-defaults)
> > (FileOutputStream.java:-2)
> >  [java] expected: (= content (do (spit (.toURI f)
> > content :encoding "UTF-8") (slurp (.toURI f) :encoding "UTF-8")))
> >  [java]   actual: java.io.FileNotFoundException: C:\Documents%20and
> > %20Settings\mjaaka\clojure.java.io5093958105426009259test-reader-
> > writer (System nie może odnaleźć określonej ścieżki)
> >  [java]  at java.io.FileOutputStream.open
> > (FileOutputStream.java:-2)
> >  [java] java.io.FileOutputStream. (FileOutputStream.java:
> > 194)
> >  [java] clojure.java.io/fn (io.clj:224)
> >  [java] clojure.java.io$fn__7808$G__7784__7815.invoke (io.clj:
> > 63)
> >  [java] clojure.java.io/fn (io.clj:236)
> >  [java] clojure.java.io$fn__7808$G__7784__7815.invoke (io.clj:
> > 63)
> >  [java] clojure.java.io/fn (io.clj:243)
> >  [java] clojure.java.io$fn__7808$G__7784__7815.invoke (io.clj:
> > 63)
> >  [java] clojure.java.io/fn (io.clj:160)
> >  [java] clojure.java.io$fn__7834$G__7788__7841.invoke (io.clj:
> > 63)
> >  [java] clojure.java.io$writer.doInvoke (io.clj:113)
> >  [java] clojure.lang.RestFn.applyTo (RestFn.java:139)
> >  [java] clojure.core$apply.invoke (core.clj:602)
> >  [java] clojure.core$spit.doInvoke (core.clj:6041)
> >  [java] clojure.lang.RestFn.invoke (RestFn.java:464)
> >  [java] clojure.test_clojure.java.io$fn__7581$fn__7598.invoke
> > (io.clj:42)
> >  [java] clojure.test_clojure.java.io/fn (io.clj:42)
> >  [java] clojure.test$test_var$fn__6484.invoke (test.clj:693)
> >  [java] clojure.test$test_var.invoke (test.clj:693)
> >  [java] clojure.test$test_all_vars$fn__6488$fn__6495.invoke
> > (test.clj:709)
> >  [java] clojure.test$default_fixture.invoke (test.clj:663)
> >  [java] clojure.test$test_all_vars$fn__6488.invoke (test.clj:
> > 709)
> >  [java] clojure.test$default_fixture.invoke (test.clj:663)
> >  [java] clojure.test$test_all_vars.invoke (test.clj:705)
> >  [java] clojure.test$test_ns.invoke (test.clj:728)
> >  [java] clojure.core$map$fn__3811.invoke (core.clj:2431)
> >  [java] clojure.lang.LazySeq.sval (LazySeq.java:42)
> >  [java] clojure.lang.LazySeq.seq (LazySeq.java:60)
> >  [java] clojure.lang.Cons.next (Cons.java:39)
> >  [java] clojure.lang.RT.boundedLength (RT.java:1607)
> >  [java] clojure.lang.RestFn.applyTo (RestFn.java:130)
> >  [java] clojure.core$apply.invoke (core.clj:602)
> >  [java] clojure.test$run_tests.doInvoke (test.clj:743)
> >  [java] clojure.lang.RestFn.applyTo (RestFn.java:137)
> >  [java] clojure.core$apply.invoke (core.clj:600)
> >  [java] clojure.test_clojure$eval20599.invoke (run_tests.clj:
> > 59)
> >  [java] clojure.lang.Compiler.eval (Compiler.java:6498)
> >  [java] clojure.lang.Compiler.load (Compiler.java:6935)
> >  [java] clojure.lang.Compiler.loadFile (Compiler.java:6896)
> >  [java] clojure.main$load_script.invoke (main.clj:282)
> >  [java] clojure.main$script_opt.invoke (main.clj:342)
> >  [java] clojure.main$main.doInvoke (main.clj:426)
> >  [java] clojure.lang.RestFn.invoke (RestFn.java:408)
> >  [java] clojure.lang.Var.invoke (Var.java:401)
> >  [java] clojure.lang.AFn.applyToHelper (AFn.java:161)
> >  [java] clojure.lang.Var.applyTo (Var.

Re: Can't build clojure cloned from github - 2 tests failed - when running from cygwin

2011-11-21 Thread Michael Jaaka
Hmmm... When trying to do 
http://riddell.us/ClojureSwankLeiningenWithEmacsOnLinux.html

especially

Add the following:

(defproject test-project "0.1.0"
  :description "Test Project"
  :dependencies [[org.clojure/clojure "1.3.0"]
 [org.clojure/clojure-contrib "1.2.0"]]
  :dev-dependencies [[swank-clojure "1.2.1"]])
Save and exit the file.

~$ lein deps

~$ lein swank


there is an exception about not finding print-doc

Any help? Emacs/swank thing is a nightmare. I wanted to give it a
chance again but I see that nothing has changed in that area. Sine
Clojure 1.3, the clojure-contrib or what ever it is now makes only
trouble. More over the tutorial above asks to clone clojure from
github which already outdates this tutorial because in github the
current version is 1.4, and lein generates project description for
1.2. Is there any chance it will be cleaned up? Maybe there should be
ENV variable which defines base version of clojure to which lein,
swank, ant, mvn, clojure, emacs, clojure-contrib would align?

On Nov 21, 1:13 pm, Michael Jaaka 
wrote:
> Hi!
>
> When running ant command in cygwin on content cloned 
> fromhttp://github.com/clojure/clojure.git
>
> I get 2 errors:
>
>    [java] Testing clojure.test-clojure.java.io
>      [java]
>      [java] ERROR in (test-streams-defaults)
> (FileOutputStream.java:-2)
>      [java] expected: (= content (do (spit (.toURI f)
> content :encoding "UTF-8") (slurp (.toURI f) :encoding "UTF-8")))
>      [java]   actual: java.io.FileNotFoundException: C:\Documents%20and
> %20Settings\mjaaka\clojure.java.io5093958105426009259test-reader-
> writer (System nie może odnaleźć określonej ścieżki)
>      [java]  at java.io.FileOutputStream.open
> (FileOutputStream.java:-2)
>      [java]     java.io.FileOutputStream. (FileOutputStream.java:
> 194)
>      [java]     clojure.java.io/fn (io.clj:224)
>      [java]     clojure.java.io$fn__7808$G__7784__7815.invoke (io.clj:
> 63)
>      [java]     clojure.java.io/fn (io.clj:236)
>      [java]     clojure.java.io$fn__7808$G__7784__7815.invoke (io.clj:
> 63)
>      [java]     clojure.java.io/fn (io.clj:243)
>      [java]     clojure.java.io$fn__7808$G__7784__7815.invoke (io.clj:
> 63)
>      [java]     clojure.java.io/fn (io.clj:160)
>      [java]     clojure.java.io$fn__7834$G__7788__7841.invoke (io.clj:
> 63)
>      [java]     clojure.java.io$writer.doInvoke (io.clj:113)
>      [java]     clojure.lang.RestFn.applyTo (RestFn.java:139)
>      [java]     clojure.core$apply.invoke (core.clj:602)
>      [java]     clojure.core$spit.doInvoke (core.clj:6041)
>      [java]     clojure.lang.RestFn.invoke (RestFn.java:464)
>      [java]     clojure.test_clojure.java.io$fn__7581$fn__7598.invoke
> (io.clj:42)
>      [java]     clojure.test_clojure.java.io/fn (io.clj:42)
>      [java]     clojure.test$test_var$fn__6484.invoke (test.clj:693)
>      [java]     clojure.test$test_var.invoke (test.clj:693)
>      [java]     clojure.test$test_all_vars$fn__6488$fn__6495.invoke
> (test.clj:709)
>      [java]     clojure.test$default_fixture.invoke (test.clj:663)
>      [java]     clojure.test$test_all_vars$fn__6488.invoke (test.clj:
> 709)
>      [java]     clojure.test$default_fixture.invoke (test.clj:663)
>      [java]     clojure.test$test_all_vars.invoke (test.clj:705)
>      [java]     clojure.test$test_ns.invoke (test.clj:728)
>      [java]     clojure.core$map$fn__3811.invoke (core.clj:2431)
>      [java]     clojure.lang.LazySeq.sval (LazySeq.java:42)
>      [java]     clojure.lang.LazySeq.seq (LazySeq.java:60)
>      [java]     clojure.lang.Cons.next (Cons.java:39)
>      [java]     clojure.lang.RT.boundedLength (RT.java:1607)
>      [java]     clojure.lang.RestFn.applyTo (RestFn.java:130)
>      [java]     clojure.core$apply.invoke (core.clj:602)
>      [java]     clojure.test$run_tests.doInvoke (test.clj:743)
>      [java]     clojure.lang.RestFn.applyTo (RestFn.java:137)
>      [java]     clojure.core$apply.invoke (core.clj:600)
>      [java]     clojure.test_clojure$eval20599.invoke (run_tests.clj:
> 59)
>      [java]     clojure.lang.Compiler.eval (Compiler.java:6498)
>      [java]     clojure.lang.Compiler.load (Compiler.java:6935)
>      [java]     clojure.lang.Compiler.loadFile (Compiler.java:6896)
>      [java]     clojure.main$load_script.invoke (main.clj:282)
>      [java]     clojure.main$script_opt.invoke (main.clj:342)
>      [java]     clojure.main$main.doInvoke (main.clj:426)
>      [java]     clojure.lang.RestFn.invoke (RestFn.java:408)
>      [java]     clojure.lang.Var.invoke (Var.java:401)
>      [java]     clojure.lang.AFn.applyToHelper (AFn.java:161)
>      [java]     clojure.lang.Var.applyTo (Var.java:518)
>      [java]     clojure.main.main (main.java:37)
>      [java]
>      [java] ERROR in (test-input-stream) (FileInputStream.java:-2)
>      [java] Uncaught exception, not in assertion.
>      [java] expected: nil
>      [java]   actual: java.io.FileNotFoundException: C:\Documents%20and
> %20Settings\mjaaka