-
Notifications
You must be signed in to change notification settings - Fork 63
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
Conversation
There was a problem hiding this 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
core/src/main/java/org/lflang/federated/launcher/FedLauncherGenerator.java
Show resolved
Hide resolved
There was a problem hiding this 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.
You're welcome to push a fix to this branch... |
Sure, Marten. I'll attend to it promptly.
Il giorno ven 15 mar 2024 alle ore 18:51 Marten Lohstroh <
***@***.***> ha scritto:
… 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...
—
Reply to this email directly, view it on GitHub
<#2245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APBNLD3ZMBAZZ3L7ZJN7IYLYYOQQ3AVCNFSM6AAAAABEVC4PACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBRGA3DQNJTHE>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
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. |
I'm confused. Which version were you using when you reported the problem? |
I'm quite confused as well. Last week, it wasn't working, so I had to manually delete the |
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? |
The issue this was trying to solve is that the script did not work if |
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.