PDA

View Full Version : [OPEN] Sencha Command v5.0.0.116 fails to work when following the 'getting started' guide



psainsbury
10 Apr 2014, 5:37 AM
Ext version tested:

Ext 5.0.0.736
Sencha Command 5.0.0.116
Browser versions tested against:

Chrome 33
FF28
Steps to reproduce the problem:

Follow instructions from: http://docs.sencha.com/extjs/5.0.0/getting_started/getting_started.html
sencha generate app -ext MyApp ./app
cd app
sencha app watch
Open browser at: http://localhost:1841
The result that was expected:

I expected to see the default application page
The result that occurs instead:

I see an empty page.
Extra Details
I checked in Chrome Dev tools and the page I'm getting back from Sencha Command is empty, no content at all.

I get the following warning when the page is loaded in a browser:
HttpParser Full for SCEP@1279389{l(/0:0:0:0:0:0:0:1:10268)<->r(/0:0:0:0:0:0:0:1:1841),d=true,open=true,ishut=false
,oshut=false,rb=false,wb=false,w=true,i=1r}-{AsyncHttpConnection@1b9f7df,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParse
r{s=-1,l=5846,c=-3},r=0}

But other than that there are only warnings about sass not finding some images.

I rather expected that the instructions in the "getting started guide" would at least work without need for configuration/changes/research/debugging.

psainsbury
10 Apr 2014, 6:02 AM
While posting this I was directed to a login page and then back to the forum home page, and when I got back I saw that it hadn't posted... so I posted again (I'll delete that one when it comes up)

Here's the details I'd put in the other one (after finding that apparently I need to post a bunch more info when running Sencha Command)
REQUIRED INFORMATION

Sencha Cmd version(s) tested:

Sencha Cmd 5.0.0.116
Operating System:

Win8 Pro
Framework used:

Ext JS 5.0.0.736
Description:

I follow the steps on the 'Getting Started Guide' (http://docs.sencha.com/ext/5.0.0/getting_started/getting_started.html)
After issuing the commands:

sencha generate app -ext MyApp ./app
cd app
sencha app watch

I load up http://localhost:1841
I get a blank page, and not the example site
Diagnostic Output:
The output from sencha diag show:


Sencha Cmd v5.0.0.116
[INF] app.archivePath : archive
[INF] app.build.dir : C:\Playground\ExtJS5\app/build/MyApp
[INF] app.classpath : C:\Playground\ExtJS5\app/app
[INF] app.cmd.version : 5.0.0.116
[INF] app.config.dir : C:\Playground\ExtJS5\app\.sencha\app
[INF] app.dir : C:\Playground\ExtJS5\app
[INF] app.framework : ext
[INF] app.framework.version : 5.0.0.736
[INF] app.id : 9f05cf0d-08bd-4c16-9a6d-7ae6f312df1a
[INF] app.indexHtmlPath : index.html
[INF] app.name : MyApp
[INF] app.page.file : C:\Playground\ExtJS5\app/index.html
[INF] app.page.name : index.html
[INF] app.requires.names : sencha-core,ext
[INF] app.requires.packages : C:\Playground\ExtJS5\app\ext\packages\sencha-core,C:\Playground\ExtJS5\app\ext
[INF] app.resource.paths : C:\Playground\ExtJS5\app/resources
[INF] app.sass.etcpath : C:\Playground\ExtJS5\app/sass/etc/all.scss
[INF] app.sass.namespace : MyApp
[INF] app.sass.srcpath : C:\Playground\ExtJS5\app/sass/src
[INF] app.sass.varpath : C:\Playground\ExtJS5\app/sass/var
[INF] app.theme : ext-theme-neptune
[INF] buildenvironment.dir : C:\Playground\ExtJS5\app
[INF] buildenvironment.load.dir : C:\Playground\ExtJS5\app
[INF] cmd.config.dir : C:\Users\paul\bin\Sencha\Cmd\5.0.0.116
[INF] cmd.dir : C:\Users\paul\bin\Sencha\Cmd\5.0.0.116
[INF] cmd.framework.minver : 5.0.0
[INF] cmd.framework.version : 99.99
[INF] cmd.jvm.args : -Xms128m -Xmx1024m -Djava.awt.headless=true
[INF] cmd.merge.tool.args.araxis : -wait -merge -3 -a1 {base} {user} {generated} {out}
[INF] cmd.merge.tool.args.kdiff3 : {base} {user} {generated} -o {out}
[INF] cmd.merge.tool.args.p4merge : {base} {user} {generated} {out}
[INF] cmd.merge.tool.args.smartsync : {user} {generated} {base}
[INF] cmd.merge.tool.args.sourcegear : --merge --result={out} {user} {base} {generated}
[INF] cmd.merge.tool.args.tortoise : -base:{base} -theirs:{generated} -mine:{user} -merged:{out}
[INF] cmd.minver : 5.0.0.0
[INF] cmd.platform : windows
[INF] cmd.server.port : 1841
[INF] cmd.version : 5.0.0.116
[INF] cmd.web.port : 1841
[INF] ext.dir : C:\Playground\ExtJS5\app/ext
[INF] framework.classpath : C:\Playground\ExtJS5\app\ext/src
[INF] framework.cmd.minver : 4.0.0
[INF] framework.cmd.version : 5.0.0.53
[INF] framework.compatVersion : 4.0
[INF] framework.config.dir : C:\Users\paul\bin\Sencha\Cmd\5.0.0.116\plugins\ext\current
[INF] framework.creator : Sencha
[INF] framework.detailedDescription : Sencha Ext JS JavaScript Framework
[INF] framework.dir : C:\Playground\ExtJS5\app\ext
[INF] framework.format : 1
[INF] framework.name : ext
[INF] framework.packages.dir : C:\Playground\ExtJS5\app\ext/packages
[INF] framework.signatures.0.algorithm : SHA1withRSA
[INF] framework.signatures.0.created : 2014-04-03T04:19:00Z
[INF] framework.signatures.0.name : Sencha
[INF] framework.signatures.0.nonce : xO67zYfNFNE=
[INF] framework.signatures.0.signature : MxU2rP/5k/Fc6DFBq+5wprp2mSwdTw3VSbvFwCuDTHlO3pzJVTn3GtpI7WjnJU7jD1eSo7A7kWbJZAjX0hYNt7aFU78un/OJhvDzZ2q7ORORhh8rkGs1ZVtT9l1b/JtiYuKBGg64cJ16Rnk0Iu/MtbVNx+VbLoPpdyi+sXPAy5k7rNHbS9EVRk++BlNt5SxlIZ4FOa5Tu3FNME0eTHcZjzVqOPcmWsCvK2kBHE08N410E3NgdoHq7jNLGn/CfjfoAFTEioevUbMpH4sWQZ6UHsYJpFSlgQChA2pNZpxVrNjV3t/JH1PdYB2HgbufRNKKL5ivhWew7nRWVpH9bZ5MQZEXLKbBbOZP8CGKKpOlqoG/vqk+YT8UniKrdtQGGA3607kkI5mrDHHRo4Z/VonhBs3oWXtOWzGZKnh82YUzkSt3CIneUt91aDPPBBGSdRzXpEYPMsbXjXEf4C7LNfFP8zvapEahhXsTjURRr5kgK05XrQKjiuRlphSapjcsMlrNIWi7GZRlSWTvPnEb6aT12SqVnQrIEXTWku1hevxJmPChVWlMPBDBLvJqwoJwEdYWeAcFg2wwF6EYlstUw9OSZ4DAkVOLWz9lDM0uq91rBPJVRimAaOuu7YCVUN0a5lX6u/34ifvdeOVokid/yG25Vs5bJbl4pp+VPO+T3Iv5e1U=
[INF] framework.signatures.0.uuid : e93ebd09-85f5-46b6-bfc1-c7f06cf0b8a5
[INF] framework.signatures.length : 1
[INF] framework.summary : Ext JS
[INF] framework.type : framework
[INF] framework.version : 5.0.0.736
[INF] repo.local.dir : C:\Users\paul\bin\Sencha\Cmd\repo
[INF] system.java.net.useSystemProxies : true
[INF] theme.base.names : ext-theme-base,ext-theme-neutral,ext-theme-neptune
[INF] theme.base.packages : C:\Playground\ExtJS5\app\ext\packages\ext-theme-base,C:\Playground\ExtJS5\app\ext\packages\ext-theme-neutral,C:\Playground\ExtJS5\app\ext\packages\ext-theme-neptune
[INF] workspace.build.dir : C:\Playground\ExtJS5\app/build
[INF] workspace.cmd.version : 5.0.0.116
[INF] workspace.config.dir : C:\Playground\ExtJS5\app\.sencha\workspace
[INF] workspace.dir : C:\Playground\ExtJS5\app
[INF] workspace.packages.dir : C:\Playground\ExtJS5\app/packages
[INF] workspace.theme.dir : C:\Playground\ExtJS5\app/packages/${args.themeName}

Steps to reproduce the problem:

Please include complete command lines, be sure to mention the current directory and finally a capture of the console output.



C:\Playground\ExtJS5> sencha generate app -ext MyApp app >log.txt
C:\Playground\ExtJS5> cd app
C:\Playground\ExtJS5\app>


Then post log.txt in a CODE block:



Sencha Cmd v5.0.0.116
[INF] Loading app json manifest...
[INF] Writing content to C:\Playground\ExtJS5\app/bootstrap.js
[INF] Writing content to C:\Playground\ExtJS5\app/bootstrap.json

Sencha Cmd v5.0.0.116
[INF] Loading app json manifest...
[INF] Writing content to C:\Playground\ExtJS5\app/bootstrap.js
[INF] Writing content to C:\Playground\ExtJS5\app/bootstrap.json
[INF] merging resources into C:\Playground\ExtJS5\app\build\testing\MyApp\resources
[INF] merged 183 resources into C:\Playground\ExtJS5\app\build\testing\MyApp\resources
[INF] merging resources into C:\Playground\ExtJS5\app\build\testing\MyApp
[INF] merged 0 resources into C:\Playground\ExtJS5\app\build\testing\MyApp
[INF] writing sass content to C:\Playground\ExtJS5\app/build/temp/testing/MyApp/sass/MyApp-all.scss.tmp
[INF] appending sass content to C:\Playground\ExtJS5\app/build/temp/testing/MyApp/sass/MyApp-all.scss.tmp
[INF] appending sass content to C:\Playground\ExtJS5\app/build/temp/testing/MyApp/sass/MyApp-all.scss.tmp
[INF] writing sass content to C:\Playground\ExtJS5\app/build/temp/testing/MyApp/sass/config.rb
[INF] executing compass using system installed ruby runtime
WARNING: @theme-background-image: Theme image not found: images/button/cell-small-arrow.png
on line 18 of C:/Playground/ExtJS5/app/build/temp/testing/MyApp/sass/../../../../../ext/packages/ext-theme-base/sass/etc/mixins/theme-background-image.scss
from line 64 of C:/Playground/ExtJS5/app/build/temp/testing/MyApp/sass/../../../../../ext/packages/ext-theme-neutral/sass/src/button/Button_cell.scss
from line 785 of C:/Playground/ExtJS5/app/build/temp/testing/MyApp/sass/../../../../../ext/packages/ext-theme-neutral/sass/src/button/Button.scss
from line 851 of C:/Playground/ExtJS5/app/build/temp/testing/MyApp/sass/MyApp-all.scss

WARNING: @theme-background-image: Theme image not found: images/button/cell-small-s-arrow.png
on line 18 of C:/Playground/ExtJS5/app/build/temp/testing/MyApp/sass/../../../../../ext/packages/ext-theme-base/sass/etc/mixins/theme-background-image.scss
from line 64 of C:/Playground/ExtJS5/app/build/temp/testing/MyApp/sass/../../../../../ext/packages/ext-theme-neutral/sass/src/button/Button_cell.scss
from line 785 of C:/Playground/ExtJS5/app/build/temp/testing/MyApp/sass/../../../../../ext/packages/ext-theme-neutral/sass/src/button/Button.scss
from line 851 of C:/Playground/ExtJS5/app/build/temp/testing/MyApp/sass/MyApp-all.scss

WARNING: @theme-background-image: Theme image not found: images/button/cell-small-s-arrow-b.png
on line 18 of C:/Playground/ExtJS5/app/build/temp/testing/MyApp/sass/../../../../../ext/packages/ext-theme-base/sass/etc/mixins/theme-background-image.scss
from line 64 of C:/Playground/ExtJS5/app/build/temp/testing/MyApp/sass/../../../../../ext/packages/ext-theme-neutral/sass/src/button/Button_cell.scss
from line 785 of C:/Playground/ExtJS5/app/build/temp/testing/MyApp/sass/../../../../../ext/packages/ext-theme-neutral/sass/src/button/Button.scss
from line 851 of C:/Playground/ExtJS5/app/build/temp/testing/MyApp/sass/MyApp-all.scss

create MyApp-all.css
[INF] Mapping http://localhost:1841/ to C:\Playground\ExtJS5\app...
[INF] ------------------------------------------------------------------
[INF] Starting web server at : http://localhost:1841
[INF] ------------------------------------------------------------------
[INF] Waiting for changes...


Also list any customization to generated applications - file or folder renames or deletes; changes to config files. For example:
No Customisations at all

The result that was expected:

I expected to see the default site
The result that occurs instead:

I got an empty page

evant
10 Apr 2014, 6:21 AM
It seems there's something specific to your configuration, I'm not able to reproduce it on Win7 using the same versions.

The error indicates that the server is somehow hitting the max request size.

After some Googling someone has suggested it may be caused by large cookies on localhost. Can you have a look at that in the Chrome inspector?

http://stackoverflow.com/questions/14345872/jetty-httpparser-full

psainsbury
10 Apr 2014, 6:34 AM
I cleared my cookies and everything is working as expected!

Thanks!

evant
10 Apr 2014, 6:35 AM
Perhaps we can look at increasing the default size of the server configuration. I'm not overly familiar with all the internals, so I'll push it to Jira and see if we can easily expose a configuration or just make it larger by default.

psainsbury
10 Apr 2014, 6:39 AM
Thanks, that would be great and hopefully help the next noob (like me) when they hit that problem.