Description: Kate PHP Browser is a kate plugin to display PHP source structure information. I'm still playing with ideas, so any feedback is welcome. There are some issues yet (there is only one view - by source file, and icons need work) but overall, I think is good for a first release.
This plugin requires antlr (www.antlr.org) to compile.
Hi, I'm getting some error and I'm completely lost, can you please take a look at this?
hosiplan@hosiplan-laptop:/media/ntbdata/downloads/kate/katephpbrowser-0.1beta$ sudo ./configure --with-antlr=/usr/bin/runantlr --prefix=/usr
checking build system type... i686-pc-linux-gnu
...
not using lib directory suffix
...
./configure: line 31327: no-config: command not found
./configure: line 31328: no-config: command not found
...
config.status: executing depfiles commands
Good - your configure finished. Start make now
hosiplan@hosiplan-laptop:/media/ntbdata/downloads/kate/katephpbrowser-0.1beta$ sudo make
make all-recursive
make[1]: Entering directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta'
Making all in data
make[2]: Entering directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/data'
Making all in icons
make[3]: Entering directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/data/icons'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/data/icons'
make[3]: Entering directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/data'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/data'
make[2]: Leaving directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/data'
Making all in src
make[2]: Entering directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/src'
Making all in parser
make[3]: Entering directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/src/parser'
Makefile:690: warning: overriding commands for target `libphpparser_la.all_cpp.cpp'
Makefile:678: warning: ignoring old commands for target `libphpparser_la.all_cpp.cpp'
no ./lexer.g
/bin/bash: no: command not found
make[3]: *** [PHPLexer.cpp] Error 127
make[3]: Leaving directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/src/parser'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta'
make: *** [all] Error 2
hi, if you're running debian lenny, you'll probably face problem with antlr. first you've to install libantlr-dev, then softly link /usr/bin/runantlr (fucking special name for debian) to /usr/bin/antlr. even after that you may suppose it to compile it correctly.
and you better install it to /usr instand of /usr/local, use './configure --prefix=/usr' :-)
I found nothing in google, nothing in forums, and no help in irc, so i think now i may ask...
...after successfully compiling and installing it...
...how to get this plugin into kate?
It is not listed in extensen of configurating kate.
I am curious about your plugin, but i get the following error processing MAKE:
antlr ./lexer.g
Exception in thread "main" java.lang.NoClassDefFoundError: antlr.Tool
at gnu.java.lang.MainThread.run(libgcj.so.70)
Caused by: java.lang.ClassNotFoundException: antlr.Tool not found in gnu.gcj.runtime.SystemClassLoader{urls=[], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.70)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70)
at java.lang.ClassLoader.loadClass(libgcj.so.70)
at java.lang.ClassLoader.loadClass(libgcj.so.70)
at gnu.java.lang.MainThread.run(libgcj.so.70)
make[3]: *** [PHPLexer.cpp] Fehler 1
antlr is installed and 'antlr' is in the folder.
Greetings Gernod
"/usr/bin/ld: cannot find -lantlr"
You should have antlr (version 2.7.6 should work) properly installed, as informed in the INSTALL file.
www.antlr.org
Oh man, I've been waiting for a plugin like this for a long time. Two questions: can you put the pane on the right hand side of the window? ..and can you sort the items alphabetically?
Two questions: can you put the pane on the right hand side of the window?
Kate can do this for you. Just right click on the tab and choose the side :)
..and can you sort the items alphabetically?
I didn't get the time to work in this plugin for sometime. Sorting items in someway is definetly something it should have eventualy. Maybe I'll be able to work on this in the next couple of months.
Ratings & Comments
13 Comments
Hi, I'm getting some error and I'm completely lost, can you please take a look at this? hosiplan@hosiplan-laptop:/media/ntbdata/downloads/kate/katephpbrowser-0.1beta$ sudo ./configure --with-antlr=/usr/bin/runantlr --prefix=/usr checking build system type... i686-pc-linux-gnu ... not using lib directory suffix ... ./configure: line 31327: no-config: command not found ./configure: line 31328: no-config: command not found ... config.status: executing depfiles commands Good - your configure finished. Start make now hosiplan@hosiplan-laptop:/media/ntbdata/downloads/kate/katephpbrowser-0.1beta$ sudo make make all-recursive make[1]: Entering directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta' Making all in data make[2]: Entering directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/data' Making all in icons make[3]: Entering directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/data/icons' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/data/icons' make[3]: Entering directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/data' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/data' make[2]: Leaving directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/data' Making all in src make[2]: Entering directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/src' Making all in parser make[3]: Entering directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/src/parser' Makefile:690: warning: overriding commands for target `libphpparser_la.all_cpp.cpp' Makefile:678: warning: ignoring old commands for target `libphpparser_la.all_cpp.cpp' no ./lexer.g /bin/bash: no: command not found make[3]: *** [PHPLexer.cpp] Error 127 make[3]: Leaving directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/src/parser' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/media/ntbdata/downloads/kate/katephpbrowser-0.1beta' make: *** [all] Error 2
Won't build : /usr/include/antlr/CharScanner.hpp: In member function 'bool antlr::CharScannerL iteralsLess::operator()(const std::string&, const std::string&) const': /usr/include/antlr/CharScanner.hpp:565: error: 'strcasecmp' was not declared in this scope make[4]: *** [PHPLexer.lo] Error 1 make[4]: Leaving directory `/tmp/katephpbrowser-0.1beta/src/parser' make[3]: *** [all] Error 2 make[3]: Leaving directory `/tmp/katephpbrowser-0.1beta/src/parser' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/katephpbrowser-0.1beta/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/katephpbrowser-0.1beta' make: *** [all] Error 2
hi, if you're running debian lenny, you'll probably face problem with antlr. first you've to install libantlr-dev, then softly link /usr/bin/runantlr (fucking special name for debian) to /usr/bin/antlr. even after that you may suppose it to compile it correctly. and you better install it to /usr instand of /usr/local, use './configure --prefix=/usr' :-)
what about phplexer problem ?
I found nothing in google, nothing in forums, and no help in irc, so i think now i may ask... ...after successfully compiling and installing it... ...how to get this plugin into kate? It is not listed in extensen of configurating kate.
Solved by online help: in Kubuntu you have to call ./configure with --prefix=/usr Thanks, tsilva, I hope this plugin will have a future :)
I am curious about your plugin, but i get the following error processing MAKE: antlr ./lexer.g Exception in thread "main" java.lang.NoClassDefFoundError: antlr.Tool at gnu.java.lang.MainThread.run(libgcj.so.70) Caused by: java.lang.ClassNotFoundException: antlr.Tool not found in gnu.gcj.runtime.SystemClassLoader{urls=[], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.so.70) at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70) at java.lang.ClassLoader.loadClass(libgcj.so.70) at java.lang.ClassLoader.loadClass(libgcj.so.70) at gnu.java.lang.MainThread.run(libgcj.so.70) make[3]: *** [PHPLexer.cpp] Fehler 1 antlr is installed and 'antlr' is in the folder. Greetings Gernod
I have this error when I try to compile: /bin/sh ../libtool --silent --tag=CXX --mode=link g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -fexceptions -o katephpbrowserplugin.la -rpath /usr/lib/kde3 -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/lib -R /usr/lib/qt-3.3/lib -R /usr/lib -L/usr/lib -L/usr/lib/qt-3.3/lib plugin_katephpbrowser.lo browsertab.lo browserlistview.lo schemaconfigurationdlg.lo schemasettings.lo schema.lo browserloader.lo browserlistviewitem.lo ../src/parser/libphpparser.la ../src/nodeclasses/libnodes.la -lantlr -lkateinterfaces /usr/bin/ld: cannot find -lantlr collect2: ld returned 1 exit status make[3]: *** [katephpbrowserplugin.la] Erreur 1 make[3]: quittant le répertoire « /home/paul/Internet/Build/katephpbrowser/katephpbrowser-0.1beta/src » make[2]: *** [all-recursive] Erreur 1 make[2]: quittant le répertoire « /home/paul/Internet/Build/katephpbrowser/katephpbrowser-0.1beta/src » make[1]: *** [all-recursive] Erreur 1 make[1]: quittant le répertoire « /home/paul/Internet/Build/katephpbrowser/katephpbrowser-0.1beta » make: *** [all] Erreur 2 I have Fedora Core 6
"/usr/bin/ld: cannot find -lantlr" You should have antlr (version 2.7.6 should work) properly installed, as informed in the INSTALL file. www.antlr.org
Oh man, I've been waiting for a plugin like this for a long time. Two questions: can you put the pane on the right hand side of the window? ..and can you sort the items alphabetically?
Two questions: can you put the pane on the right hand side of the window? Kate can do this for you. Just right click on the tab and choose the side :) ..and can you sort the items alphabetically? I didn't get the time to work in this plugin for sometime. Sorting items in someway is definetly something it should have eventualy. Maybe I'll be able to work on this in the next couple of months.
I was searching for a plugin like that. Thank you very very much!
very coooooooollll i'm waiting for it thx a lot