You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Christian Lenz (JIRA)" <ji...@apache.org> on 2017/07/04 12:56:00 UTC

[jira] [Created] (NETBEANS-25) Site root folder prevents using run/debug a js file inside this folder

Christian Lenz created NETBEANS-25:
--------------------------------------

             Summary: Site root folder prevents using run/debug a js file inside this folder
                 Key: NETBEANS-25
                 URL: https://issues.apache.org/jira/browse/NETBEANS-25
             Project: NetBeans
          Issue Type: Bug
          Components: javascript - Node.js
    Affects Versions: 8.2
            Reporter: Christian Lenz


I have a mixed HTML5/JS application with Node.js to create a fullstack application with NetBeans. I created a little js file, which has node.js code inside in a folder called app (name is not relevant). I set this folder to "Site root" via the project properties. After this, I was wondering, why the js file, with node code inside, doesn't have the actions "Run file" or "Debug file" when I right click in the editor or on the file. Other files outside the folder have it. So it was annoying and frustrating to find the bug and this happens only, when I set a folder to "Site root".

In my opinion, it should ALWAYS be possible to run/debug a js file in any folder. If you try to do it inside a js file, which has client side code, it should give you errors like "smth is not defined" which is fine and nothing more. NetBeans should not try to run this file inside a headless browser (Which would be pretty cool but this is an other story).

It is not a good UX to remove such actions for the same filetype only when they are in different folders. Please add those actions again to the file, even if the file is inside a folder, which was set to a site root folder.


Regards

Chris



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)