csense-oss / idea-kotlin-checked-exceptions

A plugin that adds errors / hints / quickfix related to checked exceptions for kotlin.
MIT License
24 stars 2 forks source link

method references does not supply the correct quickfixes. #30

Closed Tvede-dk closed 1 month ago

sassrobi commented 4 months ago

I think I ran into an issue described in the title. For this code:

Files.createDirectories(projectWorkDir)

the plugin recommends this fix:

Files.try {
  createDirectories(projectWorkDir)
} catch (exception: IOException) {
  TODO("Add error handling here")
}

which is incorrect.

By the way, this is an awesome plugin, a missing piece in Kotlin ecosystem, so thank you!

Tvede-dk commented 4 months ago

@sassrobi Oh no this is a "new" thing :/ I did not realize it chopped off some of the code. That seems a bit weird... I have made this https://github.com/csense-oss/idea-kotlin-checked-exceptions/issues/31 Ill fix it asap :)