sublime-text-plugin

Sublime Text 3: Anaconda package error connection to localhost timed out

十年热恋 提交于 2021-02-06 10:52:07
问题 I am getting a bizarre error message when starting up sublime text 3. upon startup, I get the error below. Here's some background on my system: Windows 10 Sublime Text 3 (Anaconda Package installed through Sublime Text package installer) From CMD: C:\Users\joshu>where python C:\cygwin64\bin\python C:\Users\joshu\Anaconda3\python.exe C:\Users\joshu>which python /usr/bin/python C:\Users\joshu>python --version Python 3.5.2 :: Anaconda 4.2.0 (64-bit) From sublime text 3 console: sys.version '3.3

Auto-run a command on saving in Sublime Text

别说谁变了你拦得住时间么 提交于 2021-01-28 05:42:34
问题 Is it possible to run eslint automatically when I save either a .js or .jsx file in Sublime Text? I'm using the ESLint sublime package right now but I have to manually run it each time using Cmd + Option + e . Thanks! 回答1: Yes this can be done with a simple event driven plugin like the one I've written below. The plugin has been tested but not with the eslint command since I did not want to install that package. Clearly any command could be run instead of eslint in the plugin's run_command(

How to set or find the command name of a Sublime Text plugin

别说谁变了你拦得住时间么 提交于 2021-01-20 12:48:32
问题 I am trying to write an ST3 Plugin for my node js server. In order to run it I am calling the command view.run_command('Node js.nodejs') . My Sublime Text Packages folder looks like this: │ main.py │ text_example_one.py │ ├───Node js │ Nodejs.py │ └───User │ main.py │ Package Control.last-run │ Package Control.sublime-settings │ Preferences.sublime-settings │ └───Package Control.cache 01524fae79697630d0454ba3fabd9414 01524fae79697630d0454ba3fabd9414.info The ../Packages/Node js/Nodejs.py file

syntax highlight (.tmLanguage) in Sublime Text 3 for packages

流过昼夜 提交于 2020-02-24 01:55:29
问题 I work on this plugin Syntax highlight does not work with Sublime Text 3 when plugin is installed using package control. Error loading syntax file "Sublime Text 3/Installed Packages/robot.tmLanguage": Unable to open Sublime Text 3/Installed Packages/robot.tmLanguage The plugin is under Installed Packcages/Robot Framework Assistant.sublime-package , the file 'robot.tmLanguage' in inside Robot Framework Assistant.sublime-package archive. Here is how I set paths https://github.com/andriyko

Global Python packages in Sublime Text plugin development

孤街浪徒 提交于 2020-01-13 11:28:10
问题 1. Summary I don't find, how Sublime Text plugins developer can use Sublime Text find global Python packages, not Python packages of Sublime Text directory. Sublime Text use own Python environment, not Python environment of machine. Developers needs sys.path for set not built-in Sublime Text Python packages. Is any methods, that use global installed Python packages in Sublime Text plugins? For example, it would be nice, if someone tells me, how I can change my plugin — see 3.2 item of this

Sublime Text 3 - Emmet shortcut for HTML 5 not working.

大兔子大兔子 提交于 2020-01-13 08:55:14
问题 I have recently downloaded sublime text 3 and installed emmet. The issue that I am having is that when I write the short code for HTML 5 and press tab, it doesn't work. This method was used in sublime text 2 and it worked. Does anyone have any solutions to this issue? 回答1: type ! and then press Tab . found the answer on cheatsheet 回答2: Text editor doesn't know what shortcut to expand until you save new file as *.html or change the syntax (bottom/right), because new document starts in plain

Xdebug unable to connect to client, where do I start debugging the debugger?

我与影子孤独终老i 提交于 2019-12-30 04:06:13
问题 I'm setting up xdebug for php within sublime text, and xdebug keeps on logging errors related to being unable to connect: Log opened at 2016-08-18 21:06:01 I: Connecting to configured address/port: localhost:9988. E: Could not connect to client. :-( Log closed at 2016-08-18 21:06:01 I hoped that debugging directly by going to http://localhost:9988 in my browser might help, but it simply displays the google chrome error page: "localhost refused to connect". Perhaps the error exists on the

Sublime Text autocomplete plugin for C++?

早过忘川 提交于 2019-12-29 05:26:13
问题 I'm trying to have the autocomplete feature on Sublime Text by using c++ libraries. I use very often EIGEN for example, but there is no autocomplete for functions inside this library. How can I somehow export the library to let sublime know about all the functions and methods I could use within this library? I would appreciate any helpful answer. 回答1: I use the package EasyClangComplete to auto-complete C++ code. And it works fine. You can install this package using Package Control . It is

Move line to next section with SublimeText

*爱你&永不变心* 提交于 2019-12-24 20:30:04
问题 I'm looking for a way to move a line to the "next section" with SublimeText. It could be in the "next paragraph" if it's text (see below), in the "next node" if it's XML, in the "next code block" if it's code, etc. Currently I'm using CTRL SHIFT DOWN ARROW many times to move it to the next section, but I think SublimeText might have this feature out-of-the-box. Example of main use case: &section1 abcdef ghijkl <--- if the cursor is in this line, pressing CTRL+DOWN would move this line...

Anaconda ignoring “extra_paths” in Sublime Text settings

岁酱吖の 提交于 2019-12-24 07:25:31
问题 I'm trying to configure Sublime Text 3 to act as my IDE for Python development, and while I've read the documentation, I'm still having problems importing extra libraries using the Anaconda.sublime-settings file. From what I've read, it should be as simple as having this text in the Anaconda.sublime-settings file: { "python_interpreter": "/Users/mc/anaconda/bin/python", "extra_paths": [ "/Users/mc/workspaces/brg/brg_framework/libs/python", "/Users/mc/workspaces/brg/brg_packages/brg_fea" ] }