Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

Java source file dependencies in src/java from Kola #1

Open
Bathtor opened this issue Jan 18, 2017 · 0 comments
Open

Java source file dependencies in src/java from Kola #1

Bathtor opened this issue Jan 18, 2017 · 0 comments
Assignees
Labels

Comments

@Bathtor
Copy link
Contributor

Bathtor commented Jan 18, 2017

Setup

Source files in both src/java and src/kola with Kola files depending on the Java files.

Issue

The Kola compiler never sees the Java files, as they are simply passed along to the Java compiler later, but since they are not compiled they can't be included in the classpath for the Kola compiler, hence the files can't be referenced from the Kola files.
This is a chicken and egg problem, assuming that the Java files should also be able to reference Kola files, that would mean that both need to go through both compilers.

Possible Fix

Add a special Java file path to the Kola compiler and pass the Java files there to be parsed and interpreted but never written back, because otherwise debugging gets very confusion as all the line numbers will be off.

Workaround

Copy Java files referenced by Kola files to src/kola, so they are handled by the Kola compiler first.

Status

Won't fix for now. I might change my mind on this later, so I'll just keep the issue for reference.

@Bathtor Bathtor self-assigned this Jan 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant