FastOlympicCoding icon indicating copy to clipboard operation
FastOlympicCoding copied to clipboard

Breaks when having runtime error.

Open shurongwang opened this issue 7 years ago • 10 comments

the plug-in breaks down if there is error at runtime. Therefore I have to restart the editor again.

shurongwang avatar Oct 06 '18 14:10 shurongwang

This is the common error for Sublime Text 3 on the OS X platform. Plugin hosts child process crash cause plugin host crash. The standard run tool crashes too.

It has appeared in the latest builds. So, I think this problem will be fixed.

But, everything works fine and do not crashes with debugger(lldb). So, to install lldb you can install xcode, I recommend xcode 9.4.1 version. You can download it from here - https://developer.apple.com/download/more

And then just press ctrl+shift+b to launch a program with lldb.

Jatana avatar Oct 06 '18 19:10 Jatana

Thanks, I tired. But it stucks at 'compiling', what to do next? image

shurongwang avatar Oct 07 '18 06:10 shurongwang

Press ctrl+~ and write here the log.

Jatana avatar Oct 07 '18 06:10 Jatana

Traceback (most recent call last):
  File "/Users/shurongwang/Library/Application Support/Sublime Text 3/Packages/CppFastOlympicCoding/test_manager.py", line 300, in go
    self.insert_test()
  File "/Users/shurongwang/Library/Application Support/Sublime Text 3/Packages/CppFastOlympicCoding/test_manager.py", line 278, in insert_test
    self.process_manager.run()
  File "/Users/shurongwang/Library/Application Support/Sublime Text 3/Packages/CppFastOlympicCoding/debuggers/DebugodPy3Ejector.py", line 140, in run
    self.__listen()
  File "/Users/shurongwang/Library/Application Support/Sublime Text 3/Packages/CppFastOlympicCoding/debuggers/DebugodPy3Ejector.py", line 56, in __listen
    s = self.read()
  File "/Users/shurongwang/Library/Application Support/Sublime Text 3/Packages/CppFastOlympicCoding/debuggers/DebugodPy3Ejector.py", line 148, in read
    out = self.interact('_.get_output()')
  File "/Users/shurongwang/Library/Application Support/Sublime Text 3/Packages/CppFastOlympicCoding/debuggers/DebugodPy3Ejector.py", line 52, in interact
    proc_dbg.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe

shurongwang avatar Oct 07 '18 06:10 shurongwang

Make sure your xcode version is 9.4.1 and it is location is /Applications/Xcode.app/

Jatana avatar Oct 07 '18 14:10 Jatana

Yes, I do have Xcode, but it's version is 10.0 image

shurongwang avatar Oct 09 '18 14:10 shurongwang

I have changed something. Update plugin, restart Sublime and try it again.

Jatana avatar Oct 09 '18 17:10 Jatana

[FastOlympicCoding] session saved
Traceback (most recent call last):
  File "/Users/shurongwang/Library/Application Support/Sublime Text 3/Packages/CppFastOlympicCoding/test_manager.py", line 966, in compile
    cmp_data = process_manager.compile()
  File "/Users/shurongwang/Library/Application Support/Sublime Text 3/Packages/CppFastOlympicCoding/debuggers/DebugodPy3Ejector.py", line 136, in compile
    return eval(self.interact('_.compile()'))
  File "<string>", line 0
    
    ^
SyntaxError: unexpected EOF while parsing

shurongwang avatar Oct 10 '18 10:10 shurongwang

great, it works. Thanks a lot.

shurongwang avatar Oct 13 '18 14:10 shurongwang

Hello, I installed your plugin via Package ControlI. I also installed Xcode and Python, but still have problem with 'compiling' and I have the console log as the last one. So, what can I do?

FallenParadise avatar Jun 26 '19 09:06 FallenParadise