spoofax-shell-2017 / spoofax-shell

Apache License 2.0
0 stars 0 forks source link

Shell cannot start inside a project context #16

Open Pathemeous opened 7 years ago

Pathemeous commented 7 years ago

The Shell cannot launch inside the context of a(n Eclipse) project.

This is because the injected IProject is not instantiated properly. Right now it uses a temp dir to create an empty IProject.

To enable context-aware shell, the following must happen.

Pathemeous commented 7 years ago

IProject can be instantiated to use the location from the :load command as an IProject and adding all source code files in that tree.

A blocker is that these files cannot be 'evaluated' in the same way as the REPL, and because of the differing semantics it is hard to check if the IProject instantiation automatically fixes this.