Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Disappearing text #19

Closed
4 tasks
fgmccabe opened this issue Feb 5, 2018 · 2 comments
Closed
4 tasks

Disappearing text #19

fgmccabe opened this issue Feb 5, 2018 · 2 comments

Comments

@fgmccabe
Copy link

fgmccabe commented Feb 5, 2018

I am using the latest version of:

  • Atom
  • ide-go
  • atom-ide-ui
  • go-langserver

Operating System:

Mac OS X

Expected Behavior

Text should not disappear when saving file

Actual Behavior

import statement goes missing

Steps to Reproduce

try to save the following file:

package display

import (
term "term"
)

type Display interface {
Show(depth int) string
}

func (Normal *n) Show(depth int) string {
}

you will see that the import statement is removed from the buffer and the file.

@JerryLiao26
Copy link

Have you use the package you imported in the statement? If not, that's one of the feature of goimports
@frankmccabe

@ckaznocha
Copy link
Owner

goimports can take some getting used to. This plugin should be running it on save on you, you've probably got go-plus configured to run it on save.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants