michaelb/sniprun

Python import list depend will got a error when run script

HATTER-LONG opened this issue · 2 comments

import like this then run python script with sniprun will get error

from PySide6.QtWidgets import (
    QApplication,
    QMainWindow,
    QStackedLayout,
    QWidget,
)

image

the run code generated by sniprun of ~/Library/Caches/sniprun/python3_original/main.py:

try:
	
	import sys
	from PySide6.QtGui import QColor, QPalette
	from PySide6.QtWidgets import (

except:
	pass
  • Neovim 0.9.5
  • macos

Indeed, I probably missed this way of doing python imports

Will fix (someday, hopefully not too far in the future)

This issue should be fixed by the latest (v1.3.13) release.
Don't hesitate to reopen this issue if you still experience problems related to the described bug