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.
Local host has a critical service required by most of C/C++ functionality. It is a HostInfoUtils.getHostInfo(ExecutionEnvironmentFactory.getLocal()). Getting host info is a long operation that can throw exception. To avoid catching exceptions a lot of C/C++ clients check availability of host info before getting one: HostInfo hostInfo = null; if (HostInfoUtils.isHostInfoAvailable(env)) { try { hostInfo = HostInfoUtils.getHostInfo(env); } catch (IOException | ConnectionManager.CancellationException ex) { Exceptions.printStackTrace(ex); } } This pattern resolves processing unexpected exceptions in C/C++ clients. If all clients will be use such pattern the initializing of local host info is not occurred. Local host info should initialized at startup IDE before using by C/C++ clients.
Created attachment 148873 [details] proposed patch
Need to take a look at the patch.
(In reply to Maria Tishkova from comment #2) > Need to take a look at the patch. What is result of review?