shion-app / shion

Time tracker | 时间追踪 🍂
https://shion.app/
GNU General Public License v3.0
613 stars 31 forks source link

[bug] 无法监听应用程序数据,在 数据集合-监听-筛选要监听的程序-提示暂无数据 #12

Closed weiqi57 closed 1 month ago

weiqi57 commented 1 month ago

Describe the bug

下载后打开无法在监听程序页面显示程序,刷新和重新启动均无效。 查看帮助->开发者工具->控制台中有报错,不确定是否有关。 Failed to load resource: the server responded with a status of 400 (Bad Request) program not found ...

Version

v0.11.0

Steps to reproduce

在其他平台上,按作者建议下载watcher项目中 的脚本get-program.ps1在我本地电脑运行后报错如下: 所在位置 D:\Downloads\get-program.ps1:52 字符: 1

Additional information

powershell版本:5.1.22621.2506 系统:win11 23H2 22631.3593

image

image

hanaTsuk1 commented 1 month ago

已修复,暂时以删除注释处理

相关情况:Powershell编码原因导致部分代码不执行

weiqi57 commented 1 month ago

我试了下11.2版本还是不行,不知道是不是我环境的问题,下面是开发者工具中的报错信息和之前一样。 image

hanaTsuk1 commented 1 month ago

一个猜测 虽然你有powershell 但环境变量里已经被删除了 导致无法调用

试下这个

weiqi57 commented 1 month ago

解决了,确实是环境变量的问题,感谢作者指导 :)