-
-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closes #490: look up for modules in the directories that are defined in the environment variable TLA_PATH #493
base: master
Are you sure you want to change the base?
Conversation
A few ad-hoc questions/comments:. What takes precedence (env var or -D property)? I believe that the changes have to be ported to RCPFilename... for the env var to be supported by the Toolbox |
|
It looks like |
I just googled a bit. Perhaps, environment variables do not fit in the eclipse ideology. They seem to be using URIs everywhere. |
The Toolbox has a preference to configure Toolbox-wide includes, but I personally would like to also have a system-wide include configured (via TLA_PATH) for e.g. the community modules. I supposed we just have to define a meaningful precedence order to not create a footgun. |
Btw. the test suite is executed with |
Right. The problem is not in running the unit tests, but in writing a unit test that would test the new code using the environment variable. I even don't know how to do it JUnit. |
|
@konnov I'll be back from vacation tomorrow. How much of a blocker is this for you (I see that you have a workaround in apalache)? If this gets merged, are you going to wait until the next release anyway or will you consume a nightly build? |
This is not a blocker for us at all. We will use the workaround until tla2tools gets released. |
This feature will also need proper documentation. I suggest tlaplus/tlatools/org.lamport.tlatools/src/tlc2/TLC.java Lines 1335 to 1471 in e434e13
|
@lemmy I have found out that I've created this PR right off the master branch in my fork. Do you know how to retarget it against https://github.com/konnov/tlaplus/tree/igor/tlapath? I would like to advance master in my fork. |
@konnov I would try to cherry-pick the commits related to this PR from your |
bd71c07
to
0a543cc
Compare
This PR has sat idle for a while. I want to chime in and say that I would use this feature if it were merged. (In fact, I already do: I have a bash wrapper for TLC that does exactly what Apalache does to fake support for It sounds like these are the remaining tasks:
I am happy to help with some or all of these if we are still interested in getting this merged. |
I'm a bit cautious because everything around reading resources from disk is extremely messy in TLC and in the Toolbox (see |
Also, are we sure that TLAPS supports |
If I had to guess, I would guess TLAPS does not honor |
You can pass it multiple input paths with |
This PR closes issue #490. The paths defined in the environment variable
TLA_PATH
are joined with the paths defined in the Java system variableTLA-Library
. The latter is having priority over the former.As it is not clear, how to test this behavior with unit tests, I only did rudimentary testing: