In UE 5 I keep getting this error Unable to build while Live Coding is active - unreal-engine4

Since I upgraded to UE 5 I keep getting this error
Error Unable to build while Live Coding is active. Exit the editor
and game, or press Ctrl+Alt+F11 if iterating on code in the editor or
game
Any solution ?

Maybe this is a solution, I choose DebugGame Editor profile
For error live coding not enabled for project dll you can try deleting the Binaries, DerivedDataCache, and Intermediate folders.

Live coding is enabled on EU5 by default. This feature requires building from Unreal instead of from the IDE.
To initiate a build with live coding enabled, press CTRL+ALT+F11.
Source: https://docs.unrealengine.com/5.0/en-US/using-live-coding-to-recompile-unreal-engine-applications-at-runtime/

I ran into this issue as well while trying to build from Visual Studio Code by selecting run build task from the Terminal menu while having UE 5 Editor running. The solution for me was as simple as following the error suggestion.
First, go to Edit > Editor Preferences > General > Source Code and make sure Visual Studio Code is selected.
While in Editor Preferences, go to Live Coding and make sure Enable Live Coding is enabled.
Make any code changes in VS Code and safe the file
Build from the UE Editor and not Visual Studio code by pressing Ctrl+Alt+F11 in UE Editor

I think you can disable live coding in editor settings.
In another hand, I've used since months it , it works rather well and it is a real time saver for UE C++ game dev

Related

Unity scripts using Rider, code highlighting doesn't work

Recently I started using Rider for Scripting in Unity. It's fine but when I switch to some script (very small weight), it doesn't show any code highlighting (except blue):
The same code in other script which can work:
For work reasons it is not possible for me to delete the current script. I've tried to reinstall and checked my Settings, but still couldn't fix it.
EDIT: Thanks for the note, here is my other information:
Unity Setting:
Preferences - External Tools - External Script Editor - Rider 213.6461.51
Open Script:
Double-click on the script in Unity to open it
Same script, each keyword is highlighted in VS Studio 2019
My Unity version is 2018.4.1f1, Rider version is 2021.3
Does anyone know how to solve this problem?
I have solved the problem.It appears that Rider updates the naming conventions when opening certain scripts.
The immediate solution is:Suppose one of your script files has code highlighting disabled, Open the script in Rider, and you will see the word OFF in the upper right corner.Click it, you will see:
enter image description here
All you have to do is change "None" to "All Problems".

VS code doesn't detect UnityEngine.UI library - Unity

The issue is VS code doesn't see UnityEngine.UI library.
I had this issue before and I solved like it this:
I changed the code editor in preferences to Visual Studio, regenerated files and launched c# project. On the start, vs created needed .csproj files and then I closed vs and changed it back to vs code and it workeed.
However, now I am working on another project and I encountered same issue, I tried the method I described above but it didn't work.
Any ideas?
So, after days of tinkering and trying different solutions I found on the internet I finally found out how to solve it (all by myself).
Switch to VS and make sure it detects the UnityEngine.UI library. Then don't close VS, switch to VS Code, don't hit "regenerate files", launch c# project, enjoy!
These steps covered several possible issues:
https://stackoverflow.com/a/70977258/6046022
(just an overview, follow the link for the complete steps)
downgrade VSC package
re-install Unity UI
regenerate files

How can I get Visual Studio Code to reset the IntelliSense engine for Rust?

I am working on two projects, one is a library, the other is a program that uses that library. When I make changes to the library the other window (the program) doesn't see these changes, so I do not get updated IntelliSense. Closing the program that uses the library and reopening it does force an update but I really prefer not having to go that far.
Answering the title directly and not the root issue...
You can reset IntelliSense and all Rust code features by running the "Rust: Restart the Rust server" command from the command palette (Ctrl+Shift+P).
Progress will be indicated in the status bar.
Still a blunt tool but it will ensure you're in a fresh state without having to restart VS Code entirely.

CMD-K in Visual Studio Code

I often clear the terminal on macOS with CMD-K (sort of equivalent to reset). When I use the terminal in Visual Studio Code and I press CMD-K, the banner at the bottom of the screen shows "(CMD-K) was pressed. Waiting for second key of chord..."
How can I make CMD-K pass through the editor to go to the terminal in Visual Studio Code?
I have occasionally run into this bug (VS Code on MacOS) and each time it randomly would fix itself until recently it kept persisting even through restarting my laptop. I have now found that closing all open projects seems to fix this issue for me.
Might be related to how VS Code stores your current workspace state (opened projects and file modifications). It seems maybe these state settings sometimes get corrupted somehow 🤔

Getting black screen in visual studio after Installation completed

I was getting black screen after opening Visual studio each time. I got a solution from Stack overflow i.e code --disable-gpu. It is working fine but my main issue is when I use to code in vs code. I am not getting suggestions as intellisense is not working and I am unable to install any extensions from Visual studio code.
to disable hardware acceleration permanently (without adding --disable-gpu argument) open folder "C:\Users\your_username_here\.vscode" than open file argv.json with any editor and look for
"//disable-hardware-acceleration": true, and just remove the tow slashes before disable. i think there is a similar workaround in linux
Hit Ctrl Shift P to open the command palette,
Type Developer and choose Developer: Toggle Developer Tools.
switch to the Network tab in Dev tools.
Search for extensions now
Go to properties of visual studio
change target . Add --disable-gpu
make sure to add a space before --
it will resolve your issue.