1. Edita Won't Open File
- Posted by euphoric (admin) Feb 06, 2013
- 1883 views
I'm trying to open a *.exw file, and Edita (0.3.5 20/04/11) fails. It just says, "Edita: Error opening file."
Anybody have hints or fixes for this?
Edit 1: Windows 7 Pro, SP1
Edit 2: File is in directory path that includes spaces. Files in directory paths with no spaces seem to open fine.
2. Re: Edita Won't Open File
- Posted by ghaberek (admin) Feb 06, 2013
- 1859 views
I'm trying to open a *.exw file, and Edita (0.3.5 20/04/11) fails. It just says, "Edita: Error opening file."
Anybody have hints or fixes for this?
Edit 1: Windows 7 Pro, SP1
Edit 2: File is in directory path that includes spaces. Files in directory paths with no spaces seem to open fine.
Are you clicking File > Open... and/or double-clicking .exw files associated with Edita?
-Greg
3. Re: Edita Won't Open File
- Posted by euphoric (admin) Feb 06, 2013
- 1871 views
Are you clicking File > Open...
Yes, I'm going through Edita's open file dialog.
4. Re: Edita Won't Open File
- Posted by petelomax Feb 07, 2013
- 1837 views
I'm trying to open a *.exw file, and Edita (0.3.5 20/04/11) fails. It just says, "Edita: Error opening file."
Anybody have hints or fixes for this?
Edit 1: Windows 7 Pro, SP1
Edit 2: File is in directory path that includes spaces. Files in directory paths with no spaces seem to open fine.
Hmmm. I am also on W7SP1, yet spaces in directories cause me no problems. In edita.exw we have
function readFile(sequence name, integer prompt, integer plth) ... fn = open(name,"r") if fn=-1 then if prompt then void = messageBox(xl("Edita: Error opening file"),name,0)
What is the title of the messagebox (ie name) when the error occurs?
You might also try putting a ?9/0 just before that messageBox and posting the ex.err that creates.
Pete
5. Re: Edita Won't Open File
- Posted by euphoric (admin) Feb 11, 2013
- 1685 views
Something weird is going on.
When I browse through to and select "C:\Users\Owner\afile.txt", the title says:
"Edita: Error opening file"
And the message is
"C:\Users\cklester\afile.txt"
cklester?! Where'd that come from?!
Any ideas?
6. Re: Edita Won't Open File
- Posted by petelomax Feb 13, 2013
- 1626 views
Something weird is going on.
When I browse through to and select "C:\Users\Owner\afile.txt", the title says:
"Edita: Error opening file"
And the message is
"C:\Users\cklester\afile.txt"
cklester?! Where'd that come from?!
Any ideas?
I wonder if it has something to do with the weird reparse points W7 now has. In a dos box I get:
C:\Users>dir /aL Directory of C:\Users 14/07/2009 05:08 <SYMLINKD> All Users [C:\ProgramData] 14/07/2009 05:08 <JUNCTION> Default User [C:\Users\Default] C:\Users>cd .. C:\>dir /aL Directory of C:\ 14/07/2009 05:08 <JUNCTION> Documents and Settings [C:\Users]So If I try to write to "C:\Users\All Users" (or "C:\Documents and Settings\All Users") it actually goes to C:\ProgramData. And if I click on C:\Documents and Settings in Explorer I get access denied. I don't have C:\Users\Owner, I wonder if you have somehow "aliased" (/junctioned/symlinked/whatever) that to cklester.
7. Re: Edita Won't Open File
- Posted by euphoric (admin) Feb 13, 2013
- 1666 views
...I wonder if you have somehow "aliased" (/junctioned/symlinked/whatever) that to cklester.
I looked closer. My account username is "cklester," but the path for that is "Owner". I'm guessing that when I got this PC, the account's name was Owner, but you can change that in Windows. So I did. To "cklester". And now we have problems.
*applause* Microsoft. You suck again.
Pete, I have discovered, however, that Crimson Editor CAN open the file I want through the "File>Open" dialog box, so there must be some way for Edita to do it too.
8. Re: Edita Won't Open File
- Posted by petelomax Feb 13, 2013
- 1671 views
Pete, I have discovered, however, that Crimson Editor CAN open the file I want through the "File>Open" dialog box, so there must be some way for Edita to do it too.
You could try procmon. The second (how to) link should give you a decent idea. I would add a filter of "Path begins with C:\Users include"; it will remember that for subsequent runs. Arrange for "Capture" to be on as short as possible, get the editor running and ready to open, turn capture on, and then off asap. Then I'd try and see what Crimson was doing vs what Edita was doing - if you Save a capture (to the default .pml file), then clear and capture something else, you can later run a second instance of procmon and get the two side by side, if that helps. I would hope to spot something suspicious within 15 or 20 mins max.
Pete
9. Re: Edita Won't Open File
- Posted by petelomax Feb 13, 2013
- 1588 views
Good news. I have reproduced the problem here (by renaming myself from Pete to PeteX and rebooting). You can forget about procmon, I'll be doing that myself (tomorrow). No idea what the problem is yet, though, or how long it will take to fix.
Pete
EDIT: Even better news. Problem seems to be in get_proper_path().
In edita.exw, function openFile, around line 2165, edit thus:
-- if usegpp then if 0 then
Seems to fix the immediate problem, I will return to this tomorrow.
10. Re: Edita Won't Open File
- Posted by andi49 Feb 16, 2013
- 1545 views
Good news. I have reproduced the problem here (by renaming myself from Pete to PeteX and rebooting). You can forget about procmon, I'll be doing that myself (tomorrow). No idea what the problem is yet, though, or how long it will take to fix.
Pete
EDIT: Even better news. Problem seems to be in get_proper_path().
In edita.exw, function openFile, around line 2165, edit thus:
-- if usegpp then if 0 then
Seems to fix the immediate problem, I will return to this tomorrow.
Hi, as Edita is my favorite Editor i found out that a similar effect is on a German Version of win 8 Pro. I can't open files inside my user account (eg c:\users\andi\etc...)
I have to say that i do not use Phix. I only use Eu4.x. So i removed the complete code of get_proper_path
include builtins\file.e as pfile --for current_dir include std/filesys.e as eu4file global function get_proper_path(sequence filepath, sequence rootdir) return eu4file:canonical_path(rootdir&filepath) end function
This seems to work nice for Eu4
Andreas