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.

Bug 270975 - NativeExecution on Windows: umbrella bug for issues with no MinGW, Cygwin installed.
Summary: NativeExecution on Windows: umbrella bug for issues with no MinGW, Cygwin ins...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: Dev
Hardware: All Windows 10
: P3 normal (vote)
Assignee: ilia
URL:
Keywords: UMBRELLA
Depends on:
Blocks:
 
Reported: 2017-06-27 10:24 UTC by ilia
Modified: 2017-07-20 17:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ilia 2017-06-27 10:24:56 UTC
Bug for issues in NativeExecution that appear when user have no MinGW nor Cygwin installed. And for issues that appear when cygwin/mingw path differs from a default one.
Comment 1 ilia 2017-06-27 10:28:12 UTC
When trying to debug I'm getting redirected to Toolchain Options. That's good.
But when trying to attach I get "failed to parse output of ps" message and 

Caused: java.util.NoSuchElementException
	at java.util.LinkedList$ListItr.next(LinkedList.java:890)
	at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1042)
[catch] at org.netbeans.modules.cnd.debugger.common2.utils.PsProvider.getData(PsProvider.java:1019)
	at org.netbeans.modules.cnd.debugger.common2.utils.ProcessListSupport$Provider$ProcessListUpdater.run(ProcessListSupport.java:169)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
ALL [null]: Failed to parse OutputStream of ps command

stack. Maybe it's OK.
Comment 2 ilia 2017-06-27 10:31:01 UTC
1) Launching NetBeans with no cygwin/mingw installed
2) Install cygwin (well, or just move from ___cygwin64 to cygwin64)
3) Everything in nativeexecution behaves like it's not installed (because WindowsSupport has "initialized" flag and want try to re-read settings anymore).

We should trigger re-initializing of WindowsSupport after toolchain was changed...
Comment 3 ilia 2017-06-28 08:29:07 UTC
When first launched Terminal doesn't give any warning. All subsequent Terminals give a warning. Is this intended?
Comment 4 ilia 2017-06-28 08:42:55 UTC
situation in #comment 3 happens because we are in silent mode.
Comment 5 ilia 2017-06-28 09:36:19 UTC
Solution is to print 'no cygwin' message in a Termainl when invoking the Terminal.
Comment 6 Quality Engineering 2017-07-20 17:52:23 UTC
Integrated into 'main-silver', will be available in build *201707201608* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4dfb5f48a892
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixed #Comment 2 in #270975 - NativeExecution on Windows: umbrella bug for issues with no MinGW, Cygwin installed.