-
-
Notifications
You must be signed in to change notification settings - Fork 96
Issue 110 #362
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
Issue 110 #362
Conversation
7d90322
to
003f87d
Compare
I think there probably is an improvement we could make here but the (non-whitespace) change in this PR causes this program to not have any arrow:
|
I've pushed the whitespace commit. |
9e7081d
to
8bdbc69
Compare
Thanks for pointing that out.
Is this better? |
p.s. It would be handy if tests ran automatically for pull requests on this repo, as happens for many repos including the main Racket repo. (It wouldn't necessarily need to do the whole thing Racket does, with multiple CI services for multiple platforms. Even a simple run of the tests using Travis or GitHub Actions, would be a handy "smoke test".) |
Only runs syncheck-test to start, for testing. cc racket#362
@samth Oh, thank you! It looks like I could have submitted this kind of change, myself, if I'd known more about GitHub Actions. (With Travis CI, AFAIK a repo owner needs to enable that; I wrongly assumed it would be similar for GHA.) |
Only runs module-lang-test to start. cc #362
I merged the CI, so if you rebase on top of that, it will be included. However, syncheck-test.rkt has a persistent failure in CI so I didn't include that. |
Also, GitHub Actions are enabled on all repositories in the racket organization. |
@samth I don't see a persistent failure in @greghendershott it isn't clear to me that this is a correct change. (Of course, if we were making the exact opposite change (going from |
@rfindler the failure was only when I tried it in GitHub Actions; here's an example: https://github.com/samth/drracket/runs/537499701?check_suite_focus=true#step:6:22 Note also the issue with the autosave file, it was fixed with these lines: https://github.com/racket/drracket/blob/master/.github/workflows/ci.yml#L28-L29 but maybe DrR should handle that directory not existing/not being writable? |
3c37560
to
4a143fc
Compare
Done. |
@samth can you try it again with the code I just pushed? I'm not sure it if will fix it, but hopefully we'll get at least a different error message. |
I just tried a new PR with that. |
Once I ironed out the directory permissions issues, it seemed to pass, so I merged syncheck-test in CI. |
a32ee9e
to
e4023c5
Compare
e4023c5
to
231ca62
Compare
Sorry for the multiple force-pushes. I needed one to rebase this onto latest |
Thanks, @greghendershott . I have started looking into this but didn't find enough time last week to make real progress. I didn't forget, tho! |
No worries. Not urgent from my POV. I just wanted to keep the PR from getting stale, in case it happens to be something you think would be correct to merge. |
Okay, I've had time to look into this and I see why this is a good change. Thanks! One variation: I think it should probably use A larger change, for down the road, would be to tell the traversal code what value of the If that sounds okay to you, @greghendershott , I'll go ahead and make that change (and I'll also use |
Yes, I agree that seems reasonable: Prefer the module syntax if it has non- |
Just out of curiosity, N/A for the PR:
Are you thinking about something where things outside of |
I'm saying that somewhere the API for using I didn't see this as a way to fix a specific bug per se, but it would be great if it did! (There is also a bug somewhere that types show up in the wrong files.) Anyway, this isn't near the top my list! :) |
Oh I misunderstood your concern was that the bit of syntax for the module path might lack a position and span, for some reason. Instead you meant, what if lacks any source at all. Although I can't imagine that scenario, it sounds like you can! By the way, I'm not sure that syntax-source being non- |
p.s. Speaking of "irrelevant sources", that reminds me of #230 (although that's about the step debugger not check-syntax). |
They can certainly vary independently, but in practice I think that it tends to have a useful source or nothing.
It used to be more common when source from syntax objects weren't saved in zo files, for sure. But you can certainly just make one.
Right, agreed. It isn't necessary.
What I think a good predicate for relevance is "which source corresponds to the file in the emacs buffer that I first sent to the |
As the comment for commit 003f87d explains, there are some caveats. It took me quite a long time to understand
traversal.rkt
well enough to come up with this proposed fix. I wouldn't be offended at all if someone took a glance, threw it away, and fixed it in some more-correct and more-elegant way that I can't see.