Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Detect absence of .NET SDK 3.1 and display error message#753

Merged
vxfield merged 10 commits into
release/v0.14.2011from
xfield/dotnet-sdk-version
Nov 25, 2020
Merged

Detect absence of .NET SDK 3.1 and display error message#753
vxfield merged 10 commits into
release/v0.14.2011from
xfield/dotnet-sdk-version

Conversation

@vxfield

@vxfield vxfield commented Nov 24, 2020

Copy link
Copy Markdown
Member

This PR is a mitigation of issue #737.

@vxfield
vxfield requested a review from bamarsha November 24, 2020 20:28
@bamarsha
bamarsha marked this pull request as draft November 24, 2020 20:45
Comment thread src/QsCompiler/LanguageServer/LanguageServer.cs Outdated
Comment thread src/QsCompiler/LanguageServer/LanguageServer.cs Outdated
@vxfield vxfield changed the title [DRAFT] Detect absence of .NET SDK 3.1 and display error message Detect absence of .NET SDK 3.1 and display error message Nov 24, 2020
@vxfield
vxfield marked this pull request as ready for review November 24, 2020 22:26
@bamarsha

Copy link
Copy Markdown
Contributor

We should bring this change into main as well - maybe we could retarget this PR to main and then cherry-pick into the release branch?

Comment thread src/QsCompiler/LanguageServer/Utils.cs Outdated
Comment thread src/QsCompiler/LanguageServer/Utils.cs Outdated
Comment thread src/QsCompiler/LanguageServer/Utils.cs Outdated
Comment thread src/QsCompiler/LanguageServer/LanguageServer.cs Outdated
Comment thread src/QsCompiler/LanguageServer/LanguageServer.cs Outdated
Comment thread src/QsCompiler/LanguageServer/LanguageServer.cs Outdated
vxfield and others added 5 commits November 24, 2020 15:45
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
@vxfield vxfield changed the title Detect absence of .NET SDK 3.1 and display error message [DRAFT] Detect absence of .NET SDK 3.1 and display error message Nov 25, 2020

@bettinaheim bettinaheim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that will work fine together with packaging a suitable global.json with the server, and setting the working directory to the server path.

Comment thread src/QsCompiler/LanguageServer/LanguageServer.cs Outdated
Comment thread src/QsCompiler/LanguageServer/LanguageServer.cs Outdated
@vxfield vxfield changed the title [DRAFT] Detect absence of .NET SDK 3.1 and display error message Detect absence of .NET SDK 3.1 and display error message Nov 25, 2020
@@ -121,7 +126,6 @@ private static int Run(Options options)
catch (Exception ex)
{
Log("[ERROR] MsBuildLocator could not register defaults.", options.LogFile);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Log("[ERROR] MsBuildLocator could not register defaults.", options.LogFile);
Log("[ERROR] MsBuildLocator could not register defaults.", options.LogFile);
// Don't exit here, since exiting without establishing a connection will result in a cryptic failure of the extension.
// Instead, we proceed to create a server instance and establish the connection.
// Any errors can then be properly processed via the standard server-client communication as needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants