You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
This plugin uses **[Flow](https://github.com/facebook/flow)** (javascript static type checker from Facebook) under the hood.
6
6
7
-
This is in **Beta** version for testing.
7
+
This is in **BETA** version for **testing**.
8
8
9
9
It offers better **javascript autocomplete** and also a lot of features about creating, developing and managing **javascript projects**, such as:
10
10
@@ -18,7 +18,7 @@ It offers better **javascript autocomplete** and also a lot of features about cr
18
18
- JavaScript real-time errors
19
19
- etc.
20
20
21
-
You could use it also in **existing projects** (see the [Wiki](https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki))!
21
+
You could use it also in **existing projects** (see the [Wiki](https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki/Using-it-with-an-existing-project))!
22
22
23
23
It turns Sublime Text into a **JavaScript IDE** like!
24
24
@@ -69,7 +69,7 @@ Manually:
69
69
70
70
If the plugin gives to you message errors like `Error during installation: "node.js" seems not installed on your system...` but instead you have installed node.js and npm (for example using [nvm](https://github.com/creationix/nvm)), then you could try to set your custom path in the [Global settings](https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki/Global-settings) of the plugin and then restart Sublime Text.
71
71
72
-
If this not works too, then you could try to add the custom path that contains binaries of node.js and npm in the **`PATH`** key-value on the same JavaScript Enhancements settings file. This variable will be **concatenated** to the **$PATH** environment variable, so you could use the same syntax in it. After that you need to restart Sublime Text. Example of a global setting for `Linux` that uses `nvm`:
72
+
If this not works too, then you could try to add the custom path that contains binaries of node.js and npm in the **`PATH`** key-value on the same JavaScript Enhancements settings file. This variable will be **appended** to the **$PATH** environment variable, so you could use the same syntax in it. After that you need to restart Sublime Text. Example of a global setting for `Linux` that uses `nvm`:
73
73
74
74
```
75
75
{
@@ -108,6 +108,10 @@ See the [Wiki](https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki) f
sublime.error_message("Error during installation: can not install the npm dependencies for JavaScript Enhancements.")
1236
+
sublime.error_message("Error during installation: can't install npm dependencies for JavaScript Enhancements plugin.\n\nThe error COULD be caused by the npm permission access (EACCES error), so in this case you need to repair/install node.js and npm in way that doesn't require \"sudo\" command.\n\nFor example you could use a Node Version Manager, such as \"nvm\" or \"nodenv\".\n\nTry to run \"npm install\" inside the package of this plugin to see what you get.")
1236
1237
# else:
1237
1238
# result = npm.update_all()
1238
1239
# if not result[0]:
@@ -2976,6 +2977,10 @@ def get(self, key):
2976
2977
importsublime, sublime_plugin
2977
2978
importos, tempfile
2978
2979
2980
+
# list of threads that are used to check if there are
2981
+
# multiple async completions tooltip queued (fix for tooltip stuttering)
If you like it, remember to star it ⭐ on GitHub: https://github.com/pichillilorenzo/JavaScriptEnhancements
13
+
14
+
** USAGE **
15
+
===========
16
+
17
+
See how it works on the Wiki: 👉👉 https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki 👈👈
18
+
19
+
20
+
** WHAT IS THIS? **
21
+
===================
22
+
23
+
This plugin uses Flow (javascript static type checker from Facebook) under the hood.
24
+
25
+
It offers better javascript autocomplete and a lot of features about creating,
26
+
developing and managing javascript projects, such as:
27
+
28
+
- Cordova projects (run cordova emulate, build, compile, serve, etc. directly from Sublime Text!)
29
+
- Ionic v1 and v2 projects (same as Cordova projects!)
30
+
- Angular v1 and v2 projects
31
+
- React projects
32
+
- Express projects
33
+
- Yeoman generators
34
+
- Local bookmarks project
35
+
- JavaScript real-time errors
36
+
- etc.
37
+
38
+
You could use it also in existing projects (see the Wiki - https://github.com/pichillilorenzo/JavaScriptEnhancements/wiki/Using-it-with-an-existing-project)!
39
+
40
+
It turns Sublime Text into a JavaScript IDE like!
41
+
42
+
This project is based on my other Sublime Text plugin JavaScript Completions (https://github.com/pichillilorenzo/JavaScript-Completions)
43
+
44
+
** NOTE **
45
+
If you want use this plugin, you may want uninstall/disable the JavaScript Completions plugin, if installed.
46
+
47
+
** OS SUPPORTED NOW **
48
+
======================
49
+
50
+
👉 Linux (64-bit)
51
+
👉 Mac OS X
52
+
53
+
❗❗ Dependencies ❗❗
54
+
=======================
55
+
56
+
In order to work properly, this plugin has some dependencies:
57
+
58
+
👉 Sublime Text 3 (build 3124 or newer)
59
+
👉 Node.js and npm (https://nodejs.org or nvm (https://github.com/creationix/nvm))
60
+
👉 TerminalView sublime text plugin (https://github.com/Wramberg/TerminalView)
61
+
62
+
Not required, but useful for typescript files (Flow wont work on this type of files):
63
+
64
+
👉 TypeScript sublime text plugin (https://github.com/Microsoft/TypeScript-Sublime-Plugin)
65
+
66
+
** Flow Requirements **
67
+
=======================
68
+
69
+
It use [Flow](https://github.com/facebook/flow) for type checking and auto-completions.
70
+
71
+
👉 Mac OS X
72
+
👉 Linux (64-bit)
73
+
👉 Windows (64-bit)
74
+
75
+
Email me for any questions or doubts about this new project on: [email protected]
sublime.error_message("Error during installation: can not install the npm dependencies for JavaScript Enhancements.")
81
+
sublime.error_message("Error during installation: can't install npm dependencies for JavaScript Enhancements plugin.\n\nThe error COULD be caused by the npm permission access (EACCES error), so in this case you need to repair/install node.js and npm in way that doesn't require \"sudo\" command.\n\nFor example you could use a Node Version Manager, such as \"nvm\" or \"nodenv\".\n\nTry to run \"npm install\" inside the package of this plugin to see what you get.")
0 commit comments