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

[UE] Bug: ue_bp.d.ts里面生成的内容突然之间不见了 #1981

Open
3 tasks done
renfengliu456 opened this issue Feb 12, 2025 · 2 comments
Open
3 tasks done

[UE] Bug: ue_bp.d.ts里面生成的内容突然之间不见了 #1981

renfengliu456 opened this issue Feb 12, 2025 · 2 comments
Assignees
Labels
bug Something isn't working Unreal

Comments

@renfengliu456
Copy link

前置阅读 | Pre-reading

Puer的版本 | Puer Version

1.0.6

UE的版本 | UE Version

5.4

发生在哪个平台 | Platform

Editor(win)

错误信息 | Error Message

ue_bp.d.ts里面生成的内容突然之间不见了

问题重现 | Bug reproduce

原本在ue_bp.d.ts里面生成了根据自己的蓝图生成了很多代码,但是当重启vs或者rider的时候,或者编译c++的时候,导致里面的内容变成了默认的很少的内容。

如果你也遇到这种情况可以删除你的工程的Plugins\Puerts\Typing\ue目录下面的ue_bp.d.ts文件试试。
因为新版的puerts删除了这个文件,如果你是老版本升级上来的你可能忘记删除了这个文件,导致每次都会覆盖进去。
详细见:#1908

@BlurryLight
Copy link
Contributor

JsEnv.build.cs里可以增加一点删除stale文件的代码,我本地有,但是没有提上来,因为新的插件用户不会有这个问题

@chexiongsheng
Copy link
Collaborator

chexiongsheng commented Feb 12, 2025

这其实不算问题,这个PR( #1908 )包含了两部分:
1、自动拷贝Plugins\Puerts\Typing\ue覆盖工程的Typing目录;
2、删除了ue_bp.d.ts了。
你只更新了1,相当于只更新了部分提交,出问题也正常。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Unreal
Projects
None yet
Development

No branches or pull requests

3 participants