Skip to content

Maybe it's better to change the default setting of filename #531

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

Open
doutv opened this issue Mar 20, 2020 · 3 comments
Open

Maybe it's better to change the default setting of filename #531

doutv opened this issue Mar 20, 2020 · 3 comments

Comments

@doutv
Copy link

doutv commented Mar 20, 2020

🐛 Bug Report

This is the default setting of filename.
"filename": "${id}.${kebab-case-name}.${ext}"

    "leetcode.filePath": {
        "default": {
            // 相对路径
            "folder": "",
            // 文件名
            "filename": "${id}.${kebab-case-name}.${ext}"
        }
    }

It will cause some problems because of the dot. between id and kebab-case-name.

if ($?) { g++ 673.最长递增子序列的个数.cpp -o 673.最长递增子序列的个数 } ; if ($?) { .\673. 
最长递增子序列的个数 }
程序“673.最长递增子序列的个数”无法运行: 没有应用程序与此操作的指定文件有关联。所在位置 行:1 字符: 131
+ ... 673.最长递增子序列的个数.cpp -o 673.最长递增子序列的个数 } ; if ($?) { .\673.最长递增子序列的个数 }
+                                                        ~~~~~~~~~~~~~~~~。
所在位置 行:1 字符: 131
+ ... 673.最长递增子序列的个数.cpp -o 673.最长递增子序列的个数 } ; if ($?) { .\673.最长递增子序列的个数 }
+                                                        ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

Thus, I think it's better to remove . in default setting.
"filename": "${id}${kebab-case-name}.${ext}"

@doutv
Copy link
Author

doutv commented Mar 20, 2020

I then find a similar problem. Since gdb doesn't support Chinese character in path and filename, I can't debug the .cpp file.

I think it's better to make the filename in English only, but I don't know how to do it when I am using Leetcode-cn. Can the extension generate a filename like 673FindNumberOfLIS.cpp? Adding the question id and class name together.

@younger-1
Copy link

Yes, I encountered the same question.

@liuliuliuzy
Copy link

Is there a way to solve this problem? I got the same question...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants