Skip to content

Instantly share code, notes, and snippets.

@collinvandyck
Created November 28, 2018 17:40
Show Gist options
  • Save collinvandyck/5fa6461c586a005f1ea876d6e37f1d85 to your computer and use it in GitHub Desktop.
Save collinvandyck/5fa6461c586a005f1ea876d6e37f1d85 to your computer and use it in GitHub Desktop.

Since the latest update (2018.3) i've run into a number of issues:

Support for import aliases

I am importing some go packages that have different package names from what their import url would suggest. Previously it was able to deal with this. Now, Goland will sometimes delete a whole bunch of imports. I found after some trial and error that this mostly happened with these kinds of imports. I'm able to "fix" it by defining an alias for that import and then using the alias.

Commit dialog issues with File Watchers

When I try to commit code through the editor, I will frequently get an error dialog saying that the commit failed because something else (the file watcher) is writing to disk. I have to cancel the commit, let it save, and then recommit. My work around for this is to just do my commits in a separate terminal application.

Formatting weirdness

When copy and pasting code, the formatting will frequently go haywire. I'm not sure why this is happening and I haven't really been able to figure out a workaround yet. It's so random that it's hard to determine a pattern here.

@dlsniper
Copy link

Thanks for the list of issues.

Support for import aliases

Here's how I use the import aliasing in GoLand, https://youtu.be/7zdBg9PxOFU Can you please share the steps on how you do it?

Commit dialog issues with File Watchers

Can you please confirm that you don't have the gofmt checkbox enabled in the Commit Dialog? If you do, please disable it, as this is a known issue, see: https://youtrack.jetbrains.com/issue/GO-5498 Otherwise, can you please help me understand what the steps are to replicate this and how you configured the file watcher?

Formatting weirdness

This is vague and I cannot take it back to the team, unfortunately. Do you have specific examples where copy-pasting fails? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment