Comments (5)
Hi Matt,
Thanks for bringing this up. Can I just confirm you have tried with v1.5.1 (https://github.com/JamesMc86/LabVIEW-CLI/releases/tag/v1.5.1) since this fixed an issue with detection that it is a built executable?
from g-cli.
Hi James,
Yes I was using V1.5.1. If it is a built executable it should not check for a Labview version. It just needs to run the executable. As it is, v1.5.1 will return an error if there is no LV Development environment installed.
I fixed the code locally and it resolved the issue. The new code does not call lvVersion and lvPathFinder() when the launch VI is an exe. See code below.
Program.cs
try
{
string lvPath;
if (isExe(options.LaunchVI))
{
lvPath = null;
}
else
{
lvVersion current = LvVersions.CurrentVersion;
lvPath = lvPathFinder(options);
}
launcher = new LvLauncher(options.LaunchVI, lvPath, lvInterface.port, lvArgs);
launcher.Exited += Launcher_Exited;
launcher.Start();
}
I also removed the following lines at the beginning of the code:
Line 27: lvVersion current = LvVersions.CurrentVersion;
Line 48: LvVersions.Scan();
Let me know if you want me to check in the code.
from g-cli.
Just going to take a quick look now - my feeling is that is a large change when really the better behaviour is it doesn't care if there is no LabVIEW. The scan can still run it just should continue regardless.
Let me make that clearer: There is no reason to throw an error if we haven't found LabVIEW but we are running the exe case. We should only throw an error if we hit the non-exe case with no LabVIEW installed. I would prefer to understand why we get an error in the first case and suppress that as there is no reason for one.
from g-cli.
OK I have a fix for you which I'm buiding as v1.5.2. This means that pathfinder returns a blank path if none is found and then we throw an error only if we try and launch a non-exe VI.
I've tested your use case here and it seems to do the trick.
It's live at https://github.com/JamesMc86/LabVIEW-CLI/releases/tag/v1.5.2
from g-cli.
Awesome. Thank you for the quick turn around on this. I will test it shortly and let you know if there are any issues.
from g-cli.
Related Issues (20)
- Start-cli argument parsing off 1 index for port when running an LV exe HOT 5
- Better Powershell Integration
- Duplicate messages when LabVIEW crashes (Comms Error: Unexpected EOF Error)
- g-cli did not show any warnings or errors when using the deprecated (2.x) `--timeout` argument HOT 1
- Set LabVIEW Version With Environmental Variable
- *relative* paths to VIs inside of PPLs does not work (on Linux at least) HOT 1
- Kill LabVIEW Command Doesn't Work on Linux HOT 4
- Add an `--exit` argument for LabVIEW to exit after completion of cmd HOT 3
- Handle Missing NI Registry Keys
- Get Option Value.vi should return 'option type' HOT 1
- Add Cache or Pre Build to Linux Dev Container
- Exception during registry scan for active lv version HOT 1
- Multi-Instance Environments Could Kill the Wrong Instance
- Linux doesn't detach from LabVIEW process
- g-cli in Linux hangs if called from an SSH session HOT 2
- lvBuild missing in VIP HOT 1
- Testing with G-CLI HOT 4
- Memory Allocation Errors - Improved Error Checking?
- UNC Paths Fail To Launch
- Timed out waiting for app to connect to g-cli HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g-cli.