qode icon indicating copy to clipboard operation
qode copied to clipboard

qode.exe run error in chinese path?

Open jardenliu opened this issue 5 years ago • 2 comments

qode not support utf-8 path?

$ ./qode.exe
internal/modules/cjs/loader.js:1023
  throw err;
  ^

Error: Cannot find module 'H:\cloud-music-nodegui\deploy\win32\build\������\dist'
Require stack:
- internal/preload
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1020:15)
    at Function.Module._load (internal/modules/cjs/loader.js:890:27)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
    at Module._preloadModules (internal/modules/cjs/loader.js:1321:12)
    at loadPreloadModules (internal/bootstrap/pre_execution.js:439:5)
    at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:71:3)
    at internal/main/eval_stdin.js:17:1 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'internal/preload' ]
}

jardenliu avatar May 17 '20 11:05 jardenliu

@master-atul https://github.com/nodegui/qode/blob/602cb55099a7770f9869150c1b1925e9b99448c2/src/helpers/qode_helper.cc#L41 is it possible to use GetModuleFileNameW instead of GetModuleFileNameA ?

jardenliu avatar May 19 '20 15:05 jardenliu

sure. can you raise a pr after testing if that works? @jardenliu

a7ul avatar May 19 '20 17:05 a7ul