This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: swank-kawa.scm


I did M-- M-x slime kawa properly this time round, finally figured
that out. I still get the same error message.

java.util.ServiceConfigurationError:com.sun.tools.attach.spi.AttachProvider:
Provider
sun.tools.attach.WindowsAttachProvider could not be instantiated:
java.lang.UnsatisfiedLinkError: no attach in java.library.path

swank$Mnkawa.attach(swank-kawa.scm:1777)

not sure what is happening here with attach function.


On Sun, Apr 21, 2013 at 3:04 PM, Chuah Teong Leong <teongleong@gmail.com> wrote:
> Hi Helmut Eller,
>
> I've been looking into kawa support within emacs. So far I have slime,
> scheme-complete, paredit set up. I came across this code you wrote.
>
> I have 2 problems that I'm hoping you could help me with.
>
> 1) Compilation
> I'm working on windows and I'm not exactly sure if I got the
> compilation process correct. I ran kawa with -cp to tools.jar and
> kawa.jar and did (compile "swank-kawa.scm" "swank-kawa") from the
> repl. There wasn't any error message and it produced a swank-kawa.zip
> within slime\contrib. I'm wondering if it should have been renamed to
> a jar and included it in the classpath. I haven't done anything yet
> and assume that is how it should be.
>
> 2) Usage
> at the end of the instruction you said
> "Start everything with  M-- M-x slime kawa"
>
> I couldn't quite figure how to do that.
> I did M-x slime and got this
>
> (begin (require "G:/emacs-24.2/lisp/slime/contrib/swank-kawa.scm")
> (start-swank "c:/Users/****/AppData/Local/Temp/slime.13604"))
> Listening for transport dt_socket at address: 49420
> #|kawa:1|# Thread[swank,5,main]
> #|kawa:2|# connection: Socket[addr=/127.0.0.1,port=49424,localport=49423]
> listener: Thread[swank-listener,5,main] 28560412 chan@df11d5 #<environment r0>
> attaching: $PPID 20
> attaching2: com.sun.jdi.ProcessAttach (defaults: pid=, timeout=)
> {pid=pid=$PPID, timeout=timeout=20}
> java.util.ServiceConfigurationError:
> com.sun.tools.attach.spi.AttachProvider: Provider
> sun.tools.attach.WindowsAttachProvider could not be instantiated:
> java.lang.UnsatisfiedLinkError: no attach in java.library.path
> closing socket: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=49423]
> exception in thread Thread[swank,5,main]: java.lang.Error: mcase failed tmp
> (chan@cc7ed2
>  (error "java.io.IOException: no providers installed" "IOException"
>   ("com.sun.tools.jdi.ProcessAttachingConnector.attach(ProcessAttachingConnector.java:104)"
>    "swank$Mnkawa.attach(swank-kawa.scm:1777)"
>    "swank$Mnkawa.vmAttach(swank-kawa.scm:1758)"
>
>
>
> How should I run my own kawa code so that slime-kawa could hook onto
> it? So far I do it from emacs' eshell and I have a batch file
> somewhere that runs java kawa.repl %* that is within the PATH


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]