evandrocoan / AmxxEditor

Auto-complete and Build System for Amx Mod X on Sublime Text
GNU General Public License v3.0
9 stars 3 forks source link

Autocompletion issue #9

Closed SmiteIsTrashBro closed 6 years ago

SmiteIsTrashBro commented 6 years ago

Hello, I found a bug with autocompletion. If I type something right after the first parenthesis "(bla" without a spacing "( bla" autocompletion does not work.

rksiazek commented 6 years ago

Hi, This bug probably relates to all of the words' separators defined in Sublime. It seems that the problem lies in the 382 - 384 lines of the Amxmodx.py which are related to SublimeTextIssues/core#819:

# temporarily masking word_separators
# https://github.com/SublimeTextIssues/Core/issues/819

A quick solution is to comment out the above-mentioned lines. Everything shows that the author of this comment is right (PS2):

PS2: it seems that it would break some WORD_COMPLETIONS detection.

So there is a need to find a different way to work around that _on_querycompletions issue...

xpt1x commented 6 years ago

Yes this is a bug, even with constants too Suppose Constant is g_xyz

TYPING STYLE 1 : if(g_xyz) Auto Completion Wont Work TYPING STYLE 2 : if( g_xyz) Auto Completion Will Work

evandrocoan commented 6 years ago

It should be fixed on the next version. It will be released when this pull request gets merged: https://github.com/wbond/package_control_channel/pull/7193