Class copied when I run my main class with weird characters in it

已回答

When I create a new Java class, it makes a copy with a ._ in front of it and has these characters in it. It throws an error when I run my driver class and I don't know why it does this or how to fix it.

1

Hello,

Thank you for contacting JetBrains Support.

It seems your project is under some external storage? If yes, please try to reformat them to something like AFPS to see if it helps(be sure to backup these files first).

Those are files stored by macOS when writing to external drives that aren't capable of storing extended attributes in the way AFPS (or formerly HFS+) store them. Those files contain these extended attributes instead. On AFPS you could normally access them with xattrs.

References: https://developer.apple.com/support/downloads/Apple-File-System-Reference.pdf https://eclecticlight.co/2020/10/24/theres-more-to-files-than-data-extended-attributes/

You were right, I had an external storage with a different file system. I just reformatted my drive with APFS, and it works fine now.

see: https://stackoverflow.com/questions/76698944/ide-creates-new-files-with-in-the-beginning-of-all-files

0

请先登录再写评论。