Skip to content

Commit 7529ebd

Browse files
added version 0.16.2
1 parent e37c743 commit 7529ebd

File tree

4 files changed

+254
-2
lines changed

4 files changed

+254
-2
lines changed

changelog/0.16.2.txt

Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
v0.16.2
2+
3+
## Improvements
4+
5+
- Improved PATH support using 'shellenv' dependency #60, thanks to @dnicolson
6+
7+
8+
v0.16.19
9+
10+
## Improvements
11+
12+
- Updated flow-bin to 0.74.0
13+
14+
## Fixes
15+
16+
- Fixed an issue with the "fish" shell when determining the system path #59, thanks to @dnicolson
17+
18+
19+
v0.16.18
20+
21+
## Fixes
22+
23+
- Fixed "Some default key bindings are overridden by JavaScriptEnhancements" #57:
24+
- New key binding for "Can I use" feature: super+alt+j
25+
- New key binding for "Show Hint Parameters" feature: super+alt+h
26+
27+
28+
v0.16.17
29+
30+
## Improvements
31+
32+
- Updated flow-bin to 0.73.0
33+
34+
35+
v0.16.16
36+
37+
## Fixes
38+
39+
- Fixed "Autocompletion does not work on files with non-latin chars" #54
40+
41+
42+
v0.16.15
43+
44+
## Improvements
45+
46+
- Updated flow-bin to 0.72.0
47+
48+
49+
v0.16.14
50+
51+
## Fixes
52+
53+
- Try to solve "Interoperability with sublimelinter" #47
54+
55+
## Improvements
56+
57+
- Updated flow-bin to 0.71.0
58+
59+
60+
v0.16.13
61+
62+
## Fixes
63+
64+
- Fixed "How to install flow typings?" #48
65+
66+
## Improvements
67+
68+
- Updated flow-bin to 0.70.0
69+
- Updated flow-typed to 2.4.0
70+
71+
72+
v0.16.12
73+
74+
## Fixes
75+
76+
- Trying to fix #41
77+
- Fixed "Plugin not honouring ST3 user settings - show_definitions" #42
78+
79+
## Improvements
80+
81+
- Updated flow-bin to 0.69.0
82+
- Improved unused variable feature
83+
84+
85+
v0.16.11
86+
87+
## Fixes
88+
89+
- Trying to fix #41
90+
91+
## Improvements
92+
93+
- Updated flow-bin to 0.68.0
94+
95+
96+
v0.16.1
97+
98+
## Fixes
99+
100+
- Fixed NameError: global name 'subprocess' is not defined on /src/libs/terminal.py - Windows OS
101+
- Fixed NoneType error on self.completions.append(completion) in /src/listeners/completion.py
102+
103+
104+
v0.16.0
105+
106+
## Fixes
107+
108+
- Fixed jsdoc generate command
109+
- Fixed error on refactor safe commands when the file name is empty
110+
- Fixed export refactor feature preview
111+
- Fixed some popup colors with different theme color scheme
112+
- Fixed completions and hover_description that starts with "$"
113+
- Fixed issue #36, keymap of next flow error feature changed from "super+alt+c" to "super+alt+b"
114+
115+
## Improvements
116+
117+
- Complete code plugin refactoring
118+
- Improved completions performance using 'flow ide' command
119+
- Added "code screenshot" feature using [carbon](https://carbon.now.sh/)
120+
- updated flow-bin to 0.67.1
121+
- Added initial support for Vue.js (see https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki/Example-Vue.js-project)
122+
- Improved extract method feature
123+
- Improved completions detection from default_autocomplete.json
124+
- Added Flow warnings
125+
- Improved unused variable feature
126+
127+
## Misc
128+
- Changed gutter color (using other available sublime scopes) for errors and unused variable features.
129+
130+
=================================================================
131+
** THIS PLUGIN IS IN BETA! Thanks for your support in advance! **
132+
=================================================================
133+
134+
If you like it, remember to star it ⭐ on GitHub: https://github.com/pichillilorenzo/JavaScriptEnhancements
135+
136+
** USAGE **
137+
===========
138+
139+
See how it works on the Wiki: 👉👉 https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki 👈👈
140+
141+
A little introduction to this plugin could be found in this css-tricks.com article: "Turn Sublime Text 3 into a JavaScript IDE"
142+
👉👉 https://css-tricks.com/turn-sublime-text-3-into-a-javascript-ide 👈👈
143+
144+
145+
*****************************************************************************
146+
* *
147+
* Do you want to help me develop this plugin? *
148+
* *
149+
* Become a member of the team! *
150+
* (see https://github.com/pichillilorenzo/JavaScriptEnhancements/issues/51) *
151+
* *
152+
*****************************************************************************
153+
154+
155+
** WHAT IS THIS? **
156+
===================
157+
158+
This plugin uses Flow (javascript static type checker from Facebook) under the hood.
159+
160+
It offers better javascript autocomplete and a lot of features about creating,
161+
developing and managing javascript projects, such as:
162+
163+
- Cordova projects (run cordova emulate, build, compile, serve, etc. directly from Sublime Text!)
164+
- Ionic v1 and v2 (it includes also v3) projects (same as Cordova projects!)
165+
- Angular v1 and v2 (it includes also v4 and v5) projects
166+
- Vue projects (only about the creation at this moment, see https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki/Example-Vue.js-project)
167+
- React projects (only about the creation at this moment)
168+
- React Native projects (only about the creation at this moment. I will add also NativeScript support)
169+
- Express projects (only about the creation at this moment)
170+
- Yeoman generators
171+
- Local bookmarks project
172+
- JavaScript real-time errors
173+
- Code Refactoring
174+
- etc.
175+
176+
You could use it also in existing projects (see the Wiki - https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki/Using-it-with-an-existing-project)!
177+
178+
It turns Sublime Text into a JavaScript IDE like!
179+
180+
This project is based on my other Sublime Text plugin JavaScript Completions (https://github.com/pichillilorenzo/JavaScript-Completions)
181+
182+
** NOTE **
183+
If you want use this plugin, you may want uninstall/disable the JavaScript Completions plugin, if installed.
184+
185+
** OS SUPPORTED **
186+
==================
187+
188+
👉 Linux (64-bit)
189+
👉 Mac OS X
190+
👉 Windows (64-bit): released without the use of TerminalView plugin. For each feature (like also creating a project) will be used the cmd.exe shell (so during the creation of a project don't close it until it finishes!). Unfortunately the TerminalView plugin supports only Linux-based OS 😞. See https://github.com/Wramberg/TerminalView/issues/3#issuecomment-390434623, that is a workaround using WSL (Windows Subsystem for Linux).
191+
192+
❗❗ Dependencies ❗❗
193+
=======================
194+
195+
In order to work properly, this plugin has some dependencies:
196+
197+
👉 Sublime Text 3 (build 3124 or newer)
198+
👉 Node.js and npm (https://nodejs.org or nvm (https://github.com/creationix/nvm))
199+
👉 TerminalView (only for Linux and Mac OS X) sublime text plugin (https://github.com/Wramberg/TerminalView)
200+
201+
Not required, but useful for typescript files (Flow wont work on this type of files):
202+
203+
👉 TypeScript sublime text plugin (https://github.com/Microsoft/TypeScript-Sublime-Plugin)
204+
205+
** Flow Requirements **
206+
=======================
207+
208+
It use [Flow](https://github.com/facebook/flow) for type checking and auto-completions.
209+
210+
👉 Mac OS X
211+
👉 Linux (64-bit)
212+
👉 Windows (64-bit)
213+
214+
Email me for any questions or doubts about this new project on: pichillilorenzo@gmail.com
215+
216+
** Donation **
217+
==============
218+
219+
If this project help you reduce time to develop and also you like it, please support it with a donation 😄👍. Thanks!
220+
221+
Open Collective: https://opencollective.com/javascriptenhancements/donate
222+
PayPal: https://www.paypal.me/LorenzoPichilli
223+
224+
Thanks anyway for your support! 😄😄
225+
226+
MIT License

main.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,32 @@ def start():
111111
fixPathSettings = None
112112
fixPathOriginalEnv = {}
113113

114+
# def getSysPath():
115+
# command = ""
116+
# if platform.system() == "Darwin":
117+
# command = "env TERM=ansi CLICOLOR=\"\" SUBLIME=1 /usr/bin/login -fqpl $USER $SHELL -l -c 'TERM=ansi CLICOLOR=\"\" SUBLIME=1 printf \"%s\" \"$PATH\"'"
118+
# elif platform.system() == "Linux":
119+
# command = "env TERM=ansi CLICOLOR=\"\" SUBLIME=1 $SHELL --login -c 'TERM=ansi CLICOLOR=\"\" printf \"%s\" $PATH'"
120+
# else:
121+
# return ""
122+
123+
# # Execute command with original environ. Otherwise, our changes to the PATH propogate down to
124+
# # the shell we spawn, which re-adds the system path & returns it, leading to duplicate values.
125+
# sysPath = Popen(command, stdout=PIPE, shell=True, env=fixPathOriginalEnv).stdout.read()
126+
127+
# # this line fixes problems of users having an "echo" command in the .bash_profile file or in other similar files.
128+
# sysPath = sysPath.splitlines()[-1]
129+
130+
# sysPathString = sysPath.decode("utf-8")
131+
# # Remove ANSI control characters (see: http://www.commandlinefu.com/commands/view/3584/remove-color-codes-special-characters-with-sed )
132+
# sysPathString = re.sub(r'\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]', '', sysPathString)
133+
# sysPathString = sysPathString.strip().rstrip(':')
134+
135+
# # Decode the byte array into a string, remove trailing whitespace, remove trailing ':'
136+
# return sysPathString
137+
114138
def fixPath():
139+
# currSysPath = getSysPath()
115140
currSysPath = ':'.join(shellenv.get_path()[1])
116141
# Basic sanity check to make sure our new path is not empty
117142
if len(currSysPath) < 1:

messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@
2929
"0.16.16": "changelog/0.16.16.txt",
3030
"0.16.17": "changelog/0.16.17.txt",
3131
"0.16.18": "changelog/0.16.18.txt",
32-
"0.16.19": "changelog/0.16.19.txt"
32+
"0.16.19": "changelog/0.16.19.txt",
33+
"0.16.2": "changelog/0.16.2.txt"
3334
}

src/libs/global_vars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
PLUGIN_VERSION = "0.16.19"
3+
PLUGIN_VERSION = "0.16.2"
44
DEVELOPER_MODE = False
55

66
PACKAGE_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

0 commit comments

Comments
 (0)