atom-ternjs
atom-ternjs copied to clipboard
Server not running in <script> tags
I'm trying to write vanilla JS and jQuery code inside of
atom-ternjs-client.js [sm]:161 TypeError: this.restart is not a function(…)
(anonymous function) @ atom-ternjs-client.js [sm]:161
If I click into Packages > Atom Ternjs > Restart Server everything works for the duration that the file is open. I also found that if I edit a pure .js file, everything works as expected.
I'm using the latest version of Atom and tern and I also have tern-browser-extension installed through npm.
Update: I've found that if I have a .js file open in another tab, then things will work as expected in the .php and .html files.
You mean
@vqdave just to confirm you have jQuery selected?
@jdavis-software Yes, jQuery is selected in the .tern-project.
Working fine for me:
Post a .gif
re-creating the issue so we can narrow it down for you.
Here is a good screen recording app GIPHY that formats to .gif
Video was too long for a .gif, take a look at this.. video.zip
@vqdave kk your conf
file looks good, and your right I was able to duplicate this bug, if I close out all files so only .php
not .html
or .js
and it stopped working.
@vqdave Checkout #299 basically the server won't run unless there is a .js
file open... until this bug is fixed I would just open a blank .js
file. Good find though, I'll keep subscribed to wait for update.
the package isn't designed to work in html
or php
files. maybe in the future :)