From: Shlomy R. <sre...@gm...> - 2009-01-22 08:35:25
|
Hi, I've just fixed this in SVN. BTW, except for bug fixes like this one, I am neglecting the main trunk version of CtagsInterface, and all new features or enhancements go only to the branch that I've created on CtagsInterface that works with the trunk of the project viewer. The branch is named 'ProjectViewerTrunk' or something similar, it's the only branch that the plugin has. The main trunk will only get bug fixes that I may want to release prior to the release of the project viewer. Shlomy On Mon, Jan 12, 2009 at 11:54 PM, Dale Anson <da...@gr...> wrote: > It turned out my problem was I had an old version of hsqldb.jar in my jars > directory. Once I got the right version in place, CtagInterface worked > better, but then I hit one more problem: > > 2:27:19 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: Exception in thread > "AWT-EventQueue-0" > 2:27:19 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: > java.lang.NullPointerException > 2:27:19 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at > java.util.Hashtable.get(Hashtable.java:334) > 2:27:19 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at > ctagsinterface.main.KindIconProvider.getIcon(KindIconProvider.java:21) > 2:27:19 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at > ctagsinterface.main.KindIconProvider.getIcon(KindIconProvider.java:41) > 2:27:19 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at > ctagsinterface.main.CtagsInterfacePlugin.getIcon(CtagsInterfacePlugin.java:88) > 2:27:19 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at > ctagsinterface.main.Tag.getIcon(Tag.java:64) > 2:27:19 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at > ctagsinterface.dockables.TagList$TagListCellRenderer.getListCellRendererComponent(TagList.java:89) > 2:27:19 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: at > javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1342) > > I fixed this in my local copy by adding a check for a null parameter in > KindIconProvider.getIcon. This isn't a good fix, though, it just hides the > problem that Tag.getKind is returning null when it probably shouldn't be. > With this (bad) fix in place, the plugin seems to be working fine. > > Shlomy, would you prefer this in a bug report? > > Thanks, > > Dale > > > On Mon, Jan 5, 2009 at 3:26 PM, Shlomy Reinstein <sre...@gm...> wrote: >> >> Yes, and there can be several reasons. Usually the reason that Tag >> Preview stops working is that some exception is generated. You'd find >> the exception in the activity.log file. You can send me this file when >> the dockable stops working and I'll check it. >> Shlomy >> >> >> On Tue, Jan 6, 2009 at 12:08 AM, Chris <zom...@gm...> wrote: >> > <pushing on list> >> > >> > You're spot on. It seems that for some unknown reason, >> > I/CtagsInterface/ProjectViewer is adding multiple entries to the project >> > list, and that was the problem! >> > >> > I've figured out most of my issues now, the only remaining issue is >> > really >> > confusing. The TagPreview pane functions as expected for a bit, and then >> > as >> > soon as I click Jump To Tag it immediately stops working after that. >> > Have >> > you ever come across that one? >> > >> > Really enjoying the ctags functionality, regardless. Thanks! >> > C >> > >> > On Sun, Jan 4, 2009 at 11:30 PM, Shlomy Reinstein <sre...@gm...> >> > wrote: >> >> >> >> According to the exception above, I'm afraid you either had a database >> >> with multiple entries for the same project, or the active project was >> >> not in your database. The "Single value expected" error occurred >> >> because either none or multiple projects with the same name were found >> >> in the database. This is not something that is related to Ctags >> >> itself, it's entirely a plugin issue. >> >> In general, you should not have multiple entries for the same project >> >> in the database. If you do - manual cleanup is necessary. >> >> >> >> Shlomy >> >> >> >> On Mon, Jan 5, 2009 at 8:26 AM, Chris <zom...@gm...> wrote: >> >> > Ok, a quick followup: >> >> > >> >> > It seems as though having a current version of ctags has partially >> >> > fixed >> >> > my >> >> > problem. I have just compiled ctags 5.7 and made sure no other ctags >> >> > were in >> >> > my path. Then I recreated tag dbs for everything and I'm getting a >> >> > much >> >> > more >> >> > consistent behavior. The only thing is that the Tag Preview window >> >> > doesn't >> >> > seem to want to update with the caret. I'll have to give it the stick >> >> > (ha!). >> >> > >> >> > I'm on Mac, and was using some old version of ctags, perhaps from a >> >> > fink >> >> > install. Ctags 5.7 compiled with no hiccups using the gcc that comes >> >> > with >> >> > XCode. >> >> > >> >> > C >> >> > >> >> > On Sun, Jan 4, 2009 at 10:59 PM, Chris <zom...@gm...> wrote: >> >> >> >> >> >> Hi, >> >> >> >> >> >> I've had sproadic results with CtagsInterface, although today is the >> >> >> only >> >> >> day I've used it. It will work sometimes, and then just stop. >> >> >> >> >> >> I get the following exception: >> >> >> 10:54:02 PM [jEdit I/O #4] [error] jEdit I/O #4: Failed query: >> >> >> SELECT * >> >> >> FROM TAGS,FILES WHERE TAGS.NAME='TileView' AND TAGS.FILE_ID=FILES.ID >> >> >> AND >> >> >> EXISTS (SELECT FILE_ID FROM MAP WHERE MAP.FILE_ID=FILES.ID AND >> >> >> MAP.ORIGIN_ID=(SELECT ID FROM ORIGINS WHERE NAME='Wordtricity' AND >> >> >> TYPE='Project')) >> >> >> 10:54:02 PM [jEdit I/O #4] [error] jEdit I/O #4: >> >> >> java.sql.SQLException: >> >> >> Single value expected >> >> >> 10:54:02 PM [jEdit I/O #4] [error] jEdit I/O #4: at >> >> >> org.hsqldb.jdbc.Util.sqlException(Unknown Source) >> >> >> 10:54:02 PM [jEdit I/O #4] [error] jEdit I/O #4: at >> >> >> org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source) >> >> >> 10:54:02 PM [jEdit I/O #4] [error] jEdit I/O #4: at >> >> >> org.hsqldb.jdbc.jdbcStatement.executeQuery(Unknown Source) >> >> >> 10:54:02 PM [jEdit I/O #4] [error] jEdit I/O #4: at >> >> >> db.TagDB.query(TagDB.java:347) >> >> >> 10:54:02 PM [jEdit I/O #4] [error] jEdit I/O #4: at >> >> >> db.TagDB.query(TagDB.java:342) >> >> >> 10:54:02 PM [jEdit I/O #4] [error] jEdit I/O #4: at >> >> >> db.TagDB.queryTagInProject(TagDB.java:205) >> >> >> 10:54:02 PM [jEdit I/O #4] [error] jEdit I/O #4: at >> >> >> >> >> >> >> >> >> ctags.CtagsInterfacePlugin.queryScopedTag(CtagsInterfacePlugin.java:216) >> >> >> 10:54:02 PM [jEdit I/O #4] [error] jEdit I/O #4: at >> >> >> dockables.Preview$QueryTag.run(Preview.java:336) >> >> >> >> >> >> And if I try to Jump To Tag, instead of no tags being found I get >> >> >> the >> >> >> subsequent exception: >> >> >> >> >> >> 10:54:02 PM [AWT-EventQueue-0] [error] WorkThread: Exception in AWT >> >> >> thread: >> >> >> 10:54:02 PM [AWT-EventQueue-0] [error] WorkThread: >> >> >> java.lang.NullPointerException >> >> >> 10:54:02 PM [AWT-EventQueue-0] [error] WorkThread: at >> >> >> dockables.Preview$PreviewTag.run(Preview.java:324) >> >> >> 10:54:02 PM [AWT-EventQueue-0] [error] WorkThread: at >> >> >> org.gjt.sp.util.WorkThreadPool.doAWTRequest(WorkThreadPool.java:398) >> >> >> >> >> >> I am using Ctags with my own regex in my .ctags for ActionScript. It >> >> >> would >> >> >> be interesting to see if you have a similar error Dale. If you can >> >> >> go >> >> >> to >> >> >> your Activity Log and search, we can maybe locate the problem. >> >> >> >> >> >> On Fri, Jan 2, 2009 at 11:53 PM, Shlomy Reinstein >> >> >> <sre...@gm...> >> >> >> wrote: >> >> >>> >> >> >>> It is working. Can you provide some details on what's not working? >> >> >>> You >> >> >>> should first know how to configure the database settings properly, >> >> >>> since it uses a JDBC database. If you have that set properly (the >> >> >>> default configuration is good), maybe you get an exception or >> >> >>> something, it would be useful to attach the activity log. >> >> >>> >> >> >>> Shlomy >> >> >>> >> >> >>> On Sat, Jan 3, 2009 at 8:48 AM, Dale Anson <da...@gr...> >> >> >>> wrote: >> >> >>> > Hey all, >> >> >>> > >> >> >>> > I haven't been using CTagsInterface for a while since the release >> >> >>> > version doesn't work with the current trunk version of Project >> >> >>> > Viewer. >> >> >>> > I tried to use the version of CtagsInterface from the >> >> >>> > ProjectViewerTrunk >> >> >>> > branch (revision 14277), but I can't seem to get it to work. >> >> >>> > Does >> >> >>> > it? >> >> >>> > Or should I just wait a while longer? >> >> >>> > >> >> >>> > Thanks, >> >> >>> > >> >> >>> > Dale >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>> > ------------------------------------------------------------------------------ >> >> >>> > -- >> >> >>> > ----------------------------------------------- >> >> >>> > jEdit Developers' List >> >> >>> > jEd...@li... >> >> >>> > https://lists.sourceforge.net/lists/listinfo/jedit-devel >> >> >>> > >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> ------------------------------------------------------------------------------ >> >> >>> -- >> >> >>> ----------------------------------------------- >> >> >>> jEdit Developers' List >> >> >>> jEd...@li... >> >> >>> https://lists.sourceforge.net/lists/listinfo/jedit-devel >> >> >> >> >> > >> >> > >> > >> > >> >> >> ------------------------------------------------------------------------------ >> -- >> ----------------------------------------------- >> jEdit Developers' List >> jEd...@li... >> https://lists.sourceforge.net/lists/listinfo/jedit-devel > > |