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 271435 - Adding Angular modules causes debugger to hang on multiple restarts
Summary: Adding Angular modules causes debugger to hang on multiple restarts
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-06 06:52 UTC by joeshmoe666
Modified: 2017-09-07 06:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file I was told to attach by the IDE (52.73 KB, application/octet-stream)
2017-09-06 06:52 UTC, joeshmoe666
Details

Note You need to log in before you can comment on or make changes to this bug.
Description joeshmoe666 2017-09-06 06:52:36 UTC
Created attachment 165092 [details]
Log file I was told to attach by the IDE

I created a simple project to show the problem.  The project contains an app.js file as follows :

var express = require('express');
var app = express();

app.use(express.static(__dirname + '/public'));

app.listen(3000);
console.log("Listening on port 3000");

and a package.json as follows:

{
  "name": "mys",
  "version": "0.0.1",
  "description": "Mysite",
  "main": "app.js",
  "author": "Me",
  "license": "BSD-2-Clause",
  "dependencies": {
    "express": "^4.8.0"
  }
}

With this setup I can start, stop and restart the debugger multiple times and memory usage stays around 600Mb with no problems.

I then add the following to the dependicies section of package.json and do an npm install:

    "@angular/animations": "~4.3.1",
    "@angular/common": "~4.3.1",
    "@angular/compiler": "~4.3.1",
    "@angular/compiler-cli": "~4.3.1",
    "@angular/core": "~4.3.1",
    "@angular/forms": "~4.3.1",
    "@angular/http": "~4.3.1",
    "@angular/platform-browser": "~4.3.1",
    "@angular/platform-browser-dynamic": "~4.3.1",
    "@angular/platform-server": "~4.3.1",
    "@angular/router": "~4.3.1",
    "@angular/tsc-wrapped": "~4.3.1",
    "@angular/upgrade": "~4.3.1",
    "angular-in-memory-web-api": "~0.3.2",
    "core-js": "^2.4.1",
    "rxjs": "^5.1.0",
    "systemjs": "0.19.39",
    "zone.js": "^0.8.4"

I am using ngignore and have .nbignore in my node_modules folder.

When I attempt to start, stop and restart the debugger multiple times with the above modules installed, it will increase its memory usage to over 1Gb quickly and then hang.

I do not understand why adding the Angular modules causes the debugger to hang when my app.js does not even reference any modules other than express.  I also tried deleting the package.json file but left the modules installed and this did not help.

Any help would be appreciated since I cannot continue development on my Angular project using Netbeans at this time.  I also attempted to report this directly thru the IDE but it hung trying to upload and recommended I enter it directly on this site and attach the messages.log.1.

Thanks
Comment 1 joeshmoe666 2017-09-07 06:44:10 UTC
I now realize that if I move the node_modules folder up out of the project root, or point the project src to a folder under the root, it works fine.

Not sure now if this is a bug or just a problem in how I am setting up my project ?

Thanks