generate source error

View: New views
13 Messages — Rating Filter:   Alert me  

generate source error

by Riccardo-Maria BIANCHI-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi!

I started a new application. At start I had put a "-" within the name,
but the create-application script substituted it with a "_".

Two things:

1) the substitution did not work for "name" fields in config.json and
Manifest.json. Is it a feature or an error?

2) Now when I try to make the "source" I get the error below:

-----------------------------------------------------------------
[] ~/public$ /usr/bin/python2.6 generate.py source

============================================================================
    INITIALIZING: PLOTS-DASHBOARD
============================================================================
> >> Configuration: config.json
> >> Jobs: source
> >> Resolving config includes...
> >> Resolving jobs...
> >> Incorporating job defaults...
> >> Resolving macros...
> >> Resolving libs/manifests...

============================================================================
    EXECUTING: SOURCE::SOURCE-SCRIPT
============================================================================
> >> Scanning libraries...
  - Scanning
/afs/cern.ch/user/r/rbianchi/public_afs_web/plots/plots-dashboard...
!!! Invalid include block: [u'plots_dashboard.theme.Theme',
u'plots_dashboard.Application']
Expression gives no results. Malformed entry: plots_dashboard.Application
[] ~/public $
---------------------------------------------------------------------

Could you give me an hint? Where have I to look for the error in my my
source code?

I'm using the trunk version of qooxdoo.

Thanks,

   Ric.





------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: generate source error

by Riccardo-Maria BIANCHI-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Me again :)

I just noticed that running the generator.py I get the string:

"INITIALIZING: PLOTS-DASHBOARD"

while I checked and I do not have any occurences of the "-" name version
in my source code. But the appname is still passed as "plots-dashboard"
to the real generate.py script, it seems.

Mmmm....I'm wondering where the error is...

   Ric.



Riccardo-Maria BIANCHI wrote:

> Hi!
>
> I started a new application. At start I had put a "-" within the name,
> but the create-application script substituted it with a "_".
>
> Two things:
>
> 1) the substitution did not work for "name" fields in config.json and
> Manifest.json. Is it a feature or an error?
>
> 2) Now when I try to make the "source" I get the error below:
>
> -----------------------------------------------------------------
> [] ~/public$ /usr/bin/python2.6 generate.py source
>
> ============================================================================
>     INITIALIZING: PLOTS-DASHBOARD
> ============================================================================
>  
>>>> Configuration: config.json
>>>> Jobs: source
>>>> Resolving config includes...
>>>> Resolving jobs...
>>>> Incorporating job defaults...
>>>> Resolving macros...
>>>> Resolving libs/manifests...
>>>>        
>
> ============================================================================
>     EXECUTING: SOURCE::SOURCE-SCRIPT
> ============================================================================
>  
>>>> Scanning libraries...
>>>>        
>   - Scanning
> /afs/cern.ch/user/r/rbianchi/public_afs_web/plots/plots-dashboard...
> !!! Invalid include block: [u'plots_dashboard.theme.Theme',
> u'plots_dashboard.Application']
> Expression gives no results. Malformed entry: plots_dashboard.Application
> [] ~/public $
> ---------------------------------------------------------------------
>
> Could you give me an hint? Where have I to look for the error in my my
> source code?
>
> I'm using the trunk version of qooxdoo.
>
> Thanks,
>
>    Ric.
>
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>  


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: FIXED: generate source error

by Riccardo-Maria BIANCHI-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Ok, found the error.... :-P

Actually was due to the behaviour of the JavaScript Formatter of Eclipse
Web Tools plugin.

The autoformatter had converted this line in my source file:

---------------------------------------------
qx.Class.define(
                "plots_dashboard.Application",
                {
                    extend : qx.application.Standalone,
--------------------------------------------

--------------------------------------------
qx.Class.
              define(
                "plots_dashboard.Application",
                {
                    extend : qx.application.Standalone,
--------------------------------------------

with this extra line my class did not go into _SelfClasses, and the real
generator gave the error because it did not find it.

I disabled now the code formatter ;-)

Have a nice day,

   Ric.




Riccardo-Maria BIANCHI wrote:

> Me again :)
>
> I just noticed that running the generator.py I get the string:
>
> "INITIALIZING: PLOTS-DASHBOARD"
>
> while I checked and I do not have any occurences of the "-" name version
> in my source code. But the appname is still passed as "plots-dashboard"
> to the real generate.py script, it seems.
>
> Mmmm....I'm wondering where the error is...
>
>    Ric.
>
>
>
> Riccardo-Maria BIANCHI wrote:
>  
>> Hi!
>>
>> I started a new application. At start I had put a "-" within the name,
>> but the create-application script substituted it with a "_".
>>
>> Two things:
>>
>> 1) the substitution did not work for "name" fields in config.json and
>> Manifest.json. Is it a feature or an error?
>>
>> 2) Now when I try to make the "source" I get the error below:
>>
>> -----------------------------------------------------------------
>> [] ~/public$ /usr/bin/python2.6 generate.py source
>>
>> ============================================================================
>>     INITIALIZING: PLOTS-DASHBOARD
>> ============================================================================
>>  
>>    
>>>>> Configuration: config.json
>>>>> Jobs: source
>>>>> Resolving config includes...
>>>>> Resolving jobs...
>>>>> Incorporating job defaults...
>>>>> Resolving macros...
>>>>> Resolving libs/manifests...
>>>>>        
>>>>>          
>> ============================================================================
>>     EXECUTING: SOURCE::SOURCE-SCRIPT
>> ============================================================================
>>  
>>    
>>>>> Scanning libraries...
>>>>>        
>>>>>          
>>   - Scanning
>> /afs/cern.ch/user/r/rbianchi/public_afs_web/plots/plots-dashboard...
>> !!! Invalid include block: [u'plots_dashboard.theme.Theme',
>> u'plots_dashboard.Application']
>> Expression gives no results. Malformed entry: plots_dashboard.Application
>> [] ~/public $
>> ---------------------------------------------------------------------
>>
>> Could you give me an hint? Where have I to look for the error in my my
>> source code?
>>
>> I'm using the trunk version of qooxdoo.
>>
>> Thanks,
>>
>>    Ric.
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> qooxdoo-devel mailing list
>> qooxdoo-devel@...
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>  
>>    
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>  


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: generate source error

by Jonathan Weiß-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello Riccardo-Maria,


I am glad that you found the error.
Please note that an application name must NOT contain an hyphen ("-")!

Cheers,
Jonathan

-----
Jonathan Weiß
Framework Engineer

http://mysterycity.de/blog Blog  -  http://www.linkedin.com/in/jonathanrass
LinkedIn  -  http://www.xing.com/profile/Jonathan_Weiss5 XING
--
View this message in context: http://n2.nabble.com/generate-source-error-tp3938197p3944145.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: generate source error

by Riccardo-Maria BIANCHI-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Jonathan,

Now everything's working fine, but I still have a question.

I changed all occurrencies of "plots-dashboard" in "application" and
"name" field in my config files (config.json, Manifest.json) and
everywhere...but still I get this header with the hyphen "-" in the name
when I  run generate.py

-----------
/usr/bin/python2.6 generate.py source

============================================================================
    INITIALIZING: PLOTS-DASHBOARD
============================================================================
>>> Configuration: config.json
>>> Jobs: source
>>> Resolving config includes...
>>> Resolving jobs...
>>> Incorporating job defaults...
>>> Resolving macros...
>>> Resolving libs/manifests...
-----------


and moreover I get the "hyphen" in the <title> HTML tag of the
index.html generated.

Where this name is taken from? and Why this "hyphen version" is passed
as "appname" to the real generator script?

Thanks a lot ,

and have a nice day :-)

   Ric.






Jonathan Weiß wrote:

> Hello Riccardo-Maria,
>
>
> I am glad that you found the error.
> Please note that an application name must NOT contain an hyphen ("-")!
>
> Cheers,
> Jonathan
>
> -----
> Jonathan Weiß
> Framework Engineer
>
> http://mysterycity.de/blog Blog  -  http://www.linkedin.com/in/jonathanrass
> LinkedIn  -  http://www.xing.com/profile/Jonathan_Weiss5 XING
>  



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: generate source error

by Derrell Lipman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Nov 4, 2009 at 08:54, Riccardo-Maria BIANCHI <rbianchi@...> wrote:

I changed all occurrencies of "plots-dashboard" in "application" and
"name" field in my config files (config.json, Manifest.json) and
everywhere...but still I get this header with the hyphen "-" in the name
when I  run generate.py

The easiest way to deal with this is to use create-application.py to create a brand new application, and then copy any code you've already written from your old project into the new one. It's possible to track down everyplace that the generator used the previously-entered name, but it's likely not worth the effort. This will be quick and easy.

Cheers,

Derrell


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: generate source error

by Riccardo-Maria BIANCHI-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Ok, got it!

thanks for your answer :-)

   Ric.



Derrell Lipman wrote:

> On Wed, Nov 4, 2009 at 08:54, Riccardo-Maria BIANCHI <rbianchi@...
> <mailto:rbianchi@...>> wrote:
>
>
>     I changed all occurrencies of "plots-dashboard" in "application" and
>     "name" field in my config files (config.json, Manifest.json) and
>     everywhere...but still I get this header with the hyphen "-" in
>     the name
>     when I  run generate.py
>
>
> The easiest way to deal with this is to use create-application.py to
> create a brand new application, and then copy any code you've already
> written from your old project into the new one. It's possible to track
> down everyplace that the generator used the previously-entered name,
> but it's likely not worth the effort. This will be quick and easy.
>
> Cheers,
>
> Derrell
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>  



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: generate source error

by thron7-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Derrell is right, it's not quite worth the effort, but anyway...

> -----------
> /usr/bin/python2.6 generate.py source
>
> ============================================================================
>     INITIALIZING: PLOTS-DASHBOARD

This is from the directory name (which obviously you haven't changed), as
it is produced at a time before any config files are read :).

> and moreover I get the "hyphen" in the <title> HTML tag of the
> index.html generated.

The index.html is only modified during the run of create-application.py.
If you later need changes you have to apply them by hand.

> Where this name is taken from? and Why this "hyphen version" is passed
> as "appname" to the real generator script?

I think my above answers clarify this. The create-application.py creates a
lot of directory names and replaces placeholders in files. It's tedious to
try to change things afterwards. Derrell's advice is easier, as you "just"
have to adapt the JS source files.

T.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: generate source error

by Gene Amtower :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think one of the inherent but unstated points in the original post is why "create-application" knows enough to remove the hyphen in some places but not everywhere, resulting in a mismatch within the created application.  It would be better to fail right from the start with a harshly-chastising message (even possibly mentioning some fact about your mother) than to continue with a bad application structure, or just make the necessary name correction to complete a proper application structure.  Either way, the current in-between situation is half-done.

If we know a hyphen is disallowed, why can't the create script remove the hyphen from the name at the beginning of execution and use that cleansed value throughout the rest of the script execution?

Just my 2 cents,

   Gene

On Wed, 2009-11-04 at 22:17 +0100, thron7 wrote:
Derrell is right, it's not quite worth the effort, but anyway...

> -----------
> /usr/bin/python2.6 generate.py source
>
> ============================================================================
>     INITIALIZING: PLOTS-DASHBOARD

This is from the directory name (which obviously you haven't changed), as
it is produced at a time before any config files are read :).

> and moreover I get the "hyphen" in the <title> HTML tag of the
> index.html generated.

The index.html is only modified during the run of create-application.py.
If you later need changes you have to apply them by hand.

> Where this name is taken from? and Why this "hyphen version" is passed
> as "appname" to the real generator script?

I think my above answers clarify this. The create-application.py creates a
lot of directory names and replaces placeholders in files. It's tedious to
try to change things afterwards. Derrell's advice is easier, as you "just"
have to adapt the JS source files.

T.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: generate source error

by Riccardo-Maria BIANCHI-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi thron7,

thanks for you exhaustive and detailed answer! :-) Now I understand why
the appname variable with hyphen was passed  to the real generator even
before loading the config.json file! :-P  So it's just the directory name!

Ok, I'll re-recreate the app, in order to get a clean installation with
the proper name.

Thanks a lot,

   Ric.



thron7 wrote:

> Derrell is right, it's not quite worth the effort, but anyway...
>
>  
>> -----------
>> /usr/bin/python2.6 generate.py source
>>
>> ============================================================================
>>     INITIALIZING: PLOTS-DASHBOARD
>>    
>
> This is from the directory name (which obviously you haven't changed), as
> it is produced at a time before any config files are read :).
>
>  
>> and moreover I get the "hyphen" in the <title> HTML tag of the
>> index.html generated.
>>    
>
> The index.html is only modified during the run of create-application.py.
> If you later need changes you have to apply them by hand.
>
>  
>> Where this name is taken from? and Why this "hyphen version" is passed
>> as "appname" to the real generator script?
>>    
>
> I think my above answers clarify this. The create-application.py creates a
> lot of directory names and replaces placeholders in files. It's tedious to
> try to change things afterwards. Derrell's advice is easier, as you "just"
> have to adapt the JS source files.
>
> T.
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>  


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: generate source error

by Riccardo-Maria BIANCHI-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Gene,

yes, I agree with you.
It would be better to change the name from the beginning in order to
start the creation process with a clean value. Or crashing the creation
process at the start with an error message inviting the user to change
the application name.

Cheers,

   Ric.



Gene Amtower wrote:

> I think one of the inherent but unstated points in the original post
> is why "create-application" knows enough to remove the hyphen in some
> places but not everywhere, resulting in a mismatch within the created
> application.  It would be better to fail right from the start with a
> harshly-chastising message (even possibly mentioning some fact about
> your mother) than to continue with a bad application structure, or
> just make the necessary name correction to complete a proper
> application structure.  Either way, the current in-between situation
> is half-done.
>
> If we know a hyphen is disallowed, why can't the create script remove
> the hyphen from the name at the beginning of execution and use that
> cleansed value throughout the rest of the script execution?
>
> Just my 2 cents,
>
>    Gene
>
> On Wed, 2009-11-04 at 22:17 +0100, thron7 wrote:
>> Derrell is right, it's not quite worth the effort, but anyway...
>>
>> > -----------
>> > /usr/bin/python2.6 generate.py source
>> >
>> > ============================================================================
>> >     INITIALIZING: PLOTS-DASHBOARD
>>
>> This is from the directory name (which obviously you haven't changed), as
>> it is produced at a time before any config files are read :).
>>
>> > and moreover I get the "hyphen" in the <title> HTML tag of the
>> > index.html generated.
>>
>> The index.html is only modified during the run of create-application.py.
>> If you later need changes you have to apply them by hand.
>>
>> > Where this name is taken from? and Why this "hyphen version" is passed
>> > as "appname" to the real generator script?
>>
>> I think my above answers clarify this. The create-application.py creates a
>> lot of directory names and replaces placeholders in files. It's tedious to
>> try to change things afterwards. Derrell's advice is easier, as you "just"
>> have to adapt the JS source files.
>>
>> T.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> qooxdoo-devel mailing list
>> qooxdoo-devel@... <mailto:qooxdoo-devel@...>
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>    
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>  


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: generate source error

by thron7-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Gene Amtower wrote:
I think one of the inherent but unstated points in the original post is why "create-application" knows enough to remove the hyphen in some places but not everywhere, resulting in a mismatch within the created application.

Ah, I didn't get that. If this is the case, please open a bug report for it.

T.

  It would be better to fail right from the start with a harshly-chastising message (even possibly mentioning some fact about your mother) than to continue with a bad application structure, or just make the necessary name correction to complete a proper application structure.  Either way, the current in-between situation is half-done.

If we know a hyphen is disallowed, why can't the create script remove the hyphen from the name at the beginning of execution and use that cleansed value throughout the rest of the script execution?

Just my 2 cents,

   Gene

On Wed, 2009-11-04 at 22:17 +0100, thron7 wrote:
Derrell is right, it's not quite worth the effort, but anyway...

> -----------
> /usr/bin/python2.6 generate.py source
>
> ============================================================================
>     INITIALIZING: PLOTS-DASHBOARD

This is from the directory name (which obviously you haven't changed), as
it is produced at a time before any config files are read :).

> and moreover I get the "hyphen" in the <title> HTML tag of the
> index.html generated.

The index.html is only modified during the run of create-application.py.
If you later need changes you have to apply them by hand.

> Where this name is taken from? and Why this "hyphen version" is passed
> as "appname" to the real generator script?

I think my above answers clarify this. The create-application.py creates a
lot of directory names and replaces placeholders in files. It's tedious to
try to change things afterwards. Derrell's advice is easier, as you "just"
have to adapt the JS source files.

T.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
    

------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july

_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: generate source error

by Riccardo-Maria BIANCHI-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi T.,

yes actually the create-application.py script mismatches "name", folder
name, "application" and <title> when substituting an hyphen to an
underscore.

As you suggested, I just committed a bug report.

Have a nice day,

   Ric.



thron7 wrote:

>
>
> Gene Amtower wrote:
>> I think one of the inherent but unstated points in the original post
>> is why "create-application" knows enough to remove the hyphen in some
>> places but not everywhere, resulting in a mismatch within the created
>> application.
>
> Ah, I didn't get that. If this is the case, please open a bug report
> for it.
>
> T.
>
>>   It would be better to fail right from the start with a
>> harshly-chastising message (even possibly mentioning some fact about
>> your mother) than to continue with a bad application structure, or
>> just make the necessary name correction to complete a proper
>> application structure.  Either way, the current in-between situation
>> is half-done.
>>
>> If we know a hyphen is disallowed, why can't the create script remove
>> the hyphen from the name at the beginning of execution and use that
>> cleansed value throughout the rest of the script execution?
>>
>> Just my 2 cents,
>>
>>    Gene
>>
>> On Wed, 2009-11-04 at 22:17 +0100, thron7 wrote:
>>> Derrell is right, it's not quite worth the effort, but anyway...
>>>
>>> > -----------
>>> > /usr/bin/python2.6 generate.py source
>>> >
>>> > ============================================================================
>>> >     INITIALIZING: PLOTS-DASHBOARD
>>>
>>> This is from the directory name (which obviously you haven't changed), as
>>> it is produced at a time before any config files are read :).
>>>
>>> > and moreover I get the "hyphen" in the <title> HTML tag of the
>>> > index.html generated.
>>>
>>> The index.html is only modified during the run of create-application.py.
>>> If you later need changes you have to apply them by hand.
>>>
>>> > Where this name is taken from? and Why this "hyphen version" is passed
>>> > as "appname" to the real generator script?
>>>
>>> I think my above answers clarify this. The create-application.py creates a
>>> lot of directory names and replaces placeholders in files. It's tedious to
>>> try to change things afterwards. Derrell's advice is easier, as you "just"
>>> have to adapt the JS source files.
>>>
>>> T.
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>> trial. Simplify your report design, integration and deployment - and focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> qooxdoo-devel@... <mailto:qooxdoo-devel@...>
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>    
>> ------------------------------------------------------------------------
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> qooxdoo-devel mailing list
>> qooxdoo-devel@...
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>  
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>  


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel