Hello guys, I would love to get help here, Am tryi...
# ktor
d
Hello guys, I would love to get help here, Am trying to run my ktor application but unfortunately am getting this error; warning: default scripting plugin is disabled: The provided plugin org.jetbrains.kotlin.scripting.compiler.plugin.ScriptingCompilerConfigurationComponentRegistrar is not compatible with this version of compiler error: unable to evaluate script, no scripting plugin loaded
a
How do you run the application?
d
Am using IntellijIdea, so am clicking on the green run/play button in the toolbar
The community edition
a
Can you share the name of the file where the entry point is located and the code of that file?
d
Application.kt The code package com.example import com.example.database_factory.DatabaseFactory import com.example.plugins.* import com.example.routes.userRoutes import io.ktor.server.application.* import io.ktor.server.engine.* import io.ktor.server.netty.* fun main() { embeddedServer(Netty, port = 8080, host = "0.0.0.0", module = Application::module) .start(wait = true) } fun Application.module() { configureSerialization() configureMonitoring() configureHTTP() configureSecurity() configureRouting() DatabaseFactory.init() userRoutes() }
a
What version of IntelliJ IDEA Community Edition do you use?
d
Okay, Here's the screenshot.
a
Can you please try to invalidate the IDE caches (
File -> Invalidate Caches...
) and try running the application again?