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 128341 - Run action on JavaScript files does nothing
Summary: Run action on JavaScript files does nothing
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-25 17:47 UTC by Petr Jiricka
Modified: 2011-01-28 20:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2008-02-25 17:47:50 UTC
Found when trying to reproduce issue 102853.

1. Create a new JavaScript file
2. Choose Run -> Run File -> Run "myfile.js"

The action is enabled, but does nothing. It should either do something, or remain disabled.
Comment 1 Torbjorn Norbye 2008-02-25 21:07:53 UTC
The "Run File" action is managed by the project system, not the editor. It's up to each project type to enable/disable
this action based on whether they can do something about the file type. In a Rails project, Run File is disabled for
JavaScript files. Since it was enabled for you, I assume you were looking at a web project?  If so, the web project
should disable it (or better yet, do something useful; for example, if possible, compute a URL for one of the JSPs which
includes this JavaScript file, and ask the browser to show it).
Comment 2 Petr Jiricka 2008-02-25 22:15:04 UTC
> I assume you were looking at a web project?

No, I was looking at prototype.js from the rails project.
Comment 3 Erno Mononen 2008-05-19 20:15:38 UTC
Confirmed, the action is enabled and does nothing.