1. Attn. Pete
- Posted by dcole Jul 05, 2011
- 3889 views
Hello Pete,
Sorry I used your name in vain.
I do have a problem with Edita that maybe you can help me with.
Here's my setup under Edita/Options/File Extent ions I have:
.exw - E\Euphoria\bin\exw.exe (runs Euphoria ver.3)
.exwc - E\Euphoria-40b4\bin\eui.bat (runs Euphoria ver. 4)
eui.bat
@@PATH=%PATH% E:\euphoria-40b4\bin
@SET EUDIR=E:\euphoria-40b4
@SET EUINC=E:\euphoria-40b4\include;E:\eu\myinclude;e:\eu\football;e:\eu\win32lib
@start /b E:\euphoria-40b4\bin\eui.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
When I run a .exw file extent ion program with Edita, (by clicking that green stop lite), and an error occurs, the following happens:
The command dos\window opens. It's the one that's black with white letters.
It says what trouble is, The program, the line number and the line that caused the error.
After that it say 'Press Enter'.
If I press Enter, Edita opens up at the page and line number where the error occurred.
Now if I do the same thing with a .exwc file extention (it's really a .eui extention I'm just using the .exwc extention to fool Edita into running ver. 4. I never use the .exwc extention for anything else), Everything works the same except Edita opens at the place it was when I clicked the green stop lite not where the error occurred.
Don Cole
2. Re: Attn. Pete
- Posted by petelomax Jul 07, 2011
- 3835 views
Hello Pete,
I do have a problem with Edita that maybe you can help me with.
eui.bat
@@PATH=%PATH% E:\euphoria-40b4\bin
@SET EUDIR=E:\euphoria-40b4
@SET EUINC=E:\euphoria-40b4\include;E:\eu\myinclude;e:\eu\football;e:\eu\win32lib
@start /b E:\euphoria-40b4\bin\eui.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
Yeah, that's going to be a problem - Edita won't get an error code from eui.exe and hence will not attempt to open any ex.err file that gets created. What you need is an app along the lines of (warning completely untested):
1) Either set up an eu.cfg file (probably easier) or code something like:
object path constant eu4 = "E:\euphoria-40b4\" path = getenv("PATH") if atom(path) then path = "" end if if match(lower(eu4&"\\bin"),lower(path))=0 then path &= ";"&eu4&"\\bin" setenv("PATH",path) end if setenv("EUDIR",eu4) setenv("EUINC",...)
2) code to run and return the exit code (which you'll want to compile):
function flatten(sequence s) sequence res, si res = "" for i=1 to length(txtlines) do si = s[i] if find(' ',si) and not find('\"',si) then si = '\"'&si&'\"' end if res &= si&' ' end for return res end function sequence cl = command_line() cl[1] = eu4&"\\bin\\eui.exe" abort(system_exec(flatten(cl),2)
If I find time, I'll look at adding environment settings to Edita\Options\Extensions so you won't have to do any of this, though I can't promise that any time soon.
Regards,
Pete
PS. not sure why you said ".exwc" is really ".eui", can't you just add a new extension?
DOH - just after posting I realised that if you set up the eu.cfg file (in the same directory as eui.exe) you shouldn't need part 2, just invoke eui.exe directly.
3. Re: Attn. Pete
- Posted by dcole Jul 09, 2011
- 3741 views
Hello Pete,
I do have a problem with Edita that maybe you can help me with.
eui.bat
@@PATH=%PATH% E:\euphoria-40b4\bin
@SET EUDIR=E:\euphoria-40b4
@SET EUINC=E:\euphoria-40b4\include;E:\eu\myinclude;e:\eu\football;e:\eu\win32lib
@start /b E:\euphoria-40b4\bin\eui.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
Yeah, that's going to be a problem - Edita won't get an error code from eui.exe and hence will not attempt to open any ex.err file that gets created. What you need is an app along the lines of (warning completely untested):
1) Either set up an eu.cfg file (probably easier) or code something like:
object path constant eu4 = "E:\euphoria-40b4\" path = getenv("PATH") if atom(path) then path = "" end if if match(lower(eu4&"\\bin"),lower(path))=0 then path &= ";"&eu4&"\\bin" setenv("PATH",path) end if setenv("EUDIR",eu4) setenv("EUINC",...)
2) code to run and return the exit code (which you'll want to compile):
function flatten(sequence s) sequence res, si res = "" for i=1 to length(txtlines) do si = s[i] if find(' ',si) and not find('\"',si) then si = '\"'&si&'\"' end if res &= si&' ' end for return res end function sequence cl = command_line() cl[1] = eu4&"\\bin\\eui.exe" abort(system_exec(flatten(cl),2)
If I find time, I'll look at adding environment settings to Edita\Options\Extensions so you won't have to do any of this, though I can't promise that any time soon.
Regards,
Pete
PS. not sure why you said ".exwc" is really ".eui", can't you just add a new extension?
DOH - just after posting I realised that if you set up the eu.cfg file (in the same directory as eui.exe) you shouldn't need part 2, just invoke eui.exe directly.
PS. not sure why you said ".exwc" is really ".eui", can't you just add a new extension?
Thanks Pete for trying to help with this problem.
The reason I'm using the .exwc file extention because if I don't use .ex or .exw or .exwc then the
greenlite dosen't lite up. Edita dosen't recognize it as runable Euphoria file.
Don Cole
4. Re: Attn. Pete
- Posted by petelomax Jul 17, 2011
- 3649 views
PS. not sure why you said ".exwc" is really ".eui", can't you just add a new extension?
The reason I'm using the .exwc file extension because if I don't use .ex or .exw or .exwc then the green lite doesn't lite up. Edita doesn't recognize it as runnable Euphoria file.
Sorry, I could have sworn I'd answered this.
If I add a new extension here, the green light comes on just fine. If I select Options/Extensions, click New and enter txt and notepad.exe, then I get the green light for that and both the toolbar button and F5 do exactly what I expect them to.
5. Re: Attn. Pete
- Posted by dcole Jul 20, 2011
- 3558 views
Sorry, I could have sworn I'd answered this.
If I add a new extension here, the green light comes on just fine. If I select Options/Extensions, click New and enter txt and notepad.exe, then I get the green light for that and both the toolbar button and F5 do exactly what I expect them to.
Thank you Pete,
The green lite still doesn't come on but F5 works.
I'm using Edita 0.3.0 (30/05/07).
What ever happened to Al Getz anywayz?
Perhaps he slipped and fell in all that oil they found down there. (Brazil)
Don Cole
6. Re: Attn. Pete
- Posted by petelomax Jul 23, 2011
- 3512 views
- Last edited Feb 15, 2016
I'm using Edita 0.3.0 (30/05/07).
The latest version is 0.3.5 http://www.edita.is-great.org if you want it.
7. Ver 4 and Edita
- Posted by DonCole Nov 29, 2013
- 3094 views
Thank you Pete,
After a year and a half I finally figured this out.
How to run Eu v4 with Edita so that on error it jumps back to Edita (on the line where the error occurred).
What I did was:
Paste the information that was in eui.bat into eu.cfg.
Deleted eui.bat altogether.
In Edita changed .eui file extension option from e:\EUPOHORIA-40b4\bin\eui.bat to e:\EUPHORIA-40b4\bin\exe.
Now it's working fine with EUPHORIA v3 and v4.
Again thank you, although I'm a little slow to pick up on simple things.
Hard things I get right away.
Hello Pete,
I do have a problem with Edita that maybe you can help me with.
eui.bat
@@PATH=%PATH% E:\euphoria-40b4\bin
@SET EUDIR=E:\euphoria-40b4
@SET EUINC=E:\euphoria-40b4\include;E:\eu\myinclude;e:\eu\football;e:\eu\win32lib
@start /b E:\euphoria-40b4\bin\eui.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
Yeah, that's going to be a problem - Edita won't get an error code from eui.exe and hence will not attempt to open any ex.err file that gets created. What you need is an app along the lines of (warning completely untested):
1) Either set up an eu.cfg file (probably easier) or code something like:
object path constant eu4 = "E:\euphoria-40b4\" path = getenv("PATH") if atom(path) then path = "" end if if match(lower(eu4&"\\bin"),lower(path))=0 then path &= ";"&eu4&"\\bin" setenv("PATH",path) end if setenv("EUDIR",eu4) setenv("EUINC",...)
2) code to run and return the exit code (which you'll want to compile):
function flatten(sequence s) sequence res, si res = "" for i=1 to length(txtlines) do si = s[i] if find(' ',si) and not find('\"',si) then si = '\"'&si&'\"' end if res &= si&' ' end for return res end function sequence cl = command_line() cl[1] = eu4&"\\bin\\eui.exe" abort(system_exec(flatten(cl),2)
If I find time, I'll look at adding environment settings to Edita\Options\Extensions so you won't have to do any of this, though I can't promise that any time soon.
Regards,
Pete
PS. not sure why you said ".exwc" is really ".eui", can't you just add a new extension?
DOH - just after posting I realised that if you set up the eu.cfg file (in the same directory as eui.exe) you shouldn't need part 2, just invoke eui.exe directly.
PS. not sure why you said ".exwc" is really ".eui", can't you just add a new extension?
Thanks Pete for trying to help with this problem.
The reason I'm using the .exwc file extention because if I don't use .ex or .exw or .exwc then the
greenlite dosen't lite up. Edita dosen't recognize it as runable Euphoria file.
Don Cole