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

IDE incorrectly caches schematic-defined blocks #133

Open
ducky64 opened this issue Nov 27, 2023 · 0 comments
Open

IDE incorrectly caches schematic-defined blocks #133

ducky64 opened this issue Nov 27, 2023 · 0 comments

Comments

@ducky64
Copy link
Collaborator

ducky64 commented Nov 27, 2023

Because the HDL doesn't change, the IDE never knows to invalidate the previously compiled version.

Simple option: IDE never caches schematic-defined files, by hardcoding the class name

More advanced option: a class in the Block hierarchy directs the IDE to not cache subclasses

The most general option: A class in the Block hierarchy defines a function that evaluates to a caching key - in this case, it can be the schematic last-modified-date or hash. Every compiler run, either all blocks have their caching key updated (which can be inefficient), or blocks can be invalidated-on-first-use (more complex).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant