You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/01/23 21:22:29 UTC
[GitHub] [netbeans] michael-rhoese opened a new issue #3494: Imports of records removed on file save
michael-rhoese opened a new issue #3494:
URL: https://github.com/apache/netbeans/issues/3494
### Apache NetBeans version
Latest release
### What happened
I created 2 records and imported them in a class that is not located in the same package. Both imports are removed on file save automatically.
### How to reproduce
First record:
`public record Vertex(boolean start, Class<? extends Enum<?>> state, List<Link> outgoingLinks) {
public static Vertex of(boolean start, Class<? extends Enum<?>> state) {
return new Vertex(start, state, new LinkedList<>());
}
}`
Second record:
`public record Link(Enum<?> event, Vertex from, Vertex to, Method stateChangeFunction) {
public static Link of(Enum<?> event, Vertex from, Vertex to, Method stateChangeFunction) {
return new Link(event, from, to, stateChangeFunction);
}
}`
Add both (or one) as attributes to another class, that is not in the same package, and save the file.
`public class AnotherClazz{
private Vertex vertex;
private Link;
}`
### Did this work correctly in an earlier version?
- [ ] This used to work!
### Operating System
Windows 10 Pro 21H2
### JDK
OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing)
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow the Apache Software Foundation's [Code of Conduct](https://www.apache.org/foundation/policies/conduct.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] mbien commented on issue #3494: Imports of records removed on file save
Posted by GitBox <gi...@apache.org>.
mbien commented on issue #3494:
URL: https://github.com/apache/netbeans/issues/3494#issuecomment-1019918982
i think i found the issue. PR in progress.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] mbien edited a comment on issue #3494: Imports of records removed on file save
Posted by GitBox <gi...@apache.org>.
mbien edited a comment on issue #3494:
URL: https://github.com/apache/netbeans/issues/3494#issuecomment-1019897586
reproducible in master (~13 rc 1).
some observations:
- right click -> fix imports does work (by not removing anything)
- refactor -> inspect/transform -> Unused imports does work (by not removing anything)
- refactor -> inspect/transform -> Organize imports causes the issue
- issue seems to be not caused by the on-save action itself
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] neilcsmith-net closed issue #3494: Imports of records removed on file save
Posted by GitBox <gi...@apache.org>.
neilcsmith-net closed issue #3494:
URL: https://github.com/apache/netbeans/issues/3494
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] neilcsmith-net commented on issue #3494: Imports of records removed on file save
Posted by GitBox <gi...@apache.org>.
neilcsmith-net commented on issue #3494:
URL: https://github.com/apache/netbeans/issues/3494#issuecomment-1022327505
Thanks @mbien Fix is in rc2. @michael-rhoese please give that a try https://lists.apache.org/thread/pg3ho8o8s2tfh3ys6705tt9bmkvwxfh6
Closing - GH seems to not be picking up this has made its way to master now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] mbien commented on issue #3494: Imports of records removed on file save
Posted by GitBox <gi...@apache.org>.
mbien commented on issue #3494:
URL: https://github.com/apache/netbeans/issues/3494#issuecomment-1019897586
reproducible in master (~13 rc 2).
some observations:
- right click -> fix imports does work (by not removing anything)
- refactor -> inspect/transform -> Unused imports does work (by not removing anything)
- refactor -> inspect/transform -> Organize imports causes the issue
- issue seems to be not caused by the on-save action itself
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists