Plugin load type too strict for shared type

Open
#951 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
c
Domain
compilers

Research direction

Start by tracing the plugin system's type-loading and excluded-class handling; the issue names no specific files or tests. Compare how Plugin and Main definitions are matched, then verify that independent private additions, differing h3d.Buffer definitions, and unused classes no longer require identical definitions or loading.

Written by the indexing model from the issue text.

Description

For the moment the plugin system only load a class if Plugin and Main share exactly the same definition for excluded classes.

This isn't pratical for real use cases, where we'd like to build Plugin independent of Main. E.g.

  • add some private variables/function in some class, without the need to rebuild the Plugin;
  • allow h3d.Buffer remains Dynamic in the Plugin but have a driver definition in Main to avoid useless dependencies;
  • do not actually include and try to load all classes if the Plugin does not depend on it
Dominant language
C
Stars
911
Forks
207
Avg merge
1d 21h
Merged PRs (30d)
13

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HaxeFoundation/hashlink

All issues in HaxeFoundation/hashlink

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.