1. Edita Won't Open File

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.

new topic     » topic index » view message » categorize

2. Re: Edita Won't Open File

euphoric said...

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Edita Won't Open File

ghaberek said...

Are you clicking File > Open...

Yes, I'm going through Edita's open file dialog.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Edita Won't Open File

euphoric said...

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: Edita Won't Open File

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?

new topic     » goto parent     » topic index » view message » categorize

6. Re: Edita Won't Open File

euphoric said...

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.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Edita Won't Open File

petelomax said...

...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.

See here.

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.

new topic     » goto parent     » topic index » view message » categorize

8. Re: Edita Won't Open File

euphoric said...

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

new topic     » goto parent     » topic index » view message » categorize

9. Re: Edita Won't Open File

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.

new topic     » goto parent     » topic index » view message » categorize

10. Re: Edita Won't Open File

petelomax said...

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu