unreal-clangd
unreal-clangd copied to clipboard
UCLASS macro errors and include errors. [UE5.6 Source]
Love this thing when it works, done a great job.
But i cant consistently get it working (even before the breaking changes) It seems to fail to detect the generated includes, or randomly decides it doesnt know what a UMACRO is, after updating compile commands / refresh project. Im running a source 5.6 build, and made sure i enabled that in unreal clangd. I did a couple full resets, deleted .vscode folder and .clangd, clangdformat and tried again, it seemed to work for a short time until i start adding new files or content, then update the project, and itll randomly get upset again
im also using all the recommended versioning of LLVM, windows 11 SDK, .net 8 and 14.38 of MSVC.
my unreal clangd log:
Started unreal clangd 3.0.1
Modified response files: 0, unchanged: 853 Creating Unreal Source rsp matchers... ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\Engine.808.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\GameplayMediaEncoder.710.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\WindowsPlatformFeatures.711.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\WebMMoviePlayer.364.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\VisionOSTargetPlatformSettings.807.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\UATHelper.654.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\TVOSTargetPlatformSettings.799.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\TreeMap.723.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\TcpMessaging.306.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\StaticMeshEditor.595.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\Source.192.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\Slate.403.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\SequencerScriptingEditor.71.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\SequencerScripting.70.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\RigVM.66.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\RiderShaderInfo.50.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\ResonanceAudioEditor.360.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\ResonanceAudio.359.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\Renderer.685.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\Proxies.735.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\nanosvg.397.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\MovieSceneTools.557.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\Messaging.731.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\LiveCoding.647.rsp ** Warning **: c:\UE5Projects\KernelPanic.vscode\compileCommands_KernelPanic\LevelSequenceEditor.69.rsp UE Source rsp matchers created: 828 Startup Intellisense check is enabled and now checking... Running Native check for Intellisense files on startup... Setting up new Source file detection...
Auto Parameter Hints was set to needed Delegate Function Completions Fix was set to true Auto Include Source Files Only was set to true Checking if clangd settings missing in workspace file... No missing clangd settings found. Checking if custom system includes set: c:\UE5Projects\KernelPanic.clangd Found! Checking if custom system includes set: c:\UnrealEngine.clangd Found! *** Running command to update compile commands file... ***
Creating compile commands file in: c:\UnrealEngine
** Warning **: Error trying to backup setting: dotnet.defaultSolution (might not be a bug) Running Native onDidEndTask. Attempting to copy compile commands file to: c:\UE5Projects\KernelPanic.vscode\unreal-clangd\compile_commands.json Copy successful!
Saved file: c:\UE5Projects\KernelPanic.vscode\unreal-clangd\compile_commands.json Modified response files: 838, unchanged: 15 End Task: unreal-clangd: Update Compile Commands *** Running command to update compile commands file... ***
Creating compile commands file in: c:\UnrealEngine
** Error **: Backup settings have already been set! Running Native onDidEndTask. Attempting to copy compile commands file to: c:\UE5Projects\KernelPanic.vscode\unreal-clangd\compile_commands.json Copy successful!
Saved file: c:\UE5Projects\KernelPanic.vscode\unreal-clangd\compile_commands.json Modified response files: 838, unchanged: 15 End Task: unreal-clangd: Update Compile Commands