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

Unable to type in the output panel with single Java file #7142

Closed
shahriyarsabit opened this issue Mar 8, 2024 · 1 comment · Fixed by #7776
Closed

Unable to type in the output panel with single Java file #7142

shahriyarsabit opened this issue Mar 8, 2024 · 1 comment · Fixed by #7776
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) kind:bug Bug report or fix

Comments

@shahriyarsabit
Copy link

Apache NetBeans version

Apache NetBeans 21

What happened

I like to work with single java file without project because of learning purpose. If I create a Java file under a project (that maybe maven or ant etc.), then it will be too heavy and will take more time & cpu to run in the output panel.

So I feel comfortable to run single java file. While learning any programming language, it needs to run a file again and again to practice & understand code.
But the main problem is when I run a single java file with some simple user input statement, then I am unable to type in the output to give user input.
On the other hand if I run same java code under a project (maven or others), then it is possible to type in the output panel to give user input.

It means, typing in the output panel is not possible with single java file.
But why?
Please, I am seeking for help to fix this issue as it become possible to type in the output panel with single java file.

I also attached two screenshots where the problem is simply visible.
First
Second

Language / Project Type / NetBeans Component

No response

How to reproduce

Step 1: Find out the config file of the output panel,
Step 2: Look for properties which are associated for single java file,
Finally serach out the typing control for user input.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 10 Pro

JDK

JDK 21

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

@shahriyarsabit shahriyarsabit added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Mar 8, 2024
@mbien mbien added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) and removed needs:triage Requires attention from one of the committers labels Mar 8, 2024
@mbien
Copy link
Member

mbien commented Mar 8, 2024

the single file launcher seems to use a very basic output window. e.g stop button is missing too. This is something which would be good to improve I agree.

If I create a Java file under a project (that maybe maven or ant etc.), then it will be too heavy and will take more time & cpu to run in the output panel.

I highly doubt that this makes a difference. Ant projects should have very low overhead. Maven projects should start in less than a second on most systems and if you configure NetBeans to use mvnd (https://github.com/apache/maven-mvnd) it starts almost instantly.

junichi11 added a commit to junichi11/netbeans that referenced this issue Jun 6, 2024
- apache#7124
- `{example}` and `${example}` don't have the brace context
- Add unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) kind:bug Bug report or fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants