Code Monkey home page Code Monkey logo

ajoke's People

Contributors

baohaojun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

r3n4ud aki-s mrshieh

ajoke's Issues

发现一个小bug

java-add-fallback的脚本中使用了$AJOKE_DIR, 应该是小写的$ajoke_dir

readme中的环境变量的配置应该是

export ajoke_dir="~/ajoke" #PLEASE MODIFY THIS TO SUIT YOUR CASE
export PATH="$ajoke_dir/bin:$PATH";
export PERL5LIB="$ajoke_dir/etc/perl:$PERL5LIB";

我也没有仔细研究为什么不加引号,定义的环境变量无效。

Support for OS X

Has anyone been successful getting ajoke to run on OS X? I'm currently working on getting it running... There are some differences with how OS X handles command line args for things like grep, etc...

I'm just checking to make sure I'm not redoing something that has been done. When I get it working I am happy to supply patches.

error when running the mkgtags script

My home path is /home/savior and I check out the ajoke in /home/savior/ajoke

I use the -x parameter for the bash and the trace is:

09:10:59 savior@laptop:/usr/lib/jvm/java-1.7.0-openjdk-amd64

bash -x mkgtags

  • export TMPDIR=/home/savior/.cache
  • TMPDIR=/home/savior/.cache
  • mkdir -p /home/savior/.cache
  • cd -P .
    ++ pwd
  • outDir=/home/savior/.cache/for-code-reading//usr/lib/jvm/java-7-openjdk-amd64
    ++ pwd
  • srcDir=/usr/lib/jvm/java-7-openjdk-amd64
  • relativeSrcDir=.
  • test /home/savior/.cache/for-code-reading//usr/lib/jvm/java-7-openjdk-amd64 '!=' '' -a '!' -d /home/savior/.cache/for-code-reading//usr/lib/jvm/java-7-openjdk-amd64/.beagrep
  • outDir=/home/savior/.cache/for-code-reading//usr/lib/jvm
  • test /home/savior/.cache/for-code-reading//usr/lib/jvm '!=' '' -a '!' -d /home/savior/.cache/for-code-reading//usr/lib/jvm/.beagrep
  • outDir=/home/savior/.cache/for-code-reading//usr/lib
  • test /home/savior/.cache/for-code-reading//usr/lib '!=' '' -a '!' -d /home/savior/.cache/for-code-reading//usr/lib/.beagrep
  • outDir=/home/savior/.cache/for-code-reading//usr
  • test /home/savior/.cache/for-code-reading//usr '!=' '' -a '!' -d /home/savior/.cache/for-code-reading//usr/.beagrep
  • outDir=/home/savior/.cache/for-code-reading/
  • test /home/savior/.cache/for-code-reading/ '!=' '' -a '!' -d /home/savior/.cache/for-code-reading//.beagrep
  • outDir=/home/savior/.cache/for-code-reading
  • test /home/savior/.cache/for-code-reading '!=' '' -a '!' -d /home/savior/.cache/for-code-reading/.beagrep
  • outDir=/home/savior/.cache
  • test /home/savior/.cache '!=' '' -a '!' -d /home/savior/.cache/.beagrep
  • outDir=/home/savior
  • test /home/savior '!=' '' -a '!' -d /home/savior/.beagrep
  • outDir=/home
  • test /home '!=' '' -a '!' -d /home/.beagrep
  • outDir=
  • test '' '!=' '' -a '!' -d /.beagrep
    ++ readlink -f /home/savior
  • test '' = /home/savior
    ++ pwd
  • test -r '' -a '' '!=' /home/savior/.cache/for-code-reading//usr/lib/jvm/java-7-openjdk-amd64
    ++ pwd
  • outDir=/home/savior/.cache/for-code-reading//usr/lib/jvm/java-7-openjdk-amd64
    ++ basename mkgtags
  • mkgtags
  • _mk_help_dir
  • mkdir -p /home/savior/.cache/for-code-reading//usr/lib/jvm/java-7-openjdk-amd64
  • test -e .globalrc
  • test -e /home/savior/.cache/for-code-reading//usr/lib/jvm/java-7-openjdk-amd64/GTAGS
  • mkcscope_files
  • gtags --gtagslabel=plugin-example -f - /home/savior/.cache/for-code-reading//usr/lib/jvm/java-7-openjdk-amd64
  • tty
  • test -e /home/savior/etc/gtags-filter.rc
  • cat
    gtags: cannot open shared object '/lib/gtags/exuberant-ctags.la'.
  • perl -ne 'print unless m,
    (?:frameworks/base/api/[0-9]+.xml)|
    (?:frameworks/base/docs/html/sdk/api_diff/.*.xml)|
    (?:development/sdk/api-versions.xml),x'
  • find . '(' -path '/CVS' -o -path '/.svn' -o -path '/autom4te.cache' -o -path '/{arch}' -o -path '/.hg' -o -path '/darcs' -o -path '/out-' -o -path '/.git' -o -path '/.bzr' -o -path '~' -o -path '#' -o -path '/TAGS' -o -path '/tags' -o -path '/semantic.cache' -o -iname '.o' -o -iname '.class' -o -iname '.obj' -o -iname '.pyc' -o -iname '.elc' -o -path '/.ignore' -o -path '/.repo' -o -iname '_.ncb' -o -iname cscope.files -o -iname cscope.out -o -ipath '*/.beagrep' ')' -prune -o -type f -print
  • tee /home/savior/.cache/for-code-reading//usr/lib/jvm/java-7-openjdk-amd64/cscope.files
    /home/savior/ajoke/bin/mkgtags: line 87: /home/savior/.cache/for-code-reading//usr/lib/jvm/java-7-openjdk-amd64/GTAGS: No such file or directory

When I run mkgtags script , the error is `tags seems older format`.

I use the ubuntu 13.04 and all the tools are the latest .

bash -x mkgtags

  • export TMPDIR=/home/savior/.cache
  • TMPDIR=/home/savior/.cache
  • mkdir -p /home/savior/.cache
  • cd -P .
    ++ pwd
  • outDir=/home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64
    ++ pwd
  • srcDir=/usr/lib/jvm/java-6-openjdk-amd64
  • relativeSrcDir=.
  • test /home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64 '!=' '' -a '!' -d /home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64/.beagrep
  • outDir=/home/savior/.cache/for-code-reading//usr/lib/jvm
  • test /home/savior/.cache/for-code-reading//usr/lib/jvm '!=' '' -a '!' -d /home/savior/.cache/for-code-reading//usr/lib/jvm/.beagrep
  • outDir=/home/savior/.cache/for-code-reading//usr/lib
  • test /home/savior/.cache/for-code-reading//usr/lib '!=' '' -a '!' -d /home/savior/.cache/for-code-reading//usr/lib/.beagrep
  • outDir=/home/savior/.cache/for-code-reading//usr
  • test /home/savior/.cache/for-code-reading//usr '!=' '' -a '!' -d /home/savior/.cache/for-code-reading//usr/.beagrep
  • outDir=/home/savior/.cache/for-code-reading/
  • test /home/savior/.cache/for-code-reading/ '!=' '' -a '!' -d /home/savior/.cache/for-code-reading//.beagrep
  • outDir=/home/savior/.cache/for-code-reading
  • test /home/savior/.cache/for-code-reading '!=' '' -a '!' -d /home/savior/.cache/for-code-reading/.beagrep
  • outDir=/home/savior/.cache
  • test /home/savior/.cache '!=' '' -a '!' -d /home/savior/.cache/.beagrep
  • outDir=/home/savior
  • test /home/savior '!=' '' -a '!' -d /home/savior/.beagrep
  • outDir=/home
  • test /home '!=' '' -a '!' -d /home/.beagrep
  • outDir=
  • test '' '!=' '' -a '!' -d /.beagrep
    ++ readlink -f /home/savior
  • test '' = /home/savior
    ++ pwd
  • test -r '' -a '' '!=' /home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64
    ++ pwd
  • outDir=/home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64
    ++ basename mkgtags
  • mkgtags
  • _mk_help_dir
  • mkdir -p /home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64
  • test -e .globalrc
  • test -e /home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64/GTAGS
    ++ stat -c %s /home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64/GTAGS
  • test 0 = 0
  • cd /home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64
  • rm GPATH GRTAGS GTAGS GTAGS.dump -f
  • mkcscope_files
  • gtags --gtagslabel=plugin-example -f - /home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64
  • tty
  • test -e /home/savior/etc/gtags-filter.rc
  • cat
  • perl -ne 'print unless m,
    (?:frameworks/base/api/[0-9]+.xml)|
    (?:frameworks/base/docs/html/sdk/api_diff/.*.xml)|
    (?:development/sdk/api-versions.xml),x'
  • find . '(' -path '/CVS' -o -path '/.svn' -o -path '/autom4te.cache' -o -path '/{arch}' -o -path '/.hg' -o -path '/darcs' -o -path '/out-' -o -path '/.git' -o -path '/.bzr' -o -path '~' -o -path '#' -o -path '/TAGS' -o -path '/tags' -o -path '/semantic.cache' -o -iname '.o' -o -iname '.class' -o -iname '.obj' -o -iname '.pyc' -o -iname '.elc' -o -path '/.ignore' -o -path '/.repo' -o -iname '_.ncb' -o -iname cscope.files -o -iname cscope.out -o -ipath '*/.beagrep' ')' -prune -o -type f -print
  • tee /home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64/cscope.files
    gtags: execvp failed.
    gtags: unexpected EOF.
  • flock 9
  • GTAGSROOT=/usr/lib/jvm/java-6-openjdk-amd64
  • GTAGSDBPATH=/home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64
  • global -x '.*'
  • sort -u
  • awk '{print $1" "$4}'
    global: /home/savior/.cache/for-code-reading//usr/lib/jvm/java-6-openjdk-amd64/GTAGS seems older format. Please remake tag files.

chdir() is deprecate at BhjJava.pm

When i use the 'ajoke-complete-method' function , the mini buffer show that :

Which method to call ? /bin/bash : -c  line 0: syntax error near unexpected 
token`(' | /bin/bath -c : line 0: `ajoke-get-hierarchy.pl Use of chdir('') or chdir(undef) as 
chdir() is deprecated at   ../ajoke/etc/perl/BhjJava.pm line 50.

"sh: beatags: command not found" in ajoke-get-hierarchy.pl

I get this when pressing M-g j h in OS X yosemite. I see the problem here is that the "beatags" command is not installed in my system so I figured that might come included in your "beagrep" project. (I had no luck installing it from source)

Anyway, I feel ajoke is just the thing I need to explore a large java codebase I'm working on right now. If you have any ideas/pointers at what I am missing that would be a blessing. Otherwise I will just have to stick with eclim.:-(

Thanks :-)

Detailed error in emacs follows:

-- mode: compilation; default-directory: "/Xdev/tc2cv/AttributeInheritance.participant/src/attributeinheritance/participant/" --
Compilation started at Sun Jul 26 03:22:16

ajoke-get-hierarchy.pl attributeinheritance.participant.AttributeCascade -m EXTENSION_ID
sh: beatags: command not found
No working file for attributeinheritance.participant.AttributeCascade at /Users/eaclarich/.emacs.d/ajoke/bin/ajoke-get-hierarchy.pl line 41.

Compilation exited abnormally with code 1 at Sun Jul 26 03:22:16

Something...pretty strange

When I run this under Debian as non-root, this message occurs:

ctags-exuberant: unrecognized option '--langmap=ObjectiveC:.m.mm,androidpng:.png.jpg,androidxml:.xml,antlr:.g,asm:.S.s,awk:.awk,c:.c,c#:.cs,c++:.C.H.c++.cc.cpp.cxx.h.hpp.hxx,fortran:.f.f77.f90.f95.for,jar:.jar.dll.exe,java:.aidl.java,Clojure:.clj,javaprop:(ExternalMessages.properties),javascript:.js,kconfig:(Kconfig_),lisp:(.emacs).el.jl.l.lisp,lua:.lua,make:(.am)(Kbuild)([mM]akefile_).make.mk,pascal:.p.pas,perl:.pl.pm,php:.php.php3.phtml,python:.py,ruby:.rb,scheme:.scm,sh:(.bashrc*).sh,vim:.vim,yacc:.y'
Try `ctags-exuberant --help' for a complete list of options.

It seems that something went wrong during the ctag period. Please help.

Source jars?

I added "*.jar" to the find command in mkgtags because it was spitting out warning about grepping class files. Does ajoke process sources in jars? Is this an OK thing to do?

Too difficult to setup.

Maybe it is not a real issue, but I really found this hard to setup, especially when I am not using debian/ubuntu.

There are too many dependencies, and needs to compile patch global , etc. It should be nicer if it is easy to setup.

how to setup ajoke in cygwin environment ?

Because my mainly work is on win7 system for android app development. I want to use emacs for android java code.
Do you know how to setup ajoke in cygwin environment ?

Is there any tutorials for ajoke on osx?

I tried it on osx, and find mkgtags script doesn't work, caused by some difference between GNU readlink and readlink on osx.
BTW, is there any idea to develop a Java layer for spacemacs?

autoconf failed

Hi,

I'm trying to build on my machine, and I get the following error:
configure.ac:240: error: required file 'libltdl/Makefile.in' not found
Makefile.am:13: error: required directory ./libltdl does not exist
global/Makefile.am:17: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '__CPPFLAGS')
gtags/Makefile.am:15: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '__CPPFLAGS')
configure.ac:219: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '__CPPFLAGS')
configure.ac:219: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '__CPPFLAGS')
configure.ac:219: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '__CPPFLAGS')
libparser/Makefile.am:25: warning: '%'-style pattern rules are a GNU make extension
libparser/Makefile.am:28: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '__CPPFLAGS')
libutil/Makefile.am:32: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '__CPPFLAGS')
plugin-example/Makefile.am:22: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '__CPPFLAGS')
plugin-example/Makefile.am:14: error: Libtool library used but 'LIBTOOL' is undefined
plugin-example/Makefile.am:14: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
plugin-example/Makefile.am:14: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
plugin-example/Makefile.am:14: If 'LT_INIT' is in 'configure.ac', make sure
plugin-example/Makefile.am:14: its definition is in aclocal's search path.
autoreconf: automake failed with exit status: 1

Small note

As we can see from some distro of Linux (say, the Debian 7.3 I am using...Forget about the Ubuntu annd Sublime annnnd Vim, a friend 赵泽龙 told me they are all popular in 百度)...

Thank god that I can read some simple lisp code, like the notice pop to me, when I try to call ajoke-complete-method.

/bin/bash: ajoke-get-imports.pl: command not found

So I check your ajoke.el source code with Emacs (I am lazy, so I just use the Prelude), and find that you are indeed calling the shell command...

In this way, in the README.md my suggestion would be to put those export commands to ~/.bashrc, and everytime you start the Terminal, the right stuff will be found. Or we might as well copy the two files in ajoke/etc/perl/ to somewhere like /usr/local/lib/perl/VERSION...

After the right export (which I failed as you can see...merely running ajoke.el in Emacs...), I can get something like

abrahamx91@debian:~/Professional/Git/ajoke/bin$ ./ajoke-get-hierarchy.pl 
can not chdir , you have not run mkgtags yet? at /home/abrahamx91/Professional/Git/ajoke/etc/perl/BhjJava.pm line 51.
Compilation failed in require at ./ajoke-get-hierarchy.pl line 5.
BEGIN failed--compilation aborted at ./ajoke-get-hierarchy.pl line 5.

Sum up: 不妨告诉他们将那三行命令调到 ~/.bashrc 里面去。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.