PreviousNextTracker indexSee it online !

(189/211) 4018 - file browser allows opening file in dir box as dir

may be related to another bug I authored with yellow square in file tab.
1. start jedit
2. ctrl-o
2. put in full filepath into path box, click open
3. filename will show as "yellow tab" (white tab with yellow box in it), empty file (where there should be something), and filname showing with \ on end strangely enough, or the path shown has this the wrong way, or both.
4. close file.
5. open file by browsing and clicking
4. 2nd attempt to do it wrong on same file will fail.
5. 3rd attempt to do it wrong on different file will fail.

it only seems to happen when jedit is started.

Submitted jmichae3 - 2016-09-01 19:08:10.827000 Assigned
Priority 5 Labels
Status open Group minor bug
Resolution None

Comments

2016-09-01 20:01:16.643000
jmichae3

je5.3.1 java latest vista32

2016-09-01 21:44:45.509000
jpavel

Are you pasting your file paths with double quotes around them? That's what happens on my machine if you try to open a path that way. If so, just remove the quotes and it will work.

2016-09-02 18:09:18.230000
jmichae3

no

2016-09-20 19:56:12.823000
daleanson

I'm assuming your "full filepath" contains the filename. Paste it into the filename box instead of the path box. The path box is for directories, the filename box is for filenames, with or without the path.

However, I agree, if you paste a full path into the path box, it should recognize it's a file and open it rather than treating it as a directory.

2016-09-25 04:18:31.803000
jmichae3

Hi Dale - usually for file browsers there is either 2 different file browsers, one for dirs and one for fies, or there is some sort of flag or option you can turn on or off for dirs vs files. this would be in javadoc I assume.