Skip to content
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

Added newline after trailing slash #2245

Closed
wants to merge 2 commits into from
Closed

Conversation

edwardalee
Copy link
Collaborator

This fixes a bug in the command to remotely launch an RTI by inserting a newline after the trailing slash.

There is still a problem, however, which is that ssh with a command does not source any bash profile files, so the PATH never gets set, so the RTI will likely not be found on the remote machine. The "right" fix, IMHO, is that we should code generate the RTI just like a federate and launch it just like a federate. But short of that, it would be better if FedLauncherGenerator created a bash script in a local file, then copied it to the remote machine and launched it there.

Copy link
Collaborator

@vinzbarbuto vinzbarbuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That could fix the problem

@edwardalee edwardalee added this pull request to the merge queue Mar 15, 2024
Copy link
Collaborator

@vinzbarbuto vinzbarbuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug is actually present on line 394. I suggest we replace "\n\" with "\n"\ as the sequence \" seems to be causing the error.

@lhstrh lhstrh removed this pull request from the merge queue due to a manual request Mar 15, 2024
@lhstrh
Copy link
Member

lhstrh commented Mar 16, 2024

The bug is actually present on line 394. I suggest we replace "\n\" with "\n"\ as the sequence \" seems to be causing the error.

You're welcome to push a fix to this branch...

@vinzbarbuto
Copy link
Collaborator

vinzbarbuto commented Mar 18, 2024 via email

@vinzbarbuto
Copy link
Collaborator

Edward and Marten, prior to making any modifications, I conducted some tests, and it seems the code generator is now functioning correctly. It appears that the issue has been resolved in one of the previous commits. Therefore, I believe we can proceed to close the pull request.

@lhstrh
Copy link
Member

lhstrh commented Mar 18, 2024

I'm confused. Which version were you using when you reported the problem?

@vinzbarbuto
Copy link
Collaborator

I'm quite confused as well. Last week, it wasn't working, so I had to manually delete the \ separator. However, after the building phase, the issue I was facing seems to have vanished. My hunch is that I didn't update all the git submodules while dealing with the lfc-dev compiler

@lhstrh lhstrh marked this pull request as draft March 19, 2024 21:17
@lhstrh
Copy link
Member

lhstrh commented Jun 5, 2024

I never really understood the issue this was trying to solve, and the fix didn't look good to me. Should we just close this?

@edwardalee
Copy link
Collaborator Author

The issue this was trying to solve is that the script did not work if rtiLaunchString had a trailing backslash. However, the problem seems to have gone away, so I'm closing this.

@edwardalee edwardalee closed this Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants