[WebTools][PHP Workspace] JavaScript Find Definition not work #1100

Closed
anatooly opened this Issue Jan 13, 2016 · 1 comment

Projects

None yet

2 participants

@anatooly
Contributor

System: Linux anatooly 3.16.0-57-generic #77~14.04.1-Ubuntu SMP Thu Dec 17 23:20:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Workspace: PHP
Example file test.js:

function fooTestName() {
    return true;
}

function barTestName() {
    return false;
}

function bazTestName() {
    return 1;
}

barTestName();
  1. Create this file on Node.JS workspace - 'Find Definition' work correct (function select);
  2. Create this file on PHP workspace - 'Find Definition' not work (function not select);

Log (first is Node.JS, last is PHP Workspace):

[ 11:41:29:057 DBG ] ContinuousBuild::OnFileSaved
[ 11:41:29:057 DBG ] ContinuousBuild is disabled
[ 11:41:36:341 DBG ] [WebTools] POST / HTTP/1.1
From: Eran Ifrah
User-Agent: CodeLite IDE
Content-Type: application/x-www-form-urlencoded
Content-Length: 328

{
 "query": {
  "type": "definition",
  "file": "#0",
  "end": {
   "line": 12,
   "ch": 6
  }
 },
 "files": [{
   "type": "full",
   "name": "test.js",
   "text": "function fooTestName() {\n\treturn true;\n}\n\nfunction barTestName() {\n\treturn false;\n}\n\nfunction bazTestName() {\n\treturn 1;\n}\n\nbarTestName();\n"
  }]
}
[ 11:41:36:421 DBG ] {"origin":"test.js","start":51,"end":62,"file":"test.js","contextOffset":50,"context":"unction fooTestName() {\n\treturn true;\n}\n\nfunction "}
0
[ 11:43:00:915 DBG ] [WebTools] POST / HTTP/1.1
From: Eran Ifrah
User-Agent: CodeLite IDE
Content-Type: application/x-www-form-urlencoded
Content-Length: 328

{
 "query": {
  "type": "definition",
  "file": "#0",
  "end": {
   "line": 12,
   "ch": 4
  }
 },
 "files": [{
   "type": "full",
   "name": "test.js",
   "text": "function fooTestName() {\n\treturn true;\n}\n\nfunction barTestName() {\n\treturn false;\n}\n\nfunction bazTestName() {\n\treturn 1;\n}\n\nbarTestName();\n"
  }]
}
[ 11:43:00:992 DBG ] {"origin":"test.js","start":51,"end":62,"file":"test.js","contextOffset":50,"context":"unction fooTestName() {\n\treturn true;\n}\n\nfunction "}
0
@eranif
Owner
eranif commented Jan 16, 2016 edited

Fixed

@eranif eranif closed this Jan 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment