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 267519 - MSYS2 works badly in IDE
Summary: MSYS2 works badly in IDE
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 8.2
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-10 09:15 UTC by soldatov
Modified: 2016-09-02 11:19 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 soldatov 2016-08-10 09:15:21 UTC
QA has Windows machine with MinGW/MSYS2, but 2 problems breaks a lot of tests.

Problem 1:
- Create Welcome project
- Build and Run project
===>
Unable to start pty process: The application failed with exit code -1073741515 (0xc0000135). 
      This could indicate that no required .dll was found in the PATH. 
      Please try to start the following command from the command shell (cmd.exe). 
      This may give some additional information. 
      --set-erase-key "C:\\msys64\\usr\\bin\\bash.exe" "-c" "exec /C/Users/apepin/Documents/NetBeansProjects/Welcome_1/dist/Debug/MinGW-Windows/welcome_1.exe \"arg 1\" \"arg 2\" \"arg 3\" \"arg 4\"" 

RUN FAILED (exit value -2, total time: 125ms)

Workaround: use External Terminal or Standard Output

Problem 2:
- Create Welcome project
- Call Project Properties window
- Set Run|Console Type = Standard Output
- Select Launchers category
- Press New button
- Set Run Command = echo AAA
===>
      0 [main] echo 53840 C:\msys64\usr\bin\echo.exe: *** fatal error - error while loading shared libraries: /C/hudson/workspace/cnd-test-win8-mingw/netbeans/ide/bin/nativeexecution/Windows-x86_64/unbuffer.dll: cannot open shared object file: No such file or directory
   2191 [main] echo 53840 cygwin_exception::open_stackdumpfile: Dumping stack trace to echo.exe.stackdump

RUN LAUNCHER1000 FAILED (exit value 256, total time: 132ms)

Workaround: use External Terminal only
Comment 1 soldatov 2016-08-10 09:26:24 UTC
https://sourceforge.net/p/msys2/wiki/How%20does%20MSYS2%20differ%20from%20Cygwin/
====================================================================================
Runtime

Cygwin provides a runtime library called cygwin1.dll that provides the POSIX compatibility layer where necessary. The MSYS2 variant of this library is called msys-2.0.dll and includes the following changes to support using native Windows programs:
====================================================================================