-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
No current-load-relative-directory in expander #712
Comments
I don't know what the right behavior for DrRacket is, but the difference seems to be that when you do "racket phantom-require.rkt" or use You can see more along these lines if you make two files:
If you run "tmp2.rkt" in DrRacket, it prints false (even though the REPL isn't doing anything for this part). But, if you run "tmp.rkt" in DrRacket, you see the directory being required. It might be the case that DrRacket should be setting I do see that on line 184 of expanding-place.rkt, that |
Hmm, could setting things to I thought Given that DrRacket sets the current directory from the commit, using |
I think it is a fair question to ask "what exactly does the 'Run' button do?" in comparison to things like "racket file.rkt". In the case of "racket file.rkt", that's going to implicit add the "-t" option (among other things!) and so there is an actual I'm still a little curious if anything has happened since 5.2.1, since apparently DrRacket used to set this parameter the exact way you were wanting it to be set and then that got changed! I guess we could change it back and then run the test suites and see if that sheds any light on anything. Or maybe @mflatt remembers? |
Maybe |
It could be! When the module is being instantiated, @rfindler I edited the first post. I should be clear that by "in REPL" in the post, I actually mean that there's no working REPL after clicking "Run". |
I tried C-c C-c in Racket Mode and I also see |
It seems like
(current-load-relative-directory)
is unavailable during background expansion and no working REPL loaded, while the code runs and compiles just fine from the command line:Here,
(current-load-relative-directory)
returns#f
in DrRacket but not in Racket REPL:During compilation,
(current-load-relative-directory)
also returns the load path:The text was updated successfully, but these errors were encountered: