atom-ternjs icon indicating copy to clipboard operation
atom-ternjs copied to clipboard

There is no active server

Open dam1ann opened this issue 7 years ago • 18 comments

I install atom-ternjs plugin to my atom editor. When I want to configure server, I get error "There is no active server" please help :)

dam1ann avatar Mar 03 '17 13:03 dam1ann

me too

tanchongshi avatar Mar 03 '17 16:03 tanchongshi

This error only pops up if there is no server running. A server is only running if there is an open text-editor (JavaScript).

  • Does the error still show up if there is an active editor?
  • if so: which grammar is shown in the bottom right?
  • is the server forked for the current directory or are there any error or warning in the console?

tststs avatar Mar 03 '17 17:03 tststs

1: To install a package called language-babel 2: Change this grammar to become language-babel in the bottom right 3: Successfully solve the problem

😄 thanks

tanchongshi avatar Mar 03 '17 18:03 tanchongshi

Click on the Save&Restart Server is always the upper right corner of the There is active server or Restarting Server, in the end how to configure, Please advise, thank you

anran6688 avatar Mar 16 '17 17:03 anran6688

Sorry, but I installed Babel etc but it does not work. What is this server that is not started?

edit: removed package "React" which is not compatible with "language-babel" and now the config page shows.

Thank you! Camillo

camillo777 avatar Apr 02 '17 11:04 camillo777

Does the error still show up if there is an active editor?

What does this "active editor" mean?

I'm also getting this error when I select "Configure project". I do it as instructed

  • Open any JavaScript file from within your project

  • Navigate to Packages -> Atom Ternjs -> Configure project

But the error occurs every time. It's a React project with JSX files (.jsx) and Javascript files (.js). And .css too .

valimaggi avatar Apr 07 '17 16:04 valimaggi

Sorry, I didn't try what camillo777 said one post above mine. It worked for me. Disabling React-package (+ installing language-babel package) did it for me too. I don't know why.

valimaggi avatar Apr 07 '17 21:04 valimaggi

me too

myzhoujuan avatar Apr 17 '17 02:04 myzhoujuan

Hi, @tststs is it possible to use this package with custom grammars? I'm using language-semantic-js

This might be relevant: https://github.com/p-e-w/language-javascript-semantic/issues/31

reohjs avatar Apr 28 '17 21:04 reohjs

My case:

I had installed language-javascript-jsx package https://atom.io/packages/language-javascript-jsx

What I did:

  1. Uninstalled language-javascript-jsx package.
  2. Installed lagnuage-babel package https://atom.io/packages/language-babel
  3. Restarted atom

Worked

himanshupathakpwd avatar May 12 '17 10:05 himanshupathakpwd

Indeed, I also had language-javascript-jsx installed but after uninstalling it and instead using language-babel the tern server was available again.

kkostov avatar May 30 '17 09:05 kkostov

遇到这个问题,在本地项目打开一个js文件,然后在选择配置文件就发现可以了

ghost avatar Jul 21 '17 02:07 ghost

i also have the same questions

sunflower8th avatar Nov 13 '17 03:11 sunflower8th

As mentioned by Himansu: Uninstall language-javascript-jsx package. Installed lagnuage-babel package Restart atom. This worked fine for me as well

Tapan221 avatar Nov 18 '17 15:11 Tapan221

Did this:

Uninstall language-javascript-jsx package. Installed lagnuage-babel package Restart atom. This worked fine for me as well

UPD: both .js and .html files:

Doesn't works. Switching grammar in the right bottom corner to babel and various versions of ES doesn't works as well.

Tried this one https://github.com/tststs/atom-ternjs/issues/317 Worked once for .html, and doesn't works again ("There is no active server" message) after Atom's restart.

UPD 2: Reinstalled and reuninstalled language-javascript-jsx package. Started to work again in both types of files.

ashevts avatar Nov 21 '17 09:11 ashevts

Just uninstalling language-javascript-jsx and then restarting atom worked for me.

kcasas avatar Sep 30 '18 07:09 kcasas

#361 Might fix this :eyes: If the issue that you're facing is when the language scope name changes

scagood avatar Jun 04 '19 10:06 scagood

For me, I had not opened a .js file yet, only .ts or .tsx which I had configured in .tern-project

TrySpace avatar Aug 21 '19 09:08 TrySpace