Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LayoutView not promoted to correct class after Plugin initialization #1360

Closed
klayoutmatthias opened this issue May 8, 2023 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@klayoutmatthias
Copy link
Collaborator

For details see this discussion: https://www.klayout.de/forum/discussion/2272/bug-bookmark-view-does-not-exist-anymore-in-ruby-in-klayout-28-6#latest

Summary: run KLayout with the following script in "-rm":

module MpluginEC

include RBA

class PluginECFactory < PluginFactory
  def initialize
    register(100000, "plugin_extern", "External\nControl")
  end
  def create_plugin(manager, root, view)
    return Plugin::new
  end
end

class PluginEC < Plugin
end

PluginECFactory.new

end

Load a file and in the macro IDE use:

RBA::Application::instance.main_window.current_view

This returns a LayoutViewBase object and not a LayoutView object as required. Without the plugin initialization, the LayoutView is returned.

klayoutmatthias pushed a commit that referenced this issue May 9, 2023
…m was that GSI binding of LayoutView happened before LayoutView was fully constructed.
@klayoutmatthias klayoutmatthias self-assigned this May 9, 2023
@klayoutmatthias klayoutmatthias added this to the 0.28.8 milestone May 9, 2023
klayoutmatthias added a commit that referenced this issue May 12, 2023
Fixed issue #1360 (LayoutViewBase not promoted to LayoutView). Proble…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant