Jiki's chatbot answers can be more revealing

It is probably designed to not to directly give the answer but i think it dodges the question too much, it would be better if it was more revealing.
At least it can give direct answers to questions like “why IDE didn’t highlight this?” “is this a bug?” etc.

It was a bug apparently, it would be good if chatbot could have check if it is really a bug or a typing mistake.

Thanks for reporting. Can you clarify if you mean it was a bug in your code, or in the editor’s visuals please?

If it was the first, was the guidance the chatbot was giving you trying to push you to see that bug?

1 Like

thank you for replying. The issue is Second one, only editor’s visual, code is working. if were all blue except the second if block. In second if block editor displays if with the color of the variables. Refreshing page didn’t fix it. Small problem but still made me search for mistakes for a while.

I came across the same syntax highlighting issue in an earlier exercise, Solve the Maze Problematically:

I think the problem arises in both cases from the empty repeat loop. Notice how the if keyword isn’t blue and the canTurnLeft() function name isn’t underlined.

As soon as you give the repeat loop a specific number of times to repeat, the correct syntax highlighting appears:

2 Likes

That would make sense, thanks. I’ll investigate and update the highlighting.