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 125177 - Run/debug disabled for non source/test folders
Summary: Run/debug disabled for non source/test folders
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-13 21:05 UTC by itmozart
Modified: 2009-08-25 15:33 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 itmozart 2008-01-13 21:05:55 UTC
Reproducible.

If in a project a ruby file is inside a folder which is not source or test => the run menu shows run/debug as disabled
and test/debug as enabled.

This doesn't make sense, as there is no reason to assume that a file outside of the mentioned folders is necessarily a
test; run and test should be either both or none enabled.
Comment 1 Martin Krauskopf 2008-02-28 11:02:27 UTC
I have an additional source root 'lib-tools' in my project. Everything/everywhere is enabled for me. Could you specify
in more detail the setup of your project and exactly which menu items do you mean (main, context menu, ...). Thanks.
Comment 2 itmozart 2008-03-01 14:29:59 UTC
Instructions:

- switch to "file" view
- create a folder, but don't mark it as a source/test
- create a ruby file
- menu: run->run file --> only test related items are enabled!

as the description you gave me, your lib-tools is a _source_ folder.
Comment 3 itmozart 2008-03-01 14:33:56 UTC
I took a snapshot of the screen:

http://www.flickr.com/photos/24300703@N06/2301540097/sizes/o/

Saverio
Comment 4 Martin Krauskopf 2008-03-11 11:27:11 UTC
I see, thanks for details. Technically, very likely the same as issue 91402. But in this case we could detect that file
belongs to the project and thus having the project-context. Will have to explore. Probably tweaking something like FOQI
(note for me).
Comment 5 Martin Krauskopf 2008-09-26 09:15:38 UTC
Confirmed in the code, that we are only iterating sources which are mapped in the project properties, lib, test, ... by
default.
I can get to this after I get back from vacation. I'm not sure whether there will not be more important task after I get
back. But hopefully will do this for 6.5.
Comment 6 Erno Mononen 2009-08-25 15:33:21 UTC
The fix for issue 91402 handles this case too.