go-lang-plugin-org/go-lang-idea-plugin

Package name in .go file doesn't change after package rename

Opened this issue · 1 comments

  • Plugin version (or commit hash):
    0.13.1914
  • IDE name and version:
    IntelliJ IDEA 2016.3
  • Java version:
    1.8.0_102
  • OS name and version:
    Ubuntu 16.04
  • What are you trying to do?
    Refactor -> Rename package name (Shift + F6)
  • What would you expect to happen?
    Renaming package name on each .go file inside this package.
  • What happens?
    Changing name only on package (folder)

Before package Rename:
image

After package Rename:
image

Hi @bayrinat,

Sorry for detail.
I'm not sure I follow. Currently there's no rename package refactoring supported by the plugin.
From what I can see you've renamed the directory. Doing so will not affect the name of the package in Go as the names are not tied to particular import path endings. I know this is a bit confusing at first but I'm not sure if this should rather be a feature request or not.

@zolotov what do you think?