rascal
rascal copied to clipboard
terminal does not configure source folder of current project correctly
Describe the bug
When I start a terminal in the flybytes project, I expect the src folder of that project to be configured correctly. Currently it uses the cwd as the source folder.
Is that a rascal eclipse thing? I mean what does starting in the flybytes project mean if not setting the CWD to that project?
it's a feature of all REPL environments; the normal command shell, the Eclipse REPL, the JUnit runner, the tutor compiler, mvn rascal:console, did I mention them all? So it should work the same for the VScode repl. One reason is that a project may have several src folders configured, another is that dependencies must be resolved using RASCAL.MF. Also it is convenient for testing purposes that all the REPLs simulate the same behavior.
Ah, so it's: find current or parent rascal.mf file from current working directory, and use those to setup lib/src paths. That is a very nice feature that I've heard a lot.
yes. I use it all the time on the commandline.
On Wed, Mar 17, 2021 at 1:53 PM Davy Landman @.***> wrote:
Ah, so it's: find current or parent rascal.mf file from current working directory, and use those to setup lib/src paths. That is a very nice feature that I've heard a lot.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/usethesource/rascal/issues/1478#issuecomment-801057072, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPF5FY33EBTYQTGSHOXPELTECQ3LANCNFSM4ZIJA5ZA .
-- Jurgen Vinju http://jurgen.vinju.org CWI SWAT TU Eindhoven MDSE Swat.engineering BV
this issue belongs in cwi-swat/rascal-vscode, not here.