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

IDE auto-formatting confused by method references (40b1) #279

Closed
processing-bot opened this issue Aug 14, 2021 · 2 comments
Closed

IDE auto-formatting confused by method references (40b1) #279

processing-bot opened this issue Aug 14, 2021 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@processing-bot
Copy link
Collaborator

Created by: MichelBillaud

Description

The IDE auto-formatting is confused by method references. Eg

  Predicate<Foo> p = Foo::check;

turns into

::  Predicate<Foo> p = Foocheck;

Steps to reproduce

  1. Start a new sketch with
import java.util.function.Predicate;

class Foo {
  boolean check() {
    return true;
  };
}

void setup() {
  Predicate<Foo> p = Foo::check;
}
  1. Ctrl+T

Environment

  • Processing version: 40b1
  • Operating System and OS version: Linux Debian 10.10
  • Other information:
@processing-bot
Copy link
Collaborator Author

Created by: benfry

@sampottinger any chance the new preproc might also be able to give us a better formatter?

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant