Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Python Error -- TypeError: argument of type 'NoneType' is not iterable #118

Open
yaitorr opened this issue Feb 22, 2018 · 2 comments

Comments

@yaitorr
Copy link

yaitorr commented Feb 22, 2018

Hi there,
I recently installed the GutterColor ST3 plugin and I'm getting the following exception in the console, every time the plugin tries to run:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 530, in on_activated_async
    callback.on_activated_async(v)
  File "/Users/yaisiel.torres/Library/Application Support/Sublime Text 3/Packages/Gutter Color/gutter_color.py", line 40, in on_activated_async
    if syntax(view) in settings().get('supported_syntax'):
TypeError: argument of type 'NoneType' is not iterable

I already validated that I have the right ImageMagick install and ran all the ImageMagic-related troubleshooting in this repo's README. Am I still missing something from the install? Please let me know if you need additional details!

@ocket8888
Copy link

ocket8888 commented Feb 6, 2020

Looks like the issue is the default value of the supported_syntax key not getting set properly. If you open the command palette (Ctrl+P on good operating systems, Cmd+P on Macs) and add:

{
	"supported_syntax": [
		"css",
		"scss",
		"sass",
		"less",
		"stylus",
		"css3",
		"xml"
	]
}

(which mimicks the defaults) that error message goes away. Of course, now I'm seeing a different error....

@mazunki
Copy link

mazunki commented Apr 30, 2020

I had this problem too. It worked after removing the package and reinstalling it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants