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 245969

Summary: Code completion for relative filesystem path offers wrong files
Product: javascript Reporter: Vladimir Riha <vriha>
Component: RequireJSAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: sample project

Description Vladimir Riha 2014-07-24 14:49:44 UTC
Created attachment 148290 [details]
sample project

Please check the attached project and open newFunction.js, it contains

define(["app/function", "../stdModule2"], function(funct ,pot) {

change it to

define(["app/function", "../"], function(funct ,pot) {

and invoke cc after the slash for the 2nd dependency, it offers files from app folder, while it should offer def folder instead




Product Version: NetBeans IDE Dev (Build 201407240001)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)