1.4
commit: 65d21e431204bc508012b3f6b6e9d1942d3a3857
built at: 2024-01-06T08:07:17Z
goos: linux
goarch: amd64
Home dir : /home/[user]/.config/leetgo
Project root : /home/[user]/Work/learning/leetcode
Working dir : /home/[user]/Work/learning/leetcode
Project config file : /home/[user]/Work/learning/leetcode/leetgo.yaml
Project configuration:
# Leetgo configuration file, see more at https://github.com/j178/leetgo
# Your name
author: user
# Language of the question description: zh or en
language: en
code:
# Language of code generated for questions: go, cpp, python, java...
# (will be overridden by command line flag -l/--lang)
lang: rust
# The default template to generate filename (without extension), e.g. {{.Id}}.{{.Slug}}
# Available attributes: Id, Slug, Title, Difficulty, Lang, SlugIsMeaningful
# Available functions: lower, upper, trim, padWithZero, toUnderscore, group
filename_template: '{{ .Id | padWithZero 4 }}{{ if .SlugIsMeaningful }}.{{ .Slug }}{{ end }}'
# Generate question description into a separate question.md file
separate_description_file: true
# Default modifiers for all languages
modifiers:
- name: removeUselessComments
go:
out_dir: go
# Functions that modify the generated code
modifiers:
- name: removeUselessComments
- name: changeReceiverName
- name: addNamedReturn
- name: addMod
python3:
out_dir: python
# Python executable that creates the venv
executable: python3
cpp:
out_dir: cpp
# C++ compiler
cxx: g++
# C++ compiler flags (our Leetcode I/O library implementation requires C++17)
cxxflags: -O2 -std=c++17
rust:
out_dir: rust
java:
out_dir: java
leetcode:
# LeetCode site, https://leetcode.com or https://leetcode.cn
site: https://leetcode.com
# Credentials to access LeetCode
credentials:
# How to provide credentials: browser, cookies, password or none
from: cookies
# Browsers to get cookies from: chrome, safari, edge or firefox. If empty, all browsers will be tried
contest:
# Base dir to put generated contest questions
out_dir: contest
# Template to generate filename of the question
filename_template: '{{ .ContestShortSlug }}/{{ .Id }}{{ if .SlugIsMeaningful }}.{{ .Slug }}{{ end }}'
# Open the contest page in browser after generating
open_in_browser: true
# Editor settings to open generated files
editor:
# Use a predefined editor: vim, vscode, goland
# Set to 'none' to disable, set to 'custom' to provide your own command
use: none
# Custom command to open files
command: ""
# Arguments to the command.
# String contains {{.CodeFile}}, {{.TestFile}}, {{.DescriptionFile}}, {{.TestCasesFile}} will be replaced with corresponding file path.
# {{.Folder}} will be substituted with the output directory.
# {{.Files}} will be substituted with the list of all file paths.
args: ""
leetgo debug
Leetgo version info :
Home dir : /home/[user]/.config/leetgo Project root : /home/[user]/Work/learning/leetcode Working dir : /home/[user]/Work/learning/leetcode Project config file : /home/[user]/Work/learning/leetcode/leetgo.yaml Project configuration:
Full configuration :
Debug log
Description
I've got this panic message when when running command:
leetgo pick two-sum
right after configuring withleetgo init -t us -l rust