Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
565 views
in Technique[技术] by (71.8m points)

command - [WARN] The current working directory (C:xampphtdocssencha folder) is not a recognized Sencha SDK or application folder.

I'm new in Sencha . but after installation.. it's really becoming a headache..

I dont' know how to resolve this issue.. I downloaded -

  • sencha-touch-2.1.0-commercial - (its SDK i think)
  • SenchaSDKTools-2.0.0-beta3-windows (These are Tools for SDK)
  • Xampp (for Web services)

  • I installed xampp.

  • extracted sencha touch into htdocs folder under xampp.
  • installed senchSDKTools

    And started applying commands from CMD

  • i typed sencha and pressed enter...
  • but i get following error.

-

C:xampphtdocssencha-touch-2.1.0-commercial>sencha
[WARN] The current working directory (C:xampphtdocssencha-touch-2.1.0-commercia
l) is not a recognized Sencha SDK or application folder. Running in backwards comp
atible mode.

    Sencha Command v2.0.0 Beta 3
Copyright (c) 2012 Sencha Inc.
usage: sencha COMMAND [ARGS]

The available commands are:
   build                        build a JSB project
   create bootstrapdata         generate boostrap data
   create jsb                   generate a minimal JSB project for an app
   create locale                        generate a template locale file from sourc
e
   create manifest              generate classes manifest
   package                      package your Touch web app into a native bundle
   slice theme                  slice a custom theme's images for IE

See 'sencha help COMMAND' for more information on a specific command.

C:xampphtdocssencha-touch-2.1.0-commercial>

-I've searched several website.. but couldn't get the solution.. Please help me.. thank you

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Problem: Sencha SDK could not be recognized through cmd

Error:

[warn] the current working directory (c:xampphtdocssencha-touch-2.1.0-commercial) is not a recognized sencha sdk or application folder. running in backwards compatible mode.

Issue: The problem arises because of outdated cmd that Sencha use for creating, updating, packaging apps. Check the above command when entering sencha and it showing currently installed cmd version is:

sencha command v2.0.0 beta 3

Solution : Sencha command has been updated to v3.0.0 with more features like "generating" commands which was not supported in v2.0.0. Just download it from below link and install it (in the bin folder of SDK tools, not touch SDK). That's it. Now go to the Sencha touch folder and again through it run sencha. What will you get now is:

sencha cmd v3.0.0.250

You can also fire this command

$ sencha generate app gs ../gs

And it work too!

Note: Sencha didn't say that you needed to update Sencha cmd, but updated their documentation. Numerous people are facing this Sencha problem with no luck. Hope people get rid of it which took a complete night from me :)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...