Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

SuzanneSoy
Copy link
Contributor

@SuzanneSoy SuzanneSoy commented Jun 17, 2016

This fixes bug #15.

The problem was that when analyzing a chunk, scribble/lp tries to identify the require statements and automatically append them to a (require (for-label …)) statement. Submodules declared in the chunks are not available during the first expansion step.

Ideally, we would simply ignore all unknown modules, as I'm not 100% sure this is robust in all cases.

Also, it would be nice to check whether we're in the first expansion step or in the actual module, and include these require statements with an extra ".." in the second case.

I also cleaned up code by currying the #'racketblock vs #'RACKETBLOCK parameter for chunk and CHUNK instead of factoring the two macros with define-syntax-rule. This avoids a lot of (... ...) in the code.

@SuzanneSoy SuzanneSoy force-pushed the scribble-lp-fix-require-submod branch 2 times, most recently from ddb1842 to e1ff6f1 Compare June 17, 2016 14:28
…cketblock vs RACKETBLOCK parameter for chunk and CHUNK instead of calling define-syntax-rule twice.
@SuzanneSoy SuzanneSoy force-pushed the scribble-lp-fix-require-submod branch from e1ff6f1 to a3f8e6a Compare June 17, 2016 17:44
@SuzanneSoy SuzanneSoy changed the title Fixed scribble bug #15. Fixed scribble bug #15 (Can't require a submodule in the same chunk with scribble/lp2) Aug 4, 2016
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

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.