* jython and emacs on windows
@ 2010-05-13 14:19 jerome delachienne
0 siblings, 0 replies; 5+ messages in thread
From: jerome delachienne @ 2010-05-13 14:19 UTC (permalink / raw
To: help-gnu-emacs
Hello,
i am trying to start a jython interpreter from emacs on windows from
several days and did not managed to do it.
I managed to start the jython interpreter from emacs on linux
I managed to start the python interpreter from emacs on windows.
with jython on windows i have the following problem: i can execute a
python script with the option -m but i can not interact with the
interpreter.
When i start from an eshell jython without the -i option, nothing
happens as expected (like python)
When I start from an eshell the jython interpreter with -i option, I
receive the "welcome" information and the prompt:
c:/Users/jerome $ jython -i
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_20
Type "help", "copyright", "credits" or "license" for more information.
>>>
but then the interpreter does not react to any inputs
on the process explorer i can see that emacs has started a child
process cmd /c c:\jython2.5.1\jython.bat -i. this child process
started itself the jython interpreter which runs.but it seems that the
inputs are not passed from emacs to the jython interpreter.
has anyone an idea how i could solve this problem? Thanks for your
help !
jython 2.5.1
Jdk 1.6.0_20
emacs 22.3 and 21.3
windows xp and 7
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: jython and emacs on windows
[not found] <8b9b6ef9-4f7e-49a5-aaff-8d1edb181ba3@r11g2000yqa.googlegroups.com>
@ 2010-05-13 22:41 ` Tim Johnson
2010-05-13 22:56 ` Peter
0 siblings, 1 reply; 5+ messages in thread
From: Tim Johnson @ 2010-05-13 22:41 UTC (permalink / raw
To: help-gnu-emacs
On 2010-05-13, jerome delachienne <jerome.delachienne@googlemail.com> wrote:
<...>
> has anyone an idea how i could solve this problem? Thanks for your
> help !
>
> jython 2.5.1
> Jdk 1.6.0_20
> emacs 22.3 and 21.3
> windows xp and 7
Jerome, I do not use Windows for programming any more. I don't know if
the following will be of value:
Several years ago, when I used emacs on windows, I found that when I
attempted to start an asynchronous process (comint) from emacs, that
process was loaded into a separate window. I.E. *not* asynchronous
to the editor. I was told at that time that the way to make the
comint mode work correctly was to compile emacs thru cygwin.
I wish I could do more to help.
regards
--
Tim
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: jython and emacs on windows
2010-05-13 22:41 ` jython and emacs on windows Tim Johnson
@ 2010-05-13 22:56 ` Peter
2010-05-14 16:48 ` jerome delachienne
0 siblings, 1 reply; 5+ messages in thread
From: Peter @ 2010-05-13 22:56 UTC (permalink / raw
To: help-gnu-emacs
I have no idea (maybe I should stop here? :-)) what the problem may
be, but I use the Windows build of Emacs and run a Python interpreter
from within Emacs. Can you do that? I know that my setup uses bash to
start the Python interpreter (from the cygwin tools) as opposed to
using cmd.
*maybe* running Jython using bash instead of cmd may solve the
problem?
Just a thought :-)
Peter
On May 14, 8:41 am, Tim Johnson <t...@johnsons-web.com> wrote:
> On 2010-05-13, jerome delachienne <jerome.delachie...@googlemail.com> wrote:
> <...>> has anyone an idea how i could solve this problem? Thanks for your
> > help !
>
> > jython 2.5.1
> > Jdk 1.6.0_20
> > emacs 22.3 and 21.3
> > windows xp and 7
>
> Jerome, I do not use Windows for programming any more. I don't know if
> the following will be of value:
>
> Several years ago, when I used emacs on windows, I found that when I
> attempted to start an asynchronous process (comint) from emacs, that
> process was loaded into a separate window. I.E. *not* asynchronous
> to the editor. I was told at that time that the way to make the
> comint mode work correctly was to compile emacs thru cygwin.
>
> I wish I could do more to help.
>
> regards
> --
> Tim
> tim at johnsons-web.com or akwebsoft.comhttp://www.akwebsoft.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: jython and emacs on windows
2010-05-13 22:56 ` Peter
@ 2010-05-14 16:48 ` jerome delachienne
2010-05-17 22:07 ` jerome delachienne
0 siblings, 1 reply; 5+ messages in thread
From: jerome delachienne @ 2010-05-14 16:48 UTC (permalink / raw
To: help-gnu-emacs
thank for your help!
I will try with cygwin to check if it works.
Today i found out i can start jython from emacs without cmd. in eshell
i just write the full java command:
"C:\Program Files (x86)\Java\jre6\bin\java" -Xmx512m -Xss1152k -
Dpython.home="C:\jython2.5.1" -Dpython.executable="C:
\jython2.5.1\jython.bat" -classpath "C:\jython2.5.1\jython.jar"
org.python.util.jython -i
emacs then starts a child process which return on the eshell buffer
the following lines
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_20
Type "help", "copyright", "credits" or "license" for more information.
>>>
this child process is running but i can not communicate with it. I
found out that emacs is sending the data to a pipe (as far as i
understood). but jython is never reading the data from the pipe
I have tried other applications to check the communications between
emacs and its subprocesses:
i can start a python interpreter from emacs and i can communicate with
it without problem
I have written a small application in java which writes on the outputs
the inputs it has received. it works started from emacs.
it seems for me that the emacs subprocesses communications work fine.
I was thinking it was an end of line problem but it seems that jython
is never reading any data from the pipe.
i ll try jython with cygwin to check if the interactive mode is
working with cygwin.
regards
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: jython and emacs on windows
2010-05-14 16:48 ` jerome delachienne
@ 2010-05-17 22:07 ` jerome delachienne
0 siblings, 0 replies; 5+ messages in thread
From: jerome delachienne @ 2010-05-17 22:07 UTC (permalink / raw
To: help-gnu-emacs
I have tried with cygwin and i have exactly the same problem. jython
has started but it is not possible to communicate with it.
I was thinking of a end of line problem : i tried different codecs to
encode the output from emacs ( with the process variables from emacs).
I also changed the decoding codec from jython with -C option but the
problem still remains.
to make it more complicated, i manage to start jython from emacs in
cygwin but only when I start emacs with nw option ( no window).
i think i have to surrender
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-17 22:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <8b9b6ef9-4f7e-49a5-aaff-8d1edb181ba3@r11g2000yqa.googlegroups.com>
2010-05-13 22:41 ` jython and emacs on windows Tim Johnson
2010-05-13 22:56 ` Peter
2010-05-14 16:48 ` jerome delachienne
2010-05-17 22:07 ` jerome delachienne
2010-05-13 14:19 jerome delachienne
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.