Comments (27)
The problem is not caused by Node.js but from loading of all the sublime-completions files! I will update it as soon as possible
from javascript-completions.
Aha... ok, thanks for your work. I'm looking forward to it! Wish you the best... 👍
from javascript-completions.
Good point @pichillilorenzo. I'm using npm every day and no problem. I checked system path and and except C:\Program Files\nodejs
there was extra path C:\Program Files\nodejs\node_modules\npm\bin
. When you delete this extra path, there is no problem with your plugin anymore. thx!
from javascript-completions.
I didn't notice it! Maybe because on my computer it takes only ~1 second
This happens because I handle the loading of some files of the plugin in a certain way!
I will try to solve this!
Thanks for the support!
from javascript-completions.
Hello guys,
I'd like to say Thank you to author of this plugin, great job buddy!
I tried to install plugin in some scenarios (SBT3, portable stable build 3114, Win 7x64):
- with plugins,
- fresh SBT portable (no plugins),
- fresh SBT3 install (no plugins).
Well, there are some issues - I'm not expert on this, so I'll not speculate... you can see my complete log after fresh start, if you are interested.
And once more... Thank you @pichillilorenzo for your hard work!
from javascript-completions.
@sofoklesion I update it! I was testing it on windows and i was having your same issue. Now it should be ok! Say me if it works!
Wait until Package Control update my url for this new release!
from javascript-completions.
OK buddy, I will come back to you with updated status after proper upgrade from package control.
from javascript-completions.
Package Control updated it. You can check now!
from javascript-completions.
Cool, I'm on it, will be back in couple minutes with result.
from javascript-completions.
OK, I did two scenarios:
- upgrade via control package
- clean install (all rest files in SBT3 cleared)
nodejs problem is gone and seems to be fast proces with no impact to user.
But there is some issue with import _init... you can see my fresh log. (This issue is valid for both scenarios)
Thanks @pichillilorenzo
from javascript-completions.
The "import _init" issue is a false-positive! This happens, like i said before, because I handle the loading of some files of the plugin in a certain way! So it isn't a real issue 👍
However i'm going to update this plugin with some other features!
from javascript-completions.
Hey @matduarte! i found the "issue" that cause ST freezing. My plugin has dependencies with some other my python modules. Sublime Text 3 loads plugin in async way, so i must check and, in case, reload these python modules to make plugin work properly!
from javascript-completions.
Hi @pichillilorenzo,
I tried to activate your plugin and could see in SBT3 console:
"Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js'"
- Seems path shoud be:
"\nodejs\node_modules\npm\bin\npm-cli.js"
--> part "\node_modules\npm\bin" is repeating yourself and of course cannot be found. - Maybe some troubles with vars definition in node_variables.py?
ENV:
- portable SBT3-x64, latest stable build, installed on non-system hdd (D:)
- win 7 x64
- node 6.6.0
from javascript-completions.
@infobeny
To use npm on windows, you must download and install it on your own from https://nodejs.org/! i can't install locally in automatic way on windows, like I do instead for OSX and Linux, because of some problems about the folder tree depth of npm packages!
In /node/main.py, for windows, i use directly "npm" without the entire path, like I do instead for OSX and Linux, because of the problem i explained.
So have you installed npm on your system??
However I done a test and I used:
- portable SBT3-x64, latest stable build, installed on USB (D:)
- win 10 x64
- node 6.6.0
and the plugin works properly.
Obviously i have npm installed on the system!
In case you could post the whole log file!
from javascript-completions.
@infobeny try this: http://stackoverflow.com/a/24741740
from javascript-completions.
Hello,
I've got a similar problem :(
Downloaded the newest NodeJS (v7.0.0), changed in settings to use this version, but every time I start ST3 this happens:
TL;DW: goto sec 53
it lasts 58 secs, so I recommend to see the url
from javascript-completions.
@panczarny What is the problem? i didn't understand! Can you post logs from Sublime Text console please??
from javascript-completions.
I think this might be an issue:
Traceback (most recent call last):
File "C:\Users\michal\AppData\Roaming\Sublime Text 3\Packages\JavaScript Completions\node\installer.py", line 117, in checkUpgrade if node_js.getCurrentNodeJSVersion() != nodejs_latest_version :
File "C:\Users\michal\AppData\Roaming\Sublime Text 3\Packages\JavaScript Completions\node\main.py", line 56, in getCurrentNodeJSVersion raise Exception(lines)
Exception: '"C:\Users\michal\AppData\Roaming\Sublime Text 3\Packages\JavaScript Completions\node_binaries\windows-64bit\node.exe"' is not recognized as an internal or external command, operable program or batch file.
But this is weird, because I've got the newest NodeJS version that is available installed...
from javascript-completions.
most javaScript developers have an experience with nodejs now and have certainly installed it in their computer.
I think it will better to just install the plugin and let it try to use user's installed nodejs instead of automatically try to install local one. An option can be provided for user who don't have a global nodejs installation, to enable automatic download, update and usage of local one. Another option can be provided to disable automatic npm update.
from javascript-completions.
Hey, any progress on the issue of sublime text freezing for 4-5 seconds on every load?
from javascript-completions.
@tnga I install nodejs and npm local because of implementation of plugin features, such as JSDoc or "Evaluate JavaScript".
@flawiddsouza not yet
from javascript-completions.
@flawiddsouza try the new version about the freezing problem and let me know!
from javascript-completions.
The lag is lesser but it hasn't completely disappeared. 2-3 seconds now 😕
from javascript-completions.
Ok @flawiddsouza! I will check it again, but it is strange because i load my sublime completions in an asynchronous way!
from javascript-completions.
Disabling this package removes the lag, so I'm pretty sure the problem is in here somewhere. I'm on a SSD and I still get this. Maybe it's the npm check at startup. Is there anything I give you to help you with this?
from javascript-completions.
Installing nodejs and/or checking for update with npm is done also in asynchronous way! I will check later if I can solve this! Thanks
from javascript-completions.
Any news ?
from javascript-completions.
Related Issues (20)
- Multiple Completions shown HOT 1
- (Not working) 'Create class from object literal' HOT 5
- Huge lag HOT 4
- Disable specific completions HOT 1
- "updating npm dependencies" every startup HOT 4
- It can work but No prompt. HOT 9
- Is it possible to use "Can I use" for HTML elements and CSS properties? HOT 8
- key maping what is super? and hover_description not really working HOT 1
- Installing node JS in windows when i have a node version installed HOT 3
- node js must die
- To prevent sublime autocompleter popup after semicolon(;) at the end of line HOT 2
- Why is it loaded, even when I define it in user settings? HOT 2
- Permissions break "Can I Use" feature HOT 2
- Key "?" not working
- Thank you HOT 3
- Can I use key binding on windows HOT 1
- AttributeError: 'NoneType' object has no attribute 'get' HOT 2
- No Completion window HOT 1
- Omit arguments
- Examples don't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascript-completions.