From: Shlomy R. <sre...@gm...> - 2009-09-30 06:37:12
|
First, you are right, CtagsInterface should in this case show a label like "Please fix your database settings first" in its option pane instead of generating an exception. Second, note that this is a fresh install, so it uses the default settings. The default settings should work well. Ernest: I'll just explain in short what happens. CtagsInterface uses a database to store the tags, but not only the tags - also the configuration of which objects (projects or source directories) are inside the database - this is what you see in the "Source trees" and "Projects" option panes of the plugin. During CtagsInterface startup, it tries to connect to the database. Connection settings are specified by ordinary jEdit properties, in the user properties file, and CtagsInterface allows you to use any JDBC database that you like, in any working mode (e.g. you can use a client/server model if you wish to share the database with other users). If CtagsInterface fails to connect to the database on startup (usually, because the settings are incorrect), it cannot show the "Source trees" and "Project" option panes, simply because it cannot read them from the database. Like I wrote, the default settings should work, and if they don't, I will get it fixed. Shlomy On Wed, Sep 30, 2009 at 6:41 AM, Alan Ezust <ala...@gm...> wrote: > I get that error if I configure ctagsinterface with a DB that is running on > an external process, but I forget to start the DB before I start jEdit. > It would be nice if ctagsinterface was a bit more forgiving of such an error > (such as notifying user - DB is not enabled - check your database settings") > and an easy way to get ctagsinterface working again after starting up the > external process without restarting ctagsinterface or anything fancy. > > On Tue, Sep 29, 2009 at 9:17 PM, Shlomy Reinstein <sre...@gm...> > wrote: >> >> It is a bug. CtagsInterface uses a JDBC database for the tag >> information. The exception below is caused by a database configuration >> problem. However, it should work fine with the default settings, and >> if does not, it's a bug. I'll check this issue later and get back to >> you on this. >> > > |