Skip to content

Cannot start scene at beginning of method #50

@VladimirFokow

Description

@VladimirFokow

#48 (comment)

It seems like I am now unable to start a terminal at all on my device.

This can happen if you e.g. place your cursor here:

class SquareToCircle(Scene):
    def construct(self): <--- here, on the `construct` method
        <--- or here, on empty lines just after the line with `construct` method
        <--- or here
        <--- or here
        ## Set up
        circle = Circle()
        circle.set_fill(BLUE, opacity=0.5)
        circle.set_stroke(BLUE_E, width=4)
        square = Square()

(the reason: the command manimgl ... -se <this line number> itself doesn't work with these line numbers)


The fix is easy - we just need to add this logic to startStopScene.ts
(I just overlooked this edge case when I wrote that.)


For example, what to do in this case:

currently: if empty lines - we check up 1 by 1

if we meet the construct method -> insert a next line and start there, e.g.:

        # -- manim-notebook VSCode extension: this comment was inserted automatically to start right after the "construct" method --

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions