Unable to parse template "Class". Error message: "file_name" already exists (File templates)

Answered

When I make a new Java class it asks for a name, regardless of the name I give it he file stays as "Main.java", even if a main.java aready exists in that module.

 

I then get the following error:

0
2 comments

Hello,

Looks like some of the file templates were corrupted. Does it help to delete IDE_CONFIG/fileTemplates folder or start with defaults (rename/remove settings folders)?

If the issue remains please attach your File | Export Settings... and idea.log file: https://intellij-support.jetbrains.com/hc/en-us/articles/207241085 after restarting the IDE and reproducing the problem.

The files can be uploaded at https://uploads.jetbrains.com. (do not forget to specify the Upload ID)

0

Deleting fileTemplates did the trick, thank you very much for the help!

1

Please sign in to leave a comment.