Open mscheltienne opened 3 years ago
Hi @mscheltienne,
I could create a new issue with the completions tooltip where the size is too small so the user can't read anything,
But I'm not able to have your same behavior. We will look what is happening with this because there are some cases were it is not doing what is expected. Can you look if this is true for all the completion tooltips or is something it is just happening in the console?
Thanks for reporting!
@steff456 Which other completion tooltips do you have in mind? Could you give me a few examples so I can try to break them?
Mainly, the editor ones
@steff456 I also got a crash very easily when trying to enter a Path in a string in the editor using the completion tooltips and tabs.
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spyder/plugins/editor/extensions/snippets.py", line 817, in insert_snippet
ast = build_snippet_ast(text)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/spyder/utils/snippets/ast.py", line 151, in build_snippet_ast
raise SyntaxError('Syntax Error: Expected any of the following'
SyntaxError: Syntax Error: Expected any of the following characters: ['dollar', 'name', 'int', 'case', '\\:', '\\$', 'text_pipe', '{', '\\}', '\\', '\\/', '\\,', 'symbol', 'whitespace', 'left_curly_name', ':', ':+', ':-', ':?', ',', '}', '<eof>'], got <slash, />
I could reproduce the error multiple times. I opened a new file, and started typing:
"/Us -> Press Tab to complete to "/Users "/Users/sc -> Press Tab to complete to "/Users/scheltie "/Users/scheltie/ -> Press Tab to complete to "/Users/scheltie/Desktop
After further trials, the error occurs when using the completion tooltip marked with a star, be it an existing or non existing path.
Problem Description
This one is a bit difficult to describe, so I will be using screenshots. The screenshots are taken in the same location, 75% on my left monitor where the Spyder window is opened and maximized, and 25% on my right monitor, where you can see my beautiful default macOS background.
On this first screenshot, you can see that I started typing a Path in a string to load a file. If I press tab, the path completes itself.
Now let's keep going until it does not fit in the spyder console.
And that happened.. with the drop-down list to select the next folder being unusable and not even on the same screen as Spyder.
Versions
Dependencies