question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selecting a Scene in the code editor doesn't select in the storyboard, should

See original GitHub issue

Problem We have a overall pretty compelling follow-me feature that moves the code editor to the selected element, for rapid editing. However, this doesn’t work for Scenes, which is annoying since that’s where the components are, and also because you often need to true up a Scene with its content (since we don’t have autosizing yet).

Solution Selecting a scene should open the storyboards file in code and scroll to it “as if Scene were a regular component”.

Questions Where do we put the boundary? Just outside the component, or just inside it? Not relevant for Scenes, but possibly for the div / Button here:

<Scene> <!-- should select Scene in storyboard.js --/>
   <div> <!-- should select that div in storyboard.js --/>
       <Button label='from-button.jsx'>Click me</Button> <!-- ¿should select Button in button.jsx? or this line in storyboard.js --/>
   </div>
</Scene>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Rheeseybcommented, Apr 6, 2021

This is coincidentally something that will be solved by the current work to replace <Scene component={App}/> with <Scene><App /></Scene> (which I can confirm because I had that exact state during part of the spiking work in prep for that)

0reactions
Rheeseybcommented, Apr 16, 2021

Closed by #1083

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode: "Scene is unreachable due to lack of entry points" but ...
Ctrl-clicking your .storyboard in the Project Navigator and selecting Open As > Source Code . This will bring up the underlying XML of...
Read more >
Storyboard Pro 20 Online Help: Script Editor View
Selecting a script in this list will open it in the editor. NOTE The << Sandbox >> item at the top of the...
Read more >
Wrong assistant editor | Apple Developer Forums
The right configuration is to click on Automatic, then select Top level Object in the pop up menu. Now, when you select a...
Read more >
How do I add and manage scenes in Create editor? - Vimeo
Select the '+New Scene' button above the storyboard. A new scene will appear in your storyboard. Select the +New Scene button to add...
Read more >
Windows 10 Video Editor "select all" on storyboard???
I found that Control + A works for me on the Storyboard as long as you select one of the clips first, or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found