smallcloudai / refact-vs-classic

Refact for Visual Studio is a free, open-source AI code assistant
BSD 3-Clause "New" or "Revised" License
12 stars 13 forks source link

Can't restart refact-lsp in some cases #24

Open hazratisulton opened 8 months ago

hazratisulton commented 8 months ago

Steps to reproduce: Create new file, for example, .cpp. Use completion. Restart IDE. Create new file Try to use completion.

Expected result: Refact plugin works.

Actual result: Снимок экрана 2024-01-09 100917 Снимок экрана 2024-01-09 101623 Completion doesn't work because process refact-lsp did not complete from the previous launch. Sometimes another reboot may be necessary to reproduce the problem.

Software versions: Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.8.4 Refact plugin v 0.0.1 Windows 11 Pro 22H2 22621.2861

Logs: ActivityLog.zip

hazratisulton commented 8 months ago

@digital-phoenix

digital-phoenix commented 8 months ago

@hazratisulton are you running the plugin from source or from the package installer?

hazratisulton commented 8 months ago

@digital-phoenix Installed from marketplace изображение

digital-phoenix commented 8 months ago

@hazratisulton the marketplace version is out of date. You'll have to wait for it to be updated.

hazratisulton commented 8 months ago

Checked yesterday version https://github.com/smallcloudai/refact-vs-classic/actions/runs/7469728225/artifacts/1158463034 - still have problem.

Steps to reproduce: Create new file, for example, .cpp. Use completion. Create new project, for example, Empty Project. Add -> New item - FileName.cpp Try to use completion.

Result: Completion not working image.

ActivityLog.zip rustbinary.zip

digital-phoenix commented 8 months ago

@hazratisulton can you include the log files?

hazratisulton commented 8 months ago

@hazratisulton can you include the log files?

updated previous message

hazratisulton commented 7 months ago

Tested https://github.com/smallcloudai/refact-vs-classic/actions/runs/7588140824. Problem https://github.com/smallcloudai/refact-vs-classic/issues/24#issuecomment-1886537674 is still reproducible. rustbinary.zip ActivityLog.zip

olegklimov commented 7 months ago

Disposed object -- that looks like a bug that shouldn't happen in any case.

digital-phoenix commented 6 months ago

@hazratisulton can you confirm if this only happens as a result of creatng a new project after using completions? Does this happen if you don't create a project?

olegklimov commented 6 months ago

If there is no http port that RefactLanguageClient.cs opens, then there's no obvious reason for lsp to fail to start.

process refact-lsp did not complete from the previous launch

This could be the case if it was the port, the same hardcoded port, but there isn't any 🤔