cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Code completion, go to definition, generate JS Doc for function not working in WebIDE

EkanshCapgemini
Active Contributor
0 Likes
1,502

Hello All,

The following functionalities are not working for me in general for a project:

  • Code completion
  • go to definition
  • generate JS Doc for function (except in base controller)
  • open controller from view

however it works fine in another project.

What could be the issue?

BR, Ekansh

Accepted Solutions (1)

Accepted Solutions (1)

EkanshCapgemini
Active Contributor
0 Likes

Yuval helped to get this sorted. I am posting the cause of this here for others.

The issues were due to usage of ES6 in my project due to which the code was not parsed as webide parser doesn't support ES6. When we removed ES6 syntax, parsing started working as we could see the Outline generated and all other issues were also fixed with this.

Please do remember, setting 'es6: true' in the project settings, just sets it for eslint and removes error during linting.

BR, Ekansh

miltonc
Product and Topic Expert
Product and Topic Expert
0 Likes

So would that mean we cannot use ES6 and JsDoc together in SAP Web IDE ??

Answers (3)

Answers (3)

yuval_morad
Product and Topic Expert
Product and Topic Expert
0 Likes

We can have a short meeting on Monday. yuval.morad@sap.com

yuval_morad
Product and Topic Expert
Product and Topic Expert
0 Likes

If you go to project settings UI5 you can maintain the UI5 libs for which you would get validation and code assist. Yhe libs will be added to the manifest.json. If it does not help I would need to see the project zip

EkanshCapgemini
Active Contributor
0 Likes

All required libraries are checked there with UI5 version mentioned as 1.44.37. Still not working.

Could you please follow me so that I can send you the project extract in Chat section? Can't post on public forum.

yuval_morad
Product and Topic Expert
Product and Topic Expert
0 Likes

Please attach the project or js file and .project.json file

EkanshCapgemini
Active Contributor
0 Likes

Here is the project.json file. Please remove .txt from the file name. Would you also need complete project code extract?

projectjson.txt