Vscode-gitlens: GitLens doesn't work with Chinese filenames

Created on 16 May 2017  Â·  9Comments  Â·  Source: eamodio/vscode-gitlens

When I use GitLens plugin on .vue files. It can not call any command.

like this:

qq20170516-212137 2x
qq20170516-211504 2x

But on .js files is work:
qq20170516-211816 2x

vetur version 0.6.9

bug

Most helpful comment

@eamodio Very good, it is finally normal. Thanks!

qq20170523-151618

All 9 comments

@Moerj Can you do the following:

If you are encountering an issue that says See output channel for more details, please enable output channel logging by setting "gitlens.outputLevel": "verbose" in your settings.json. This will enable logging to the GitLens channel in the Output pane. Once enabled, please attempt to reproduce the issue (if possible) and attach the relevant log lines from the GitLens channel.

And then post back with the relevant logs -- GitLens shouldn't care about file types -- just that its in a git repo so very curious to see what is going on.

Thanks!

qq20170517-090613

getLogForFile('undefined', 'extension-output-#8', undefined, 1, undefined, false)
git log --name-status --full-history -M --date=iso8601 --format=%H -%nauthor %an%nauthor-date %ai%nparents %P%nsummary %B%nfilename ? --follow -n1 --no-merges -- extension-output-#8   cwd='.' 
  Error: fatal: Not a git repository (or any of the parent directories): .git  Failed with exit code: 128
isFileUncommitted('/Users/apple/GitHub/bui-m', 'extension-output-#8')
git ls-files extension-output-#8   cwd='/Users/apple/GitHub/bui-m'
getLogForFile('undefined', 'extension-output-#8', undefined, 1, undefined, false)
git log --name-status --full-history -M --date=iso8601 --format=%H -%nauthor %an%nauthor-date %ai%nparents %P%nsummary %B%nfilename ? --follow -n1 --no-merges -- extension-output-#8   cwd='.' 
  Error: fatal: Not a git repository (or any of the parent directories): .git  Failed with exit code: 128
getBranch('/Users/apple/GitHub/bui-m')
git branch   cwd='/Users/apple/GitHub/bui-m'
getLogForFile('undefined', 'extension-output-#8', undefined, 1, undefined, false)
git log --name-status --full-history -M --date=iso8601 --format=%H -%nauthor %an%nauthor-date %ai%nparents %P%nsummary %B%nfilename ? --follow -n1 --no-merges -- extension-output-#8   cwd='.' 
  Error: fatal: Not a git repository (or any of the parent directories): .git  Failed with exit code: 128
Keyboard.beginScope 0
getLogForRepo('/Users/apple/GitHub/bui-m', master, 200)
getLogForFile('undefined', '/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue', undefined, 1, undefined, false)
getLogForFile('undefined', '/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue', undefined, 1, undefined, false)
git log --name-status --full-history -M --date=iso8601 --format=%H -%nauthor %an%nauthor-date %ai%nparents %P%nsummary %B%nfilename ? --follow -n1 --no-merges -- 公告.vue   cwd='/Users/apple/GitHub/bui-m/src/views/课程表'
isFileUncommitted('/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue', '/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue')
git Error: 
spawn ENOTDIR ls-files /Users/apple/GitHub/bui-m/src/views/课程表/公告.vue   cwd='/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue' 
  Error:  spawn ENOTDIR
git log --name-status --full-history -M --date=iso8601 --format=%H -%nauthor %an%nauthor-date %ai%nparents %P%nsummary %B%nfilename ? --follow -n1 --no-merges -- 公告.vue   cwd='/Users/apple/GitHub/bui-m/src/views/课程表'
getBlameForFile('/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue', '/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue', undefined)
git log --name-status --full-history -M --date=iso8601 --format=%H -%nauthor %an%nauthor-date %ai%nparents %P%nsummary %B%nfilename ? -m -n200 master   cwd='/Users/apple/GitHub/bui-m'
Keyboard.beginScope 1
KeyboardScope.dispose 2 0
KeyboardScope.dispose 1 0
getLogForFile('undefined', '/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue', undefined, 1, undefined, false)
git log --name-status --full-history -M --date=iso8601 --format=%H -%nauthor %an%nauthor-date %ai%nparents %P%nsummary %B%nfilename ? --follow -n1 --no-merges -- 公告.vue   cwd='/Users/apple/GitHub/bui-m/src/views/课程表'
getBranch('/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue')
git Error: 
spawn ENOTDIR branch   cwd='/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue' 
  Error:  spawn ENOTDIR
ShowQuickCurrentBranchHistoryCommand Error: 
spawn ENOTDIR
getLogForFile('undefined', '/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue', undefined, 1, undefined, false)
git log --name-status --full-history -M --date=iso8601 --format=%H -%nauthor %an%nauthor-date %ai%nparents %P%nsummary %B%nfilename ? --follow -n1 --no-merges -- 公告.vue   cwd='/Users/apple/GitHub/bui-m/src/views/课程表'
getBranch('/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue')
git Error: 
spawn ENOTDIR branch   cwd='/Users/apple/GitHub/bui-m/src/views/课程表/公告.vue' 
  Error:  spawn ENOTDIR
ShowQuickCurrentBranchHistoryCommand Error: 
spawn ENOTDIR

@eamodio
I found the bug!😈

If the file name is Chinese. Gitlens can not to open.

qq20170523-103437

@Moerj Thanks for digging into it more! I will try to get to the bottom of why that is happening.

qq20170523-105008

Use the English file name to open GitLens. If changed File is Chinese. Can not open too.

qq20170523-105044

@Moerj Is the filename Chinese in git? And on disk?

@Moerj can you try the new beta here: v3.5.0-beta? You can find installation instructions here: Installing Beta Releases

@eamodio Very good, it is finally normal. Thanks!

qq20170523-151618

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robertzauner picture robertzauner  Â·  3Comments

ahhmarr picture ahhmarr  Â·  3Comments

DFelten picture DFelten  Â·  3Comments

derrickstolee picture derrickstolee  Â·  3Comments

vgrafe picture vgrafe  Â·  3Comments