Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

全局设置中自定义config目录无法生效

Chiusa
#1,709 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
yaml
Ambito
backend

Direzione di ricerca

Start by grepping the codebase for the exact log strings from the report: CfgPath 与当前配置目录不一致 and 已将程序旁配置迁移 — they locate the startup code that resolves the config directory and force-migrates exe-adjacent configs to ~/.config/TscanPlus/config. Then trace where the global setting for the custom config dir (CfgPath) is written in the settings UI versus where it is read and overridden at startup. Done when a user-set config directory is respected on relaunch (no correction/migration to the user directory) and a portable layout next to the executable is preserved rather than renamed to config.bak, verified by replaying the reported startup sequence on Windows.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

📝 问题描述

全局设置中自定义config目录无法生效,无法进行便携版本配置设置。
可否保留便携版本设置,方便进行数据迁移。

🕹 复现步骤
  1. 使用环境:

    • 目标系统:Windows 11企业版
    • 无影版本:v3.5.3
    • 网络环境:无
  2. 功能配置:

    • 功能模块:全局配置
  3. 异常描述:

    • 设置自定义config目录后,重新自动恢复C:\Users\root.config\TscanPlus\config

运行日志:
[2026-10-06 19:48:36] [WAR] 文件License.lic不存在,以Free模式启动。
[2026-10-06 19:48:36] [WAR] CfgPath 与当前配置目录不一致,修正: D:\tools\TscanPlus\Config -> C:\Users\root.config\TscanPlus\config
[2026-10-06 19:48:36] [WAR] 已将程序旁配置迁移到用户目录 C:\Users\root.config\TscanPlus\config,原目录改名为 D:\tools\TscanPlus\config.bak
[2026-10-06 19:46:15] [WAR] 文件License.lic不存在,以Free模式启动。
[2026-10-06 19:46:15] [WAR] 配置无法恢复,创建默认 config.yaml: 无法加载或恢复 config.yaml
[2026-10-06 19:46:15] [WAR] config.yaml 读取/解析失败: open C:\Users\root.config\TscanPlus\config\config.yaml: The system cannot find the file specified.,尝试恢复...
[2026-10-06 19:38:36] [WAR] 文件License.lic不存在,以Free模式启动。
[2026-10-06 19:38:35] [WAR] CfgPath 与当前配置目录不一致,修正: D:\tools\TscanPlus\config.bak -> C:\Users\root.config\TscanPlus\config
[2026-10-06 19:37:38] [WAR] 文件License.lic不存在,以Free模式启动。
[2026-10-06 19:37:37] [WAR] 已将程序旁配置迁移到用户目录 C:\Users\root.config\TscanPlus\config,原目录改名为 D:\tools\TscanPlus\config.bak
[2026-10-06 19:33:24] [WAR] 文件License.lic不存在,以Free模式启动。
[2026-10-06 19:33:23] [WAR] 配置无法恢复,创建默认 config.yaml: 无法加载或恢复 config.yaml
[2026-10-06 19:33:23] [WAR] config.yaml 读取/解析失败: open C:\Users\root.config\TscanPlus\config\config.yaml: The system cannot find the file specified.,尝试恢复...
[2026-10-06 19:30:23] [WAR] 文件License.lic不存在,以Free模式启动。
[2026-10-06 19:30:22] [WAR] CfgPath 与当前配置目录不一致,修正: D:\tools\TscanPlus\Config -> C:\Users\root.config\TscanPlus\config
[2026-10-06 19:30:22] [WAR] 已将程序旁配置迁移到用户目录 C:\Users\root.config\TscanPlus\config,原目录改名为 D:\tools\TscanPlus\config.bak
[2026-10-06 19:28:54] [WAR] 文件License.lic不存在,以Free模式启动。

Lingua principale
Nessun dato sulla lingua
Stelle
4.4k
Fork
252
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TideSec/TscanPlus

Tutte le issue di TideSec/TscanPlus

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.