简体   繁体   English

Sencha Cmd 5.1更新Extjs框架相对/绝对路径时出错

[英]Sencha Cmd 5.1 error on updating Extjs framework relative/absolute path

I am using Sencha Cmd 5.1 to build my Extjs 5.1.0 application. 我正在使用Sencha Cmd 5.1构建我的Extjs 5.1.0应用程序。

** when i change the ext framework path under .sencha/workspace/sencha.cfg file to ** **当我将.sencha / workspace / sencha.cfg文件下的ext框架路径更改为**时

ext.dir =../ext

or some absolute path like C:\\Temp\\Framework\\ext then it throw the following error. 或某些绝对路径(如C:\\ Temp \\ Framework \\ ext),则会引发以下错误。 looks like it is finding the ext framework but failed to import other files within that file. 看起来它正在查找ext框架,但是无法导入该文件中的其他文件。 is this a ruby compile issue ? 这是ruby的编译问题吗? I will really appreciate your help!! 我将非常感谢您的帮助!

any ideas ? 有任何想法吗 ?

   [exec] [INF] executing compass using system installed ruby runtime


  ****[exec]     error ReviewViolations-example.scss (Line 2 of ../../../../../../ext/packages/ext-theme-neutral/sass/var/grid/column/Widget.scss: File to import not found or unreadable: ../../form/field/Base.scss.****


  [exec] Load paths:
  [exec]   D:/Build_Trunk/target/sencha/ReviewViolations/build/temp/production/ReviewViolations/slicer-temp
  [exec]   D:/Sencha/Cmd/5.1.2.52/extensions/sencha-compass/gems/gems/compass-0.12.2/frameworks/blueprint/stylesheets
  [exec]   D:/Sencha/Cmd/5.1.2.52/extensions/sencha-compass/gems/gems/compass-0.12.2/frameworks/compass/stylesheets
  [exec]   Compass::SpriteImporter)
  [exec]    create ReviewViolations-example.css 
  [exec] [ERR] 
  [exec] [ERR] BUILD FAILED
  [exec] [ERR] com.sencha.exceptions.ExProcess: compass process exited with non-zero code : 1
  [exec] [ERR]  at c
  [exec] [ERR] om.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:252)

You may want to try ext.dir=${workspace.dir}/../SDK which has worked for me in the past. 您可能想要尝试ext.dir=${workspace.dir}/../SDK ,该功能过去对我ext.dir=${workspace.dir}/../SDK Hard to say if our situations were exactly the same though. 很难说我们的情况是否完全一样。

I think that changing the "ext.dir" config your paths to sass files exceed the maximum length of 256 chars in Windows. 我认为将“ ext.dir”配置更改为sass文件的路径超出了Windows中256个字符的最大长度。 Take a look at the ReviewViolations-example.scss generated file. 看一下ReviewViolations-example.scss生成的文件。

Try to build sencha app in a Unix environment to be sure this is the problem, it should be work correctly! 尝试在Unix环境中构建sencha应用程序,以确保这是问题所在,它应该可以正常工作!

I still don't have a satisfying solution. 我仍然没有令人满意的解决方案。

Your folder hierarchy is too deep and long. 您的文件夹层次结构太深和太长。 Reduce the level of "../../../.." and try. 降低级别“ ../../../ ..”,然后尝试。 The path length cant exceed more than 256 chars. 路径长度不能超过256个字符。 You can look into .sencha/app/build-impl.xml in your app. 您可以在应用程序中查看.sencha / app / build-impl.xml。 If you can change the reference to your library before build or copy the library along with your app to a temp folder before you compile production/testing version of the app. 如果您可以在构建之前更改对库的引用,或者在编译应用的生产/测试版本之前将库与您的应用程序一起复制到临时文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM