Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kraken命令行运行samples里面的项目时,如果项目所在路径有中文字符,则会报错 #435

Open
anitakym opened this issue Jun 21, 2021 · 0 comments
Assignees
Labels
bug Something isn't working samples
Milestone

Comments

@anitakym
Copy link

anitakym commented Jun 21, 2021

使用的 Kraken 版本 | What version of kraken are you using

0.7.3

重现步骤 | Steps To Reproduce

按文档,使用kraken命令行启动samples的时候(https://openkraken.com/guide/development/vue),如果项目(samples/demos/hello-vue)所在路径中,有中文字符,则会报错

重现代码 | Code example:

kraken ./dist/js/app.js

预期结果 | Expected results:

不管路径中有无中文字符,都能正常启动

实际结果 | Actual results:
如果路径中无中文字符,正常启动;

如果路径中有中文字符,则会报错:

Execute binary: /usr/local/lib/node_modules/@openkraken/cli/build/darwin/debug/app.app/Contents/MacOS/app 

flutter: Observatory listening on http://127.0.0.1:58891/l58nRqFftS8=/
[ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: Unable to load asset: /Users/xxx/repo/%E4%B8%AD%E6%96%87%E5%AD%97%E7%AC%A6%E8%B7%AF%E5%BE%84/samples/demos/hello-vue/dist/js/app.js
#0      PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:225:7)
<asynchronous suspension>
#1      AssetsBundle.resolve (package:kraken/src/launcher/bundle.dart:181:39)
#2      KrakenBundle.getBundle (package:kraken/src/launcher/bundle.dart:62:20)
#3      KrakenController.loadBundle (package:kraken/src/launcher/controller.dart:641:36)
#4      launch (package:kraken/src/launcher/launcher.dart:39:20)
#5      main (package:app/main.dart:12:3)
#6      _runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:231:25)
#7      _rootRun (dart:async/zone.dart:1190:13)
#8      _CustomZone.run (dart:async/zone.dart:1093:19)
#9      _runZoned (dart:async/zone.dart:1630:10)
#10     runZonedGuarded (dart:async/zone.dart:1618:12)
#11     _runMainZoned.<anonymous closure> (dart:ui/hooks.dart:223:5)
#12     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301:19)
#13     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

flutter: Kraken DevTool listening at ws://10.201.57.47:9222
flutter: Open Chrome/Edge and paste following url to your navigator:
flutter:     devtools://devtools/bundled/inspector.html?ws=10.201.57.47:9222
@anitakym anitakym added the bug Something isn't working label Jun 21, 2021
@andycall andycall added this to the 0.9 milestone Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working samples
Projects
None yet
Development

No branches or pull requests

2 participants