Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

DSL Errors aren't shown in as inline errors #204

Closed
orta opened this issue Jan 17, 2016 · 0 comments
Closed

DSL Errors aren't shown in as inline errors #204

orta opened this issue Jan 17, 2016 · 0 comments

Comments

@orta
Copy link
Member

orta commented Jan 17, 2016

Using a pre-1.0.0 Podfile:

screen shot 2016-01-17 at 12 27 28

Gives this error:

2016-01-17 12:22:22.773 ReflectionService[4190:80320] Class#from_ruby: Pod::DSLError: Pod::DSLError
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile/dsl.rb:287:in `target'
    Podfile:14:in `block in from_ruby'
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile.rb:291:in `eval'
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile.rb:291:in `block in from_ruby'
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile.rb:51:in `instance_eval'
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile.rb:51:in `initialize'
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile.rb:287:in `new'
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile.rb:287:in `from_ruby'
2016-01-17 12:22:22.774 ReflectionService[4190:80320] [Ruby Thread Exception] org.cocoapods.app.ErrorDomain - 0
�[31m
[!] Invalid `Podfile` file: �[31m[!] Unsupported options `{:exclusive=>true}` for target `Aerodramus_Example`.�[0m. Updating CocoaPods might fix the issue.
�[0m
 #  from Podfile:14
 #  -------------------------------------------
 #  
 >  target 'Aerodramus_Example', :exclusive => true do
 #    pod "Aerodramus", :path => "../"
 #  -------------------------------------------

    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile/dsl.rb:287:in `target'
    Podfile:14:in `block in from_ruby'
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile.rb:291:in `eval'
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile.rb:291:in `block in from_ruby'
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile.rb:51:in `instance_eval'
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile.rb:51:in `initialize'
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile.rb:287:in `new'
    /Users/orta/Library/Developer/Xcode/DerivedData/CocoaPods-gllyogzvsbzexieoizliifwelpnw/Build/Products/Debug/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-core-1.0.0.beta.2/lib/cocoapods-core/podfile.rb:287:in `from_ruby'

    0   CoreFoundation                      0x00007fff925e0ae2 __exceptionPreprocess + 178
    1   libobjc.A.dylib                     0x00007fff99b61f7e objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff925e0679 -[NSException raise] + 9
    3   RubyCocoa                           0x0000000107b1ef41 rbobj_call_ruby + 1441
    4   RubyCocoa                           0x0000000107b1f08b -[RBObject rbobjForwardInvocation:] + 171
    5   ReflectionService                   0x00000001076c5f7d -[RBObject(CocoaPods) cp_forwardInvocation:] + 397
    6   CoreFoundation                      0x00007fff9251c412 ___forwarding___ + 514
    7   CoreFoundation                      0x00007fff9251c188 _CF_forwarding_prep_0 + 120
    8   ReflectionService                   0x00000001076c6d76 __52-[CPReflectionService pluginsFromPodfile:withReply:]_block_invoke + 150
    9   ReflectionService                   0x00000001076c5aeb -[RBThread performTask:] + 123
    10  Foundation                          0x00007fff9d9c3d4b __NSThreadPerformPerform + 279
    11  CoreFoundation                      0x00007fff924f05c1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    12  CoreFoundation                      0x00007fff924e241c __CFRunLoopDoSources0 + 556
    13  CoreFoundation                      0x00007fff924e193f __CFRunLoopRun + 927
    14  CoreFoundation                      0x00007fff924e1338 CFRunLoopRunSpecific + 296
    15  Foundation                          0x00007fff9d9c1e61 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 270
    16  Foundation                          0x00007fff9d9df2a6 -[NSRunLoop(NSRunLoop) runUntilDate:] + 108
    17  ReflectionService                   0x00000001076c4e26 -[RBThread main] + 198
    18  Foundation                          0x00007fff9db0dc6f __NSThread__start__ + 1351
    19  libsystem_pthread.dylib             0x0000000107bb39f9 _pthread_body + 131
    20  libsystem_pthread.dylib             0x0000000107bb3976 _pthread_body + 0
    21  libsystem_pthread.dylib             0x0000000107bb0fbd thread_start + 13

Which doesn't get caught in static SMLSyntaxError * _Nullable SyntaxErrorFromError(NSError * _Nonnull error)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant