Acconut / brackets-nodejs

Connecting Brackets and Node.js
MIT License
81 stars 16 forks source link

Cannot run javascript code against node.js #13

Closed GrosLalo closed 10 years ago

GrosLalo commented 10 years ago

Hi, I am running Brackets (ver. sprint 36 experimental build 0.36.0-11506 (release 942505c3a)) with Node.js (ver. 0.10.26) and Node.js Bindings (ver. 1.1.2). I configured the plugin to point to the location of node and npm on my computer. I then tested the following code:

/*jslint vars: true, plusplus: true, devel: true, nomen: true,
  indent: 4, maxerr: 50 */
/*global define */

function sayHello() {
    "use strict";
    console.log("Hello");
}

sayHello();

And i only get "Program exited" in the Terminal window.

Can you tell me where i am going wrong? Or, is there a bug in the plugin?

Thanks in advance and hear from you.

Acconut commented 10 years ago

That's most likely a bug in this extension. Which OS are you running? Can you please give me the output from the dev tools (Debug > Show Developer Tools > Console)?

GrosLalo commented 10 years ago

I am running the above on Windows 8.1

Acconut commented 10 years ago

What does the dev console say?

GrosLalo commented 10 years ago

Hi,

I reinstalled everything and tried again and now everything seems to work fine. I close the issue.

Thanks again

Acconut commented 10 years ago

Good to hear! One question: Did this issue appear right after updating brackets-nodejs? Because this has cause some problems before.

GrosLalo commented 10 years ago

Well. I was trying experimenting with a standalone version of Brackets and some plugins that i've had worked. I assumed that in standalone mode the brackets-nodejs would work as well. As it did not, i kicked that version of brackets out and installed it properly. Then it worked.

Acconut commented 10 years ago

Ah, ok. I assume the standalone version doesn't support running the nodejs scripts which is used to start the server. Therefore the client couldn't connect and said "Program exited".