From: Tim Cross <theophilusx@gmail.com>
To: Dmitry Igrishin <dmitigr@gmail.com>
Cc: cjgunzel@gmail.com
Cc: pgsql-general@postgresql.org
Subject: Re: Do we need yet another IDE (SQL development assistant) for PostgreSQL?
Date: Tue, 17 Jul 2018 08:21:46 +1000
Message-ID: <87601e4y9x.fsf@gmail.com> (raw)
In-Reply-To: <CAAfz9KNst31_nqd-_uGYk69RYB6B9qY4VH8YFoymxcdrP4bU5g@mail.gmail.com>
References: <CAAfz9KNx97YYqBObpJcPmNRxW_+fmzNcqoPnc8yV4hSDqt4wKw@mail.gmail.com>
<CAAfz9KPG_-hcw8kGdDh88JJS0_b4J-STNtMZnsSx0-fAYCZWfQ@mail.gmail.com>
<CAHf=Y_ariwypPJRDnM3C32Z+qs7741-H9pGLF8HPtty0-23bMw@mail.gmail.com>
<CAAfz9KOVBZuDa7haa9yS-ZxkTor5nG6a=N-TgBXuv_hdraAdaQ@mail.gmail.com>
<874lh0qh8g.fsf@gmail.com>
<CAAfz9KNst31_nqd-_uGYk69RYB6B9qY4VH8YFoymxcdrP4bU5g@mail.gmail.com>
Dmitry Igrishin <dmitigr@gmail.com> writes:
> пн, 16 июл. 2018 г. в 1:14, Tim Cross <theophilusx@gmail.com>:
>
>>
>> Your idea to make it integrate with user's preferred editor is a good
>> idea as editors are like opinions and certain anatomical parts -
>> everyone has one! Finding an appropriate API to do this will be a
>> challenge.
>>
> I see two options here: the core of the tool acts as a long-lived server or
> as a short-lived
> console application which communicates with the editor's plugin via
> stdin/stdout.
> Btw, what the text editor do you prefer? :-)
>
Most of the time, I use Emacs on either Linux or macOS. With the support
it has for running a psql process, it works pretty well for most
things. There are pretty reasonable packages for writing SQL and
'static' completion. Getting things setup can take a bit of effort, but
once it is working, it tends to work pretty well.
The two areas where it lacks are dynamic completion i.e. completing on
objects the user has created such as table names and column
names/function names etc. and decent result formatting.
>>
>> I seem to remember reading somewhere that Oracle was going to remove
>> swing from the core java library. I've always been a little disappointed
>> with Java UIs and found they don't give the cross-platform support that
>> Java originally promised, plus OSX/macOS has not made Java as welcome as
>> it use to be. If you do choose Java, it will need to work under openJDK
>> as this is what most Linux users will have installed.
>>
> For now, the possible options for the GUI part are Qt, wxWidgets or FLTK,
> or even Electron.
I would look at either Qt or even Electron (I believe visual code is
written using Electron, which is the other editor I use from time to
time).
There was an Emacs project called Eclaim (I think) which interfaced with
Eclipse services in order to provide dynamic completion when doing
Java. That could be worth checking out for ideas to borrow.
Tim
--
Tim Cross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: theophilusx@gmail.com, dmitigr@gmail.com, cjgunzel@gmail.com
Subject: Re: Do we need yet another IDE (SQL development assistant) for PostgreSQL?
In-Reply-To: <87601e4y9x.fsf@gmail.com>
References: <CAAfz9KNx97YYqBObpJcPmNRxW_+fmzNcqoPnc8yV4hSDqt4wKw@mail.gmail.com> <CAAfz9KPG_-hcw8kGdDh88JJS0_b4J-STNtMZnsSx0-fAYCZWfQ@mail.gmail.com> <CAHf=Y_ariwypPJRDnM3C32Z+qs7741-H9pGLF8HPtty0-23bMw@mail.gmail.com> <CAAfz9KOVBZuDa7haa9yS-ZxkTor5nG6a=N-TgBXuv_hdraAdaQ@mail.gmail.com> <874lh0qh8g.fsf@gmail.com> <CAAfz9KNst31_nqd-_uGYk69RYB6B9qY4VH8YFoymxcdrP4bU5g@mail.gmail.com> <87601e4y9x.fsf@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox