SublimeCodeIntel icon indicating copy to clipboard operation
SublimeCodeIntel copied to clipboard

ST3 and Node.js

Open adam-beck opened this issue 11 years ago • 27 comments

I'm still having problems getting Node.js auto completions to work in Sublime Text 3. From my understanding, this is supported out of the box. I could be wrong on that.

Anyway, I have tried updating my ~/.codeintel/config file to include the path to my node binary (/usr/bin/node) and this did not work either.

Am I missing something? Why is it when I try

var fs = require('fs');

fs.

nothing appears after the dot?

adam-beck avatar Jun 22 '14 01:06 adam-beck

:+1:

Guuz avatar Jun 24 '14 02:06 Guuz

I get : INFO:codeintel:resolve 'rootRequire()' type inference for <Element 'variable' at 0x107639500>: INFO:codeintel:find 'rootRequire' starting at (<Element 'scope' at 0x107639050>, []) INFO:codeintel:is 'rootRequire' accessible on (<Element 'scope' at 0x107639050>, [])? no INFO:codeintel:is 'rootRequire' accessible on (<Element 'scope' at 0x1087068c0>, [])? no INFO:codeintel:is 'rootRequire' accessible on (<Element 'scope' at 0x1087068c0>, ['Window'])? no INFO:codeintel:lookup 'rootRequire' in <JavaScript extradirslib> INFO:codeintel:lookup 'rootRequire' in <JavaScript cataloglib: jQuery> INFO:codeintel:lookup 'rootRequire' in WARNING:codeintel:could not resolve <Element 'variable' at 0x107639500>: could not resolve first part of 'rootRequire()' ERROR:codeintel:evaluating 'User' at AuthController.js#7: No completions found INFO:codeintel:done eval: eval error

and I cannot see anything after the dot..

maeishoj avatar Aug 05 '14 20:08 maeishoj

Exact same thing here

CodeAnimal avatar Aug 06 '14 18:08 CodeAnimal

Same issue here.

cowboy-cod3r avatar Sep 20 '14 02:09 cowboy-cod3r

Same issue here too..

aksharpatel47 avatar Oct 24 '14 09:10 aksharpatel47

I'm also seeing this :-/

nelsonpecora avatar Oct 31 '14 20:10 nelsonpecora

duplicate of #354 in lack of Node support

romant avatar Dec 30 '14 11:12 romant

The entire JavaScript language is being rewritten by the Komodo Edit team. Most likely many bugs will be fixed when it's done.

Kronuz avatar Jan 22 '15 15:01 Kronuz

it has been nearly one year, seems that the issue have not been fixed!

cool403 avatar May 13 '15 01:05 cool403

Anyone has any news or work around for this? :(

unlucio avatar Jun 14 '15 13:06 unlucio

Could you please check if the issue is still present in the oop version of SublimeCodeIntel (v3.0)? It is much more stable and also faster.

Installing newest (oop) SublimeCodeIntel: http://kronuz.io/using-sublimecodeintel-v30.html

Kronuz avatar Jun 24 '15 13:06 Kronuz

+1

castasamu avatar Dec 19 '15 22:12 castasamu

In windows enviroment seems work but in OXs not work.

castasamu avatar Dec 19 '15 22:12 castasamu

Same issue here

jacksonke avatar Jan 12 '16 14:01 jacksonke

same.

richbon75 avatar Feb 13 '16 19:02 richbon75

+1

rbosneag avatar Feb 23 '16 08:02 rbosneag

+1

leandroleo02 avatar Mar 12 '16 02:03 leandroleo02

+1

ezaelbello avatar Jun 21 '16 20:06 ezaelbello

+1

GuilhermeSilvaCosta avatar Aug 20 '16 02:08 GuilhermeSilvaCosta

+1

rkpatel33 avatar Aug 31 '16 20:08 rkpatel33

I'm having the same issue. The configuration method i tried is different that yours though. In Sublime Text 3 menu, I went Preferences > Package Settings > SublimeCodeIntel > Settings - User. This file was empty, I added the following content into the file:

{
    "NodeJS": {
        "node": "/home/aezo/.nvm/versions/node/v4.0.0/bin/node",
        "nodejsExtraPaths": [ ],
    }
}

The file saves sucessfully, with the message, "reloading settings Packages/User/SublimeCodeIntel.sublime-settings" being printed in the console. But still the autocomplete doesn't work for:

var fs = require('fs');
var reader = fs.

I also tried with these settings:

{
    "NodeJS": {
        "nodejs":"/home/aezo/.nvm/versions/node/v4.0.0/bin/node",
        "nodejsExtraPaths": [],
    }
}

The settings are saved successfully with the message, "reloading settings Packages/User/SublimeCodeIntel.sublime-settings". Restarted sublime, but still the autocomplete doesn't work.

Aezo avatar Sep 21 '16 05:09 Aezo

+1

luokuning avatar Sep 30 '16 02:09 luokuning

+1

ghost avatar Jan 15 '17 04:01 ghost

+1

danpe avatar May 11 '17 04:05 danpe

+1

lukaskollmer avatar Aug 07 '17 17:08 lukaskollmer

I'm rewriting ECMAScript support, I'll make it available with SublimeCodeIntel 3, as part of the CodeIntel package

Kronuz avatar Aug 07 '17 20:08 Kronuz

+1

valqelyan avatar Jul 03 '18 12:07 valqelyan