You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I'm very glad to see this project still live! Keep up the good work. 🥇
I have an issue to report but luckily also some solutions for it.
Issue:
Triggering CodeIntel results in an error that I found in codeintel.log:
Traceback (most recent call last):
[...]
File "site-packages\codeintel\codeintel2\lang_php.py", line 980, in _php_info_from_php
p = process.ProcessOpen(argv, env=env.get_all_envvars())
File "site-packages\codeintel\process.py", line 581, in __init__
creationflags=flags)
File "subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "site-packages\codeintel\process.py", line 399, in _execute_child
startupinfo)
TypeError: environment can only contain strings
My environment:
Windows 10 64-bit
Python 3.6.3 64-bit, tried also on Python 3.5 32-bit
Hi,
First of all, I'm very glad to see this project still live! Keep up the good work. 🥇
I have an issue to report but luckily also some solutions for it.
Issue:
Triggering CodeIntel results in an error that I found in
codeintel.log
:My environment:
Solution
The culprit is this bit of code:
CodeIntel/codeintel/process.py
Lines 499 to 508 in 296df71
While it is necessary for Python 2, it is breaking in 3 because all keys and values end up being encoded as
bytes
.I'm not sure what's the best approach here, I came up with:
if six.PY2
at line 499key
/value
is notisinstance(value, string_types)
and encode only then.Similar has been done in django/django@fc6b90b.
The text was updated successfully, but these errors were encountered: