formulahendry / formulahendry/vscode-code-runner

[Bug] Doesn't recognize new Filename after renaming file (Eg. tester.java to Tester.java )

Open
#661 7 comments 2 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.48.1 Latest
- OS Version: Windows 10 (2004 Update) 19041.450 Latest
- Code Runner Version: 0.11.0 Latest

**Describe the bug**
If I rename a file called tester.java to Tester.java the CodeRunner command compile tester.java instead of the new file Tester.java. Show it causes an error.

**To Reproduce**
Steps to reproduce the behavior:

1. Create a Main Java Class named : "something.java"
2. Write some codes and Run the file.
3. Rename the file to "Something.java" and here you will see the error.

**Actual behavior**
Error: Could not find or load main class something
Caused by: java.lang.NoClassDefFoundError: something (wrong name: something)

**Expected behavior**
Shows the actual output.

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://user-images.githubusercontent.com/54777542/90859600-5815f180-e3aa-11ea-8234-dc887aa2faaa.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.