Open AvnerCohen opened 12 years ago
It's something to do with environment variables that are set, and sublime trying to reinterpret it.
Is there some environment variable you have set that has unicode in it?
Sorry, didn't mean to close the issue
Thanks for the reply. There could be something like that, not sure. Is there a way for me to locally add a debug statements to pin point what is causing this or at least isolate it somehow?
Press control-` to get the test console. And type the following:
import os; os.environ
What is the output from that
On Sun, Sep 9, 2012 at 3:45 PM, AvnerCohen notifications@github.com wrote:
Thanks for the reply. There could be something like that, not sure. Is there a way for me to locally add a debug statements to pin point what is causing this or at least isolate it somehow?
— Reply to this email directly or view it on GitHubhttps://github.com/maltize/sublime-text-2-ruby-tests/issues/116#issuecomment-8402349.
@gja Many thanks for your help! The was what I needed to find the problem I'm using Zack Holmans .dotfiles and you can see in the following script: https://github.com/holman/dotfiles/blob/master/zsh/prompt.zsh
The set of:
export PROMPT=$'\n$(rb_prompt) in $(directory_name) $(git_dirty)$(need_push)\n› '
Which is the issue here.
Not sure if this should be fixed in RubyTest or Sublime core, locally I will of course remove the newline char. Thanks again. Let me know if you need anything further.
This is surely an issue in Sublime Core. Does anyone know how to reach the author of sublime?
On Mon, Sep 10, 2012 at 12:46 AM, AvnerCohen notifications@github.comwrote:
@gja https://github.com/gja Many thanks for your help! The was what I needed to find the problem I'm using Zack Holmans .dotfiles and you can see in the following script: https://github.com/holman/dotfiles/blob/master/zsh/prompt.zsh
The set of:
export PROMPT=$'\n$(rb_prompt) in $(directory_name) $(git_dirty)$(need_push)\n› '
Which is the issue here.
Not sure if this should be fixed in RubyTest or Sublime core, locally I will of course remove the newline char. Thanks again. Let me know if you need anything further.
— Reply to this email directly or view it on GitHubhttps://github.com/maltize/sublime-text-2-ruby-tests/issues/116#issuecomment-8408141.
I've bumped an issue with Sublime Core http://sublimetext.userecho.com/topic/120265-non-ascii-character-bug-in-build-system-using-shell-true/?comment_form_activate=true
Cool. In any case, this probably shouldn't remain open, many thanks for the help!
Hey,
FYI I was having the same problem and I solved it using this trick: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=8512
Cool! worked for me.
I wonder why not more people are facing it, How rare could the combination of multiline prompt + RubyTest be?
Modifing Packages/Default/exec.py:44 as follows may help:
for k, v in proc_env.iteritems():
path_vars = os.path.expandvars(v)
if isinstance(path_vars, unicode):
path_vars = path_vars.encode(sys.getfilesystemencoding())
proc_env[k] = path_vars
Actually, this should be open till upstream fixes it
:+1: for @vladipus's comment (the fix will have to do for now)
@vladipus's hack worked for me
10 months and this still isn't fixed? :(
Have the same issue
OS X 10.9 SublimeText 3
Exception in thread Thread-16:
Traceback (most recent call last):
File "X/threading.py", line 639, in _bootstrap_inner
File "Modific in /Users/fbd/Library/Application Support/Sublime Text 3/Installed Packages/Modific.sublime-package", line 115, in run
File "X/subprocess.py", line 906, in communicate
File "X/subprocess.py", line 1531, in _communicate
File "X/subprocess.py", line 831, in _translate_newlines
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 215: ordinal not in range(128)
@jareddbc Sorry, this isn't in our control. This is a bug in Sublime Text :-(. We've raised issues with the developer, but it's been ignored for the longest time. See my earlier comment.
how can this be patched by myself in my mac?
@cartazio see the patch linked to by @Eventect
i just pull requested a better patch :)
Running on Mac 10.8.1, A fresh install of RubyTest with Sublime Text 2 (Build 2217), I'm getting the following:
Any suggestions on what to check next?
Thanks.