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 178895 - [symfony] the cache folder should not be hidden
Summary: [symfony] the cache folder should not be hidden
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Symfony (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-20 02:50 UTC by victorberchet
Modified: 2010-04-08 15:02 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description victorberchet 2009-12-20 02:50:52 UTC
When creating a symfony project, the /cache folder is not accessible in the Project View.

I think this is a 'feature' but there must be a way to disable it:

When using scaffolding (symfony <orm>:generate-admin) the resulting base module is generated in the cache folder: /cache/<application>/<env>/modules/auto<module>.

However as the cache folder is hidden:
- it is not possible to examine the code (you can workaround this one by using the file view),
- however code completion would not work anymore because the generated module (/<application>/modules/<module>) extends the base module classes which are located inside the cache folder.

Solution: do not hide the /cache folder or at least make this configurable.

Thanks,
Victor
Comment 1 Tomas Mysik 2009-12-21 15:48:39 UTC
I see - hmm, but then it can happen that some classes will be indexed twice, won't they? If I'm right, then the only solution I can see right now is to add option to the project properties.

Thanks for reporting.
Comment 2 victorberchet 2009-12-22 01:53:03 UTC
Tomas,

I don't think any class would be indexed twice: 

- when a module a generated in cache, the base class are generated there. Your actual module (the one in your /app/modules folder) extends those base classes but do not redefine them.

- otherwise the cache contain html fragment and some php code but no other classes.

However I still think it's a good option to make this optional.
Comment 3 vsamoletov 2010-02-20 08:15:49 UTC
(In reply to comment #0)
> When creating a symfony project, the /cache folder is not accessible in the
> Project View.
> 
> I think this is a 'feature' but there must be a way to disable it:
> 
> When using scaffolding (symfony <orm>:generate-admin) the resulting base module
> is generated in the cache folder:
> /cache/<application>/<env>/modules/auto<module>.
> 
> However as the cache folder is hidden:
> - it is not possible to examine the code (you can workaround this one by using
> the file view),
> - however code completion would not work anymore because the generated module
> (/<application>/modules/<module>) extends the base module classes which are
> located inside the cache folder.
> 
> Solution: do not hide the /cache folder or at least make this configurable.
> 
> Thanks,
> Victor

Agree, very strange decision to hide "cache" folder. 
Many parts of auto-generated code located there.
Comment 4 vsamoletov 2010-02-20 08:24:42 UTC
Notice, that if switch to Files window (press "ctrl+2") "cache" folder is visible.
Comment 5 Tomas Mysik 2010-03-30 09:08:11 UTC
Fixed, one can uncheck "Ignore cache Directory" in Project Properties dialog.
http://hg.netbeans.org/web-main/rev/e3772e31cc46
Comment 6 Quality Engineering 2010-04-02 04:55:09 UTC
Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e3772e31cc46
User: Tomas Mysik <tmysik@netbeans.org>
Log: #178895: [symfony] the cache folder should not be hidden
Comment 7 Filip Zamboj 2010-04-08 15:02:52 UTC
v/c
Product Version: NetBeans IDE Dev (Build 100408-3b9f0af64f40)