Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sencha app build Error codegen.json not found

C:\wamp\Sencha\Test>sencha app build testing
[ERR] Cannot find file: C:\Program Files\Sencha\Cmd\repo\.sencha\codegen.json
 at com.sencha.util.BasicFileSystemHelper.writeFileData(BasicFileSystemHelpe
r.java:49)
 at com.sencha.util.FileUtil.writeFileData(FileUtil.java:284)
 at com.sencha.util.FileUtil.writeFileData(FileUtil.java:266)
 at com.sencha.util.FileUtil.writeFile(FileUtil.java:246)
 at com.sencha.util.FileUtil.writeFile(FileUtil.java:238)
 at com.sencha.util.JsonUtil.saveJson(JsonUtil.java:145)
 at com.sencha.util.JsonUtil.saveJson(JsonUtil.java:149)
 at com.sencha.tools.generator.DataStoreImpl.save(DataStoreImpl.java:144)
 at com.sencha.tools.pkg.LocalRepository.init(LocalRepository.java:125)
 at com.sencha.tools.pkg.LocalRepository.init(LocalRepository.java:177)
 at com.sencha.command.environment.WorkspaceRepository.getLocalRepository(Wo
 rkspaceRepository.java:115)
 at com.sencha.command.environment.WorkspaceRepository.getCatalog(WorkspaceR
 epository.java:92)
 at com.sencha.command.environment.WorkspaceEnvironment.resolvePackageModels
 (WorkspaceEnvironment.java:103)
 at com.sencha.command.environment.WorkspaceEnvironment.resolvePackageEnviro
 nments(WorkspaceEnvironment.java:90)
 at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackag
 eEnvironments(AppOrPackageEnvironment.java:165)
 at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackag
 esNoThemes(AppOrPackageEnvironment.java:212)
 at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackag
 eNamesNoThemes(AppOrPackageEnvironment.java:203)
 at com.sencha.command.environment.AppEnvironment.<init>(AppEnvironment.java
 :66)
 at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.ja
 va:193)
 at com.sencha.command.Sencha.loadBuildEnvironment(Sencha.java:374)
 at com.sencha.command.Sencha.main(Sencha.java:127)
 Caused by: C:\Program Files\Sencha\Cmd\repo\.sencha\codegen.json (The system
 cannot find the path specified)
 at java.io.FileOutputStream.open(Native Method)
 at java.io.FileOutputStream.<init>(Unknown Source)
 at com.sencha.util.BasicFileSystemHelper.writeFileData(BasicFileSystemHelpe
 r.java:41)
 at com.sencha.util.FileUtil.writeFileData(FileUtil.java:284)
 at com.sencha.util.FileUtil.writeFileData(FileUtil.java:266)
 at com.sencha.util.FileUtil.writeFile(FileUtil.java:246)
 at com.sencha.util.FileUtil.writeFile(FileUtil.java:238)
 at com.sencha.util.JsonUtil.saveJson(JsonUtil.java:145)
 at com.sencha.util.JsonUtil.saveJson(JsonUtil.java:149)
 at com.sencha.tools.generator.DataStoreImpl.save(DataStoreImpl.java:144)
 at com.sencha.tools.pkg.LocalRepository.init(LocalRepository.java:125)
 at com.sencha.tools.pkg.LocalRepository.init(LocalRepository.java:177)
 at com.sencha.command.environment.WorkspaceRepository.getLocalRepository(Wo
 rkspaceRepository.java:115)
 at com.sencha.command.environment.WorkspaceRepository.getCatalog(WorkspaceR
 epository.java:92)
 at com.sencha.command.environment.WorkspaceEnvironment.resolvePackageModels
 (WorkspaceEnvironment.java:103)
 at com.sencha.command.environment.WorkspaceEnvironment.resolvePackageEnviro
 nments(WorkspaceEnvironment.java:90)
 at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackag
 eEnvironments(AppOrPackageEnvironment.java:165)
 at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackag
 esNoThemes(AppOrPackageEnvironment.java:212)
 at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackag
 eNamesNoThemes(AppOrPackageEnvironment.java:203)
 at com.sencha.command.environment.AppEnvironment.<init>(AppEnvironment.java
 :66)
 at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.ja
 va:193)
 at com.sencha.command.Sencha.loadBuildEnvironment(Sencha.java:374)
 at com.sencha.command.Sencha.main(Sencha.java:127)

I got this error while i build testing of app,I used sencha cmd,and sencha version 2.2 Please reply with solution

is this environment variable problem, In my sencha cmd setup C:\Program Files\Sencha\Cmd\repo.sencha\codegen.json,repo folder is not created in my cmd setup folder,is this problem for this??

like image 896
Prashant Patil Avatar asked Jul 30 '13 10:07

Prashant Patil


2 Answers

That's because of permissions to write in that directory. Change your access permissions or install sencha cmd in another drive.

like image 168
MSH Avatar answered Oct 12 '22 00:10

MSH


Running the cmd as administrator solved the problem to me!

like image 29
Guy Dubrovski Avatar answered Oct 11 '22 23:10

Guy Dubrovski