Curious java error, related to github?

I just started using Github on my mac. (OSX 10.6.8, Arduino 1.0.1, Java 1.6.0_33)

When I double click an .ino file in my git repository, Arduino launches with a empty window.
If I use ‘file/open’ and navigate to the .ino file, I get the java error message below.
If I drag the .ino file into the window, it successfully opens in a new tab, and can be edited and uploaded, but save and save as are disabled.

The IDE works as usual with files in folders other than the git repository.

The git repo folder is also being synced by Dropbox.

Here’s the error:

Exception in thread “AWT-EventQueue-0” java.lang.ArrayIndexOutOfBoundsException: 0
at processing.app.Sketch.setCurrentCode(Sketch.java:1182)
at processing.app.Sketch.load(Sketch.java:220)
at processing.app.Sketch.(Sketch.java:142)
at processing.app.Editor.handleOpenInternal(Editor.java:2157)
at processing.app.Editor.(Editor.java:304)
at processing.app.Base.handleOpen(Base.java:704)
at processing.app.Base.handleOpen(Base.java:669)
at processing.app.macosx.ThinkDifferent.handleOpenFile(ThinkDifferent.java:99)
at com.apple.eawt._AppEventLegacyHandler$5.dispatchEvent(_AppEventLegacyHandler.java:122)
at com.apple.eawt._AppEventLegacyHandler.sendEventToEachListenerUntilHandled(_AppEventLegacyHandler.java:168)
at com.apple.eawt._AppEventLegacyHandler.openFiles(_AppEventLegacyHandler.java:120)
at com.apple.eawt._AppEventHandler$_OpenFileDispatcher.performUsing(_AppEventHandler.java:353)
at com.apple.eawt._AppEventHandler$_OpenFileDispatcher.performUsing(_AppEventHandler.java:344)
at com.apple.eawt._AppEventHandler$_AppEventDispatcher$1.run(_AppEventHandler.java:489)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:682)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:643)
at java.awt.EventQueue$1.run(EventQueue.java:641)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:652)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

When I double click an .ino file in my git repository…

Is the repository in the sketchbook directory?

I have the same setup. Github on Mac, files stored in a Dropbox folder. I have no issues opening the sketches in the IDE.

OK, I fixed it - I think it was connected with the way Github likes folders with words separated by hyphens, while arduino likes folders separated by underscores.

I’d some some pointless tidy-up folder renaming, and that broke the system.

Thank you for your patience!

(My new repo at https://github.com/TomWhitwell btw)