Sublime Forum

ISSUE: Completions List. No words from buffer?

#1

Hello,

I’ve have a plugin called Djaneiro and there is .sublime-completions in it. So…

If I have python code like this:

valor = 100500

and in my .sublime-completions file I have 3 string like this:

{
	"scope": "source.python",
	"completions":
	
	    { "trigger": "verbose_name", "contents": "verbose_name=u'$1'" },
	    { "trigger": "verbose_name = ", "contents": "verbose_name = u'$1'" },
	    { "trigger": "verbose_name_plural", "contents": "verbose_name_plural = u'$1'" }
	]
}

and hit ctrl+space I have this:


as you can see I have nothing similar to variable name. All I have is lines from my .sublime-completions file.

If I remove all these lines or at least 2 or them. I have normal behaviour.

Does someone know what’s the problem and how can I fix it?

0 Likes

Add snippet description in sublime-completions file
#2

Up.

0 Likes

#3

Also experiencing this.

0 Likes

#4

Up

0 Likes

#5

Here is a video.

It seems that the completions do arise, but only once they’ve gone through all of the standard ones.

0 Likes

#6

Thanks for response but it doesn’t work for me


0 Likes

#7

Hmm… Are you using any custom completions packages?

0 Likes

#8

I have the same behaviour with only Djaneiro installed and I have only completions list with strings I mentioned before.

0 Likes

#9

Up

0 Likes

#10

Fair enough. It didn’t matter anyway, I thought I’d changed my PHP completions, but forgot that I had vanilla reset Sublime.

0 Likes

#11

Hello @squ1b3r,

Thank you so much for bringing it to the forum, I will send an email to Jon (@jps), hoping he can help us.

I really love Djaneiro and it is an invaluable tool for Django developers.

Does anyone have a tip on how can we fix this ?

Thanks a lot !

0 Likes

#12

Up.

0 Likes

#13

Can you try JavaScript syntax for me?

Seems to be working on that, but nothing else; at least PHP.

0 Likes

#14

Ok. I’ve got this. For some reason ST2 starts doing thing when you have trigger name like this "verbose_name = " and that was a problem.

Djaneiro is fixed now.

0 Likes

#15

I’m having the exact same issue.

How did you finally solve it?

In my completions file, there are no = …

What is exactly causing this problem?

0 Likes

#16

BUMP

This is getting even more weird…

Triggers with “verbose” characters work and still get auto complete from word in buffer, but ONLY if the sublime-completions list is short.

When the sublime-completions is long (and I don’t know how long), then the issue at hand happens. Triggers work but autocomplete from buffer is completely disabled.

Is this a bug?
A normal behaviour?
Can someone shed some light to this issue?

HEEEELP!!!

0 Likes

#17

Having the same problem. A sublime-completions list causes the buffer words to be totally ignored. But it isn’t size related. The following completion single-handedly reproduces the bug:

[code]{ "trigger": "curSpeed(X", "contents": "abc" }[/code]

I have the word “curSpeed” in the buffer, but it is ignored. The problem is with the parenthesis. Remove it and the problem goes away. Actually, the only valid characters are: letters, numbers, hyphen (-) and underscore (_)

0 Likes