artbycrunk / vscode-maya

A Visual Studio Code extension with support for coding for Maya.
MIT License
45 stars 11 forks source link

Output line numbers are off by 1 #14

Closed riandrake closed 4 years ago

riandrake commented 4 years ago

Describe the bug In the output window, for Code or for Maya, whenever line numbers are mentioned for python scripts they are always off by 1.

To Reproduce

  1. Open a new python script
  2. Type asdasdasd
  3. Send script to Maya
  4. Read output line number and compare to line number in script

Expected behavior The line numbers should match

Screenshots image

Additional context It's because of the utf8 encoding header written to MayaCode.py

artbycrunk commented 4 years ago

@riandrake thanks for reporting this, it has been fixed in the latest release.