Syntax error
-
Missing shebang line? #!/bin/bash
In vino veritas
Nope, now It get invalid file. I get this error after I let Eclipse identify the file path by reading the remote (ARM) system. I think the combo box is looking for partial path. I do not have any means to really know what suppose be entered into the field. Let me find other IDE and put this on hold for now.
-
I need some hint how to identify / troubleshoot this syntax error. /home/vaclav/TEMPLATE_Cross_GCC_RPI: 1: /home/vaclav/TEMPLATE_Cross_GCC_RPI: Syntax error: "(" unexpected I get it when I specify "/home/vaclav/TEMPLATE_Cross_GCC_RPI" as "file path". The path is valid. Mrs Google suggested "linux bash error". I am lost. Amy help would be greatly appreciated. Cheers. Vaclav
-
You do not need my code, but I am willing to add to the OP whatever you need could help. It is simple "text" box where "(Remote ) file path " is entered. Such as "/this/that ". If I enter invalid path I get different error, so I know the path is valid. I really need to get the source code for this dialog to find out why simple text like that causes the funky error. Let me work on that.
-
I need some hint how to identify / troubleshoot this syntax error. /home/vaclav/TEMPLATE_Cross_GCC_RPI: 1: /home/vaclav/TEMPLATE_Cross_GCC_RPI: Syntax error: "(" unexpected I get it when I specify "/home/vaclav/TEMPLATE_Cross_GCC_RPI" as "file path". The path is valid. Mrs Google suggested "linux bash error". I am lost. Amy help would be greatly appreciated. Cheers. Vaclav
Vaclav_Sal wrote:
You do not need my code, but I am willing to add to the OP whatever you need could help. It is simple "text" box where "(Remote ) file path " is entered. Such as "/this/that ". If I enter invalid path I get different error, so I know the path is valid. I really need to get the source code for this dialog to find out why simple text like that causes the funky error. Let me work on that.
Well, we still cannot guess what you are talking about, a C/C++ program, a bash script ... and exactly where does this error message occur?
-
I need some hint how to identify / troubleshoot this syntax error. /home/vaclav/TEMPLATE_Cross_GCC_RPI: 1: /home/vaclav/TEMPLATE_Cross_GCC_RPI: Syntax error: "(" unexpected I get it when I specify "/home/vaclav/TEMPLATE_Cross_GCC_RPI" as "file path". The path is valid. Mrs Google suggested "linux bash error". I am lost. Amy help would be greatly appreciated. Cheers. Vaclav
Vaclav_Sal wrote:
/home/vaclav/TEMPLATE_Cross_GCC_RPI: 1: /home/vaclav/TEMPLATE_Cross_GCC_RPI: Syntax error: "(" unexpected I get it when I specify "/home/vaclav/TEMPLATE_Cross_GCC_RPI"
My guess is that you are guessing. You are making one or more assumptions that are incorrect. Some examples. 1. The path that you think you are using (in dialog) is not the one that you are actually putting there. 2. Your code is doing something with the path, from the dialog, and it is that path, not the one in the dialog, that has the problem. Solution. 1. Find the EXACT line where the error occurs. 2. BEFORE that line log/print the EXACT path that is being used. PUT delimiters around the value so you know exactly where it starts. Such as (pseudo) print '{' + val + '}'. Take care with 2 that you do not make assumptions. For example if you pass to parameters to the failing line the log/print both of them, do not concatenate.
-
Vaclav_Sal wrote:
/home/vaclav/TEMPLATE_Cross_GCC_RPI: 1: /home/vaclav/TEMPLATE_Cross_GCC_RPI: Syntax error: "(" unexpected I get it when I specify "/home/vaclav/TEMPLATE_Cross_GCC_RPI"
My guess is that you are guessing. You are making one or more assumptions that are incorrect. Some examples. 1. The path that you think you are using (in dialog) is not the one that you are actually putting there. 2. Your code is doing something with the path, from the dialog, and it is that path, not the one in the dialog, that has the problem. Solution. 1. Find the EXACT line where the error occurs. 2. BEFORE that line log/print the EXACT path that is being used. PUT delimiters around the value so you know exactly where it starts. Such as (pseudo) print '{' + val + '}'. Take care with 2 that you do not make assumptions. For example if you pass to parameters to the failing line the log/print both of them, do not concatenate.
-
jschell wrote:
My guess is that you are guessing.
My guess is that you are exactly right. :thumbsup:
No more stupid , what else can I call it?, replies please. If you read the OP it is the VALID ENTRY to the options text box. Nothing to do with my code. If I knew WHERE TCF implements these options I would resolve this myself.Perhaps in my spare time I'll search git for it. I fail to see how I can describe the problem any differently. Let's just drop it. I am using different "Configuration", not TCF, to access the target and it works using SAME, EXACT option TEXT to specify the "remote" file path. Problem solved (?) Thanks
-
No more stupid , what else can I call it?, replies please. If you read the OP it is the VALID ENTRY to the options text box. Nothing to do with my code. If I knew WHERE TCF implements these options I would resolve this myself.Perhaps in my spare time I'll search git for it. I fail to see how I can describe the problem any differently. Let's just drop it. I am using different "Configuration", not TCF, to access the target and it works using SAME, EXACT option TEXT to specify the "remote" file path. Problem solved (?) Thanks
Vaclav_Sal wrote:
If I knew WHERE TCF implements these options
And if you had mentioned TCF (whatever that is) in the first place you would most likely not have got what you call "stupid replies". Like so many questioners here, you provide only half the information and then blame us when you don't get the correct answer in return.
-
No more stupid , what else can I call it?, replies please. If you read the OP it is the VALID ENTRY to the options text box. Nothing to do with my code. If I knew WHERE TCF implements these options I would resolve this myself.Perhaps in my spare time I'll search git for it. I fail to see how I can describe the problem any differently. Let's just drop it. I am using different "Configuration", not TCF, to access the target and it works using SAME, EXACT option TEXT to specify the "remote" file path. Problem solved (?) Thanks
As guess, from googling, "TCF" is an open source library that one can use. Because it is open source it can be modified. Otherwise, for this and other third party libraries, first and best source are the support forums for the library. Might also look through the bug reports for the library since it might be something that is already known.
-
As guess, from googling, "TCF" is an open source library that one can use. Because it is open source it can be modified. Otherwise, for this and other third party libraries, first and best source are the support forums for the library. Might also look through the bug reports for the library since it might be something that is already known.
Call me dense - but I see this as OS error / verification error and I did my best to find what parameters are expected in the control. At one point Eclipse did confirm the "file" selected. Unfortunately this TCF is pretty much dead as far as any support from the original vendor. Please consider this matter closed.