You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.
add: var foo = os.const<alt+space> and select O_APPEND:
What is the expected output? What do you see instead?
expected output: var foo = os.O_APPEND
actual output: var foo = os.constEND
What version of the product are you using? On what operating system?
goclipse 0.0.18
Autocomplete with gocode 0.0.17
Windows XP X64
Please provide any additional information below.
may be a gocode issue? nsf said something about csv output not having the same information as other output types..
Apr 7, 2012 no.smile.face
Oh, hai, I'm the gocode author and just was looking though this bug tracker. Will just leave a note regarding this one:
The problem here is that you can make two kinds of assumptions about autocompleter:
It cannot change everything before the cursor.
It can.
Gocode can do that. If you take a look at gocode's code (formatters.go), the main method of the interface has this "num" thing. It's the number of characters to replace before the cursor. Frankly, it's used in vim and isn't used anywhere else.
Gocode has a special way to propose things of certain classes (const, var, func, type). So.. when you type x.const<|> it will propose all consts, but you have to remove the "const" word.
So.. it's an integration bug, maybe I should add a config option to disable this special autocompletion proposals.
The text was updated successfully, but these errors were encountered:
What steps will reproduce the problem?
package main
import "os"
What is the expected output? What do you see instead?
expected output: var foo = os.O_APPEND
actual output: var foo = os.constEND
What version of the product are you using? On what operating system?
goclipse 0.0.18
Autocomplete with gocode 0.0.17
Windows XP X64
Please provide any additional information below.
may be a gocode issue? nsf said something about csv output not having the same information as other output types..
Apr 7, 2012 no.smile.face
Oh, hai, I'm the gocode author and just was looking though this bug tracker. Will just leave a note regarding this one:
The problem here is that you can make two kinds of assumptions about autocompleter:
Gocode can do that. If you take a look at gocode's code (formatters.go), the main method of the interface has this "num" thing. It's the number of characters to replace before the cursor. Frankly, it's used in vim and isn't used anywhere else.
Gocode has a special way to propose things of certain classes (const, var, func, type). So.. when you type x.const<|> it will propose all consts, but you have to remove the "const" word.
So.. it's an integration bug, maybe I should add a config option to disable this special autocompletion proposals.
The text was updated successfully, but these errors were encountered: