Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha Premium User
Doesn't work - can't auto-complete Ext.Ajax.request
Tried using it with our app which is pretty standard Sencha generated app, having Ext source folder a level up.
Edited the plugin config and pointed "includes" at that folder. Still cannot auto-complete "Ext.Ajax.request" or "go to definition" on one of my classes.
No errors visible. Any advice?
-
Can you post your plugin config? Also, what OS are you using?
-
Sencha Premium User

Originally Posted by
Mark.Brocato
Can you post your plugin config? Also, what OS are you using?
Windows 10 Pro
Code:
{ // List directories outside of the project root which should be included when indexing. Paths may be relative
// to the project root or absolute.
"include": [
"../jslib/extjs5/src"
],
...
-
Sencha Premium User
I also tried including just ../jslib/extjs5 , but that didn't work either. There was some "indexing" time though so it seemed like it was doing something.
-
On windows you need to use "" instead of "/" to delimit paths. Since it's in JSON, you'll need to escape those as "\". So it should be:
"include": ["..\\jslib\\extjs5\\src"],
-
Also, does your app have an app.json (which would normally be created by Sencha Cmd)? The plugin uses app.json to understand the app root namespace, and sdk version. If you don't have an app.json, you should add an entry to the "apps" config at the bottom of the plugin configuration file. For example:
Code:
"apps": [
{
"name": "AppRootNamespace",
"path": "path\\to\\app",
"toolkit": "classic",
"sdk": {
"path": "..\\jslib\\extjs5\\src",
"version": "5.0.0",
"framework": "extjs"
}
}
]
-
Sencha Premium User
Thanks for the response!
We do have a standard app.json. I did try using your recommendation regarding the "include" array format, but it didn't seem to help.
Is there any way to troubleshoot this? The editor seems better than Sublime, and if this actually worked it would be amazing!
Again, thank you!
-
You can access the log file via the "Show Ext JS Plugin Log File" command in the cmd palette (ctrl+shift+P). Can you post the contents?
-
Sencha Premium User
2016-11-15T18:09:04.873Z - info: tern executable path : C:\Users\Ivan Jouikov\.vscode\extensions\Sencha.vscode-extjs-1.0.0\tern\win32\tern-win32
2016-11-15T18:09:05.000Z - info: tern executable permission granted
2016-11-15T18:09:10.942Z - info: [tern output] - environment: unknown (tern v233)
2016-11-15T18:09:12.150Z - info: [tern output] - found config.json at \\is70\intellisurvey\versions\7.0\isbase\html\admin\.sencha\ide\config.json
contents:
{
"include": [
"..\\jslib\\extjs5\\src"
]
}
include [ '\\\\is70\\intellisurvey\\versions\\7.0\\isbase\\html\\admin',
'\\\\is70\\intellisurvey\\versions\\7.0\\isbase\\html\\jslib\\extjs5\\src' ]
contents after postprocessing:
{
"include": [
"\\\\is70\\intellisurvey\\versions\\7.0\\isbase\\html\\admin",
"\\\\is70\\intellisurvey\\versions\\7.0\\isbase\\html\\jslib\\extjs5\\src"
],
"apps": [],
"exclude": []
}
Found apps: [
{
"path": "\\\\is70\\intellisurvey\\versions\\7.0\\isbase\\html\\admin",
"sdk": {},
"name": "Isvy"
}
]
loading 0 js files in project...
project loaded in 0 seconds
wrote indexes
Listening on port 61572
2016-11-15T18:09:12.165Z - info: tern running at : http://localhost:61572
-
15 Nov 2016, 10:18 AM
#10
Yep, it looks like it's not finding any files. All of the paths should start with something like "C:\" but yours start with "\\\". Any chance you're using a network drive?