help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Edit problem Octave


From: John Frain
Subject: Re: Edit problem Octave
Date: Tue, 15 Jan 2013 21:18:05 +0000

For what it is worth

edit mode async

in my .octaverc file and the command 'edit' opens notepad++ in both the gcc and VS2010 versions of ovtave. I am running Windows 7 - 64 bit.

The first time that I tried this command I did run into a problem.  The default location for notepad++ in the edit.m file is appropriate to Windows XP and must be changed if you are running Windows 7.

I have tried to use emacs as editor but this works only if I delete or rename my ~/.octaverc file. It does not matter what is in the  ~/.octaverc file Emacs locks if I try M-x run-octave or open a .m file in emacs and try to run it emacs locks. If I rename the  ~/.octaverc file all runs as expected and I can source the renamed ~/.octaverc file if required.

John Frain


On 15 January 2013 18:08, Nicholas Jankowski <address@hidden> wrote:
On Tue, Jan 15, 2013 at 1:00 PM, Paulo SantosVasconcelos <address@hidden> wrote:
 

From: address@hidden [address@hidden] On Behalf Of Nicholas Jankowski [address@hidden]
Sent: Tuesday, January 15, 2013 9:57 AM
To: Paulo SantosVasconcelos
Cc: address@hidden
Subject: Re: Edit problem Octave



On Tue, Jan 15, 2013 at 12:39 PM, Paulo SantosVasconcelos <address@hidden> wrote:
To whom it may concern,
 
I installed Octave with an installer made for Windows. I am learning MATLAB, so I was trying to use both program to make comparisons and test commands. The commands seemed to work fine but when I wanted to test writing a script...
 
I tried to run the notepad++ editor like this:
octave:1> edit
 
but, I got a system error that said:
octave:2>
error: system: CreateProcess failed -- can't create child process
error: called from:
error:     C:\Octave3.6.2_gcc4.6.2\share\octave\3.6.2\m\miscellaneous\edit.m at line 212, column 7 
 
I google it and found some fixes like: double or quadruple backslashes, forward slashes, but it did not work. 
 
Thank you for your help


Do you have the Notepad++ editor installed? (I know the MinGW version doesn't include Notepad++. fairly certain Visual Studio version doesn't either.

Brief directions for adding Notepad++
http://wiki.octave.org/Octave_for_Windows#Optional_installation_of_Notepad.2B.2B_as_an_editor_.28recommended.29

> Yes, I do have Notepad++ installed.

figured as much, thought worth asking. looks like it's the same problem reported here:
http://savannah.gnu.org/bugs/?35283

supposedly it can be worked around by adding

edit mode 'sync';


to your .octaverc file.  should be able to test by entering that command and typing edit, see if you still get the error.

nickj

_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave




--
John C Frain, Ph.D.
Trinity College Dublin
Dublin 2
Ireland
www.tcd.ie/Economics/staff/frainj/home.htm
mailto:address@hidden
mailto:address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]