Closed angelozerr closed 9 years ago
In short answer, tern is not able to support several types for a parameter. So you must choose the function which is the most used. I think I will manage :
res.set({
'Content-Type': 'text/plain',
'Content-Length': '123',
'ETag': '12345'
})
Ok see my commit https://github.com/angelozerr/tern-express/commit/878b9b39ffe044ce57078db127fa952345d44902 to know how to manage app.get with function Request/Response
CodeMirror doesn't work for me in express.html demo:
detailed error: ReferenceError: CodeMirror is not defined error source line:
CodeMirror.commands.autocomplete = function(cm) {
rse4594...3128efs (line 86, col 6)
It does not show from this screen capture but the cursor was actually set after the period on third statement: no code completion - etc.
Last but not least the URL link in this page is raising a 404 error:
In your screenshot you have not the well CSS and well JS.
If you get the tern-express project on your computer and you open express.html, it should work? Have you check that you have this hierarchy https://github.com/angelozerr/tern-express/tree/master/demos on your computer?
The project I have was git clone
this morning from github repository
OK - this was a problem with eclipse internal browser actually: when opened with "web editor" from eclipse, express.html is not opened from its real location but from eclipse's workspace and this doesn't work. When I drop express.html file directly into Firefox window then it works fine.
The link to https://github.com/angelozerr/tern.express is still not working in both cases: error 404 page not found
I close this issue since now it support callback function array.
What would be the tern syntax for this case below? Where the
[value]
parameter is optionnal, knowing its a key:value pair when it's used but a JSON object when unused: