eerolanguage / eero

Eero was a fully binary- and header-compatible dialect of Objective-C, implemented with a modified version of the Apple-sponsored LLVM/clang open-source compiler. It featured a streamlined syntax, Python-like indentation, and other features that improve readability and code safety. It was inspired by languages such as Smalltalk, Python, and Ruby.
https://web.archive.org/web/20171101134337/http://eerolanguage.org/
288 stars 7 forks source link

Xcode 5 keeps crashing while editing .eero / .eeh file #55

Open waynezhang opened 10 years ago

waynezhang commented 10 years ago

Both Xcode 5 and 5.1DP on my Macbook Pro keep crashing while editing eero files. Even when I did not change anything but only moved cursor.

Here is the log:

Process:         Xcode [28419]
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:      com.apple.dt.Xcode
Version:         5.0.2 (3335.32)
Build Info:      IDEApplication-3335032000000000~4
App Item ID:     497799835
App External ID: 106632651
Code Type:       X86-64 (Native)
Parent Process:  launchd [243]
Responsible:     Xcode [28419]
User ID:         501

Date/Time:       2014-02-20 11:21:14.836 +0900
OS Version:      Mac OS X 10.9.1 (13B42)
Report Version:  11
Anonymous UUID:  3CDD8250-FFCD-7A55-24CE-0E219E8CFAAC

Sleep/Wake UUID: 68C261B8-FA1D-45E3-91F6-87F0EB144CB1

Crashed Thread:  3  Dispatch queue: com.apple.root.default-priority

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
ProductBuildVersion: 5A3005
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[__NSCFConstantString documentationAbbreviation]: unrecognized selector sent to instance 0x106f55eb8
UserInfo: (null)
Hints: None
Backtrace:
  0  0x00007fff8908d404 __exceptionPreprocess (in CoreFoundation)
  1  0x0000000101bcad73 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
  2  0x00007fff8c61ae75 objc_exception_throw (in libobjc.A.dylib)
  3  0x00007fff890902ed -[NSObject(NSObject) doesNotRecognizeSelector:] (in CoreFoundation)
  4  0x00007fff88feb5b2 ___forwarding___ (in CoreFoundation)
  5  0x00007fff88feb138 _CF_forwarding_prep_0 (in CoreFoundation)
  6  0x0000000106704448 -[IDEDocSymbolUtilities queryInfoFromIndexSymbol:] (in IDEDocViewer)
  7  0x0000000106703944 __75-[IDEDocSymbolUtilities queryInfoFromIndexSymbol:resultQueue:handlerBlock:]_block_invoke (in IDEDocViewer)
  8  0x00007fff860401d7 _dispatch_call_block_and_release (in libdispatch.dylib)
  9  0x00007fff8603d2ad _dispatch_client_callout (in libdispatch.dylib)
 10  0x00007fff8603f09e _dispatch_root_queue_drain (in libdispatch.dylib)
 11  0x00007fff86040193 _dispatch_worker_thread2 (in libdispatch.dylib)
 12  0x00007fff836fcef8 _pthread_wqthread (in libsystem_pthread.dylib)
 13  0x00007fff836fffb9 start_wqthread (in libsystem_pthread.dylib)

abort() called

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_platform.dylib        0x00007fff8302dbd4 OSAtomicCompareAndSwapLong$VARIANT$mp + 8
1   com.apple.CoreFoundation        0x00007fff88fbdfd0 __CFRunLoopDoObservers + 320
2   com.apple.CoreFoundation        0x00007fff88faf893 __CFRunLoopRun + 995
3   com.apple.CoreFoundation        0x00007fff88faf275 CFRunLoopRunSpecific + 309
4   com.apple.HIToolbox             0x00007fff86b17f0d RunCurrentEventLoopInMode + 226
...

Full log is pasted on http://pastebin.com/Q1sTuYB6.

waynezhang commented 10 years ago

Looks like version of 13-Nov-2013 works fine. But auto completion seems not work in Nov version.

andyarvanitis commented 10 years ago

Thanks for the report. Looking at the logs, I can't really see anything related to the plugin, so I'm not sure what went wrong. Now that it's working for you with the Nov build, would you mind trying the Dec build again and let me know if you still see problems? Thanks!

waynezhang commented 10 years ago

@andyarvanitis Dec build still causes crash. I also tried to rebuild the plugin from scratch but problem still remains.

andyarvanitis commented 10 years ago

Ok, thanks again. I'll see if I can find a way to reproduce it here. I'm also running 10.9.1 and Xcode 5.0.2.

andyarvanitis commented 10 years ago

Fixed in ad40f63c82dd88fdda1b61b319a668aa2d5b8074

waynezhang commented 10 years ago

Technically ad40f63 is a fix for another problem, but after using sublime text for a few days, Xcode does not crash these days when I tried again. Don't know why.

andyarvanitis commented 10 years ago

Ah ok, I'll reopen it. That is strange.

andyarvanitis commented 10 years ago

New binary (updated installer) coming soon.

andyarvanitis commented 10 years ago

I haven't been able to reproduce it, but I have posted a new installer: http://downloads.eerolanguage.org/easy%20installer/Eero%20Support%20for%20Xcode%202014-03-08.dmg. It includes the pull request and compiler binaries based on the llvm/clang 3.4 stable release. Tested with 5.0.2 and 5.1-beta5. When you get a chance, can you try it out?

andrebraga commented 10 years ago

Sorry to say but on Xcode 5.1 GM this is still broken. :broken_heart:

andyarvanitis commented 10 years ago

Thanks for the report. I've been very tied-up lately with day-job deadlines, but I'll do some testing with 5.1 asap, this weekend at the latest.