-
Notifications
You must be signed in to change notification settings - Fork 9
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
Does not work when you have a source build and a project #11
Comments
It's basically unable to find the uproject because it's in the ugh1 folder. Could you add a project selector maybe? Otherwise maybe I just add a symlink? |
If I create a symlink I get the following error:
|
Sorry! This is the first I've heard of UGS so this could take awhile. So UGH1 is a project inside the UE folder? Can you show a picture of everything that's in the UGH1 folder? |
Yep makes sense! What about a pic of what's in UGH1/UGH1? |
I should mention that the sym link does NOT fix the problem at all, so I'm deleting it. |
I think you need to create a vscode project for the UGH1/UGH1 project. The first UGH1 folder has a vscode workspace file inside but that's a workspace project for modifying the unreal engine source code not for modifying a individual project. In the script or scripts folder of UGH1/UGH1 is there a script for creating a vscode workspace project for UGH1/UGH1? |
If not, you might be able to right click on the UGH1/UGH1 UGH1.uproject file and select the option Generate Visual Studio project files.... Is it there? What happens if you choose it? |
That compile commands folder should be for the first UGH1 folder not the second UGH1 project folder. Can you double click the UGH1.uproject file, to open the project in the Unreal Engine, and then switch the engine to use VSCode? It's in Editor Preferences -> Source Code -> Source Code Editor : Switch it to VSCode |
Yeah I did that
…On Sat, Mar 5, 2022 at 11:09 AM boocs ***@***.***> wrote:
That compile commands folder should be for the first UGH1 folder not the
second UGH1 project folder.
Can you double click the UGH1.uproject file, to open the project in the
Unreal Engine, and then switch the engine to use VSCode?
It's in Editor Preferences -> Source Code -> Source Code Editor : Switch
it to VSCode
—
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJZST4E75AZEU7B6AWBKV3U6OWNNANCNFSM5P7FFFEQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Now again try double clicking the UGH1/UGH1 UGH1.uproject file, to load the project into the UE, and in the File menu there should be something that says Refresh Visual Studio Code Project. I believe it's in another menu for UE5 but in UE4 it should be there. |
Another thing, are there any C++ files in the UGH1/UGH1 Source folder/subfolders? If not then UE might think it's a Blueprint project and won't setup the project with VSCode/C++ config files. |
Yes there are cpp files and I also clicked refresh multiple times.
…On Sat, Mar 5, 2022 at 5:08 PM boocs ***@***.***> wrote:
Another thing, are there any C++ files in the UGH1/UGH1 Source
folder/subfolders? If not then UE might think it's a Blueprint project and
won't setup the project with VSCode/C++ config files.
—
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJZST6HRVMZ5MV4JEB6WNTU6QAPPANCNFSM5P7FFFEQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I guess it could be some weird/different UGS config thing. If you open the UE4.code-workspace in a text editor can you post what's inside. Just to see if it even mentions the UGH1/UGH1 folder. |
|
Check out this post from NicholasMont to generate project file from the command line. Maybe it'll give you some message that helps with not creating project files for UGH1/UGH1. https://forums.unrealengine.com/t/why-cant-i-generate-visual-studio-project-files/434992/6 |
I believe this is the same thing you're doing: https://forums.unrealengine.com/t/whats-a-native-project/264986 UE4-Main is your first UGH1 folder and VanillaProj is your UGH1/UGH1 folder. In the VanillaProj it has a .vs and a VanillaProj.sln. So I'm guessing I'm correct in saying that they should be there. In your case a .vscode and .code-workspace file. You'll probably have better luck asking in another forum on how to generate project files for native projects. My last suggestion would be deleting(or moving just in case) these folders in UGH1/UGH1 and trying the same thing with creating project file on the command line. You can skip the part you already did with setting the source code setting to VSCode in UE. https://forums.unrealengine.com/t/generate-visual-studio-project-files-not-working/417083 |
So if you are using unreal game sync, you are required to have an Engine and a path together
![image](https://user-images.githubusercontent.com/1284431/156867972-7d52e6a8-fc20-45d2-b148-c5d6d00952e8.png)
You can see in the image. If I setup vscode i get the squiggles. I tried this extension and it didn't do anything.
The text was updated successfully, but these errors were encountered: