xgenvn / InputHelper

Popup a textinput field to input text using IM (ibus, scim) in Sublime Text 2 under Linux.
88 stars 23 forks source link

Could not work on Ubuntu 12.04 #12

Open JokerQyou opened 10 years ago

JokerQyou commented 10 years ago

Hi I'm using Ubuntu 12.04 64bit, with Sublime Text 2 version 2.0.2 (build 2221) installed. I installed InputHelper with Package Control. Each time I press Ctrl + Shift + Z, nothing happens, when I press Ctrl + ` to view the console, the following error was printed:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 362, in run_
  File "./inputhelper.py", line 21, in run
  File ".\subprocess.py", line 633, in __init__
  File ".\subprocess.py", line 1139, in _execute_child
OSError: [Errno 13] 权限不够

I've read all the issues under this repo, and found no solution so far.

This information might also help: when I run python linux_text_input_gui.py in lib folder, the input box does appear, and after pressing Enter, the content is also printed in the terminal.

JokerQyou commented 10 years ago

Hi xgenvn! I've found a way to solve this problem: change line 19 of the file inputhelper.py.

Before:

args = [location]

After:

args = ['python2', location]

I'd like to open a pull request for this, but I can't do it now. If you see this, please fix this problem and close this issuse, thanks.

xgenvn commented 10 years ago

Please chmod the files under lib to 775 or 777. On Jun 28, 2014 5:07 PM, "Joker Qyou" notifications@github.com wrote:

Hi I'm using Ubuntu 12.04 64bit, with Sublime Text 2 version 2.0.2 (build 2221) installed. Each time I press Ctrl + Shift + Z, nothing happens, when I press Ctrl + ` to view the console, the following error was printed:

Traceback (most recent call last): File "./sublimeplugin.py", line 362, in run File "./inputhelper.py", line 21, in run File ".\subprocess.py", line 633, in init File ".\subprocess.py", line 1139, in _execute_childOSError: [Errno 13] 权限不够

I've read all the issues under this repo, and found no solution sofar.

This information might also help: when I run python linux_text_input_gui.py in lib folder, the input box does appear, and after pressing Enter, the content is also printed in the terminal.

— Reply to this email directly or view it on GitHub https://github.com/xgenvn/InputHelper/issues/12.

JokerQyou commented 10 years ago

@xgenvn Yeah, that would work too. But why not use full arg list for subprocess? You could not expect every end-user to chmod that file after installing this package.

xgenvn commented 10 years ago

@JokerQyou I think we should not use the full arg list for subprocess, because it'll depend on python environment of end user. It would be python2, or python3, or anything else, it'll be complicated then. I supposed most of people using this plugin through typing _git clone _, so I have to cut off most of the important code (but also complex) to process the package uncompressing and chmod, the unicode print and grab the output, most of all is the compatibility between sublime 2 and 3. I'll update and test all the cases when I have time. And thank you to your report. Hope this plugin help you out. And if you want something coming next, try out _Atom Text Editor_ by Github.

JokerQyou commented 10 years ago

@xgenvn Wow, I did not notice that. This plugin is very useful for those who don't want to change their input method. Thanks for your patience.

geekwho-eth commented 10 years ago

@xgenvn it works on ubuntu 14.04.