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

Rzls Process Remains Running After VsCode Closes. #6556

Closed
vindicatorr opened this issue Jul 2, 2022 · 7 comments
Closed

Rzls Process Remains Running After VsCode Closes. #6556

vindicatorr opened this issue Jul 2, 2022 · 7 comments
Assignees
Milestone

Comments

@vindicatorr
Copy link

Is this a Bug or Feature request?:

Bug

Steps to reproduce

Open vscode for a project that uses razor.
Close vscode.

Description of the problem:

rzls process remains running after vscode closes.

Expected behavior: rzls process closes when vscode closes.

Actual behavior: rzls process remains running after vscode closes.

userName    2887265    1226  0 07:43 ?        00:00:05 /home/userName/.vscode-oss/extensions/ms-dotnettools.csharp-1.25.1/.razor/rzls -lsp --trace 2
userName    2889658    1226  1 07:55 ?        00:00:05 /home/userName/.vscode-oss/extensions/ms-dotnettools.csharp-1.25.1/.razor/rzls -lsp --trace 2
userName    2890697    1226 11 08:01 ?        00:00:04 /home/userName/.vscode-oss/extensions/ms-dotnettools.csharp-1.25.1/.razor/rzls -lsp --trace 0
userName    2891134 2891014 55 08:02 ?        00:00:02 /home/userName/.vscode-oss/extensions/ms-dotnettools.csharp-1.25.1/.razor/rzls -lsp --trace 2

Logs

OmniSharp

Starting OmniSharp server at 7/2/2022, 8:02:24 AM
    Target: <pathToProject>

OmniSharp server started with .NET 7.0.100-preview.4.22252.9
 (/opt/dotnet/dotnet).
    Path: /home/userName/.vscode-oss/extensions/ms-dotnettools.csharp-1.25.1/.omnisharp/1.39.0-net6.0/OmniSharp.dll
    PID: 2891173

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Unknown 0.0 (Unknown)
[info]: OmniSharp.Services.DotNetCliService
        Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
[info]: OmniSharp.Services.DotNetCliService
        Using the 'dotnet' on the PATH.
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: .NET Core SDK 7.0.100 17.3.0 - "/opt/dotnet/sdk/7.0.100-preview.4.22252.9/"
            2: .NET Core SDK 6.0.200 17.1.0 - "/opt/dotnet/sdk/6.0.200/"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: .NET Core SDK 7.0.100 17.3.0 - "/opt/dotnet/sdk/7.0.100-preview.4.22252.9/"
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectSystem
        No solution files found in '<pathToProject>'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '<pathToProject>/<project>.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '<pathToProject>'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Did not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '<pathToProject>' on host 2891014.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: <pathToProject>/<project>.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '<pathToProject>/<project>.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '<pathToProject>/<project>.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: webapp
[info]: OmniSharp.MSBuild.ProjectManager
        Found referenced project outside root directory: <pathToProjectRef>/<projectRef>.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '<pathToProjectRef>/<projectRef>.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '<pathToProjectRef>/<projectRef>.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: <pathToProjectRef>/<projectRef>.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '<pathToProjectRef>/<projectRef>.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: letsencrypt
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /opt/dotnet/sdk/7.0.100-preview.4.22252.9/Sdks/Microsoft.NET.Sdk/analyzers/Microsoft.CodeAnalysis.CSharp.NetAnalyzers.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /opt/dotnet/sdk/7.0.100-preview.4.22252.9/Sdks/Microsoft.NET.Sdk/analyzers/Microsoft.CodeAnalysis.NetAnalyzers.dll
[info]: OmniSharp.OmniSharpWorkspace
        Adding analyzer reference: /home/userName/.nuget/packages/microsoft.netcore.app.ref/6.0.4/analyzers/dotnet/cs/System.Text.Json.SourceGeneration.dll

Razor

Expand

[Client - 7:56:21 AM] -- Starting Issue Data Collection-- 
[Client - 7:56:28 AM] -- Stopping Issue Data Collection-- 
--------------------------------------------------------------------------------
Razor.VSCode version 6.0.0-preview.5.21358.6
--------------------------------------------------------------------------------
Razor's trace level is currently set to 'Verbose'
 - To change Razor's trace level set 'razor.trace' to 'Off', 'Messages' or 'Verbose' and then restart VSCode.
 - To report issues invoke the 'Report a Razor issue' command via the command palette.
-----------------------------------------------------------------------------------------------------------------------------

[Client - 8:02:23 AM] Razor language server path: /home/userName/.vscode-oss/extensions/ms-dotnettools.csharp-1.25.1/.razor/rzls
[Client - 8:02:24 AM] Starting Razor Language Server...
[Client - 8:02:24 AM] Server started, waiting for client to be ready...
[Warn  - 8:02:27 AM] OmniSharp.Extensions.LanguageServer.Server.Configuration.DidChangeConfigurationProvider: No ConfigurationItems have been defined, configuration won't surface any configuration from the client! | 
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Finding descriptors for initialize | Method='initialize'
OmniSharp.Extensions.JsonRpc.ProcessScheduler: Queueing Serial:initialize:0 request for processing | Type='Serial' Name='initialize:0'
OmniSharp.Extensions.JsonRpc.InputHandler: Starting: Processing request initialize 0 | Method='initialize' ResponseId='0'
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Starting: Routing Request (0) initialize | Id='0' Method='initialize'
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Converting params for Request (0) initialize to OmniSharp.Extensions.LanguageServer.Protocol.Models.InternalInitializeParams | Id='0' Method='initialize' Type='OmniSharp.Extensions.LanguageServer.Protocol.Models.InternalInitializeParams'
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Converting params for Notification initialize to OmniSharp.Extensions.LanguageServer.Protocol.Models.InternalInitializeParams | Method='initialize' Type='OmniSharp.Extensions.LanguageServer.Protocol.Models.InternalInitializeParams'
[Info  - 8:02:31 AM] Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem.DefaultRazorProjectService: Added project '<pathToProject>/<project>.csproj' to project system. | 
[Info  - 8:02:31 AM] Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem.DefaultRazorProjectService: Adding document '<pathToProject>/Pages/Error.cshtml' to project '<pathToProject>/<project>.csproj'. | 
[Info  - 8:02:31 AM] Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem.DefaultRazorProjectService: Adding document '<pathToProject>/Pages/Index.cshtml' to project '<pathToProject>/<project>.csproj'. | 
[Info  - 8:02:31 AM] Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem.DefaultRazorProjectService: Adding document '<pathToProject>/Pages/Privacy.cshtml' to project '<pathToProject>/<project>.csproj'. | 
[Info  - 8:02:31 AM] Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem.DefaultRazorProjectService: Adding document '<pathToProject>/Pages/_ViewImports.cshtml' to project '<pathToProject>/<project>.csproj'. | 
[Info  - 8:02:31 AM] Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem.DefaultRazorProjectService: Adding document '<pathToProject>/Pages/_ViewStart.cshtml' to project '<pathToProject>/<project>.csproj'. | 
[Info  - 8:02:31 AM] Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem.DefaultRazorProjectService: Adding document '<pathToProject>/Pages/Shared/_Layout.cshtml' to project '<pathToProject>/<project>.csproj'. | 
[Info  - 8:02:31 AM] Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem.DefaultRazorProjectService: Adding document '<pathToProject>/Pages/Shared/_ValidationScriptsPartial.cshtml' to project '<pathToProject>/<project>.csproj'. | 
[Info  - 8:02:31 AM] Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem.DefaultRazorProjectService: Updating project '<pathToProject>/<project>.csproj' TagHelpers (248) and C# Language Version (1000). | 
[Info  - 8:02:31 AM] Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem.DefaultRazorProjectService: Updating project '<pathToProject>/<project>.csproj''s root namespace to 'webapp'. | 
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult | Type='OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult'
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Finished: Routing Request (0) initialize in 1342ms | Id='0' Method='initialize' ElapsedMilliseconds='1342'
OmniSharp.Extensions.JsonRpc.InputHandler: Finished: Processing request initialize 0 in 1352ms | Method='initialize' ResponseId='0' ElapsedMilliseconds='1352'
[Client - 8:02:31 AM] Server starting!
[Client - 8:02:31 AM] Server ready!
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Finding descriptors for initialized | Method='initialized'
OmniSharp.Extensions.JsonRpc.ProcessScheduler: Queueing Serial:initialized request for processing | Type='Serial' Name='initialized'
OmniSharp.Extensions.JsonRpc.InputHandler: Starting: Processing notification initialized | Method='initialized'
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Starting: Routing Notification initialized | Method='initialized'
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Converting params for Notification initialized to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams | Method='initialized' Type='OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams'
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Finished: Routing Notification initialized in 132ms | Method='initialized' ElapsedMilliseconds='132'
OmniSharp.Extensions.JsonRpc.InputHandler: Finished: Processing notification initialized in 138ms | Method='initialized' ElapsedMilliseconds='138'
[Warn  - 8:02:31 AM] OmniSharp.Extensions.LanguageServer.Server.Configuration.DidChangeConfigurationProvider: No ConfigurationItems have been defined, configuration won't surface any configuration from the client! | 
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Finding descriptors for _ms_/textDocument/semanticTokensLegend | Method='_ms_/textDocument/semanticTokensLegend'
OmniSharp.Extensions.JsonRpc.ProcessScheduler: Queueing Serial:_ms_/textDocument/semanticTokensLegend:1 request for processing | Type='Serial' Name='_ms_/textDocument/semanticTokensLegend:1'
OmniSharp.Extensions.JsonRpc.InputHandler: Starting: Processing request _ms_/textDocument/semanticTokensLegend 1 | Method='_ms_/textDocument/semanticTokensLegend' ResponseId='1'
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Starting: Routing Request (1) _ms_/textDocument/semanticTokensLegend | Id='1' Method='_ms_/textDocument/semanticTokensLegend'
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Converting params for Request (1) _ms_/textDocument/semanticTokensLegend to Microsoft.AspNetCore.Razor.LanguageServer.Semantic.SemanticTokensLegendParams | Id='1' Method='_ms_/textDocument/semanticTokensLegend' Type='Microsoft.AspNetCore.Razor.LanguageServer.Semantic.SemanticTokensLegendParams'
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Converting params for Notification _ms_/textDocument/semanticTokensLegend to Microsoft.AspNetCore.Razor.LanguageServer.Semantic.SemanticTokensLegendParams | Method='_ms_/textDocument/semanticTokensLegend' Type='Microsoft.AspNetCore.Razor.LanguageServer.Semantic.SemanticTokensLegendParams'
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.Proposals.SemanticTokensLegend | Type='OmniSharp.Extensions.LanguageServer.Protocol.Models.Proposals.SemanticTokensLegend'
OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Finished: Routing Request (1) _ms_/textDocument/semanticTokensLegend in 6ms | Id='1' Method='_ms_/textDocument/semanticTokensLegend' ElapsedMilliseconds='6'
OmniSharp.Extensions.JsonRpc.InputHandler: Finished: Processing request _ms_/textDocument/semanticTokensLegend 1 in 6ms | Method='_ms_/textDocument/semanticTokensLegend' ResponseId='1' ElapsedMilliseconds='6'
[Client - 8:02:32 AM] Notifying document '<pathToProject>/Pages/_ViewStart.cshtml' changed 'added'
[Client - 8:02:32 AM] Notifying document '<pathToProject>/Pages/_ViewImports.cshtml' changed 'added'
[Client - 8:02:32 AM] Notifying document '<pathToProject>/Pages/Privacy.cshtml' changed 'added'
[Client - 8:02:32 AM] Notifying document '<pathToProject>/Pages/Index.cshtml' changed 'added'
[Client - 8:02:32 AM] Notifying document '<pathToProject>/Pages/Error.cshtml' changed 'added'
[Client - 8:02:32 AM] Notifying document '<pathToProject>/Pages/Shared/_ValidationScriptsPartial.cshtml' changed 'added'
[Client - 8:02:32 AM] Notifying document '<pathToProject>/Pages/Shared/_Layout.cshtml' changed 'added'
[Info  - 8:02:53 AM] Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem.DefaultRazorProjectService: Updating project '<pathToProject>/<project>.csproj' TagHelpers (248) and C# Language Version (1000). | 
Microsoft.AspNetCore.Razor.LanguageServer.ProjectSystem.DefaultRazorProjectService: Updating project '<pathToProject>/<project>.csproj'. The project is already using configuration 'MVC-3.0' and root namespace 'webapp'. | 

Workspace information

Razor document:

Expand

Non Razor file as active document

Projected CSharp document:

Expand

Could not determine CSharp content

Projected Html document:

Expand

Could not determine Html content

Machine information

VSCode version: 1.67.0
Razor.VSCode version: 1.25.1

dotnet --info

Expand

.NET SDK:
 Version:   7.0.100-preview.4.22252.9
 Commit:    6bc31786a8

Runtime Environment:
 OS Name:     arch
 OS Version:  
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /opt/dotnet/sdk/7.0.100-preview.4.22252.9/

global.json file:
  Not found

Host:
  Version:      7.0.0-preview.4.22229.4
  Architecture: x64
  Commit:       9c37a3b3eb

.NET SDKs installed:
  6.0.200 [/opt/dotnet/sdk]
  7.0.100-preview.4.22252.9 [/opt/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.2 [/opt/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.0-preview.4.22251.1 [/opt/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.20 [/opt/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.11 [/opt/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.2 [/opt/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.0-preview.4.22229.4 [/opt/dotnet/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

Extensions

Expand

Extension Author Version
azure-account ms-vscode 0.8.9
cloudcode googlecloudtools 1.19.0-insiders.0
csharp ms-dotnettools 1.25.1
msbuild-project-tools tintoy 0.4.3
vscode-docker ms-azuretools 1.22.0

@TanayParikh TanayParikh transferred this issue from dotnet/aspnetcore Jul 3, 2022
@ghost ghost added the untriaged label Jul 3, 2022
@allisonchou allisonchou added this to the Backlog milestone Jul 7, 2022
@ghost ghost removed the untriaged label Jul 7, 2022
@allisonchou
Copy link
Contributor

allisonchou commented Oct 18, 2022

Additional reports: dotnet/vscode-csharp#2851

@allisonchou allisonchou modified the milestones: Backlog, 17.5 Planning Oct 18, 2022
@vindicatorr
Copy link
Author

AH! I was so sure I had reported this before, but couldn't find it. I mean, I know I didn't report that specific issue #, but rather linked to it via tintoy/msbuild-project-tools-vscode#53 (comment)

@DustinCampbell
Copy link
Member

@allisonchou: Could you see if this is addressed with your new VS Code bits?

@phil-allen-msft phil-allen-msft modified the milestones: 17.5 P2, 17.5 P3 Dec 22, 2022
@anitsh
Copy link

anitsh commented Dec 24, 2022

The issue still remains.

System Info

dotnet --info
.NET SDK:
 Version:   7.0.101
 Commit:    bb24aafa11

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  22.04
 OS Platform: Linux
 RID:         ubuntu.22.04-x64
 Base Path:   /usr/share/dotnet/sdk/7.0.101/

Host:
  Version:      7.0.1
  Architecture: x64
  Commit:       97203d38ba

.NET SDKs installed:
  7.0.101 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
code -v
1.74.0
5235c6bb189b60b01b1f49062f4ffa42384f8c91
x64

Issue

user       32447    1762  0 Dec24 ?        00:00:08  \_ /home/user/.vscode/extensions/ms-dotnettools.csharp-1.25.2-linux-x64/.razor/rzls -lsp --trace 
user       35110    1762  0 Dec24 ?        00:00:07  \_ /home/user/.vscode/extensions/ms-dotnettools.csharp-1.25.2-linux-x64/.razor/rzls -lsp --trace 
user       65234    1762  0 Dec24 ?        00:00:05  \_ /home/user/.vscode/extensions/ms-dotnettools.csharp-1.25.2-linux-x64/.razor/rzls -lsp --trace 

Observation

Each instance of VSCode creates a separate new rzls process and remains.

Other extensions exits or get removed from the process when VSCode is closed.

@dylanvdmerwe
Copy link

Issue still remains: Ubuntu 22.04.

rzls processes are not closed when VS Code is closed. Each consecutive open of VS Code creates a new rzls process.

image

@phil-allen-msft phil-allen-msft modified the milestones: 17.5 P3, 17.6 P1 Jan 10, 2023
@kzhui125
Copy link

I meet this issue too, this is very annoying

1

@allisonchou
Copy link
Contributor

Hi all! C# extension v1.25.4 was released earlier today which should address this problem. Please let us know if you continue to run into issues. Thanks, and happy coding!

@ghost ghost locked as resolved and limited conversation to collaborators Feb 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants