Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#42978 - [liteide] Formatting using goimports broken

Attached to Project: Community Packages
Opened by Ishbir Singh (Ishbir) - Monday, 01 December 2014, 19:54 GMT
Last edited by Alexander F. Rødseth (xyproto) - Wednesday, 03 December 2014, 10:19 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Formatting of Go code with goimports fails. Formatting it using gofmt works.

Additional info:
Version: 24.3

Steps to reproduce:
1. Enable formatting with goimports at View -> Options -> Golangfmt.
2. Try to save a badly formatted Go source file.
3. Nothing happens and you see "gofmt: Timed out after 500ms when starting go code format" in the event log.

Fix:
Formatting with goimports works when manually compiling (and not installing) the IDE. I looked around in LiteIDE's source code and it uses liteide_stub executable which is not copied to /usr/bin by the package build file.

Manually copying the compiled liteide_stub to /usr/bin makes it work again. Therefore, the fix is to uncomment liteide_stub on line 58 of the PKGBUILD.
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Wednesday, 03 December 2014, 10:19 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Monday, 01 December 2014, 23:22 GMT
Thanks for reporting. I will add liteide_stub.

Loading...