usethesource / rascal

The implementation of the Rascal meta-programming language (including interpreter, type checker, parser generator, compiler and JVM based run-time system)
http://www.rascal-mpl.org
Other
398 stars 78 forks source link

de-debug rascal type-checker #1794

Open jurgenvinju opened 1 year ago

jurgenvinju commented 1 year ago

Is your feature request related to a problem? Please describe.

The current type-checker prints a lot of debugging information,e.g:

getTPLReadLoc: DOES NOT EXIST

(run mvn clean compile in any Rascal project to see what is going on)

Describe the solution you'd like

Maybe it's time to turn this off such that VScode, Eclipse and the Maven plugin become a bit more quiet. It also has a small effect on run-time efficiency.

DavyLandman commented 1 year ago

Maybe we should only print it if in the end it couldn't find a tpl? Since often it just shows where it's looking.

jurgenvinju commented 1 year ago

Perhaps, but not finding a tpl file is not a failure. That happens all the time as well. I think we have the path searching down to a science now, until we start playing around with target locations again.