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
On windows box I have been investigating about ternjs/tern_for_vim#18 and I saw there is a test case about relative files in node environment.
So I execute npm test from git bash shell and I get
> tern@0.1.1 test c:\My\Dev\snippets\tern
> ./bin/test
'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! weird error 1
npm ERR! not ok code 0
Plan B: node ./bin/test
And all the tests fail due to the following line in runcases.js:
var typedef = /\/\/(<)?(\+|::?|:\?|doc:|loc:|refs:) *([^\n]*)/g, m;
I added the end of line for windows (just to try):
var typedef = /\/\/(<)?(\+|::?|:\?|doc:|loc:|refs:) *([^\r\n]*)/g, m;
And now only 44 tests fail. :)
I need to investigate further.
The text was updated successfully, but these errors were encountered:
That suggests node is adding \r's before newlines when reading files that, themselves, only have newlines. That's odd! Your patch is harmless, and I've applied it, but I'd still like to get to the bottom of what node is doing there.
The remaining failing tests are, of course, also cause for concern (and might be related to ternjs/tern_for_vim#18). I'll try to set up a windows node next week and debug this further.
On windows box I have been investigating about ternjs/tern_for_vim#18 and I saw there is a test case about relative files in node environment.
So I execute
npm test
from git bash shell and I getPlan B:
node ./bin/test
And all the tests fail due to the following line in
runcases.js
:I added the end of line for windows (just to try):
And now only 44 tests fail. :)
I need to investigate further.
The text was updated successfully, but these errors were encountered: