Open slink opened 7 years ago
My initial guess would be it has something to do with Anaconda - does the error come up in the console before or after you evaluate a line of code? Could be that anaconda is trying to convert a string somewhere to utf-8 when it isn't meant to. Will have an investigate and get back to you.
The error message appears in the terminal window used to launch the FoxDot gui. The gui then quits. Not sure why / how anaconda would be inserting itself, but it might be the issues.
I am also getting this on when pip installing FoxDot with Python3.6 (without Anaconda) Not on Python2.7 though
$ python --version
Python 3.6.2
What O/S are you on?
@Qirky I'm running the latest macOS -- 10.12.6 (16G29)
macOS 10.12.6 as well
So I've added what seems like a bit of a hacky attempt to fix to Editor.py. If you could either install from this repo or replace the contents of your version of lib/Workspace/Editor.py with the new one and let me know how you get on that'd be great.
@Qirky this may be a partial fix. Thanks! I replaced my Editor.py with the one you updated.
It appears to work most of the time, but the output to the bottom half of the FoxDot window does not appear to always update consistently. I am trying to most basic of commands print(2+2)
and will try executing commands with cntl+return
or command+return
and will even try executing the command from the menu bar.
I then click away to the terminal window from which I have executed python -m FoxDot and will see the following error (which I am not sure is related, as it doesn't appear to crash the FoxDot instance).
$ python -m FoxDot
2017-09-09 18:32:12.964 python[57120:7346113] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : [self textInputContext]=0x0 *NO* NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 "The connection from pid 0 was invalidated from this process." UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem
Then, when I click back the output portion of the FoxDot window will have updated. with multiple outputs of the print
command.
Hope this helps!
If you evaluate code such p1 >> play("x ")
do you hear the kick drum or do you have to go to the terminal and back again before it actually runs?
In the FoxDot gui I try something as simple as evaluating print(2+2) and the gui instance crashes with the following error:
my python / FoxDot environment is as follows
I'm pretty stumped by this error message. Suggestions on workarounds or how to best debug this issue?