Page 1 of 1

Syntax highlighting and code completion

Posted: 19 Dec 2019, 13:24
by napoleon
I have an issue with syntax highlighting and code completion when using CoppeliaSim.

When I create a new scene in CoppeliaSim the editor shows no syntax highlighting, I see no row numbers and I get no code completion.

When opening a scene created in V-Rep everything works as it used to.

Re: Syntax highlighting and code completion

Posted: 31 Dec 2019, 07:24
by coppelia
Hello,

sorry for the delay. What platform are you on? Does this only happen with a new scene?
What are the exact steps to reproduce this?
What happens if you start coppeliaSim, double-click on the customization script icon of the default floor?

Cheers

Re: Syntax highlighting and code completion

Posted: 07 Jan 2020, 13:46
by napoleon
Hi,

No worries, I've been on vacation.

I tried to copy the full scene into a new scene and then it works. I can't recall whether I've had the problem for multiple scenes or just the one I currently use. So it seems I can't reproduce the error, I'll get back if it happens again.

Best

Re: Syntax highlighting and code completion

Posted: 08 Jan 2020, 09:58
by napoleon
This morning when I opened up my scene, syntax highlighting was gone again.

Again, if I copy everything in my scene into a new scene everything works.

I tried creating a random scene with a single robot with a child script (tried threaded and non threaded). Both of these work so I figure there is something in my other scene which is off.

I am Windows 10. Would it help if I share the scene with you somehow?

Re: Syntax highlighting and code completion

Posted: 08 Jan 2020, 10:23
by coppelia
Thanks. Yes, sharing your scene could help.
Are you sure that you haven't enabled an external editor for CoppeliaSim?
Could you also share a screenshot of the editor that is missing syntax highlighting?

Cheers

Re: Syntax highlighting and code completion

Posted: 08 Jan 2020, 12:43
by napoleon
I'm not comfortable showing the scene or screenshot through the forum is there another way? I thought I'd send a PM but you have that disabled (for good reason I assume :)).

I wouldn't know how ti enable an external editor so unless it is possible to do by chance I haven't enabled one.

Thanks for all the quick replies!

Re: Syntax highlighting and code completion

Posted: 09 Jan 2020, 16:09
by coppelia
You can send us the screenshot to this email.

Cheers

Re: Syntax highlighting and code completion

Posted: 10 Jan 2020, 15:28
by napoleon
I've sent you an email.

Cheers

Re: Syntax highlighting and code completion

Posted: 10 Jan 2020, 15:42
by coppelia
Thanks for the screenshot. Does the console say anything special when this occurs?
Also, could it be that your CoppeliaSim folder, or the folder your scene is saved in contains any of >, <, &, ", or ' ?

Cheers

Re: Syntax highlighting and code completion

Posted: 13 Jan 2020, 07:32
by coppelia
Hello,

we have identified a possible cause of the syntax highlighting not showing. Thanks a lot for your help.
A new revision is available for download (V4.0.0.rev3), that corrects this bug.

Cheers