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 269853

Summary: In launchers user can't use environment variable value in new environment variable
Product: cnd Reporter: soldatov <soldatov>
Component: ProjectAssignee: Alexander Simon <alexvsimon>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2017-02-17 13:50:31 UTC
Simple test scenario:
- C code:

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(int argc, char**argv) {
    printf("%s\n", getenv("AAA"));
    return 0;
}

- Call Project Properties window
- Select Launchers category
- Press New button
- Press Add button in Environment Variables table
- Type 'AAA' in left column, type '$PATH' in right column
- Press OK button
- Build project
- Call context menu and select 'Run|Launcher1000' menu item
==> In "ProjectName (Run launcher1000)" tab I see "${PATH}" instead of real PATH value
Comment 1 soldatov 2017-02-17 14:06:43 UTC
Really I can't fix 1 test on Windows. Test creates "Subproject Application" sample (1 executable, 2 static libraries and 2 dynamic libraries). Also test creates new launcher in 'hello3lib' project. But I can't launch my launcher, because "main.exe: error while loading shared libraries: libhello3lib.dll: cannot open shared object file: no such file or directory" message appears. Into launcher I added "PATH=%PATH%;C:/.../library1.dll;C:/.../library2.dll", but IDE ignores such workaround.
Comment 2 Alexander Simon 2017-03-20 14:06:23 UTC
fixed in enum, branch release82, changeset ee9234eee8f1
Comment 3 Quality Engineering 2017-03-24 02:52:53 UTC
Integrated into 'main-silver', will be available in build *201703240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b9efccdba845
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #269853 In launchers user can't use environment variable value in new environment variable
(transplanted from ee9234eee8f1fada6b28d992a7f3de20aa6551c6)
Comment 4 ilia 2017-04-12 12:47:26 UTC
https://netbeans.org/bugzilla/show_bug.cgi?id=269853 Changesets:
    http://hg.netbeans.org/releases/rev/ee9234eee8f1 # fixed Bug #269853 In launchers user can't use environment variable value in new environment variable
Comment 5 Alexander Pepin 2017-04-26 17:45:08 UTC
Verified in netbeans-8.2-20170424.