Intelligent Autocomplete not working in Golang

I can not get the golang autocomplete for the platform.
I check the preferences in go lang and set was path default, put manually from the dropdown not work
The fmt.Println was not working, i go to the top right, dropdown the language, select Go and the system refresh and start recognicing some… very bad autocomplete
For some reasons i just have very basic completion but not work as spected.
See the pictures.



Other platform comparison

Here my log

    [2020-02-24 15:58:17,321] [INFO] Startup: Welcome to Komodo IDE 12.0.1 build 91869 (platform win32-x86, running on Windows post2012Server version 6.3.9600)
[2020-02-24 15:58:17,321] [INFO] Startup: C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\komodo.exe built on Mon Feb 10 18:14:23 2020
[2020-02-24 15:58:18,283] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2020-02-24 15:58:18,342] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:18,470] [INFO] Platform Auth: Using API URL: https://platform.activestate.com//api/v1
[2020-02-24 15:58:18,471] [WARNING] root: [object Object].logging has been converted to a CommonJS module; use require("ko/logging") instead (since Komodo 9.0.0a1).
    @chrome://komodo/content/komodo.js:15:1

[2020-02-24 15:58:19,164] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:19,358] [WARNING] keybindings: [Ctrl+0] was used for 'cmd_goToQuickBookmark_0', overriding to use 'cmd_fontZoomReset'
[2020-02-24 15:58:20,220] [WARNING] ko.widgets: Pref path doesn't exist: windowWorkspace, 1
[2020-02-24 15:58:20,220] [WARNING] ko.widgets: Can't load 'ui.tabs.sidepanes.state' from 'prefpath': windowWorkspace,1
[2020-02-24 15:58:20,273] [WARNING] ko.widgets: Could not restore widget unittest-widget
[2020-02-24 15:58:20,286] [WARNING] ko.widgets: Could not restore widget symbolbrowser-widget
[2020-02-24 15:58:20,387] [DEBUG] ko.launch: versioncheck on http://docs.komodoide.com/changelog/12
[2020-02-24 15:58:21,006] [INFO] koInitService: Adding pre startup service for 'koFileStatusService': '@activestate.com/koFileStatusService;1'
[2020-02-24 15:58:21,335] [INFO] codeintel/process: Starting CodeIntel
[2020-02-24 15:58:21,338] [DEBUG] codeintel/process: PYTHONPATH: C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\python\..\lib\python2.7;C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\support\dbgp\pythonlib;C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\extensions\codeintel@activestate.com\content\..\pylib\codeintel\lib;C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\extensions\codeintel@activestate.com\content\..\pylib\codeintel\env\Lib\site-packages
[2020-02-24 15:58:21,411] [INFO] elastic_tabstops: Elastic tabstops loaded.
[2020-02-24 15:58:21,471] [INFO] komodospellchecker: Spell checker loaded.
[2020-02-24 15:58:21,473] [INFO] komodospellchecker: Using dictionary en-US
[2020-02-24 15:58:22,884] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:22,986] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:23,065] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:23,128] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:23,190] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:23,275] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:23,326] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:23,382] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:23,457] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:23,520] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:23,691] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:23,801] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2020-02-24 15:58:23,801] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2020-02-24 15:58:23,802] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2020-02-24 15:58:23,805] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2020-02-24 15:58:23,805] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2020-02-24 15:58:23,805] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2020-02-24 15:58:23,819] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in file:///C:/Program%20Files%20(x86)/ActiveState%20Komodo%20IDE%2012/lib/mozilla/components/koamAddonManager.js:138
[2020-02-24 15:58:24,012] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:24,180] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:24,263] [WARNING] RefactoringLanguageServiceBase: Can't find a refactoring service for Go
[2020-02-24 15:58:24,263] [WARNING] koLanguage: Asked for unknown language: 'None'
[2020-02-24 15:58:24,454] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2020-02-24 15:58:24,454] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2020-02-24 15:58:24,456] [WARNING] console-logger: XUL box for tab element contained an inline #text child, forcing all its children to be wrapped in a block. (1) in chrome://unittest/content/views/panel.xul:0
[2020-02-24 15:58:24,598] [INFO] koInitService: Adding pre startup service for 'KoMemoryReporter': '@activestate.com/koMemoryReporter;1'
[2020-02-24 15:58:24,601] [INFO] koInitService: Adding pre startup service for 'koCommandmentService': '@activestate.com/koCommandmentService;1'
[2020-02-24 15:58:24,611] [INFO] koInitService: Adding pre startup service for 'koDBGPManager': '@activestate.com/koDBGPManager;1'
[2020-02-24 15:58:25,960] [DEBUG] ko.launch: Response: http://docs.komodoide.com/__omnigollum__/auth/github?origin=%2Fcreate%2Fchangelog%2F12 (404)
[2020-02-24 15:58:25,961] [DEBUG] ko.launch: versioncheck on http://docs.komodoide.com/changelog/120
[2020-02-24 15:58:26,369] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:27,292] [DEBUG] ko.launch: Response: http://docs.komodoide.com/__omnigollum__/auth/github?origin=%2Fcreate%2Fchangelog%2F120 (404)
[2020-02-24 15:58:27,789] [DEBUG] codeintel/process: stdout: 
port:6640

pid:6508

[2020-02-24 15:58:27,789] [INFO] codeintel/process: CodeIntel started on port 6640
[2020-02-24 15:58:27,789] [DEBUG] codeintel/process: Calling callbacks for: started, number: 1
[2020-02-24 15:58:31,732] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:37,625] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:37,700] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:37,818] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:37,888] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:39,154] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:39,819] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:39,947] [WARNING] console-logger: Unknown descriptor 'font-display' in @font-face rule.  Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2020-02-24 15:58:41,648] [WARNING] console-logger: Key event not available on GTK2: key="u" modifiers="control,shift" (1) in chrome://komodo/content/komodo.xul:0
[2020-02-24 15:59:47,259] [WARNING] console-logger: Unknown property 'color-rendering'.  Declaration dropped. (1) in file:///C:/Users/Erik/AppData/Local/ActiveState/KomodoIDE/12.0/XRE/icons/fileicons/CSSCSS14.png.forcedAttrs.svg:0
[2020-02-24 15:59:47,265] [WARNING] console-logger: Unknown property 'color-rendering'.  Declaration dropped. (1) in file:///C:/Users/Erik/AppData/Local/ActiveState/KomodoIDE/12.0/XRE/icons/fileicons/JavaScriptJS14.png.forcedAttrs.svg:0
[2020-02-24 15:59:47,266] [WARNING] console-logger: Unknown property 'color-rendering'.  Declaration dropped. (1) in file:///C:/Users/Erik/AppData/Local/ActiveState/KomodoIDE/12.0/XRE/icons/fileicons/JSONJSO14.png.forcedAttrs.svg:0
[2020-02-24 15:59:47,266] [WARNING] console-logger: Unknown property 'color-rendering'.  Declaration dropped. (1) in file:///C:/Users/Erik/AppData/Local/ActiveState/KomodoIDE/12.0/XRE/icons/fileicons/JSXJSX14.png.forcedAttrs.svg:0
[2020-02-24 15:59:47,266] [WARNING] console-logger: Unknown property 'color-rendering'.  Declaration dropped. (1) in file:///C:/Users/Erik/AppData/Local/ActiveState/KomodoIDE/12.0/XRE/icons/fileicons/LessCSS14.png.forcedAttrs.svg:0
[2020-02-24 15:59:47,269] [WARNING] console-logger: Unknown property 'color-rendering'.  Declaration dropped. (1) in file:///C:/Users/Erik/AppData/Local/ActiveState/KomodoIDE/12.0/XRE/icons/fileicons/SCSSSCS14.png.forcedAttrs.svg:0
[2020-02-24 16:00:24,585] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:361
[2020-02-24 16:00:24,585] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:366
[2020-02-24 16:00:24,885] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:361
[2020-02-24 16:00:24,888] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:366
[2020-02-24 16:00:25,545] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:361
[2020-02-24 16:00:25,545] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:366
[2020-02-24 16:00:25,755] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:361
[2020-02-24 16:00:25,759] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:366
[2020-02-24 16:15:53,303] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:361
[2020-02-24 16:15:53,303] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:366
[2020-02-24 16:15:53,604] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:361
[2020-02-24 16:15:53,605] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:366
[2020-02-24 16:15:54,266] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:361
[2020-02-24 16:15:54,267] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:366
[2020-02-24 16:15:54,553] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:361
[2020-02-24 16:15:54,558] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:366

Hey @morpheus747, what version of Go are you using? Komodo’s code intel hasn’t been updated for the major changes that went into Golang last year. Basically since GOPATH was removed from Go development.

  • Carey

i’m using go1.13.6 windows/amd64
the source i post is inside c:/users/erik/go/src/firewall is part of the golang path i think?

Oh I was wrong. GOPATH is still used. I thought it had been removed.

I can’t answer that question. You tell me :wink: What is your %GOPATH% variable set to? And did you add it to your Edit menu > Preferences > Languages > Go settings?

  • Carey

C:\Users\Erik>ECHO %GOPATH%
C:\Users\Erik\go
That is my gopath but i don’t see any gopath configuration in that menu you refer.
Everything is in his place i guess.

C:\Users\Erik>cd go

C:\Users\Erik\go>cd bin

C:\Users\Erik\go\bin>dir
El volumen de la unidad C no tiene etiqueta.
El número de serie del volumen es: 12AC-DBC1

Directorio de C:\Users\Erik\go\bin

14-02-2020 10:28 .
14-02-2020 10:28 …
07-02-2020 10:17 3.023.360 asmfmt.exe
27-01-2020 12:40 2.913.792 deadcode.exe
27-01-2020 12:36 18.619.392 dlv.exe
27-01-2020 12:40 3.403.776 dupl.exe
27-01-2020 12:39 7.302.656 errcheck.exe
07-02-2020 10:16 7.075.328 fillstruct.exe
14-02-2020 10:28 25.509.376 go-langserver.exe
11-02-2020 09:34 4.824.064 go-outline.exe
11-02-2020 09:32 5.238.272 goaddimport.exe
27-01-2020 12:39 2.882.560 gochecknoglobals.exe
27-01-2020 12:39 2.880.000 gochecknoinits.exe
12-02-2020 14:38 12.486.656 gocode.exe
10-02-2020 10:58 3.506.688 goconst.exe
27-01-2020 12:40 2.938.368 gocyclo.exe
11-02-2020 09:32 9.683.968 godef.exe
12-02-2020 14:37 16.673.792 godoc.exe
11-02-2020 09:32 7.959.040 gogetdoc.exe
12-02-2020 14:38 6.073.344 goimports.exe
11-02-2020 09:32 30.880.256 golangci-lint.exe
27-01-2020 12:40 6.472.704 golint.exe
11-02-2020 09:29 6.798.336 gometalinter.exe
11-02-2020 09:33 4.914.176 gomodifytags.exe
11-02-2020 09:33 2.369.536 gopkgs.exe
10-02-2020 12:11 22.110.720 gopls.exe
12-02-2020 14:38 6.575.104 gorename.exe
11-02-2020 09:28 8.213.504 goreturns.exe
27-01-2020 12:40 8.588.800 gosec.exe
07-02-2020 10:16 3.274.752 gotags.exe
12-02-2020 14:38 6.846.464 gotype.exe
12-02-2020 14:38 9.668.096 guru.exe
07-02-2020 10:16 2.919.936 iferr.exe
07-02-2020 10:16 6.245.888 impl.exe
10-02-2020 10:58 2.975.744 ineffassign.exe
27-01-2020 12:40 7.467.520 interfacer.exe
07-02-2020 10:17 6.511.104 keyify.exe
13-01-2020 21:28 7.306.240 lissajous.exe
27-01-2020 12:40 7.193.600 lll.exe
27-01-2020 12:39 6.102.016 maligned.exe
27-01-2020 12:40 10.423.296 misspell.exe
07-02-2020 10:16 3.632.640 motion.exe
27-01-2020 12:40 4.441.088 nakedret.exe
11-02-2020 09:30 8.502.272 revive.exe
27-01-2020 12:40 8.031.232 safesql.exe
27-01-2020 12:40 14.891.520 staticcheck.exe
27-01-2020 12:39 6.109.696 structcheck.exe
27-01-2020 12:39 6.624.768 unconvert.exe
27-01-2020 12:39 7.480.832 unparam.exe
10-02-2020 10:58 3.255.808 usedexports.exe
27-01-2020 12:40 6.103.040 varcheck.exe
49 archivos 385.925.120 bytes
2 dirs 546.611.662.848 bytes libres

C:\Users\Erik\go\bin>

C:\Go\bin>dir
El volumen de la unidad C no tiene etiqueta.
El número de serie del volumen es: 12AC-DBC1

Directorio de C:\Go\bin

17-02-2020 09:56 .
17-02-2020 09:56 …
12-02-2020 21:01 14.799.360 go.exe
12-02-2020 21:01 3.714.560 gofmt.exe
2 archivos 18.513.920 bytes
2 dirs 546.611.040.256 bytes libres

@morpheus747,

That setup looks good. I tried a setup myself and I get the expect completions for fmt. I can’t test the completions for your project though. Is there a chance you could share your project for me to try out?

  • Carey

Sure think here you have


is compacted to zip

Note, i have fmt autocomplete too. I don’t have “parseo” autocomplete (my library)
What happend:
(typing)parseo(dot) (wait autocomplete) but nothing happend
What i spected to happend (equal to fmt autocomplete)
parseo. OR parseo.P
and should show parseo.ProcesarHost([]string) type Function
something like that.

Thanks @morpheus747,

I’m not sure what’s going on here. I’m seeing the same results as you. When I first tested it I was getting old completions from code that no longer existed. This was due to %GOPATH%\pkg containing old cached data. I deleted that but the pkg folder wasn’t rebuilt and not I don’t get any completions for non builtin packages.

I’ve got a ticket for it:

Hopefully will have some time to look into it later. I THINK I have a workaround. Open a CMD Prompt and run the following then restart Komodo:
%GOBIN%\gocode set autobuild t

If you have a %GOPATH%\pkg folder, move it aside to confirm that the config change worked.

Let me know if you see an improvement.

  • Carey

Half solution, Now in Main.go works the autocompletion of “parseo” module and default modules like FMT but if you go to the lib folder and type fmt(dot) the autocomplete don’t work at all.
if you create another function like Test() is not detected at all so is like a “static” solution right now.
I’m waiting for an update to solve the error.

NOTE sure is a coma or a dot in the code that were not supose to be there that is screwing up the autocomplete. xD

Question There is a plan to go for LSP? Maybe is a good ide to give komodo a great plus in programming language integration.

I don’t know what you mean here. If you “go to the lib folder”?

Not currently no. Yes it’s a good idea.

  • Carey

the code i send upper in the post
have lib/parseo/parseo.go
if you open that file and type a new function and try to autocomplete, stop working.

So if you edit the main.go (works)
if you edit parseo.go (not work)
if you edit parseo.go and add new function switch to main (not work)

@morpheus747, Ahhh i see. Completions don’t work while editing parseo.go and when you save your changes there, the new function doesn’t show up in completions when you edit in main.go. If you could, please refer specifically to what you’re doing when describing the issue, it’ll help me along.

That’s not the case for me. Completions for built-ins are working in parseo.go and when I add to it the added function shows up in main.go completions. It is a little glitchy which I think might have something to do with gocode having to recompile things combined with what appears to be a bug in our completions selection handling. I’ll attached a clip to show what I mean. Note that I have to delete the . after parseo to get completions for the package :S

go-completions

  • Carey

I filed another bug:

  • Carey