Error: concat byte with str
wackyvorlon opened this issue · comments
When trying to start the chuck VM, the command window shows the following error:
Traceback (most recent call last):
File "/Users/wackyvorlon/Library/Application Support/Sublime Text 3/Packages/User/ChucK.py", line 59, in poll
edit = Ck_loop_vmCommand.output_view.begin_edit()
TypeError: begin_edit() missing 2 required positional arguments: 'edit_token' and 'cmd'
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 526, in run_
return self.run()
File "/Users/wackyvorlon/Library/Application Support/Sublime Text 3/Packages/User/ChucK.py", line 108, in run
Ck_loop_vmCommand.chuck_process.stdin.write(l.encode("utf-8", "ignore")+"\n")
TypeError: can't concat bytes to str
It's because plugin for ST3(python3, new API) was cloned from similar one for ST2(python2, old API) which are a bit incompatible.
So, can the plugin be run with ST2?
Sent from my iPhone
On Nov 11, 2013, at 1:04 AM, kazakovs notifications@github.com wrote:
It's because plugin for ST3(python3, new API) was cloned from similar one for ST2(python2, old API) which are a bit incompatible.
—
Reply to this email directly or view it on GitHub.
I think this branch of the Chuck addon will be st3 / py3 only, but as soon as it works for this combination then converting it to st2/py2 is almost trivial.
The error thrown here is a symptom of a larger problem,and is something that will be addressed as soon as I fully understand the sub-process and queueing system . and fixed as soon as other subprocess issue are resolved.
I like to think that I understand python, but it had many many modules and sub-process + queues are things that I realize are notoriously tricky after reading through stackexchange threads.
I will open a ticket for "Chuck.py" doesn't work.