NetBeans Question
-
I wanted to try out an IDE to manage my ruby projects - NetBeans is my first test candidate.
Is it possible to exclude files from your source folder? I'd like it to ignore some folder that contains generated docs and the jQuery folder.
-
I just started using NetBeans as well. I'm still pretty new to ruby, but digging in quickly. So While NetBeans only has an icon to "run project" vs. "run file" you can hit shift"F6" or go to the menu Run > Run File.
FYI plain old "F6" without the shift will run the project vs. just a file.
Now this will work for basic ruby, but not things pulling from SU API. While it would be great to be able to run it directly from here, my thought was to export the files and then test directly in SU. I guess I could place the files in the right place to start with and point NetBeans to it, and I wouldn't even have to export, just maybe quick and re-launch SU.
-
What I find problematic is that a normal SU plugins is an .rb in the plugins folder with possibly a supporting folder. Is it at all possible to add just this one file from the plugins folder to a project? Ignoring all other other files and folders?
-
At first I thought I could just use NetBeans to open a .rb file or drag it on, but as you say, you can't. You can copy your ruby's you want in NetBeans elsewhere, but then you would have to copy them back, unless maybe you set them up as an alias/shortcut in the SU folder.
Or maybe leave the real files in SU plugin and setup the files you want for NetBeans as alias's outside of the SketchUp plugin folder.
Another thing to think about. I know if you add files in NetBeans, then of course the files are created in the directory for that project on the computer. If however you add files to a directory manually, I don't know if NetBeans re-scans to find them each time you use it. So in an odd way, you could temporarily more files when you setup your NetBeans project, and then move them right back.
-
Got any recommendation for tools to create aliases to files and folders on Windows (W7 64bit)?
-
@unknownuser said:
On XP/Vista the equivalent was just a shortcut. Many apps create shortcuts to the actual application as an icon on the desktop with the little arrow, but you an shortcut any folder or files.
-
Interesting update on this. I originally tested Netbeans on Mac and when I made a project from existing resources, it coppied the files from my plugin folder, so when I made changes, I wasn't really changing my plugin folder.
I'm running it now on XP, and when I went through the same process to setup a project, it links on its own directly to the real plugin directory. So I can edit in NetBeans, save, and then launch SU and my scripts are ready to use. I'll have to see if I can duplicate this back on my mac.
As it is setup now, no need to jump through hoops, other than the fact that I can't run the scripts right from NetBeans. It even has some subversion support, but I'm already using another app for that.
By the way, my quote in post above has nothing at all to do with this post, I guess I have to look at what is on my clipboard. That was a link to Google's new inside streetview, or store view.
-
TT,
I used to use NetBeans (and later Eclipse) for Java projects. I don't remember enough benefit to make me go back. It was great to have the IDE neatly lay out dozens of imports, but we don't have that issue here.
Do let us know if it proves worthwhile!
-
I have been trying it out for my TT_Lib library, which is growing in size - so it's nice to have an IDE to keep track of the files etc.
And it is also nice to have an editor that catches syntax errors before I try to load the file in SU. Allows me to correct the mistake as I do them.
But for smaller projects I've stuck with Notepad++ still. -
The syntax checking is a big plus. I've also just setup subversion control on it. Great to easily revert to previous version if I have messed up code. Commit once I know it is good.
I also really like looking at differences between two versions. I can have both side by side, or on the active version, there is a notation of where I have made changes, and clicking the icon brings up a popup with the old code. I can then revert just that piece back vs. the entire file.
The global searching is also nice. I'm working on someone else s code on a complex project, and it is great to quickly see where else specific code is being used.
Advertisement