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

Summary: Completion for file path offers unrelated folder
Product: javascript Reporter: Vladimir Riha <vriha>
Component: Node.jsAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: tmysik
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: sample project
sample project #2

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)