POSIdev-community / AI.Plugin.VSCode

PT AI IDE Plugin for Visual Studio Code
Other
23 stars 1 forks source link

Doesn't work in GitHub Codespaces #5

Open ooovlad opened 4 months ago

ooovlad commented 4 months ago

This plugin tears down into pieces when being attempted to run in 👨‍💻 Codespaces:

Could you clarify why doesn't it perform in Codespaces? Is there a possible solution in the future?

Tested on this repo.

ooovlad commented 4 months ago

📜 Logs

Codespace configuration: 4-core • 16GB RAM • 32GB

📂 Logdir: /workspaces/fixathon-vulnerable-apps/python/.ai/Logs/Infrastructure/

👁 This one caught my eye, and it happens more than once:

ERROR  @PythonProcessor: Error "InsufficientMemory"(null) was received.

Also tried to run infr as advised here, but I don't know the arguments, --help doesn't help.

alyadusov commented 3 months ago

Hello! Thank you for your report.

Unfortunately, we did not test this scenario - we did not even expect that the plugin in the code space would be alive in any form. However, now that I have researched it, I see that we can bring it to a working form. I added the task to the backlog.

At the moment, the main problem observed in codespace is incremental scanning. If you do a full scan every time it will work but slightly limited. "Command Pallet" -> "Start Full Scan"

image

As for the "InsufficientMemory" error, it does not break the work, but reduces the quality of the analysis. I suspect that there is something wrong with the RAM that the codespace allocates for the session.

For such a scenario, I recommend disabling the built-in resource consumption limit in the plugin settings. image