Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Daklu

  1. BTW, (and not related to this thread in any way whatsoever...) I cloned the repo to see if I could implement the changes for Issue #40 . Package 3.0.2 is available on VIPM. Should that branch be merged into master or do you have other plans? (I'm wondering if I should branch from master or 95c579a.)
  2. Thanks Jim. It's not urgent, but I wanted to let you know about it. Once I figured out it was related to classes being created in a previous version of VI Tester it was easy enough to work around.
  3. I ran across a problem in a project where, after creating and initializing the class under test in the setUp VI, unbundling it in the test VI returns a default object rather than the one I instantiated. setUp.vi testCount.vi I've attached a project with the class under test (ListImp) and two test cases. Both test cases have (as near as I can tell) identical setUp code and identical code in the test method (testCount). However, one test passes while the other test fails. Any idea what's causing this? [Edit - The about box reports "version (Feb 11 2019)".] [Edit 2 - Another piece of potentially relevant information is the Test_ListImp..._2 test class was brought forward from an older version of VI Tester. I don't know what version, but according to my repository it was sometime before Feb. 2013. The other test class (the one that passed) was created with the current version of VI Tester.] VI Tester Error.zip
  4. Or better yet, allow us to replace the default template with our own templates. (FYI, test cases are usually similar enough that I create new ones by opening an existing test case and selecting "Save As..." rather than starting from scratch every time.)
  5. I looked around but didn't see this noted anywhere... If you try to sort on an unnamed column by clicking the header all the packages disappear from the list. Clicking on a named column header brings them back.
  6. What happened to the "How'd they do that?" thread? I could have sworn I saw it just the other day, but I've scoured the website and can't find it...
  7. Thanks for looking into that Jim. It didn't even occur to me that the built code would be broken when the source wasn't. Odd. Sometimes I think LV is starting to lose a few screws in it's old age. (That's the lie I tell myself to so I don't start thinking it's me...)
  8. In the attached package, I have created independent .ctl files for each of my classes so I can put class controls on the controls palette. Most of them work, however the links for the Message class and the ErrorMessage class (the first two on the second row) just *ding* at me when I try to select them. I did move around some of the source code and broke the palette links, but I went back and recreated them with the new locations. The mnu file appears to be set up correctly. Any idea why these two controls can't be used? lapdog_message_library- LD Msg Lib src.zip
  9. Ahh... I didn't know VIPM did this. My primary goals are: 1. Eliminate dependencies between packages as much as possible, and 2. Avoid namespacing conflicts. Importing the dependencies into the package's library seemed like the most logical way to do that, but what you've done solves the problem too. Thanks for the tip! At the moment I don't have a pressing need for the dependent libraries to be private. Mainly it's to prevent boneheaded mistakes like having users accidentally link to the dependent library by draging and dropping from an open block diagram. (No, I'm not speaking from personal experience... I have no idea what you're talking about. ) Because I'm not ready to open the can of worms of writing custom serialization and mutation methods for all my classes. As an app developer I can analyze the specific requirements and focus on serialization/mutation code for a few classes that need to be persisted. As an api developer I don't know what other developers will want to do with the components I've created, so I assume someone will need to persist the component's state to disk. Stepping on the dependent objects' mutation history while building that package make it harder to allow users to do that. My package source can't use the read/write to disk prims directly on the objects, so I can try manually decomposing all the dependent objects into their native data types and save those instead. Not only is that a pain, but it makes client code dependent on implementation details that are better kept private, and if any data is private it won't work. So since using the read/write prims isn't an option, and decomposing the object isn't an option, that leaves me with writing serialization methods for all my public objects. If a library's namespace could be changed and the mutation history preserved (and I was really careful with my coding) I could at least avoid writing serialization methods for data-only classes (those with no references) and still guarantee forward compatibility for users.
  10. Totally NOT stupid questions! Yes to both questions... I'll have to try that out. One thing though, does VIPM suck the dependent libraries into the *package* or into the *library* I'm deploying with my package? And if it just sucks them into the package, doesn't that leave me with two publicly accessable copies of the same library (possibly with slightly different implementations) installed in vilib? Or does VIPM automatically do some namespacing magic on the dependent libraries on it's own?
  11. Yep... I was misunderstanding your process. Can you clarify a couple more steps for me? I'm not quite sure I'm following what you do. "NI Builder assign the support folder to a Project Library during the build process" I take it you create a Source Distribution build in the project? I don't see a way to directly assign a virtual folder to a project library during the build. It (as far as I can tell) can only be done for an entire destination directory. Do you send all your reuse code in the Support virtual folder to the Support build destination (or custom destination), and assign all the Support destination content to a new library? So if my reuse library was named Messaging.lvlib, now it will be Support.lvlib:Messaging.lvlib, correct? "Run my build script that adds the support Project Library to top level Project Library" Now the private reuse code has the MyPackage.lvlib:Support.lvlib:Messaging.lvlib namespace, right? I think this will do what I'm asking for. I do wish I didn't have to trash the mutation history of the messaging library, but there's not much we can do about that.
  12. I may not be understanding your process correctly, but this step worries me. If you're importing the classes residing in your reuse directory to a project-specific library, your reuse code--which is supposed to be independent--becomes dependent on that project-specific library. I suppose you could do the build then remove the reuse library from the project-specific library, but in the meantime the namespace changes to your reuse code has reset the mutation history of any classes in that library. That can be big problems for other users and other applications. Until NI gets around to separating namespacing (and mutation history) from library membership there may not be a good way to reliably handle what I'm trying to do. Even what I proposed has limitations to what end users can do with the new reuse package.
  13. (The question arose while I was composing this message on Lava.) I'd like to automate the process of importing dependent libraries into a package during the build process. Users don't need to know about the dependent libraries, so I'd like to make them private members of the library I'm actually building. I figured a pre-build script should do the job, but I realized it might not be possible. As I understand it VIPM creates a separate app instance and copies the source code during the build process. If I follow the steps outlined in my post on Lava, will the resulting package contain and link to the private reuse code, or will it end up linking to private reuse code that now is part of my source code library? (I vaguely remember running into a similar issue a while back with ogpb.) Thanks, Dave
  14. Uninstall? Yeah, you can bet if it wasn't there someone would object. Upgrade? Meh... if the tool is smart enough to show me what packages are on the target system and forces me to uninstall them before I can install new ones, that'd be fine. As long as the tool itself doesn't require installation I'm pretty flexible. Just so you know, I don't think this something we would use very frequently. Maybe a dozen times a year or so. (Unfortunately there are a lot of barriers to break down when trying to get people to change...) Can I coin a name for it? How about 'VIPM On-The-Go'?
  15. One of the pain points for us in using VIPM is that it has to be installed on the pc that has the Labview source code. I have peers who resist adopting VIPM and prefer copy-and-paste reuse for this very reason. Having a lightweight executable that can be run from a memory stick and is able to install/uninstall packages to the target Labview directory would be a big help in overcoming their objections. I'm not looking for a full-fledged version of VIPM that stores different package versions, scans projects for packages, etc.; just a small executable that I can point to some .vip or .vipc files and have it install them to the correct locations on the target computer.
  16. I'm attempting to build a package from a project that contains two libraries, each of which has 3-4 classes. It also includes a handful of dlls, two of which are .Net assemblies and referenced by the classes. The other dlls are support files the assemblies depend on. If I attempt to include either of the libraries in the build it fails. Excluding the libraries but building with just the dlls works, but of course isn't very useful to me. The libraries and classes don't do anything particularly special. I've attached the associated error file. Let me know if you want to look at source code. I can't post it publicly but we could make arrangements to transfer it via email or secure ftp. -Dave October_06_2010.txt
  17. First off, I absolutely love the palette builder functionality in VIPM. It's far easier to use than NI's methods for building palettes. After using it for a while with several packages I do wish I had the ability to copy items from one palette directly to another palette. I often have multiple copies of the palette open while I'm arranging the layout of a palette tree. Sometimes I want the same vi to show up in two different palettes in the tree. Instinctively I tried ctrl-click-drag to see if it copied the vi to the new palette, but it didn't. (Being able to copy an entire subpalette to a different location would be really handy.)
  18. I'd love to be a pro user. We'll have to wait to see what the bean counters say...
  19. I really like the new palette editor in VIPM 2010. However, instead of creating a .mnu file it stores the palette information in the .vipb file and creates the .mnu file when the package is installed. That's clearly a better design, but it also makes it a little harder to use that palette file as the default palette for classes and libraries. Pre- and post-build scripts are only available in the pro edition. Is there a good way to do this using the community edition?
  20. So I was playing around with building packages in VIPM 2010 and I ran across a bug in the package versioning. The package version number contains the build number except for the very first time the package is built. That package has the build number 0 removed. This appears to confuse VIPM with respect to which version is the most recent. More recent builds with the same Major.Minor.Bugfix numbers aren't consistently identified as an update. Even though I have the most recent version installed, the icon on the left indicates an upgrade is available. Selecting Upgrade... from the context menu prompts me to install v1.0.0. The Action column in the dialog box does correctly identify it as a downgrade though.
  21. I've always liked how VI Tester has its own toolbar in the project window. Can you share the recipe for this particular secret sauce?
  22. Thanks Jim. This is very helpful. (Note to other users: The examples also depend on the oglib_file and oglib_picture packages.) [Edit] I noticed NI has recently(?) suggested distributing code to vi.lib instead of user.lib. Do you have any insight into why this is? The only practical difference I can see (ignoring the auto-populating user palette) is the source control configuration includes the option to exclude vi.lib but not user.lib.
  23. I've been using VIPM Pro to try to create a dyanmic palette package that would install a single synchronized .mnu file to <menus>\Categories. This technique has been described in other threads and I believe it's how the OpenG and JKI Toolkits menus work. When running Windows 7 and LV2009 the installation fails with the following error text, though it does not generate an error log: I thought it might have something to do with UAC not allowing writes to the Program Files directory, so I tried the following: - Created a duplicate package that installed the palette to user.lib instead. This installs correctly. - Run VIPM with administrator rights. Install still fails. - Uninstalled and reinstalled the JKI Toolkits palette, which also uses the Categories folder. It worked fine. So I examined the spec files in the cache and found this... The spec file on the right is the one for my test package. Notice the invalid path defined in Target Dir. To make sure I had actually set up the build correctly I double checked the installation locations and rebuilt the package with the same result. I also configured and built a similar package using OGPB that did NOT exhibit this problem. All three packages are included. menu_test_ogpb_package_1.0_1.ogp menus_lib_test_vipm_package_1.0.0_1.vip userlib_lib_test_vipm_package_1.0.0_1.vip
  24. FWIW the error doesn't seem to hurt anything. I suppose I could just go into <Labview>\resource\JKI\VI Tester\Templates\TestCase and rename textExample.vi to Example.vit. Then I wouldn't have to rename it at all for new test cases.
  25. When I create a new test case class the first thing I do is rename testExample.vi to textExample.vit. That simplifies my work flow a bit for a couple reasons: 1. I can right click the template and use "New From Template" instead of going through the rename dialog box. Easier and faster. 2. The testExample unit test doesn't show up as an available test so it isn't executed and my test results aren't all cluttered up. Changing it to a template does raise an error when I start VI Tester. Any chance of 'officially' changing testExample to a template?
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.