baohaojun / ajoke

Abducting Java Onto Emacs, K is silent.
GNU General Public License v2.0
73 stars 3 forks source link

Small note #10

Closed ProfessorX closed 10 years ago

ProfessorX commented 10 years ago

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 里面去。

ProfessorX commented 10 years ago

度娘那里放假了木有。。。过年放7天?

baohaojun commented 10 years ago

Thanks for the hint. I have added .bashrc note in readme:-)

I am not working at Baidu, but Alibaba:-) And, yes, it's 7 days vacation as always.

ProfessorX commented 10 years ago

阿里前一阵子的"来往"推广也足够狂暴的... 圈子里说,BAT这三家的吃相的确木有一个好看的啊......