microsoft / microsoft/terminal
Windows 11 gets a bizarre "parameter error" and fails to start [Windows11 出现离奇的“参数错误”无法启动]
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
Windows Terminal version
1.22.11141.0
Windows build number
10.0.26100.4351
Other Software
PowerShell 7.5.2
Steps to reproduce
------------------------- English feedback-------------------------
The issue first occurred after installing PowerShell 7.5.2 and subsequently uninstalling PowerShell 7.5.2 was useless
Trying to uninstall and reinstall Windows Terminal had no effect
A search on Bing found https://answers.microsoft.com/zh-hans/windows/forum/all/windows11 Pro type/464c57b0-69c7-4696-ae6f-ea8289bfff0a this solution
Replace WindowsTerminal with the initial configuration file it provides
Then try to install PowerShell 7.5.2 again No error but I don't see the PowerShell 7 configuration file that automatically appears in Windows Terminal as said on the Internet Try to add it manually Edit the json file After saving, the test is normal No error occurred Just in case I tried to restart the computer Restart Windows Terminal did not get any error
Then, a day later, there was a "parameter error" error that had not been modified in the Windows Terminal configuration
Fix within the settings Resume use
Then half a day later it was wrong again, again with no modification
Try to fix within settings useless and reset within settings to resume use
Available for the time being, but frequent errors seriously affect the use hopefully it can be fixed
My personal opinion is that the data directory (C:\Users{username}\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState) permission configuration related issues
Considering adding a custom data catalog feature might alleviate this error
I think it's a bug caused by windows' wrong permission control design or a flaw in the Packages directory
-------------------------中文反馈-------------------------
第一次出现该问题是在安装PowerShell 7.5.2之后 随后卸载PowerShell 7.5.2 无用
尝试卸载重新安装Windows Terminal 无效果
在Bing搜索 找到了https://answers.microsoft.com/zh-hans/windows/forum/all/windows11%e4%b8%93%e4%b8%9a%e7%89%88%e6%89%93/464c57b0-69c7-4696-ae6f-ea8289bfff0a 这个解决方案
使用其提供的初始配置文件替换WindowsTerminal后恢复使用
然后重新尝试安装PowerShell 7.5.2 没有出错 但是没有看到网上所说的自动在Windows Terminal内出现PowerShell7配置文件 尝试手动添加 编辑json文件 保存后测试正常 未出现报错 为了以防万一尝试重启计算机 重启Windows Terminal 均未出现错误
然后在一天后又出现了"参数错误"报错 这期间没有修改过Windows Terminal配置
在设置内修复 恢复使用
然后半天后再次出错 同样无修改
尝试设置内修复 无用 在设置内重置 恢复使用
暂时可用 但是频繁出错严重影响使用 希望可以修复
个人观点认为是数据目录(C:\Users{用户名}\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState)权限配置相关问题
是否考虑增加自定义数据目录功能 可能可以缓解这个错误
我认为这是windows对于Packages目录错误的权限控制设计或者缺陷导致的bug
Expected Behavior
No response
Actual Behavior
Error message "Parameter error" is reported.
报错"参数错误"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the intermittent “Parameter error” with Windows Terminal 1.22.11141.0, Windows build 10.0.26100.4351, and PowerShell 7.5.2. Inspect the mentioned LocalState directory and compare behavior after editing the configuration, restarting, and using Settings repair or reset. Done means the described configuration no longer fails after the issue’s repeated-use sequence.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100