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.

Hey, I have sourcekitten installed via homebrew, and running sourcekitten in a shell works.

I’m getting this in the Sublime Console though:

reloading plugin SourceKittenSubl.subl
plugins loaded
Package Control: Skipping automatic upgrade, last run at 2017-01-09 11:59:13, next run at 2017-01-09 12:59:13 or after
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 591, in on_query_completions
    res = callback.on_query_completions(v, prefix, locations)
  File "/Users/rudedogg/Library/Application Support/Sublime Text 3/Packages/SourceKittenSubl/subl.py", line 18, in on_query_completions
    suggestions = subl_source_kitten.complete(offset, file, project_directory, text)
  File "/Users/rudedogg/Library/Application Support/Sublime Text 3/Packages/SourceKittenSubl/dependencies/../src/subl_source_kitten.py", line 16, in complete
    collection = source_kitten.complete(offset, file, project_directory, text)
  File "/Users/rudedogg/Library/Application Support/Sublime Text 3/Packages/SourceKittenSubl/dependencies/../src/source_kitten.py", line 25, in complete
    return _execute(cmd, _json_parse)
  File "/Users/rudedogg/Library/Application Support/Sublime Text 3/Packages/SourceKittenSubl/dependencies/../src/source_kitten.py", line 86, in _execute
    return _execute_cached("§§§".join(cmd), result_handler)
  File "./python3.3/functools.py", line 275, in wrapper
  File "/Users/rudedogg/Library/Application Support/Sublime Text 3/Packages/SourceKittenSubl/dependencies/../src/source_kitten.py", line 92, in _execute_cached
    with Popen(cmd, stdout=PIPE, stderr=PIPE) as p:
  File "./python3.3/subprocess.py", line 819, in __init__
  File "./python3.3/subprocess.py", line 1448, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: 'sourcekitten'

Did I go wrong somewhere?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
rudedoggcommented, Jan 9, 2017

Did a little searching and found this: http://stackoverflow.com/questions/18855932/file-not-found-error-when-running-local-binary-with-popen

Changing line 18 of source_kitten.py to "/usr/local/bin/sourcekitten" did the trick.

1reaction
Dan2552commented, May 15, 2017

@dielsonsales the line numbers have probably changed a bit

Give this a go: https://github.com/Dan2552/SourceKittenSubl/blob/master/src/source_kitten.py#L23

-        "sourcekitten",
+        "/usr/local/bin/sourcekitten",
Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation Definition & Meaning - Merriam-Webster
noun ; 1 · the act of installing : the state of being installed ; 2 · something that is installed for use...
Read more >
Installation Definition & Meaning - Dictionary.com
something installed, as machinery or apparatus placed in position or connected for use. the act of installing. the fact of being installed.
Read more >
Installation - Definition, Meaning & Synonyms - Vocabulary.com
Installation is the process of putting something in a position so it can work properly. If the installation of the new dishwasher goes...
Read more >
Installation - Wikipedia
Installation may refer to: Installation (computer programs); Installation, work of installation art; Installation, military base; Installation, ...
Read more >
INSTALLATION definition | Cambridge English Dictionary
the act of putting furniture, a machine, or a piece of equipment into position and making it ready to use : Do you...
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