This behavior is under Snow Leopard 10.6
Selecting a Ruby file with a right click, selecting "Open With" Netbeans 6.9RC2 will not open the file in the IDE. Using Open File and navigating to it will.
It also happens with the Netbeans PHP package.
"Open With >> Netbeans" (from finder) feature doesn't work, and so happens when dragging to the dock.
Java installed version is 1.6, and netbeans 6.9 too.
Tried with other Java Apps and the result was the same.
This seems like a duplicate of:
Which has been around since 06.
This is a general issue (not ruby specific as you also noted), but not sure what would be the correct component for this. So I'm assigning this to 'ide' for evaluation.
You are correct, this is not a "Ruby only" issue. I discovered it first using Ruby.
Seems this is an item that has been omitted for a long time, before this current version.
Be sure to add a vote to this issue as it is highly annoying. Even double clicking a Netbeans controlled file in Finder will not open it in the ide. The only way to open a file with the ide is by using the ides file menu.
*** Bug 88715 has been marked as a duplicate of this bug. ***
Try calling bin/netbeans --open name-of-the-file.ext from terminal. If that works, the issue is in Mac OS X installer.
PS: I don't have Mac to try it myself. CCing Tomáš to help me, if he finds some time.
(In reply to comment #8)
> Try calling bin/netbeans --open name-of-the-file.ext from terminal. If that
> works, the issue is in Mac OS X installer.
> PS: I don't have Mac to try it myself. CCing Tomáš to help me, if he finds some
I ran this command:
/Applications/NetBeans/NetBeans\ 6.9.app/Contents/MacOS/netbeans --open file.php
and it successfully opened the file in NetBeans.
The bug that I reported on 88715 is specific to .xml files.
Netbeans opens, but I am not dropped into the .xml viewer with the file loaded.
(In reply to comment #10)
> The bug that I reported on 88715 is specific to .xml files.
> Netbeans opens, but I am not dropped into the .xml viewer with the file loaded.
Yes that is the same issue. If you attempt to open a PHP, Ruby, etc. file using finder, Netbeans will start but the file will not be loaded in the IDE.
You can test this for yourself, create a php or some other file that should be handled by Netbeans and attempt to open it using finder. It should be the same behavior you reported in 88715.
*** This bug has been marked as a duplicate of bug 138943 ***
Here is a temporary work around involving AppleScript to enable drag and drop support to open files in NetBeans:
I'm posting here because it was one of the first links to show up on Google when I searched for a solution to this issue.