News for hackers. Stuff that matters.
Re:Node.js Tools for Visual Studio by mousetraps on Wednesday March 25, 2015 @02:26PM (#9264914)
Dev here - happy to answer any questions you have :)
Re:Node.js Tools for Visual Studio by MichaelGG on Wednesday March 25, 2015 @04:26PM (#9265694)
Wow this looks pretty amazing!

How do you handle the super-long paths npm is so fond of? On Windows I often run into issues when searching or trying to manipulate a solution containing anything npm due to too-long paths.

Re:Node.js Tools for Visual Studio by mousetraps on Wednesday March 25, 2015 @05:13PM (#9265957)
We try to mitigate the issue in a few ways:

1) warnings when you hit max_path that offer to run 'npm dedupe'

2) sometimes that doesn't work, so we also suggest people start their projects in a short path like c:\src (embarassing, I know)

3) patiently await a flat node_modules directory - http://blog.npmjs.org/post/111968476155/npm-weekly-6

4) groan very loudly when it happens - no good keeping those emotions bottled up ;-)

luckily #1/#2 cover most cases

Re:Node.js Tools for Visual Studio by axefrog on Thursday March 26, 2015 @02:52AM (#9268149)
If you use git, open a git bash window and do it from there. If you don't use git, install cygwin and do it from a cygwin bash window. Both are *nix-simulated shells and are not subject to the MAX_PATH limit. I do most of my command line work using Power Shell, but I always have a git bash terminal ready for npm, jspm and other similar path-length-affected tools.
Re:Node.js Tools for Visual Studio by AdeptusAquinas on Wednesday March 25, 2015 @04:59PM (#9265878)
I have run into this problem as well. Manually modifying packages is not fun.
Re:Node.js Tools for Visual Studio by mousetraps on Wednesday March 25, 2015 @05:22PM (#9266017)
See my comment above, but if you do this frequently... we have a feature that enables you to right click on an installed npm package in the npm tree in Solution Explorer and open the relevant folder in explorer
Re:Node.js Tools for Visual Studio by WorldWideWayne on Wednesday March 25, 2015 @05:14PM (#9265960)
I use a tool called flatten-packages [1] and I usually do all of my npm work while visual studio is closed (and use short root paths as mousetraps suggested). I just flatten them after adding/updating/syncing packages.

[1] https://www.npmjs.com/package/flatten-packages

Re:Node.js Tools for Visual Studio by jongalloway2 on Wednesday March 25, 2015 @05:30PM (#9266061)
That's worked well for me, too. The biggest problem with long file paths is the deeply nested dependencies, so flatten-packages handles it for me.
Re:Node.js Tools for Visual Studio by egeozcan on Wednesday March 25, 2015 @05:06PM (#9265916)
Any chance that it'll support Babel (known previously as 6to5) + JSX (The react extensions to JavaScript)? I love Visual Studio and I also love to write ES6 - I don't want to choose.
Re:Node.js Tools for Visual Studio by mousetraps on Wednesday March 25, 2015 @05:15PM (#9265972)
make a feature request! we're a small team, so we have to prioritize - generally the policy is to build what people want. works well enough :)

https://nodejstools.codeplex.com/workitem/list/basic

Re:Node.js Tools for Visual Studio by egeozcan on Wednesday March 25, 2015 @06:56PM (#9266609)
Re:Node.js Tools for Visual Studio by jbergens on Wednesday March 25, 2015 @07:24PM (#9266763)
JSX sounds great. I hope more people vote for it.
Re:Node.js Tools for Visual Studio by dahart on Wednesday March 25, 2015 @05:09PM (#9265928)
Ooh, tracepoints, DO WANT! Are they only available in one of the paid versions of Visual Studio?

The VS debugger is excellent, its probably the dev tool I miss the most since leaving C++ and going to JS, and tracepoints are the feature I wish for most frequently in a browser debugger.

So I was about to naively suggest the VS team could push for tracepoints in IE, but OMG! Tracepoints are in IE11. Where have I been? In prejudice-land. This might mean I have to open my mind and use IE for dev, though the bias runs wide, I still might have to use it in secret for a little while, at least at work. ;)

Re:Node.js Tools for Visual Studio by mousetraps on Wednesday March 25, 2015 @05:20PM (#9266003)
We've got breakpoints, conditional breakpoints, tracepoints... All the points, really ;-)

I don't think you need one of the paid versions, but I'll double check and edit this if I'm wrong.

Re:Node.js Tools for Visual Studio by bgarbiak on Thursday March 26, 2015 @04:34AM (#9268378)
Is there a simple way to use VS without the Solution files? Templates and Solutions are fine for creating a entirely new project, but if I have to work on someone's else code I'd prefer to have a basic "File Explorer" over Solution Explorer / Team Explorer. My attempts to create a new Solution file for an existing code ended with a new directory (or a couple of them) with a boilerplate code... Am I missing something obvious here?

Also, I've noticed that if I open a few files the IDE creates "Virtual Solution", but it's hard to tell which files are there, and which don't. For example: TypeScript files are, but no such luck with SASS.

P.S. And a CMD/Terminal in a panel (akin to the Output panel, but with an... well, input) - is that possible?

Re:Node.js Tools for Visual Studio by mousetraps on Saturday March 28, 2015 @03:42PM (#9282517)
Hi bgarbiak,

You can use the "From Existing Node.js Code" project template to create a project from a folder, but the project file itself is a requirement for visual studio and also allows us to include helpful metadata (whether or not to analyze a directory, etc - most IDEs/text editors include a project file for this very purpose - they just hide it a little better). That said, at some point we'd like to change things up so that the project does feel more similar to the folder/file experience you might expect.

This is to change the project file to be more "transparent". https://nodejstools.codeplex.com/workitem/1855

There's also another issue to directly open a folder without requiring the user to take steps to create the solution/project. https://nodejstools.codeplex.com/workitem/209

Additionally, like rlp mentioned - make sure that "show all files" is turned on so that you can see everything in the folder, not just files you've defined as being a part of your project.

Hope that helps - let me know if you have any other questions.

Re:Node.js Tools for Visual Studio by rlp on Thursday March 26, 2015 @05:40AM (#9268561)
Try clicking the Show All Files button at the top of the solution explorer. It will show everything by folder, which I think is what you're looking for.
Re:Node.js Tools for Visual Studio by pdpi on Wednesday March 25, 2015 @03:25PM (#9265300)
Great work, looks very nice. Will give it a whirl when I get home.

In the meanwhile, I noticed that you support intellisense. What are the limitations to this? What patterns will get correctly picked up? I assume prototypal inheritance will work fine (of course), but will any of the BaseClass.extend()-style inheritance mechanisms that some frameworks seem to favour (e.g. Backbone) work?

While we're at it, is the static analysis tools you built for this public? I'd love to have a look at them.

Re:Node.js Tools for Visual Studio by Scuds on Wednesday March 25, 2015 @03:35PM (#9265370)
> While we're at it, is the static analysis tools you built for this public?

maybe this?

http://nodejstools.codeplex.com/SourceControl/latest#Nodejs/...

Re:Node.js Tools for Visual Studio by pdpi on Wednesday March 25, 2015 @04:40PM (#9265781)
Looks like it, yeah. Thanks!
Re:Node.js Tools for Visual Studio by mousetraps on Wednesday March 25, 2015 @05:30PM (#9266065)
Let us know if you have any questions! There's some _really cool_ stuff going on there, but it can be tough to wade through depending on your experience.
Re:Node.js Tools for Visual Studio by inglor on Wednesday March 25, 2015 @04:30PM (#9265719)
Any plans to make deployment of io.js easier to Azure websites?

Also - any way we might get "break on exception" like with C#?

Also - any plans to support debugging promises better?

Re:Node.js Tools for Visual Studio by mousetraps on Wednesday March 25, 2015 @05:37PM (#9266110)
Break on exception? Done! http://nodejstools.codeplex.com/wikipage?title=Debugging#bre...

We have SO MANY PLANS, so please upvote or request the ones you think are important :) https://nodejstools.codeplex.com/workitem/list/basic

Re:Node.js Tools for Visual Studio by angersock on Wednesday March 25, 2015 @07:39PM (#9266826)
I'd vote for the "Move to github", but (fittingly enough) I'm not going to create a codeplex account just for that purpose. :-\
Re:Node.js Tools for Visual Studio by mousetraps on Thursday March 26, 2015 @03:51AM (#9268243)
Haha, fair enough. Then I suggest you follow @NT4VS on Twitter. We'll let you know when it happens. :-)
Re:Node.js Tools for Visual Studio by mousetraps on Wednesday March 25, 2015 @08:54PM (#9267125)
Also re: io.js + Azure websites - looks like someone wrote a script to make it easier!

http://azure.microsoft.com/en-us/documentation/articles/web-...

Re:Node.js Tools for Visual Studio by at-fates-hands on Wednesday March 25, 2015 @03:33PM (#9265350)
Is this going to make it easier to deploy NodeJs apps to Azure then?

Love Azure, but had a hard time getting my NodeJS stuff up to Azure without some major issues.

Re:Node.js Tools for Visual Studio by jongalloway2 on Wednesday March 25, 2015 @04:04PM (#9265545)
If you haven't already been in touch with someone to get this sorted out, can you e-mail me (jon.galloway at microsoft dot com)? Would like to make sure we're tracking and fixing any issues you ran into.
Re:Node.js Tools for Visual Studio by tuna-piano on Wednesday March 25, 2015 @04:49PM (#9265831)
Same, and I gave up trying to get Node to work with SQL Server. Ended up at Heroku because of this.
Re:Node.js Tools for Visual Studio by skrowl on Thursday March 26, 2015 @09:29AM (#9269366)
The node MS SQL bindings are still terrible, so I haven't really bothered much with Node because of it
Re:Node.js Tools for Visual Studio by chambo622 on Wednesday March 25, 2015 @04:04PM (#9265548)
I gave up on deploying my node.js app to Azure after finding that several modules I was using were simply not possible to run on Windows. Wasn't worth the trouble to refactor and avoid these dependencies.

Windows is not a priority for most node.js devs, so unless you're doing something pretty simple/mainstream, you're likely to run into trouble.

Re:Node.js Tools for Visual Studio by Zikes on Wednesday March 25, 2015 @04:10PM (#9265589)
Azure supports OSes other than Windows.
Re:Node.js Tools for Visual Studio by chambo622 on Wednesday March 25, 2015 @04:11PM (#9265597)
Yes, it does. But if I'm just going to spin up a Linux VM on Azure to host my node.js app, there's not much reason to use Azure over other cheaper options. So that's what I'm doing.
Re:Node.js Tools for Visual Studio by airtonix on Wednesday March 25, 2015 @10:59PM (#9267558)
This is a trend amongst developers who rely on monolithic programs for development.

YOu should really just stop developing on windows and learn to embrace docker.

Re:Node.js Tools for Visual Studio by gabrielgiordano on Wednesday March 25, 2015 @04:19PM (#9265649)
Very nice work, I'll test it on my workflow by the next hours :)
Re:Node.js Tools for Visual Studio by mousetraps on Wednesday March 25, 2015 @06:40PM (#9266502)
Awesome! Please, please, please let us know if you have any feedback!