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

JDK install? #175

Open
BeccaDunnington opened this issue Jun 20, 2024 · 4 comments
Open

JDK install? #175

BeccaDunnington opened this issue Jun 20, 2024 · 4 comments
Labels
area-tutorials Issues related to getting started tutorials tutorial-console Console tutorial related issues

Comments

@BeccaDunnington
Copy link

URL

https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/run

Operating system

macos

More information about your system

Sonoma 14.5 (23F79)
Arm64

Description

When running the project I receive an error pop-up with the following information. "Please download and install a JDK to compile your project. You can configure your projects with different JDKs by the setting 'java.configuration.runtimes'"
then after 3/5 seconds the console prints a path ending with ".vscode/extensions/
ms-dotnettools.csharp-2.34.12-darwin-arm64/
.debugger/arm64/vsdbg --interpreter=vscode
--connection=/var/folders/x0/yjsz5svj2_9bvc
y53jvwkcmr0000gn/T/CoreFxPipe_vsdbg-ui-05a8
910508d64fbeb238aab3e2d35824 " and finally outputs the expected 'Hello, World!'

dotnet --info

.NET SDK:
Version: 8.0.302
Commit: ef14e02af8
Workload version: 8.0.300-manifests.f6879a9a
MSBuild version: 17.10.4+10fbfbf2e

Runtime Environment:
OS Name: Mac OS X
OS Version: 14.5
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/8.0.302/

.NET workloads installed:
There are no installed workloads to display.

Host:
Version: 8.0.6
Architecture: arm64
Commit: 3b8b000a0e

.NET SDKs installed:
8.0.101 [/usr/local/share/dotnet/sdk]
8.0.302 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
rcdunnington@Rs-MacBook-Air untitled folde

@BeccaDunnington BeccaDunnington added area-tutorials Issues related to getting started tutorials needs-triage Issues that haven't been triaged yet labels Jun 20, 2024
@mairaw
Copy link
Contributor

mairaw commented Jun 25, 2024

@webreidi @smitpatel can you help here? It's an odd message to require JDK for a C# project build.

@mairaw mairaw added tutorial-console Console tutorial related issues and removed needs-triage Issues that haven't been triaged yet labels Jun 25, 2024
@smitpatel
Copy link
Member

That error message is from https://marketplace.visualstudio.com/items?itemName=redhat.java extension. Not sure why it is trying to interfere while working with C# project.
Can you try following the tutorial after uninstalling that extension so we can isolate if something in C# is triggering error in java extension?

@BeccaDunnington
Copy link
Author

After disabling the Language Support for Java extensions the file now runs without the error. It still takes about 5 seconds to complete and prints the file ext to console everytime. Is this normal behaviour for c#? Seems like a long compile time for a simple hello world. I've worked in python and javascript before but this is my firth time using c#.
Thanks
Below I've included the code I'm running and the output for reference.

Source Code:
Console.WriteLine("Hello, World!");

Output:
rcdunnington@Rs-MacBook-Air untitled folder %
rcdunnington@Rs-MacBook-Air untitled folder %
rcdunnington@Rs-MacBook-Air untitled folder % /Users/rcdunnington/.vscode/extensions/ms-dotnettools.c
sharp-2.34.12-darwin-arm64/.debugger/arm64/vsdbg --interpreter=vscode --connection=/var/folders/x0/yjs
z5svj2_9bvcy53jvwkcmr0000gn/T/CoreFxPipe_vsdbg-ui-3731ded730a6472eac0447750e3af033
Hello, World!
rcdunnington@Rs-MacBook-Air untitled folder %

@smitpatel
Copy link
Member

@BeccaDunnington - It is being tracked by microsoft/vscode-dotnettools#631

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-tutorials Issues related to getting started tutorials tutorial-console Console tutorial related issues
Projects
None yet
Development

No branches or pull requests

3 participants