Giter Club home page Giter Club logo

sublime-external-tools's People

Contributors

felixboers avatar podkot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

podkot tijn evanemm

sublime-external-tools's Issues

Running an external tool fails if no "apps" are defined in Preferences.

Just tried the package with nothing setup at all but the following in the ExternalTools.sublime-commands

// ExternalTools Commands - User
[
    {
        "caption": "GitExtensions",
        "command":"external_tools_run",
        "args": { "cmd": [
            "C:\\Program Files (x86)\\GitExtensions\\GitExtensions.exe",
            "$folder"
        ] }
    }
]

Calling the "GitExtensions" command fails with:

This is the traceback:

Traceback (most recent call last):
  File "C:\Apps\Sublime\sublime_plugin.py", line 916, in run_
    return self.run(**args)
  File "plugin in C:\Apps\Sublime\Data\Installed Packages\ExternalTools.sublime-package", line 13, in run
AttributeError: 'NoneType' object has no attribute 'count'

The get() should return an empty array by default.

self.apps = settings.ViewSettings(self.window.active_view()).get('apps')

Cannot run a command from the internal image viewer

Hello and thanks for your plugin!

Given a png file opened in sublime text with the internal image viewer, I would like to be able to run an external tool on this file from the command palette. When trying to do so, the console shows the following error:

Traceback (most recent call last): File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py", line 1456, in run_ return self.run(**args) File "/Users/luc/Library/Application Support/Sublime Text 3/Installed Packages/ExternalTools.sublime-package/plugin.py", line 11, in run File "/Users/luc/Library/Application Support/Sublime Text 3/Installed Packages/ExternalTools.sublime-package/settings.py", line 17, in __init__ AttributeError: 'NoneType' object has no attribute 'settings'

There is no command log

And I do think that's an important feature because we would like to see the output of the programs.

As of now I have to use a hacky way to make it show the output which consists on using xterm to spawn then the command I would like to execute. It looks like this:

{	"apps": [
	{
		"id": "3dslink",
		"name": "3dslink",
		"cmd": ["xterm","-e","sleep 1 | 3dslink *.3dsx"], 
		"working_dir": "${project_path:$folder}"
	}
			]
}

change sleep 1 with bash if the information it outputs is quite large and needs careful reading.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.