Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Why packing PyV8 along with jsruntime ? #5

Closed
xbot opened this Issue May 16, 2012 · 4 comments

Comments

Projects
None yet
3 participants

xbot commented May 16, 2012

Why not just use the module goes with python distribution ?

Packing PyV8 with jsruntime makes this plugin very large.

Owner

michalliu commented May 16, 2012

There are two major reasons:

  1. PyV8 is not a standard module in most linux distributions, so if you want use PyV8,you must compile the source code by yourself, which is not easy for everyone.
  2. I prefer PyV8 as the main javascript interpreter. Because if we use other interpreter like node, we must use system method in plugin's script, which will cause the Vim window lose focus under Windows. It's very annoying.

xbot commented May 17, 2012

I'm afraid I cannot agree with you, PyV8 is a module belongs to Python, so it can and should be maintained by easy_install or pip. I'm using Archlinux, installing PyV8 either by using pip or Arch's software repo works like a charm.

For windows users, PyV8 has a installer, which is easy to use. So users don't need to compile this module acturally.

If you prefer PyV8 as the default interpreter, you can announce that in your document or the plugin's page, but you should not bind it up with the vim script.

Also, if you care about the popup cmd.exe under windows, you can suggest people suppress that by using the shell.vim script:

http://www.vim.org/scripts/script.php?script_id=3123

For example, I use the following code to generate tags file on windows:

nmap mkt :call xolox#shell#execute('ctags -R --php-kinds=cidfj -h .php.inc.lib.js.py.java --langmap=php:.php.inc.lib --exclude=*.pas .', 0)

The popup window will be set not to occupy focus.

Owner

michalliu commented May 17, 2012

I'd prefer make this script easy to use,and reduce the cost of learning. Your comments are very constructive, I will take a consideration about this issue.

I like it~ easy using is important!

@michalliu michalliu closed this Mar 1, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment