FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Additional Path(s) for Autocomplete to Scan

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
comctrl6



Joined: 22 Jul 2009
Posts: 4

PostPosted: Fri Aug 21, 2009 2:12 am    Post subject: Additional Path(s) for Autocomplete to Scan Reply with quote

I have a Rails 2.0.2 project that is utilizing engines. The bulk of the code (models and stable controllers) are in the vendor/plugin/engine_name/app directory under their respective directories (e.g. the "controllers" directory contains controllers, "models" contains models, ...).

NetBeans doesn't scan these libraries to find any of the code, and as a result, the auto complete feature doesn't point to any of the methods and classes located there.

Is there a way to specify additional directories for the auto complete functionality to scan?

Also, while we're at it, can this serve as a feature request for NetBeans to automatically scan everything in the plugins directory so the auto complete can be a bit more helpful?
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Fri Aug 21, 2009 7:48 am    Post subject: Additional Path(s) for Autocomplete to Scan Reply with quote

Hi,

Can you please try whether setting the ruby.include_nonlib_plugins
property to true would help as a workaround? You can do that by adding

-J-Druby.include_nonlib_plugins=true

to netbeans_default_options in <nb install dir>/etc/netbeans.conf

The problem here is probably that by default the IDE only scans the lib
dirs of plugins, so for engines it doesn't work too well. I'll try to
address this for 6.8.

Let me know whether the property helps,

Erno

comctrl6 wrote:
Quote:
I have a Rails 2.0.2 project that is utilizing engines. The bulk of the code (models and stable controllers) are in the vendor/plugin/engine_name/app directory under their respective directories (e.g. the "controllers" directory contains controllers, "models" contains models, ...).



NetBeans doesn't scan these libraries to find any of the code, and as a result, the auto complete feature doesn't point to any of the methods and classes located there.



Is there a way to specify additional directories for the auto complete functionality to scan?



Also, while we're at it, can this serve as a feature request for NetBeans to automatically scan everything in the plugins directory so the auto complete can be a bit more helpful?











Back to top
comctrl6



Joined: 22 Jul 2009
Posts: 4

PostPosted: Fri Aug 21, 2009 9:32 pm    Post subject: Reply with quote

This is exactly what I needed. It works perfectly! Thank you so much. It'll make it so much easier now that I can just command-click the method names and classes and don't have to do a search project for every symbol that's in the engine directory.

May I suggest a checkbox in the Miscellaneous -> Ruby tab of the preferences that toggles this feature. Much like the "Enable Extended Type Interference" options?

For me the scanning step of the initial IDE startup took a bit longer than usual, but this is completely understandable, since all directories in the plugins folder are now being scanned. However, a soft warning, much like the one in the above mentioned options ("May be slow"), would suffice, I think.

Thanks again!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB