GithubHelp home page GithubHelp logo

nils-soderman / vscode-unreal-python Goto Github PK

View Code? Open in Web Editor NEW
77.0 5.0 10.0 9.01 MB

Visual Studio Code extension with features to assist when writing python code for Unreal Engine

Home Page: https://marketplace.visualstudio.com/items?itemName=NilsSoderman.ue-python

License: MIT License

TypeScript 82.31% Python 12.05% HTML 1.98% JavaScript 0.73% SCSS 2.92%
engine extension python ue5 unreal unreal-engine unreal-engine-5 visual-studio-code vscode ue

vscode-unreal-python's People

Contributors

dependabot[bot] avatar f-dudley avatar nils-soderman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vscode-unreal-python's Issues

Execute with -unattended

Some functions like show message box are returned without pop a dialog, is it possible to execute with -unattended args?

image

Documentation setting up code completion and debugging.

Hi Nils,

I would like to request that you update the documentation to explain how it would be possible to debug code and also get code auto completion working please.

Please add:

  1. Enable "Python Editor Script plugin" in the Unreal plugins
  2. In project settings "Enable remote execution" need to be ticked

I can run code in unreal now using CTRL + Enter from VS code which is really cool ! But I do not understand what you mean by
Command: "Unreal Python: Setup code completion"
or
Command: Unreal Python: Attach

I have tried to run that in CMD and using CTRL + R in the VS code editor window. And have also tried to run that from the Unreal Engine Python command prompt but nothing seems to connect and I do not see any code completion when I type for example

import unreal

"unreal." then hit CTRL + Space to prompt for code completion
Or
"unreal.lo" then hit CTRL + Space to prompt for unreal.log("")

Hope that makes sense. Would appreciate any help to get this working it looks like a super useful addon.
remote_exec
enable_python

Allow the attached debugger to debug python installs.

Allow the attached debugger to debug installed python libraries used by your scripts.
Using the justMyCode configuration parameter when launching the unreal attached debug session.

So installed python libraries can be debugged along with your own python code, which can be useful in certain scenarios.

Cannot connect to ue5.3 project

After I switch my ue5.2 project to ue5.3, vscode command Select Instance cannot find my opened ue project, 5.2 is fine, any one encountered save problem?

Remote code execution from WSL2

Would it be possible to implement remote code execution from WSL2 as well?
I've never worked with VSCode extensions, maybe with some guidance I can help implement it.

EDIT: I've been able to connect to the Windows UE5 instance from WSL2, changing TTL to 2 in the plugin and extension settings. Even so, when I try to run a script file, the UE5 output log displays:

LogPython: Error: Traceback (most recent call last):
LogPython: Error:   File "<string>", line 1, in <module>
LogPython: Error: OSError: [Errno 22] Invalid argument: '/home/richardnm/.vscode-server/extensions/nilssoderman.ue-python-1.1.0/python/execute/vscode_execute_entry.py'

It seems that it has the root for file execution on Windows, trying to access the WSL Ubuntu /home/... directory.

Unreal engine 5.3

Does this work in UE 5.3 ? I am having no success in attaching . However I am able to get this running in 5.2 .

GUI won't print to the console until closed

When creating simple test GUI with PySide2, a single button that prints a string, it wont print anything until I close the GUI. Same thing with Tkinter. Tried also threading and what not. Is this issue on the Unreal side?

Solved by removing sys.exit(myApp.exec_())

Error: Timed out while trying to connect to Unreal Engine.

Hello there!
I am having a timed-out connection problem while I am trying to execute the python code on VSCode. I'd never had this issue before and succesfully ran a lot of scripts so far. I can also run the script from UE5 , too (Tools>Python>Execute Python Script...). Could you please help me on how to solve this problem?

Thanks!

ModuleNotFoundError when importing python files (utility.py) located in the same directory as main.py script

I cannot import classes or def functions like this
from myOtherFile import utilityABC

I was wondering what the best solution is to import my own custom python files from the same directory or even sub directory with this extension?

I can do this just fine outside of vscode and the stub system everything works great but the interpreter in vscode along with the Unreal remote execution does not seem to handle importing local files in the same way.

Hopefully you have a solution as this will make my code a lot more readable.

VS code to UE 5.4 connection attempt fails

VS code to UE 5.4 connection attempt fails. I have tried to dispatch the connection by changing the 1) "Remote mutlicast group endpint" => 239.0.0.1:6767 2) Remote: Multicast Bind Address => "0.0.0.0". Im not sure what the Remote: Command Endpoint should be. At this point, I have set it to 0.0.0.0:6767. Made sure the "remote muticast" values match in both vscode/UE5.4. Unfortuntaely, the connection issue is still not resolved.

Please let us know if the current version is compatible with UE5.4.

Kindly help.

Best Regards

Add "Execute Document" command that always executes the entire file

If the code contains Chinese characters, or the comment contains Chinese characters, LogPython will be prompted in the UE output: Error: File "Vscode extensions nilssoderman. ue-python-0.2.0 python vscode_execute. py", line 69, in main
LogPython: Error: execute_ code(vscode_in_file.read(), exec_ origin, is_ debugging)
LogPython: Error: UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 98: illegal multibyte sequence

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.