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

Java constantly occupies 25...50% of CPU if plugin is enabled #49

Closed
Sparker95 opened this issue Mar 11, 2019 · 8 comments
Closed

Java constantly occupies 25...50% of CPU if plugin is enabled #49

Sparker95 opened this issue Mar 11, 2019 · 8 comments
Assignees
Labels

Comments

@Sparker95
Copy link

Hi!

For some reason it takes too much of my CPU when I open my project, which is a folder with lots of .sqf files.
I've let it run for half an hour or so, expecting it to finish the processing, but no, it still occupies a lot of CPU.

@SkaceKamen
Copy link
Owner

Hi, this can happen, usually when there's unexpected combination of macros, but I can't really know where the issue could be without seeing the code.

@Sparker95
Copy link
Author

That's our code: https://github.com/Sparker95/Project_0/tree/development/Project_0.Altis
The macros amount is big indeed.
Maybe it would be useful to add an output somewhere so that we can understand that the plugin is stuck at some file? Or such an output exists already? I'm sorry, I'm quite new to VS Code.

@SkaceKamen
Copy link
Owner

Well, no there's really no output, these issues shouldn't ever happen. I'll try to find the issue with your project, hopefully it's just a small issue.

@SkaceKamen SkaceKamen self-assigned this Mar 14, 2019
@SkaceKamen SkaceKamen added the bug label Mar 14, 2019
@billw2012
Copy link

billw2012 commented Mar 31, 2019

Repro:
test.sqf:

#include "test.hpp"

test.hpp

#define A() ()
// A)

@Sparker95
Copy link
Author

So did I break everything with my function-like macros again? :D

@SkaceKamen
Copy link
Owner

Thanks for the repro, I'm really sorry but I don't have much free time right now to look at it, but it will really help when I get to it.

@billw2012
Copy link

So this was a problem in sqflint project not this one, I have made a pull request in that project that addresses it, along with other preproc issues I found.

@SkaceKamen
Copy link
Owner

Should be solved in 0.9.8, if not, I'll reopen the issue.
Thanks @billw2012.

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

No branches or pull requests

3 participants