NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
EXcluding directories from project


Joined: 26 Sep 2006
Posts: 11
Reply with quote
Is there a way that I can exclude certain directories from a project?

For most projects, I use adodb as a database abstraction layer and therefore, it is available in the source tree of each of my projects. The code explorer gets completely unusable though, because there are about a million classes from adoDB listed there, so that I can't find my own classes. Moreover, tag insight is also clogged with all kinds of constants, classes and methods from adoDB that I never use.

Hope you can help me ... it's a shame that some of the most useful features of PhpED are now wasted because of this.

Kind regards,

Robert.
View user's profileFind all posts by gvanhSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Just move those library off the project tree. Is there a reason to have it there?

Note, that in most cases, people _want_ to get such libraries shown in the code explorer and be used in code completion dropdown. So...
Smile


Last edited by dmitri on Wed Sep 27, 2006 5:08 am; edited 2 times in total
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 26 Sep 2006
Posts: 11
Reply with quote
Sure there's a reason to have it there ... the library is part of the website. Without the library in-place ... no DB features are available.

Only possible way to move it out of the project (as I see it now) is moving it out of the directory that is used as the project-root ... am I right?
So there is NOT an option in PhpED to just move it out of the PROJECT TREE in PhpED but keep it inside the DIRECTORY on my harddrive?
View user's profileFind all posts by gvanhSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Right, it's clear. But it does not mean that the library must be in the project tree Smile
It also does not mean that it must be in the WEB directory tree (under htdocs)
More over, it's safer to get it off the web tree. I'm not sure of AdoDB, but many other libraries does not (or not too well) protect themselves from direct usage.

Regarding projects in PhpED, they are directory-based and what directory contains is part of the project. But you can hide directories by listing their names in the "hide directories" list. (see project properties)

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 26 Sep 2006
Posts: 11
Reply with quote
Yeah ... I indeed saw the "hide" feature in the Project properties.

Hiding directories though, does not mean that they are also excluded from the Code Explorer ... right?
View user's profileFind all posts by gvanhSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
They will be excluded on the next re-parse. To initiate it just click Refresh in the Code Explorer popup.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 26 Sep 2006
Posts: 11
Reply with quote
Somehow ... in my Project view ... the directories that I have indicated as "hidden", do not disappear from the tree ... no matter how often I refresh the project.

I probably have something wrong in the syntax.

- My project-root is: x:\projectroot
- The directory I want to hide is: x:\projectroot\cms\lib\adodb

I have tried (in the field for project properties called "Hide directories":

- x:\projectroot\cms\lib\adodb\;
- x:\projectroot\cms\lib\adodb;
- cms\lib\adodb\;
- cms\lib\adodb;
- \cms\lib\adodb\;
- cms\lib\adodb\;

None of these actually hide the directories in the project tree.

Am I doing something wrong?
View user's profileFind all posts by gvanhSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
just add adodb to the list, like below:

CVS;.svn;adodb

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 26 Sep 2006
Posts: 11
Reply with quote
Ah! It has now indeed been removed from the project-tree. But the code-explorer still shows all the adodb classes, even after countless refreshes and after restarting the program.
View user's profileFind all posts by gvanhSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
that's tough day Smile

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
EXcluding directories from project
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
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic