Re: [Catalyst] view error - file error - MyApp_Model_MyApp_Team: not found
Curiouser and curiouser. The View class (TTSite) contains only __PACKAGE__->config, so there's not much to debug there. Comparing dump_info for situations where it works vs. doesn't work shows that one stash variable is different, and it's just something that's used in a .tt2 file for display. So there's... Waitaminit -- in that .tt2 file we were trying to implement recursive TT views via perlmonks.org/?node_id=570059 and after taking that out, all is well. SOLVED! Thanks for the dump_info tip, very nice! On Tue, Jun 22, 2010 at 5:42 PM, Tomas Doran wrote: > > On 22 Jun 2010, at 21:15, w...@serensoft.com wrote: > >> "Here's the error message, on the off-chance that it means something to >> you: view error - file error - MyApp_Model_MyApp_Team: not found" >> >> > > > Any suggestions on how to track down what might cause a VIEW ERROR like >> this? >> > > > I would very much guess that something is stamping on $c->stash->{template} > (or just setting is so that it isn't being automatically determined). > > Dump an error page (with ?dump_info=1) from each of them and check if that > stash variable is defined (and what it's set to) in each case? > > If you're manually setting the template yourself (rather than letting your > view do it for you) then Value::Canary may be handy to find out where it's > being stamped on from. Otherwise attacking your view class with some > debugging to find out how it's working out the template name (and why it's > getting it wrong) is probably the way to go. > > Cheers > t0m > > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ > -- will trillich "I think it would be worse to expect nothing than to be disappointed." -- Anne (with an 'e') Shirley ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Contributing code
On 23/06/10 01:03, Tomas Doran wrote: On 22 Jun 2010, at 08:55, Toby Corkindale wrote: I think I asked about this last time (to great silence), but.. what's the correct base path for the Git repos there? ie. git clone http://git.shadowcat.co.uk//Catalyst-Devel.git Like the CPAN search page says, it is git://git.shadowcat.co.uk/catagits/Catalyst-Devel.git (from http://search.cpan.org/dist/Catalyst-Devel/) Cheers - can I suggest that URL is added to the Contributing Code wiki page that was originally linked in this email thread? ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] view error - file error - MyApp_Model_MyApp_Team: not found
On 22 Jun 2010, at 21:15, w...@serensoft.com wrote: "Here's the error message, on the off-chance that it means something to you: view error - file error - MyApp_Model_MyApp_Team: not found" Any suggestions on how to track down what might cause a VIEW ERROR like this? I would very much guess that something is stamping on $c->stash- >{template} (or just setting is so that it isn't being automatically determined). Dump an error page (with ?dump_info=1) from each of them and check if that stash variable is defined (and what it's set to) in each case? If you're manually setting the template yourself (rather than letting your view do it for you) then Value::Canary may be handy to find out where it's being stamped on from. Otherwise attacking your view class with some debugging to find out how it's working out the template name (and why it's getting it wrong) is probably the way to go. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] view error - file error - MyApp_Model_MyApp_Team: not found
We've got a bit of a mystery here: User 1 from Team A can visit /team and see sub-teams and organize them just fine. User 2 from Team B gets a relatively low-level Catalyst error: "Here's the error message, on the off-chance that it means something to you: view error - file error - MyApp_Model_MyApp_Team: not found" We've done a serious amount of grepping and haven't found what might cause this. Odder still is that some users can access the /team url and others can't. It seems to be related to which TEAM a user belongs to... Move user X to team B, boom! Move user X to team A, all is lovely. Any suggestions on how to track down what might cause a VIEW ERROR like this? -- will trillich "I think it would be worse to expect nothing than to be disappointed." -- Anne (with an 'e') Shirley ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Contributing code
On 22 Jun 2010, at 18:26, Tomas Doran wrote: > > But I get exactly what you're saying about the clone URI - that would be > entirely useful here.. Should just be a case of setting @git_base_url_list in the overall gitweb config file. Nigel. -- [ Nigel Metheringham nigel.methering...@intechnology.com ] [ - Comments in this message are my own and not ITO opinion/policy - ] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Re: Contributing code
On Tue, 22 Jun 2010 17:01:53 +0100, Chisel wrote: > http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Catalyst-Devel.git;a=summary > is full of useful commit messages, but no help for people that would like to > check out the project as new. > I'm spoiled by github and gitosis having easy to spot, copy and use git:// > URLs for a repo clone action. For what it is worth: cgit shows clone URLs as well - I think it compares quite nicely to gitweb: * http://hjemli.net/git/cgit/ Best regards, Adam -- "My internal clock is on Tokyo time."Adam Sjøgren a...@koldfront.dk ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Contributing code
On 22 Jun 2010, at 17:01, Chisel wrote: I'm spoiled by github and gitosis having easy to spot, copy and use git:// URLs for a repo clone action. Erm, you are looking at a gitosis install :) But I get exactly what you're saying about the clone URI - that would be entirely useful here.. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Contributing code
On Tue, Jun 22, 2010 at 4:04 PM, Tomas Doran wrote: > By 'the summary page for the project', you mean something other than the > search.cpan page, right (as that does contain this info)? > > What? > If you happen upon the git repo there's no obvious git clone URL ... http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Catalyst-Devel.git;a=summary is full of useful commit messages, but no help for people that would like to check out the project as new. I'm spoiled by github and gitosis having easy to spot, copy and use git:// URLs for a repo clone action. -- Chisel e: chi...@chizography.net w: http://chizography.net ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Contributing code
On 22 Jun 2010, at 11:27, Chisel wrote: I agree that it's a bit annoying that the summary page for the project isn't more helpful by explicitly showing the clone URL and relies on a bit of educated guessing to find. By 'the summary page for the project', you mean something other than the search.cpan page, right (as that does contain this info)? What? Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Contributing code
On 22 Jun 2010, at 08:55, Toby Corkindale wrote: I think I asked about this last time (to great silence), but.. what's the correct base path for the Git repos there? ie. git clone http://git.shadowcat.co.uk//Catalyst-Devel.git Like the CPAN search page says, it is git://git.shadowcat.co.uk/ catagits/Catalyst-Devel.git (from http://search.cpan.org/dist/Catalyst-Devel/) Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Contributing code
On 06/21/2010 05:38 PM, Kieren Diment wrote: On 21/06/2010, at 11:48 PM, Sir Robert Burbridge wrote: Out of a discussion last week, I have some code to contribute (largely to Catalyst::Helper). Two quick questions: [snip q 1 ] 2) I've noticed many times in the CPAN modules I've looked through tend to be very sparsely commented (disregarding POD). I tend to do a fair bit of inline comments (maybe about 1:2 comments:code). Is there some reason I should keep comments sparse in contributed code? If you're contributing a to CPAN, then you're almost certainly contributing a reusable library. As a potential user of your library, I as a rule will want to avoid reading your source code if at all possible (there are people who don't feel this way, and code where this approach can be an exception, but for widest use, make this assumption). Given this, please ensure the POD you contribute is reasonably complete. However, I can see a role for comments in a Catalyst::Helper extension to provide educational information for other people wanting to contribute to the helper modules, so if you want to take this approach, then by all means give it a go. Yeah, I generally do two kinds of documentation: * Comments provide engineering information * POD provides API information The two are for different purposes and targeted towards different audiences. -Sir ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Contributing code
On Tue, Jun 22, 2010 at 8:55 AM, Toby Corkindale wrote: > > I think I asked about this last time (to great silence), but.. what's the > correct base path for the Git repos there? > > ie. git clone http://git.shadowcat.co.uk//Catalyst-Devel.git $ git clone git://git.shadowcat.co.uk/catagits/Catalyst-Devel.git Initialized empty Git repository in /private/tmp/Catalyst-Devel/.git/ remote: Counting objects: 2167, done. remote: Compressing objects: 100% (1059/1059), done. remote: Total 2167 (delta 1132), reused 1930 (delta 1018) Receiving objects: 100% (2167/2167), 341.08 KiB, done. Resolving deltas: 100% (1132/1132), done. mac008:tmp c.wright$ ls Catalyst-Devel/ Changes MANIFEST.SKIP lib t INSTALL.SKIP Makefile.PL share xt I agree that it's a bit annoying that the summary page for the project isn't more helpful by explicitly showing the clone URL and relies on a bit of educated guessing to find. Chiz -- Chisel e: chi...@chizography.net w: http://chizography.net ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Contributing code
On 22/06/10 00:19, Ævar Arnfjörð Bjarmason wrote: On Mon, Jun 21, 2010 at 13:48, Sir Robert Burbridge wrote: Out of a discussion last week, I have some code to contribute (largely to Catalyst::Helper). Two quick questions: 1) I've never contributed code to a project outside my work before. How do I go about it? Have you read http://wiki.catalystframework.org/wiki/contrib ? I think I asked about this last time (to great silence), but.. what's the correct base path for the Git repos there? ie. git clone http://git.shadowcat.co.uk//Catalyst-Devel.git ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/