Creating an iOS static library doesn't open any windows

Using 8.1.83.1751 (BTW, would be nice if one could Command+C to copy the version number or at least select it for copying) I start a new project, Cocoa, Swift, iOS static library. Select a name and folder and get three files:

Library.swift
StaticLibrary.elements
StaticLibrary.sln

However, no window is open. I click the Fire icon on the Dock and nothing happens. If I try to drag the .sln file on Fire or open it through recent files I get an empty window without much to do. What am I doing wrong?

I guess I have something borked on my config. I recovered an older binary and had the same problem. The console shows the following error:

01/05/15 00:13:22,583 Fire[78022]: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]
01/05/15 00:13:22,587 Fire[78022]: (
	0   CoreFoundation                      0x00007fff89ff225c __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x00007fff90cd8e75 objc_exception_throw + 43
	2   CoreFoundation                      0x00007fff89eaa9a6 -[__NSPlaceholderArray initWithObjects:count:] + 358
	3   CoreFoundation                      0x00007fff89f0e440 +[NSArray arrayWithObjects:count:] + 48
	4   Fire                                0x0000000105cbc4f2 -[FCECanvasCodeSnippet setup] + 1842
	5   Fire                                0x000000010588d40c -[DocumentWindowController windowControllerDidLoad] + 7052
	6   AppKit                              0x00007fff883eb0f0 -[NSWindowController showWindow:] + 36
	7   AppKit                              0x00007fff884b75f5 -[NSDocument showWindows] + 100
	8   AppKit                              0x00007fff8861d82d __80-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke855 + 198
	9   AppKit                              0x00007fff8861d416 __80-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke837 + 237
	10  AppKit                              0x00007fff8861ce31 __80-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_4 + 578
	11  AppKit                              0x00007fff8861c120 -[NSDocumentController _openDocumentWithContentsOfURL:usingProcedure:] + 583
	12  AppKit                              0x00007fff8861cbcb __80-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_3 + 300
	13  CoreFoundation                      0x00007fff89f2348c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
	14  CoreFoundation                      0x00007fff89f14ae5 __CFRunLoopDoBlocks + 341
	15  CoreFoundation                      0x00007fff89f1486e __CFRunLoopRun + 1982
	16  CoreFoundation                      0x00007fff89f13e75 CFRunLoopRunSpecific + 309
	17  AppKit                              0x00007fff883a6f09 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 122
	18  AppKit                              0x00007fff883f640d -[NSMenu _internalPerformActionForItemAtIndex:] + 35
	19  AppKit                              0x00007fff883f6289 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 104
	20  AppKit                              0x00007fff8839cff6 NSSLMMenuEventHandler + 716
	21  HIToolbox                           0x00007fff8b33a1d4 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 892
	22  HIToolbox                           0x00007fff8b339787 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 385
	23  HIToolbox                           0x00007fff8b34d880 SendEventToEventTarget + 40
	24  HIToolbox                           0x00007fff8b383640 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 420
	25  HIToolbox                           0x00007fff8b3b6228 SendMenuCommandWithContextAndModifiers + 59
	26  HIToolbox                           0x00007fff8b3b61d0 SendMenuItemSelectedEvent + 178
	27  HIToolbox                           0x00007fff8b3b60af _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 94
	28  HIToolbox                           0x00007fff8b39419e _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttjS4_S4_PK10__CFStringPP13OpaqueMenuRefPt + 1726
	29  HIToolbox                           0x00007fff8b3932f6 _HandlePopUpMenuSelection7 + 596
	30  AppKit                              0x00007fff883f5161 _NSSLMPopUpCarbonMenu3 + 4153
	31  AppKit                              0x00007fff883f4116 _NSPopUpCarbonMenu3 + 39
	32  AppKit                              0x00007fff883f3dd6 -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] + 350
	33  AppKit                              0x00007fff883f2a87 -[NSPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 531
	34  AppKit                              0x00007fff883f113d -[NSControl mouseDown:] + 706
	35  AppKit                              0x00007fff88372a58 -[NSWindow sendEvent:] + 11296
	36  AppKit                              0x00007fff883115d4 -[NSApplication sendEvent:] + 2021
	37  AppKit                              0x00007fff881619f9 -[NSApplication run] + 646
	38  AppKit                              0x00007fff8814c783 NSApplicationMain + 940
	39  Fire                                0x00000001058422c8 +[Program Main::] + 664
)

Tried to delete ~/Library/Preferences/com.remobjects.oxygene.Fire and other similar files but still can’t open any project.

Curious error. -[FCECanvasCodeSnippet setup] is pretty straight forward, so i’ll do a code review to see what could be causing this.

I take it this happens with any project yo open/create? Is this your first time using Fire, or did ot work before, with older builds?

thanx,
marc

Can you check if ~/Library/Preferences/com.remobjects.oxygene.Fire.plist contains a setting for CodeEditorFont? Can you backup the file & send me a copy, then delete it and restart Fire?

The only thing i could see causing this, form what -[FCECanvasCodeSnippet setup] does, is a null font. Which i assume could be caused by (manually) getting a bad font name into this setting, or by Menlo not exiting on your system…

I’m adding some protection code against the former, to make it fall back to Menlo.

Yes, I’m the fonts guy. Did try to change the setting to another font but couldn’t get it to work. Looks like I didn’t have a custom font build to begin so I left that there and had not been updating frequently. You can get the file from http://dl.dropbox.com/u/145894/t/com.remobjects.oxygene.Fire.plist. Also, looks like I was removing the preferences file while Fire was being open and on app quit it was saving again the bad setting. Fire works again after deleting this file with Fire itself closed, thanks.

1 Like

I take it SourceCodePro did not exist on your system?

I’m using it for the terminal but don’t know how to reference it.

Ok. maybe the name isn’t exactly right, or something like that.

—marc