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

Bug, The extension doesn't work at all, stuck on Loading Ren'py static data #389

Closed
DeltaGe opened this issue Nov 19, 2023 · 4 comments
Closed
Labels
bug Something isn't working t:semantic

Comments

@DeltaGe
Copy link

DeltaGe commented Nov 19, 2023

Extension version

2.3.6

Issue description

Howdy there. The extension would be really nice if it worked, and it does work on the question game included in the original renpy distribution. I tried installing this one extension in VScode and running development with it, multiple PCs, multiple windows versions, multiple reinstalls of VScode, multiple things tried, every single time it fails to load, it is either stuck on "loading ren'py static data", or it simply hangs the entire VScode environment. It disables intellisense entirely for all other extensions.
I would really love to help or do something to bring it back, because it would theiretically have better support than the other extension, better color coding, but as it right now does not load intellisense...
At any rate, it does not seem to work with any project I have, it does not load. I am running a workstation,
7950x, 64GB RAM, 4090, enough hardware to run it even if it tried to read the entire code of the entire project. It does not spike CPU or RAM usage in Task Manager.
I can provide logs if you can tell me how to do that, I would really like to use it.

Scope inspector screenshots

--

Code

--

@EtchJetty
Copy link

Having this same issue, too. I keep having to disable the extension whenever opening an .rpy file over a certain size.

@duckdoom4 duckdoom4 added bug Something isn't working t:semantic and removed topic:syntax labels Feb 20, 2024
@duckdoom4
Copy link
Collaborator

duckdoom4 commented Feb 20, 2024

We are aware of the issue, unfortunately I've not been able to reproduce it locally. The issue occurs on specific renpy files. The size is irrelevant.

It's due to the custom parser getting stuck in a loop and unfortunately we can't run the code on a separate thread to mitigate the side effects of it getting stuck.

To help us solve the issue I need a minimal repro example, try to pinpoint the exact file that is causing the slowdown and strip it down to something you can share (then test to make sure it's still causing the slowdown)

@duckdoom4
Copy link
Collaborator

duckdoom4 commented Feb 20, 2024

As for the OP, this has also happened to people every now and then. Unfortunately we have never been able to figure out what is going on there.

There must be a specific thing that you set-up differently than we (the development team) have. We have some options to display logs, so those would be very helpful. Other then that, could you tell us step by step how you set-up everything?

Eg. are you using the visual studio code version provided by renpy or a local install? Is it a new or old project? Did you try using the renpy sample project?
Is your setup crossing drive letters? Eg. C: drive contains visual studio, but D: drive contains your project.

At this point I'm looking for any kind of clue cus we're kinda lost on this one.

Edit: I read that it does work on the renpy included sample project, in that case I'd like to know only things about the project that breaks it. Probably the above comment applies in that case.

@duckdoom4
Copy link
Collaborator

duckdoom4 commented Feb 23, 2024

Those are some great insights, thank you! If you could tell me the game that'd be great, that way I can test it myself

duckdoom4 added a commit that referenced this issue Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working t:semantic
Projects
None yet
Development

No branches or pull requests

3 participants