Open max-mykhailenko opened 8 years ago
Can you reproduce this without the jsx
plugin? If so, can you give me a source file that triggers it?
I can't now reproduce it, but it appears regularly. I'll send you a file when get this bug again.
I can reproduce with ST4, when typing a space at the end of the string or line(in script area of .vue file), it continuously popup the empty message.
And this might be the error log:
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py", line 893, in on_query_completions
norm_res(callback(v, prefix, locations))
File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py", line 129, in profiler
return event_handler(*args)
File "/Users/brownsugar/Library/Application Support/Sublime Text 3/Packages/tern_for_sublime/tern.py", line 68, in on_query_completions
pathFirstCh = pathPrefix[0]
IndexError: string index out of range
I use Package Resource Viewer to debug, and I found the exception was came from https://github.com/ternjs/tern_for_sublime/blob/master/tern.py#L381
Can you find any .tern-port
file in the project?
@othree No, there is no config file for Tern in the project.
@brownsugar Can you provide a sample code and steps to reproduce(including configs you added). And AFAIK latest official release of Sublime Text is version 3. How do you use ST4?
@othree The only config I have is:
{
"tern_argument_hints": true,
}
I think is not about the code, it happens randomly, I tested by same code in two files, one happened and the other not. You can download ST4 from ST official Discord server.
I believe it’s crashed or don’t have any request then it stopped itself. If it is crashed we have to find out why.
Lay notifications@github.com於 2020年6月4日 週四,下午5:44寫道:
@othree https://github.com/othree The only config I have is:
{ "tern_argument_hints": true, }
I think is not about the code, it happens randomly, I tested by same code in two files, one happened and the other not. You can download ST4 from ST official Discord server.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ternjs/tern_for_sublime/issues/147#issuecomment-638742259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEAWSXQTOOKLMW55QDSXDRU5UI7ANCNFSM4CVZPC3A .
-- OOO
@othree OK, I'll reply if there are more info I can provide.
Tern settings
.tern-project