Syntax highlighting and code completion

Report crashes, strange behaviour, or apparent bugs
Post Reply
napoleon
Posts: 7
Joined: 12 Dec 2019, 11:03

Syntax highlighting and code completion

Post 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.

coppelia
Site Admin
Posts: 7911
Joined: 14 Dec 2012, 00:25

Re: Syntax highlighting and code completion

Post 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

napoleon
Posts: 7
Joined: 12 Dec 2019, 11:03

Re: Syntax highlighting and code completion

Post 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

napoleon
Posts: 7
Joined: 12 Dec 2019, 11:03

Re: Syntax highlighting and code completion

Post 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?

coppelia
Site Admin
Posts: 7911
Joined: 14 Dec 2012, 00:25

Re: Syntax highlighting and code completion

Post 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

napoleon
Posts: 7
Joined: 12 Dec 2019, 11:03

Re: Syntax highlighting and code completion

Post 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!

coppelia
Site Admin
Posts: 7911
Joined: 14 Dec 2012, 00:25

Re: Syntax highlighting and code completion

Post by coppelia »

You can send us the screenshot to this email.

Cheers

napoleon
Posts: 7
Joined: 12 Dec 2019, 11:03

Re: Syntax highlighting and code completion

Post by napoleon »

I've sent you an email.

Cheers

coppelia
Site Admin
Posts: 7911
Joined: 14 Dec 2012, 00:25

Re: Syntax highlighting and code completion

Post 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

coppelia
Site Admin
Posts: 7911
Joined: 14 Dec 2012, 00:25

Re: Syntax highlighting and code completion

Post 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

Post Reply