When using IntelliJ IDEA as usual, one day suddenly only when a specific class name An error occurred and I couldn't create a Java class. When I searched on the net, there was a lot of information on Android Studio and it was difficult to solve it, so a memo
When I try to create a class with a specific name ("Main" this time) ...
I get an error
Error message
Unable to parse template "Class"
Error message: Selected class file name "Main.java" mapped to not java file type 'Files supported via TextMate bundles'
The contents of the generated file are not recognized as a class
Normally···
Should be like this
In "Editor> File Types" of the setting, "Main.java" was included in the file name to be recognized as a text file for some reason, so delete it
Recognized as a safe class
As a workaround for a similar error in Android Studio, some people pointed out that it was a problem with the code template in the settings, and I was addicted to misleading. Reach the correct answer in the search results excluding Android Studio, and be careful not to be confused by information on similar software. (When I read the error message again, was there an answer to'Files supported via TextMate bundles' ??)
Recommended Posts