rascal icon indicating copy to clipboard operation
rascal copied to clipboard

terminal does not configure source folder of current project correctly

Open jurgenvinju opened this issue 4 years ago • 5 comments

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.

jurgenvinju avatar Mar 16 '21 10:03 jurgenvinju

Is that a rascal eclipse thing? I mean what does starting in the flybytes project mean if not setting the CWD to that project?

DavyLandman avatar Mar 16 '21 21:03 DavyLandman

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.

jurgenvinju avatar Mar 17 '21 08:03 jurgenvinju

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.

DavyLandman avatar Mar 17 '21 12:03 DavyLandman

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

jurgenvinju avatar Mar 17 '21 13:03 jurgenvinju

this issue belongs in cwi-swat/rascal-vscode, not here.

jurgenvinju avatar Mar 18 '21 09:03 jurgenvinju