Open realtebo opened 1 year ago
Were you ever able to get it working @realtebo?
No, I opened course source code and simply followed tutorial without tests and any automatism.
I thought I might have an idea of what was happening, but I can't reproduce it - so I'm not sure. Here was my thinking anyway...
For some context, what the courses do is put the terminal commands you enter into a log file - we look in that file to see what commands you enter. The error you are seeing says that you last entered \r
in the terminal, which is a "carriage return".
I found this article that shows how VS Code handles end of line characters. The two options are LF (which is \n
) and CRLF (which is \r\n
). I thought maybe it was set to CRLF for you which was causing an extra line in the log file or something - but like I said, I can't reproduce it. It felt like I was on the right track.
Here's one possibly related thing I've seen in the past. When some people try to contribute to the relational database courses, they run the coderoad build
command to build the JSON file of the course and get a whole bunch of that \r
character in the file. See this commit. I don't know why that happens, but it could be related to this. Perhaps something with the OS? or terminal shell used?
Maybe log file has some more clues. Check what are the actual contents of .logs/.bash_history.log
Project
Learn How to Set Up NEAR by Building a Hello World Smart Contract
Lesson Number
1
Question
I opened a new bash terminal, because I have 2 terminal 'occupied' by other processes
Code and Screenshots
But code test cannot detect, I think, the new bash terminal.
This is the "Test console" output