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 247708 - Completion for file path offers unrelated folder
Summary: Completion for file path offers unrelated folder
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Node.js (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-06 07:42 UTC by Vladimir Riha
Modified: 2015-02-11 08:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (2.82 KB, application/zip)
2014-10-06 07:42 UTC, Vladimir Riha
Details
sample project #2 (25.15 KB, application/zip)
2015-02-10 08:57 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-10-06 07:42:59 UTC
Created attachment 149724 [details]
sample project

Please check the attached project and open app/maingt.js. If you invoke cc at

var o1 = require("../^folder/literal");

it offers folder src (Sources folder) which is not correct as "../src" does not exist. 


Thank you


Product Version: NetBeans IDE Dev (Build 201410060001)
Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2015-02-10 08:57:20 UTC
Created attachment 151912 [details]
sample project #2

It can be pretty confusing if you are not 100% sure about the project structure. Please check the attached project and open Sources/modex/cc/test.js:
- if you invoke cc in require("^"), it should offer current folder + node_modules, but it also offers parent folders cc and modex
- if you invoke cc in require("../^"), it should just "cc" folder, but it also offers folders from project root



Product Version: NetBeans IDE Dev (Build 201502090001)