spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.2k stars 1.59k forks source link

editor annotations icon hidden by code analysis icon #22342

Open kr-g opened 1 month ago

kr-g commented 1 month ago

Problem Description

when a code line has multiple "hints" the icons are stacked

What steps reproduce the problem?

  1. go to preferences > editor > advanced settings check annotations box, apply and close dialog
  2. go to source editor and create a line "# TODO" and wait a second until a check marker appear left to line number grafik
  3. change the line to "# TODO " (important: additional blank at the end) and wait a second until the code analysis icon appears grafik
  4. hover mouse over icon grafik

What is the expected output? What do you see instead?

expected output would be like "multiple hints", also an different icon for this type of notification

Paste Traceback/Error Below (if applicable)

na.

Versions

Dependencies

na.

dalthviz commented 1 month ago

Hi @kr-g thank you for the feedback! I was able to reproduce this :+1: Also, for context, I think when a line has code analysis related messages and also a mark from a comment annotation it should show something like:

image

So the warning icon should be under the tick icon. My guess is that the extra whitespace is messing with the logic that detects the annotations since adding any other character before the whitespace enables the marker to show properly 🤔

image

We will try to give this a check in a future release :+1: