lowndesc / industryx

An Avanade/Accenture open collaborative tutorial to distribute knowledge and capability regarding the use of Azure IoT and Azure Digital Twins with Simulation to train Microsoft Bonsai AI to solve manufacturing business problems.
13 stars 5 forks source link

5.ii SimulatorCloudRunner.ps1 line 2: syntax error near unexpected token `newline' #5

Closed GraceFu closed 3 years ago

GraceFu commented 3 years ago

Hi, I got the error when I tried to run SimulatorCloudRunner.ps1:

./SimulatorCloudRunner_fix.ps1: line 2: syntax error near unexpected token `newline'
./SimulatorCloudRunner_fix.ps1: line 2: `param ('

Could you probably help me with this?

Thanks, Grace

lowndesc commented 3 years ago

Hi, I got the error when I tried to run SimulatorCloudRunner.ps1:

./SimulatorCloudRunner_fix.ps1: line 2: syntax error near unexpected token `newline'
./SimulatorCloudRunner_fix.ps1: line 2: `param ('

Could you probably help me with this?

Thanks, Grace

This may be an issue with text file encoding. Try testing the file locally in Powershell to see if it throws the same error.

GraceFu commented 3 years ago

Hi, I got the error when I tried to run SimulatorCloudRunner.ps1:

./SimulatorCloudRunner_fix.ps1: line 2: syntax error near unexpected token `newline'
./SimulatorCloudRunner_fix.ps1: line 2: `param ('

Could you probably help me with this? Thanks, Grace

This may be an issue with text file encoding. Try testing the file locally in Powershell to see if it throws the same error.

Yeah it didn't throw this error when I run it locally. I tried to look it up but didn't manage to solve it. Could you provide any insights? Thanks! (I've checked and there are indeed only \n not \r or \r\n...)

GraceFu commented 3 years ago

Sorry I just realized that I did not switch from Bash to Powershell, which causes this "error"... It's all good now!