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.
Summary: | Toolchain validation gets stuck (Windows) | ||
---|---|---|---|
Product: | cnd | Reporter: | phansson |
Component: | execution | Assignee: | ilia |
Status: | NEW --- | ||
Severity: | normal | CC: | alexvsimon, merlinyoung |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
phansson
2015-07-14 08:45:41 UTC
Arghh. When referring to "the second warning" I meant this: INFO [nativeexecution.support.logger]: [439886 ms.] Failed to call nbstart -- . ... which is technically not a warning. :-) At the moment I'm dealing with the problem by disabling Toolchain Validation all together. I put the following in by netbeans.conf: netbeans_default_options="........ -J-Dcnd.toolchain.validator.disabled=true" I've tracked down the problem to be a faulty MSYS2. The IDE is very non-verbose as to what it is doing so you'll have to resort to some other tool to figure out which external process (and its command line) the IDE is trying to execute. If you are on Windows the the Microsoft Process Explorer (from SysInternals suite) is an excellent tool for the purpose). Then try to execute that same command as the IDE is trying to execute, but from a command prompt. Although the problem in my case is not related to the IDE I'll leave this ticket open as I believe the IDE could be a lot more verbose as to what it is doing for example by always calling progressHandle.progress("Executing : xxx") where xxx is the native command it is trying to execute. Native execution is always error prone. (In reply to phansson from comment #3) > Although the problem in my case is not related to the IDE I'll leave this > ticket open as I believe the IDE could be a lot more verbose as to what it > is doing for example by always calling progressHandle.progress("Executing : > xxx") where xxx is the native command it is trying to execute. Native > execution is always error prone. Two flags log execution: -J-Dcnd.toolchain.personality.trace=true -J-Dnativeexecution.support.logger.level=FINEST Are flags help? No, the flags does not tell me more. The problem is that there's no logging statement in the Java code that says *WHAT* the command line being executed is. As I said: executing native commands from Java is always going to be error prone so you better add lots of logging. :-) BTW: I've also added answer on the SO question in case anyone stumbles on it: http://stackoverflow.com/questions/27756938/netbeans-running-validating-tool-collection-on-localhost-forever Integrated into 'main-silver', will be available in build *201507150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/fe8e81b2fa64 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixing Bug #253458 Toolchain validation gets stuck (Windows) - do not get host info if there is no tool collections User from cnd forums reported that the same issue was caused by antivirus software (McAfee) and was solved after disabling it. *** Bug 270273 has been marked as a duplicate of this bug. *** |