my project stopped building and any Kotlin keyword...
# intellij
f
my project stopped building and any Kotlin keyword appears as an unresolved reference. Apparently I did nothing. Restarted with no success. I feel like Kotlin support disappeared; how can I check that?
s
suppose you could check to see if the plugin is enabled/installed
you should probably also make sure you have a valid kotlin runtime specified in your build file if you have one
f
not a gradle project. I'll check the plugin
this is installed.
d
You can always try the old standby
File > Invalidate Caches / Restart
and see if that does the trick.
1
f
I also tried that in vain. Now it looks like the project didn't use Kotlin SDK but a Java one. All of a sudden. Put Kotlin back again, now complaining (less) like this: ErrorK Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath: class kotlin.Pair, unresolved supertypes: java.io.Serializable
This IDE drives me nuts sometimes. I guess it depends with the remote git settings repository, it got mad after I sync'd it
s
are you tracking the
.idea
directory in your repo?
f
that's my hell. I never know what to track and whatnot. I'm ignoring this:
# User-specific configurations .idea/caches/ .idea/libraries/ .idea/shelf/ .idea/workspace.xml .idea/tasks.xml .idea/.name .idea/compiler.xml .idea/copyright/profiles_settings.xml .idea/encodings.xml .idea/misc.xml .idea/modules.xml .idea/scopes/scope_settings.xml .idea/dictionaries .idea/vcs.xml .idea/jsLibraryMappings.xml .idea/datasources.xml .idea/dataSources.ids .idea/sqlDataSources.xml .idea/dynamic.xml .idea/uiDesigner.xml .idea/assetWizardSettings.xml
h
Look in the log and see what changed?
f
didn't even know that there were logs to check 🤦 gonna search'em.
I'm lost. I'll try to reimport the whole project.
h
I meant the git/vcs Log
f
There was nothing significant there.
But admittedly I changed the .gitignore file often during the process trying to balance between what could be needed and what was a waste of time committing with message logs like "moar intellij random .idea stuff" lulz.
I made in the end. Created a new project and moved the src folder in it. 🤷‍♂️ Thanks for your time everybody!