-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
gis/parser: disable file existence check for stdout '-' #1245
base: main
Are you sure you want to change the base?
Conversation
I made a test with the unpatched G78git: Strangely I do not get the "overwrite" issue:
But the file
Shoudn't I see an error without this PR? I also tested in G79, same behaviour. |
Sorry, my mistake I took a closer look at the code r.out.bin and it has an otherwise defined output parameter (isn't affected with this bug) than r.horizon and r.profile. |
I see. I can replicate the original behavior with
However, isn't Not sure if we may happily overwrite it to fix the GUI issue shown in #1242.
Disadvantage: it is a kind of race condition in case the user wants to access the real file Am I right that this PR kind of intercept |
Yes it's allowed char https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_282
The error is that even though this char
PR adds the condition if the output file parameter is stdout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested successfully with r.profile
.
Sure. I can try it tomorrow or Wednesday
Michael
…______________
Michael Barton
Sent from my iPhone
Please excusr any typoz
|
I couldn't reproduce this issue. Following log without this PR:
|
I did also test in GUI without issue. |
I tried to test this today and could not get GRASS to launch. Since this is an unmarked PR, I just downloaded the zip rather than clone it, to make sure I only had the code with this PR. I compiled it using the procedure that @nilason automated and which has worked very well. It compiled without error. But when I tried to launch GRASS, I got this error in the terminal. (I compiled and tried it twice). No idea what the problem is, since I compiled 7.9dev a few days ago and it runs fine.
|
I don't know what went wrong at the moment. But please, do test with a working copy (without this PR) to see if you can reproduce the issue at all. I couldn't. |
When I deleted a file named '-' (who knows where it came from) in my home folder, as suggested by @tmszi the problem went away. I now have slightly newer versions on all my machines and do not have a problem, even without the PR and adding back a file named '-'. |
@cmbarton See https://trac.osgeo.org/grass/wiki/HowToGit#Checkingoutpullrequestslocally for how-to checkout a GitHub PR for testing. |
Right. But since I'm not contributing code, I have a much simpler setup for now. I just clone and update the main repository to make binaries, rather than keeping my own fork in sync. My understanding is that I should have been able to just download or clone the PR fork to test. If this is not correct, let me know. Thanks. |
I think our approach should be, |
Bumping up milestone as 8.0.1 is due in two days, while this has not been part of RC1 and there has not been activity for some time. |
4b4de28
to
5983aa9
Compare
…stdout-existence-check
That is because this bug only affects "new" files. Lines 1717 to 1726 in 9cb4745
|
I agreed. I think currently different modules behave differently with What do we do with |
Fixes #1242.
For testing purpose:
echo "test" > '-'
r.out.binmodule (with output optionoutput=-
(stdout))