Open ughstudios opened 2 years ago
Searching for *.uproject file...
No *.uproject file found!
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:
Searching for *.uproject file...
Extension "UE Intellisense Fixes" is now active!
Found Unreal Engine v4.27.1
** Error **: This fixable project hasn't been initialized properly and is invalid.
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?
The project is in UGH1/UGH1, I created a symlink to the file in C:\repos\Perforce\daniel_main\UGH1\UGH1\UGH1.uproject
UGH1 is the root where the engine is and the project which has the Engine source in Engine/
and then UGH1/
is the actual game project. Does that make sense?
Yep makes sense!
What about a pic of what's in UGH1/UGH1?
Just a normal unreal project.
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?
There's nothing there. Also, if you try to generate project files, nothing happens.
Also it looks like it creates the UGH1 folder here for the project in the .vscode directory
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 https://github.com/boocs/ue4-intellisense-fixes/issues/11#issuecomment-1059817091, 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 https://github.com/boocs/ue4-intellisense-fixes/issues/11#issuecomment-1059865613, 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.
{
"folders": [
{
"name": "UE4",
"path": "."
}
],
"settings": {
"typescript.tsc.autoDetect": "off"
},
"extensions": {
"recommendations": [
"ms-vscode.cpptools",
"ms-dotnettools.csharp"
]
}
}
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
Doesn't seem like it did anything
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 You can see in the image. If I setup vscode i get the squiggles. I tried this extension and it didn't do anything.