Re: Error opening file without suffix

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Martin French <Martin(dot)French(at)romaxtech(dot)com>
Cc: Michael Shapiro <mshapiro51(at)gmail(dot)com>, Michal Kozusznik <kozusznik(dot)michal(at)ifortuna(dot)cz>, pgadmin-support(at)postgresql(dot)org, pgadmin-support-owner(at)postgresql(dot)org
Subject: Re: Error opening file without suffix
Date: 2012-07-23 20:52:41
Message-ID: 1343076761.2039.24.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Mon, 2012-07-23 at 15:20 +0100, Martin French wrote:
>
> > I can't replicate this problem. It works for me.
> > I am running pgAdmin 1.14.2, Windows 7
>
> Replicated on 1.14.3, Windows 7 x64.
>
> > How to reproduce:
> > 1. create some text file and save it without suffix - make sure OS
> > doesn't hide suffixes making you think that there is no suffix in a
> filename
> > 2. Open query editor window
> > 3. Select File / Open...
> > 4. Enter star character (*) into filename field and commit it
> > hitting enter - in result you will get all files listed in file
> browser
> > 5. find your file
> > 6. select it and open it - this operation will end up with error:
> > "can't open file"
>
>
> 1. created file: H:\Postgres Scripts\test
> 2. opened editor
> 3. file > open
> 4. typed *, hit enter
> 5. found file " test "
> 6: Brings up:
>
> An Error has occurred:
>
> Can't open file 'c:\path\test.sql' (error 2: the system cannot find
> the file specified)
>
> note that ".sql" has been appended to the name of my test file.
> Probably as the file spec is set to *.sql. If you use the dropdown
> and select *.*, then it works fine.
>

There's not much we can do here. We show the standard dialog, and it
tells us which file the user wants to open. If it tells to open
"test.sql", we have no way to understand you wanted to open the file
"test".

--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Guillaume Lelarge 2012-07-23 20:53:58 Re: connection lost - Edit Data grid
Previous Message Guillaume Lelarge 2012-07-23 16:49:18 Re: default parameters