-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regenerating .proto results in error (since v.1.0.0.6) #346
Comments
@StefanCals I would suggest you to move to the latest release https://github.com/ni/grpc-labview/releases/tag/v1.2.0.1 and verify if it solves your problem. |
@nischalks in the issue I described it to be an issue from v1.0.0.6 until now. So this is also still an issue in the current v1.2.0.1 release. The problem is, I think, in the Save VI Invoke Node. At some point it tries to delete a file if it's there and save some VI with the same name. However, being that that previously deleted VI was part of the library, it can't save it under the same name (thinking there already is a VI with that name in the library). Disconnecting the VI from library before deleting and saving the new VI gets rid of some errors, but not all. |
I'm having the same issue. |
It appears the template server and client projects in the gRPC Server and Client Template [2] package have been updated and the example projects in the github repository were created with older templates. Specifically, when following the Regenerate the gRPC code section of the quick start guide, the gRPC Scripting Tool errors in the Generate Descriptor VI.vi because it can't find the Generated Descriptors.vi in the existing server library in the Hello World project. If you change the Generated Library Name in the tool to a new name (say "helloword2") the gRPC Scripting Tool correctly generates the new server and client libraries The example projects should probably be updated to match the latest client and server templates. |
It would be preferable to have a scripting tool that can rescript your code without having to rename your Generated Library Name. |
Ye this issue is super annoying when trying to use the library for projects. As such I have modified the script to delete all the generated code apart from certain VIs I want to keep (which it copies elsewhere) before regeneration. Its a bit wonky but its reliable |
Regenerating a .proto file with the scripting tool results in error 1357.
Originally, generated a Server and Client with the helloworld.proto file.
This worked, no errors.
Updating the helloworld.proto as described in the QuickStart.md will result in error 1357.
The SayHelloAgain method is also not created on the Client side.
I am currently using LabVIEW 2021 64-bit with Windows 11.
I have tested this with the following released versions of grpc-labview
![image](https://private-user-images.githubusercontent.com/36990897/302990600-5dc26cd6-39e7-43e5-99a7-ad26a48f35a7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NDQzNTEsIm5iZiI6MTczOTg0NDA1MSwicGF0aCI6Ii8zNjk5MDg5Ny8zMDI5OTA2MDAtNWRjMjZjZDYtMzllNy00M2U1LTk5YTctYWQyNmE0OGYzNWE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDAyMDA1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU4N2M2OTQ3ZDQ5MDlmYTgwMTAxZTM0NjM5ZjY0MDkzMTgyNzBmNjc1NGIxYmM4Y2ExYjIyMTA4OWVjNDQxZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GFTN_v4N8oZgXUSaN7rKx41vIbevPyealdoqktumav0)
Regenerating worked in v1.0.0.5, however there were some other problems in this version that have since been fixed.
I would like to see the regeneration of .proto files working again.
AB#2647752
The text was updated successfully, but these errors were encountered: