LivelyKernel / lively.next

lively.next is a personal programming kit. It emphasizes liveness, directness, and interactivity.
https://lively-next.org
MIT License
65 stars 16 forks source link

Javascript workspace cursor is misaligned #973

Closed rickmcgeer closed 1 year ago

rickmcgeer commented 1 year ago

Describe the bug After I pasted the following code into a JavaScript workspace:

new VideoMorph({
      src: 'https://matt.engagelively.com/assets/ITF/Ibn_Map_100.mp4',
      type: 'video/mp4',
      extent: pt(1920, 1080),
      position: pt(0, 0),
      name: 'ibn'
    });

and then used a Fix undeclared variables to automatically add these two lines to the top:

import { VideoMorph } from "lively.components/video.js";
import { pt } from "lively.graphics";

Every evaluation had a syntax error and code was changing two lines above where the cursor was when I typed. You can see the misalignment in the attached screenshot; I had just typed 'foo.', and the cursor is the red line you see two lines below the last line typed.

To Reproduce Steps to reproduce the behavior. Please make sure to let us know if your problem requires the loading of custom components,...

Screenshots image

Setup Please delete non-applicable items!

Version: Please paste the lively.next commit on which the problem occurred here (use the copy button of the Version Checker in the bottom left corner). 34f27b39a9805265b86369a67ee0ffe665dc1f8e

linusha commented 1 year ago

I assume this was related to a missing rebuild after we changed the font inclusion mechanism. @rickmcgeer please reopen if the problem persists.