-
Notifications
You must be signed in to change notification settings - Fork 93
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
[code mining] Extra spaces when showing method parameter name hints #1797
Comments
Feel free to propose a fix. |
@JanecekPetr I am currently trying to replicate your findings, but even when using the exact version, build id etc, i can´t seem to get your results. Is it possible for you to show me more details about the code you wrote and the settings? |
@JanecekPetr Thank you for the quick answer! After testing and looking at the code, i found out that there is some weird behavior going on when checking if the method parameter name should be displayed. (Thats a different issue though) |
Okay, I tried another computer, the problem goes away. Interesting. I tried ruling out a DPI issue (unplugged my monitors, restarted eclipse), the issue remained. I tried switching to a different font, the issue remained. I have absolutely no idea what else this particular machines has that the others don't. If you have any guesses or things for me to try, fire away! If I ever find it, I'll report back. Until then I think it's safe to close this as unreproducable, or freeze it until someone else comes here with more info. |
A fresh workspace, a fresh installation of Eclipse for Java,
Parameter name hints enabled:
There are two extra spaces after the parameter name:
I have no idea where the extra spaces are coming from as the code itself seems to only add one:
eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/codemining/JavaMethodParameterCodeMining.java
Line 31 in 2886912
Windows 11 in Czech locale, Java 23
The text was updated successfully, but these errors were encountered: