Skip to content
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

vs code not detected c++ UE5 #158

Closed
Etaash-mathamsetty opened this issue Apr 6, 2022 · 6 comments
Closed

vs code not detected c++ UE5 #158

Etaash-mathamsetty opened this issue Apr 6, 2022 · 6 comments

Comments

@Etaash-mathamsetty
Copy link

Etaash-mathamsetty commented Apr 6, 2022

Describe the bug
title says it all

To Reproduce
Steps to reproduce the behavior:

  1. install the flatpak
  2. create new UE5 project
  3. Go to create new c++ class
  4. it says vs code is not installed, even though I gave UE5 full access to my file system
@aknarts
Copy link
Contributor

aknarts commented Apr 6, 2022

Hi, this is more issue with Unreal not detecting vscode in all places it should. All I can do from my side is add the ability to change the source code accessor to something your system does have, otherwise you can build your project for editor and open it normally using something like this:

<PATH TO UE4>/Engine/Build/BatchFiles/Linux/Build.sh Linux Development -Project=<PATH TO PROJECTS>/<ProjectName>/<ProjectName>.uproject -TargetType=Editor

After that the project should open as expected

@Etaash-mathamsetty
Copy link
Author

Etaash-mathamsetty commented Apr 6, 2022

Hi, this is more issue with Unreal not detecting vscode in all places it should. All I can do from my side is add the ability to change the source code accessor to something your system does have, otherwise you can build your project for editor and open it normally using something like this:

<PATH TO UE4>/Engine/Build/BatchFiles/Linux/Build.sh Linux Development -Project=<PATH TO PROJECTS>/<ProjectName>/<ProjectName>.uproject -TargetType=Editor

After that the project should open as expected

I can compile just fine with vs code, its just unreal engine can't detect it and so its not creating the c++ files I need. (and wherever I press edit c++ or open in vs code, nothing happens, and its pretty annoying)

@aknarts
Copy link
Contributor

aknarts commented Apr 6, 2022

Does it happen only when you launch through EAM? or even if you launch outside? I know there is a sandboxing issue with flatpak where it essentially launches the Engine inside the flatpak so it might have issues finding things. If it is the same outside EAM you can also generate the project files...

<PATH TO UE4>/GenerateProjectFiles.sh -Game <PATH TO PROJECTS>/<ProjectName>/<ProjectName>.uproject

@Etaash-mathamsetty
Copy link
Author

Etaash-mathamsetty commented Apr 6, 2022

Does it happen only when you launch through EAM? or even if you launch outside? I know there is a sandboxing issue with flatpak where it essentially launches the Engine inside the flatpak so it might have issues finding things. If it is the same outside EAM you can also generate the project files...

<PATH TO UE4>/GenerateProjectFiles.sh -Game <PATH TO PROJECTS>/<ProjectName>/<ProjectName>.uproject

lol it crashes if i run it outside of EAM, but I am suspecting it is a sandboxing issue.
actually I think it has to do with docker, I might have to install it inside of docker. (the engine runs through docker right?)

@aknarts
Copy link
Contributor

aknarts commented Apr 6, 2022

If you downloaded it through EAM it extracted it from the docker image and you do not need to have docker to run it. There might be an actual issue with the package as it was built. I will test it and see what is going on there.

@Etaash-mathamsetty
Copy link
Author

Etaash-mathamsetty commented Apr 6, 2022

seems like mangohud was causing the issue of it not launching without flatpak. (I have it globally enabled)
ok vs code works too, closing
(seems like flatpak sandboxing DOES cause this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants