boocs / ue4-intellisense-fixes

Automatically fixes VSCode/Unreal Engine Intellisense Config bugs on startup
MIT License
162 stars 9 forks source link

Couldn't find the UE4/UE5 workspace #4

Closed Anti-Distinctlyminty closed 2 years ago

Anti-Distinctlyminty commented 2 years ago

The extension doesn't work for me. I'm just getting the following error:

Couldn't find the UE4/UE5 workspace.
** Error **: Couldn't parse Unreal Engine version.
** Error **: No fixable project could be created.

I'm using UE 4.27

Anti-Distinctlyminty commented 2 years ago

This seems to have solved it for me https://community.gamedev.tv/t/can-t-find-coreminimal-h/178423

boocs commented 2 years ago

@Anti-Distinctlyminty

This should've been fixed with the latest extension version which had special fixes for 4.27.0. Make sure you're running extension version 2.1.0 and not 2.0.1.

Anti-Distinctlyminty commented 2 years ago

Hi @boocs I'm running v2.1.0, but I still get the same issue as in my first post. The vscode output C/C++ Configuration Warnings state Unable to resolve configuration with compilerPath "C:\Program". Using "cl.exe" instead. The forum post seems to address this issue and fixes the problem with intellisense.

boocs commented 2 years ago

Couldn't find the UE4/UE5 workspace. This error is very strange and should never happen unless something is wrong.

  1. Did you open your project as a folder or a workspace? When you open your project, on your VSCode title bar, does it contain (Workspace) in the title?

    You need to double click the *.code-workspace file, in your project directory, to open the project as a workspace.

  2. If you done the above and it still errors. Open the *.code-workspace file in a text editor and tell me what it says under folders:

    "folders": [
        {
            "name": "MyProject",
            "path": "."
        },
        {
            "name": "UE4",
            "path": "K:\\Program Files\\Epic Games\\UE_4.27"
        }
    ]

    This is how I get the UE4/UE5 path in my extension. What does it say for the name of UE4?

  3. If you don't have a *.code-workspace file in your project directory then you need to go into the Unreal Engine and change it to work with VSCode.

    Go to Editor preferences->Source Code and change the dropdown menu to Visual Studio Code. After the Unreal Engine restarts you might have the file or might not. If you still don't, go to the Unreal Engine File menu and choose Refresh Visual Studio Code Project.

Anti-Distinctlyminty commented 2 years ago
  1. Did you open your project as a folder or a workspace? When you open your project, on your VSCode title bar, does it contain (Workspace) in the title? You need to double click the *.code-workspace file, in your project directory, to open the project as a workspace.

This was the issue it seems. I somehow had the folder open, not the *.code-workspace. Once I opened it via that, it all seemed to work.

Thank you!