brackets-nodejs-integration icon indicating copy to clipboard operation
brackets-nodejs-integration copied to clipboard

Error locating correct path

Open ezequias opened this issue 8 years ago • 2 comments

Today I was trying to find a way to solve a problem that actually does not exist.

I was trying to open a file in a project I was working but it looks nodeJS integrator was in another path.

See my code attached:

c_html.zip

PS: The problem only occurs on NodeJS Integration for Brackets. In the console the problems doesn't exist.

ezequias avatar Feb 12 '17 23:02 ezequias

It only works if the js file is on the rood of the opened project. If the javascript file is within another folder it does not work even the menu say "Start (current NodeJS file) CTRL+Shift + N.

I still think it is a bug.

ezequias avatar Feb 13 '17 00:02 ezequias

If you use arquivo.readFile(__dirname + '/arquivos/index.htm', function (err, html) {

it will work.

ezequias avatar Feb 13 '17 00:02 ezequias