question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

builds fail when installing through package control

See original GitHub issue
Building JS Custom.sublime-syntax.yaml-macros... (Packages/JSCustom/src/JS Custom.sublime-syntax.yaml-macros)

Error in macro execution.
  in "<file>", line 4, column 1

Error in macro execution.
  in "<file>", line 5, column 5

Traceback (most recent call last):
  File "~/Sublime Text 3/Packages/yaml_macros_engine/st3/yamlmacros/src/engine.py", line 68, in multi_constructor
    return apply_transformation(loader, node, macros[suffix])
  File "~/Sublime Text 3/Packages/yaml_macros_engine/st3/yamlmacros/src/engine.py", line 58, in apply_transformation
    return apply(transform, args)
  File "~/Sublime Text 3/Packages/yaml_macros_engine/st3/yamlmacros/src/util.py", line 18, in apply
    return fn(args)
  File "~/Sublime Text 3/Packages/yaml_macros_engine/st3/yamlmacros/lib/include.py", line 12, in include_resource
    file_path, file_contents = get_st_resource(resource)
  File "~/Sublime Text 3/Packages/yaml_macros_engine/st3/yamlmacros/src/sublime_resources.py", line 139, in get_st_resource
    installation_path = get_st_installation_folder()
  File "~/Sublime Text 3/Packages/yaml_macros_engine/st3/yamlmacros/src/sublime_resources.py", line 135, in get_st_installation_folder
    return path.dirname(exe)
  File "./python3.3/posixpath.py", line 151, in dirname
AttributeError: 'NoneType' object has no attribute 'rfind'

(file paths edited, replaced with ~)

same error on both builds

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Thom1729commented, May 28, 2018

My bad! 1.0.16 uses the OutputPanel from sublime_lib, but I wasn’t constructing it correctly. As a result, it would break if the panel didn’t already exist. Because it existed in my session, I did not notice the error.

1.0.17 is out with a fix. It should be available through Package Control within an hour or so.

1reaction
Thom1729commented, Feb 21, 2018

Your JS Custom syntaxes are listed under User. Because they are dynamically compiled, the actual syntax definitions are stored in Packages/User/JS Custom/Syntaxes. As far as I know, there is no way for JS Custom to change the behavior of this menu.

The Styled Components syntax only exists to support the new styled_components configuration option. It should not be visible in the menu. I’ve just released v1.0.8, which should correct this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Error installing Package Control" in ST 3 build 3126 for ...
Hello, I installed ST3 build 3126 on Windows 7. The command Tools, Install Package Control… gives me a dialog with a an error....
Read more >
Troubleshooting - Package Control
This message is displayed whenever Package Control can not find any packages that are installable. The most common reason for this is an...
Read more >
Fail to reinstall Package Control on SublimeText 3 build 3056
I have followed the instructions at https://packagecontrol.io/docs/troubleshooting#Purging_and_Reinstalling to uninstall Package Control, ...
Read more >
Sublime 3 error installing package control - Stack Overflow
First, completely quit Sublime, then remove all traces of Package Control - any folders in ~/.config/sublime-text-3/Packages , any files in ~/.
Read more >
NuGet Package Restore | Microsoft Learn
See an overview of how NuGet restores packages a project depends on, including how to disable restore and constrain versions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found