formulahendry / formulahendry/vscode-code-runner

I am unable to run java code,gives me an error even if none exists.

Open
#919 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

- VS Code Version:1.64.2
- OS Version:12.2.1
- Code Runner Version:0.11.7

**Describe the bug**
I am unable to run java programs gives me an error->(wrong name: filename)Error: Could not find or load main class romantointeger. But the code runs normally on other IDEs.
**To Reproduce**
Steps to reproduce the behavior:

1. Right-click, run code, and the error is displayed in the terminal.

**Screenshots**
Screenshot 2022-02-17 at 11 48 20 PM
Using VSCode inbuilt compiler it works👆🏻.
But when I click run code,it throws an error something like this.

Screenshot 2022-02-17 at 11 49 42 PM

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or code entry point is named. Start by reproducing the failure with VS Code 1.64.2, Code Runner 0.11.7, and the reported Java program, then compare the Code Runner terminal invocation with VS Code's built-in Java run; done means the same program runs through Code Runner without the reported class-loading error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.