Skip to content

Line numbers not aligned #16150

Open
Open
@e-vissch

Description

@e-vissch

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

Can see in image that the line numbers do not align with the error, can see this then leads to incorrect underlining with error message in next image.

I also tried switching to the latest release version with same problem. The issue goes away if there is text in the first line.

Image

Image

VS Code Version

Version: 1.94.2 Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427 Date: 2024-10-09T16:08:44.566Z Electron: 30.5.1 ElectronBuildId: 10262041 Chromium: 124.0.6367.243 Node.js: 20.16.0 V8: 12.4.254.20-electron.0 OS: Darwin arm64 23.1.0

Jupyter Extension Version

v2024.11.2024102401 (pre-release)

Jupyter logs

No response

Coding Language and Runtime Version

Python 3.10

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

None

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable buggood first issueGood for newcomersoutput-renderer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions