You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is Tern.js library in active development/support? #1051
Brackets Editor heavily relies on Tern.js and as we add more workflows involving tern, just wanted to ensure that the library is recommended/supported.
Hi @abose, sorry for any inconvenience. I don't have very much time like before. So the current policy is: I will fix critical issues which caused the tern client/server crash. And for other issues, I can't give any word. And about your reports issues. I am looking at 1049 now. I think 1050 will be much more complex(which is related to the parser and AST). So I won't spend much time on it at the moment.
BTW PR is always welcome. If I can reproduce the issue. I will help the PR to get merged.
@abose Not yet dive into seeing how brackets integrate with tern. But for me, working with Vim editor. The first step is to start a standalone, foreground tern server. ref. Then make sure your editor's plugin connects to that server. Then you can easier to see what is happening behind the scene.
I will suggest testing the Tern in a different editor. You can use the Brackets editor to edit the code. But to verify the change and see the debug log. Use a different browser to do so.
Activity
marijnh commentedon Aug 10, 2022
@othree took over maintenance. But I'd recommend going with TypeScript (even if just running it on plain JavaScript) nowadays.
othree commentedon Aug 10, 2022
Hi @abose, sorry for any inconvenience. I don't have very much time like before. So the current policy is: I will fix critical issues which caused the tern client/server crash. And for other issues, I can't give any word. And about your reports issues. I am looking at 1049 now. I think 1050 will be much more complex(which is related to the parser and AST). So I won't spend much time on it at the moment.
BTW PR is always welcome. If I can reproduce the issue. I will help the PR to get merged.
abose commentedon Aug 10, 2022
Thanks for the reply @othree . Even brackets community is very short of devs, so I can understand. Thanks for helping!
Ill try a bit to see if I can help in dev to implement some of our required functions. Can you give some pointers on tern development.
othree commentedon Aug 11, 2022
@abose Not yet dive into seeing how brackets integrate with tern. But for me, working with Vim editor. The first step is to start a standalone, foreground tern server. ref. Then make sure your editor's plugin connects to that server. Then you can easier to see what is happening behind the scene.
abose commentedon Aug 11, 2022
Brackets currently uses a webwoker to host tern and directly uses the is API.
abose commentedon Aug 11, 2022
How are the definition files generated?
The plugins also seems to have lots of auto generated api descriptions.
othree commentedon Aug 11, 2022
@abose You mean the tern server is running inside a webworker? or the webworker process is the middleman between bracket and tern server?
The def files in https://github.com/ternjs/tern/tree/master/defs are manually maintained. But for some use cases, you can use
bin/condenseto generate the def file. https://ternjs.net/doc/manual.html#utilsabose commentedon Aug 11, 2022
The tern server runs direcrly inside a webworker. Brackets doesn't use node based tern server.
othree commentedon Aug 11, 2022
I will suggest testing the Tern in a different editor. You can use the Brackets editor to edit the code. But to verify the change and see the debug log. Use a different browser to do so.