Skip to content
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

[Question]按Readme进行本地编译时缺失文件 #152

Closed
Awmj6 opened this issue Oct 29, 2024 · 1 comment
Closed

[Question]按Readme进行本地编译时缺失文件 #152

Awmj6 opened this issue Oct 29, 2024 · 1 comment

Comments

@Awmj6
Copy link

Awmj6 commented Oct 29, 2024

附带PR?

版本

v1..5.0

问题描述

Screenshot 2024-10-29 093402
对coriander_player-main进行编译,编译失败并显示图中内容。经确认,应该是lib/page/settings_page/create_issue.dart文件中引用了cpfeedback_key.dart,但源文件中不存在cpfeedback_key.dart,由此导致的错误

重现步骤

1.下载源代码
2.安装flutter和rust环境
3.在软件根目录运行flutter run,进行编译
4.编译失败

预期行为

成功编译,正常启动

软件日志和其他信息

No response

@Awmj6 Awmj6 added the bug Something isn't working label Oct 29, 2024
@Ferry-200
Copy link
Owner

Ferry-200 commented Oct 29, 2024

这里引用的是一个 github 账号的访问密钥,为了保证账号安全,我没有公开密钥。

两种解决办法:

  1. 删掉 lib/page/settings_page/create_issue.dart#L3-L3 这行和 lib/page/settings_page/create_issue.dart#L43-L43 里面的 auth 参数。不过这样会导致反馈功能无法工作。
  2. 你自己到 github.com/settings/tokens 去申请一个 token 并创建缺少的 cpfeedback_key.dart 文件,定义 CPFEEDBACK_KEY 常量,赋值为你创建的 token。

@Ferry-200 Ferry-200 removed the bug Something isn't working label Oct 29, 2024
@Ferry-200 Ferry-200 changed the title [BUG] 按Readme进行本地编译时缺失文件 [Question]按Readme进行本地编译时缺失文件 Oct 29, 2024
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

2 participants