This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
OpenSolaris Use a binary with the name a.out (default Unix name) and try to create a Project from Binary File from this file. It is not listed in the binary browser "Select Binary File" that is one of the steps in the wizard. Feel free to downgrade to P3 as you can type manually it in and it then works.
On Mac a.out is also not listed but the *directory* called a.out.dSYM is! It should not list a.out.dSYM as a choice on a Mac.
fixed, change set: http://hg.netbeans.org/cnd-main/rev/4cb642c36017
Mac: yes, a.out is now in the browser but if you select it, an error message like this is displayed: File /Users/thp/NetBeansProjects/Aout/a.out not found The file is there :-). Also, a.out.dSYM is still a choice on the Mac. It should not.
Thomas please investigate root cause of problem in Mac.
OK, here is what is happening: You read a.out correctly. Since it is compiled like this: "g++ -g welcome.cc", it is using a temp .o file and (I think) you correctly get the name of this .o file and try to read it. It doesn't exist (perhaps been deleted?) and it throws an IO exception with File Not Found. You intercept the IO exception and erroresly assumes it is a.out that is not found but in fact it is the temp .o file. The message in the original IO exception says: "/var/folders/Ep/EpjGWDtEHbadC3uWH1mBAU++BK+/-Tmp-/ccRe6Uqw.o (No such file or directory)" Here is stack trace when the original IO exception is thrown: org.netbeans.modules.cnd.dwarfdump.reader.MyRandomAccessFile.<init>(MyRandomAccessFile.java:62) org.netbeans.modules.cnd.dwarfdump.FileMagic.<init>(FileMagic.java:60) org.netbeans.modules.cnd.dwarfdump.Dwarf.<init>(Dwarf.java:85) org.netbeans.modules.cnd.dwarfdump.Dwarf$MacArchiveIterator.advanceArchive(Dwarf.java:381) org.netbeans.modules.cnd.dwarfdump.Dwarf$MacArchiveIterator.<init>(Dwarf.java:335) org.netbeans.modules.cnd.dwarfdump.Dwarf.iteratorCompilationUnits(Dwarf.java:139) org.netbeans.modules.cnd.dwarfdiscovery.provider.BaseDwarfProvider.sizeComilationUnit(BaseDwarfProvider.java:226) org.netbeans.modules.cnd.dwarfdiscovery.provider.AnalyzeExecutable.canAnalyze(AnalyzeExecutable.java:218) org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.isApplicableDwarfExecutable(DiscoveryExtension.java:168) org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.isApplicable(DiscoveryExtension.java:123) org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.discoverArtifacts(DiscoveryExtension.java:86) org.netbeans.modules.cnd.makeproject.ui.wizards.SelectBinaryPanelVisual$5.run(SelectBinaryPanelVisual.java:209) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968) and you catch it at: org.netbeans.modules.cnd.dwarfdiscovery.provider.BaseDwarfProvider.sizeComilationUnit(BaseDwarfProvider.java:322) org.netbeans.modules.cnd.dwarfdiscovery.provider.AnalyzeExecutable.canAnalyze(AnalyzeExecutable.java:218) org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.isApplicableDwarfExecutable(DiscoveryExtension.java:168) org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.isApplicable(DiscoveryExtension.java:123) org.netbeans.modules.cnd.discovery.wizard.DiscoveryExtension.discoverArtifacts(DiscoveryExtension.java:86) org.netbeans.modules.cnd.makeproject.ui.wizards.SelectBinaryPanelVisual$5.run(SelectBinaryPanelVisual.java:209) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968) Back to you. I can help fixing it if you point me in the right direction. I will attach the a.out. Perhaps that is enough.
not a critical bug to fix. Removed fix-in-nb701.
Created attachment 108013 [details] a.out (Mac)
Thomas please attach folder with build artifacts (all files including a.out.dSYM). By the way mac executable does not included dwarf information. Discovery try to detect object files which were liked at build time. If object file dos not exist discovery is failed. Probably discovery should use another algorithm for finding dwarf information. For example in a.out.dSYM. IMHO it is an enchantment.
Integrated into 'main-golden', will be available in build *201104290000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/4cb642c36017 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #198154 Project from Binary File doesn't list a.out as a choice in binary browser (Solaris)
fix for Mac http://hg.netbeans.org/cnd-main/rev/4b1316d04082
Integrated into 'main-golden', will be available in build *201105050000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/4b1316d04082 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #198154 Project from Binary File doesn't list a.out as a choice in binary browser (Solaris)