puerts icon indicating copy to clipboard operation
puerts copied to clipboard

[UE] Bug:

Open cgsgood opened this issue 4 months ago • 0 comments

前置阅读 | Pre-reading

Puer的版本 | Puer Version

Unreal_v1.0.7 2024.10.22 这一天的版本

UE的版本 | UE Version

UE 5.4.2

发生在哪个平台 | Platform

Editor(win)

错误信息 | Error Message

在含有CodeAnalyze.ts的目录下编译此目录的ts文件,有如下报错:

CodeAnalyze.ts(3,21): error TS2307: Cannot find module 'typescript' or its corresponding type declarations.
CodeAnalyze.ts(28,42): error TS2339: Property 'FileExists' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(39,44): error TS2339: Property 'ReadFile' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(70,39): error TS2339: Property 'GetCurrentDirectory' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(75,43): error TS2339: Property 'GetDirectories' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(274,66): error TS2339: Property 'FileMD5Hash' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(291,48): error TS2339: Property 'FileMD5Hash' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(303,71): error TS2339: Property 'FileMD5Hash' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(450,49): error TS2339: Property 'Existed' does not exist on type 'typeof PEBlueprintAsset'.
CodeAnalyze.ts(461,36): error TS2339: Property 'WriteFile' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(495,54): error TS2339: Property 'FileMD5Hash' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(510,40): error TS2339: Property 'WriteFile' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(515,16): error TS2339: Property 'Watch' does not exist on type 'PEDirectoryWatcher'.
CodeAnalyze.ts(524,76): error TS2339: Property 'FileMD5Hash' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(571,56): error TS2339: Property 'WriteFile' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(584,52): error TS2339: Property 'PuertsNotifyChange' does not exist on type 'typeof FileSystemOperation'.
CodeAnalyze.ts(707,28): error TS2339: Property 'LoadOrCreate' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(708,28): error TS2339: Property 'Save' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(940,20): error TS2339: Property 'LoadOrCreateWithMetaData' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(997,44): error TS2339: Property 'ClearParameter' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(1002,40): error TS2339: Property 'AddParameterWithMetaData' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(1018,40): error TS2339: Property 'AddFunctionWithMetaData' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(1024,44): error TS2339: Property 'ClearParameter' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(1030,40): error TS2339: Property 'AddFunctionWithMetaData' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(1032,36): error TS2339: Property 'ClearParameter' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(1066,40): error TS2339: Property 'AddMemberVariableWithMetaData' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(1070,20): error TS2339: Property 'RemoveNotExistedComponent' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(1071,20): error TS2339: Property 'RemoveNotExistedMemberVariable' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(1072,20): error TS2339: Property 'RemoveNotExistedFunction' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(1073,20): error TS2339: Property 'SetupAttachments' does not exist on type 'PEBlueprintAsset'.
CodeAnalyze.ts(1075,20): error TS2339: Property 'Save' does not exist on type 'PEBlueprintAsset'.
TypeScriptInternal.ts(327,38): error TS2339: Property 'DirectoryExists' does not exist on type 'typeof FileSystemOperation'.
TypeScriptInternal.ts(332,28): error TS2339: Property 'CreateDirectory' does not exist on type 'typeof FileSystemOperation'.
TypeScriptInternal.ts(350,47): error TS2339: Property 'GetDirectories' does not exist on type 'typeof FileSystemOperation'.
TypeScriptInternal.ts(354,48): error TS2339: Property 'GetFiles' does not exist on type 'typeof FileSystemOperation'.
UEMeta.ts(2,21): error TS2307: Cannot find module 'typescript' or its corresponding type declarations.
UEMeta.ts(766,20): error TS2339: Property 'SetClassFlags' does not exist on type 'PEClassMetaData'.
UEMeta.ts(767,53): error TS2339: Property 'SetMetaData' does not exist on type 'PEClassMetaData'.
UEMeta.ts(768,20): error TS2339: Property 'SetClassWithIn' does not exist on type 'PEClassMetaData'.
UEMeta.ts(769,20): error TS2339: Property 'SetConfig' does not exist on type 'PEClassMetaData'.
UEMeta.ts(770,53): error TS2339: Property 'AddHideCategory' does not exist on type 'PEClassMetaData'.
UEMeta.ts(771,53): error TS2339: Property 'AddShowCategory' does not exist on type 'PEClassMetaData'.
UEMeta.ts(772,56): error TS2339: Property 'AddShowSubCategory' does not exist on type 'PEClassMetaData'.
UEMeta.ts(773,52): error TS2339: Property 'AddHideFunction' does not exist on type 'PEClassMetaData'.
UEMeta.ts(774,52): error TS2339: Property 'AddShowFunction' does not exist on type 'PEClassMetaData'.
UEMeta.ts(775,59): error TS2339: Property 'AddAutoExpandCategory' does not exist on type 'PEClassMetaData'.
UEMeta.ts(776,61): error TS2339: Property 'AddAutoCollapseCategory' does not exist on type 'PEClassMetaData'.
UEMeta.ts(777,65): error TS2339: Property 'AddDontAutoCollapseCategory' does not exist on type 'PEClassMetaData'.
UEMeta.ts(778,54): error TS2339: Property 'AddClassGroup' does not exist on type 'PEClassMetaData'.
UEMeta.ts(779,59): error TS2339: Property 'AddSparseDataType' does not exist on type 'PEClassMetaData'.
UEMeta.ts(1303,20): error TS2339: Property 'SetFunctionFlags' does not exist on type 'PEFunctionMetaData'.
UEMeta.ts(1304,20): error TS2339: Property 'SetFunctionExportFlags' does not exist on type 'PEFunctionMetaData'.
UEMeta.ts(1305,52): error TS2339: Property 'SetMetaData' does not exist on type 'PEFunctionMetaData'.
UEMeta.ts(1306,20): error TS2339: Property 'SetCppImplName' does not exist on type 'PEFunctionMetaData'.
UEMeta.ts(1307,20): error TS2339: Property 'SetCppValidationImplName' does not exist on type 'PEFunctionMetaData'.
UEMeta.ts(1308,20): error TS2339: Property 'SetEndpointName' does not exist on type 'PEFunctionMetaData'.
UEMeta.ts(1309,20): error TS2339: Property 'SetRPCId' does not exist on type 'PEFunctionMetaData'.
UEMeta.ts(1310,20): error TS2339: Property 'SetRPCResponseId' does not exist on type 'PEFunctionMetaData'.
UEMeta.ts(1311,20): error TS2339: Property 'SetIsSealedEvent' does not exist on type 'PEFunctionMetaData'.
UEMeta.ts(1312,20): error TS2339: Property 'SetForceBlueprintImpure' does not exist on type 'PEFunctionMetaData'.
UEMeta.ts(1395,20): error TS2339: Property 'SetParamFlags' does not exist on type 'PEParamMetaData'.
UEMeta.ts(1396,52): error TS2339: Property 'SetMetaData' does not exist on type 'PEParamMetaData'.
UEMeta.ts(1855,20): error TS2339: Property 'SetPropertyFlags' does not exist on type 'PEPropertyMetaData'.
UEMeta.ts(1856,52): error TS2339: Property 'SetMetaData' does not exist on type 'PEPropertyMetaData'.
UEMeta.ts(1857,20): error TS2339: Property 'SetRepCallbackName' does not exist on type 'PEPropertyMetaData'.

问题重现 | Bug reproduce

在含有CodeAnalyze.ts的目录Puerts\PuertsEditor\下,输入'tsc'编译ts文件

cgsgood avatar Oct 22 '24 09:10 cgsgood