-
Notifications
You must be signed in to change notification settings - Fork 63
current file pointer jumps to the end when file grows after it has been opened #1474
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
Comments
Can anybody help here? I would need a solution for this since I am working with realtime data right now and this is a "no go". |
1/ reproduced |
I changed your code in such a way :
What is really strange is that if maxi is less than 99 the code is OK :( May be a problem in the line |
please try patch #1502 |
Ok, thanks @GillesDuvert On my side I arrived to that fact that the
is enough to solve the problem (but with which side effect ?) I will check tomorrow you patch |
tentatively solve #1474 MERGING AS MAC AND WINDOWS FAILURES ARE NOT RELEVANT TO THIS IMPORTANT PR
solved. |
Hi guys, I just came back from a journey and would like to test this version but I do not succeed in compiling.
It is complaining with this error message:
bash$ cmake ..
CMake Error at CMakeLists.txt:13 (message):
The src/whereami git submodule is not initialised.
Please run `git submodule update --init`
…-- Configuring incomplete, errors occurred!
How can I compile the latest version?
On 10. Feb 2023, at 16:51, Giloo ***@***.***> wrote:
solved.
—
Reply to this email directly, view it on GitHub <#1474 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOC5K6CK6VXOLQDMREHMRS3WW2L25ANCNFSM6AAAAAAT3PI7KY>.
You are receiving this because you authored the thread.
|
yes, you have to do that : |
In which directory I have to stay?
I tried already and got this messages:
bash$ pwd
/home/chris/Downloads/gdl-master-5
bash$ git submodule update --init
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
bash$
… On 10. Feb 2023, at 18:40, Alain ***@***.***> wrote:
yes, you have to do that :
git submodule update --init
it will add the files needed in the src/whereami sub-dir
—
Reply to this email directly, view it on GitHub <#1474 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOC5K6AKOGHXQZGTQJS7YN3WW2YWDANCNFSM6AAAAAAT3PI7KY>.
You are receiving this because you authored the thread.
|
where you have the or, after, in the path where you did |
This is where I am already:
bash$ pwd
/media/psf/Home/Downloads/gdl-master-6
bash$ ls -al
total 288
drwxr-xr-x 1 chris users 960 Feb 10 18:51 .
drwx------ 1 chris users 4480 Feb 10 18:17 ..
-rw-r--r-- 1 chris users 1507 Feb 10 03:51 AUTHORS
drwxr-xr-x 1 chris users 128 Feb 10 18:51 build
-rw-r--r-- 1 chris users 45810 Feb 10 03:51 CMakeLists.txt
drwxr-xr-x 1 chris users 736 Feb 10 03:51 CMakeModules
-rw-r--r-- 1 chris users 2369 Feb 10 03:51 config.h.cmake
-rw-r--r-- 1 chris users 15131 Feb 10 03:51 COPYING
drwxr-xr-x 1 chris users 160 Feb 10 03:51 doc
-rw-r--r-- 1 chris users 8196 Feb 10 18:51 .DS_Store
drwxr-xr-x 1 chris users 960 Feb 10 18:21 gdl
drwxr-xr-x 1 chris users 96 Feb 10 03:51 .github
-rw-r--r-- 1 chris users 84 Feb 10 03:51 .gitignore
-rw-r--r-- 1 chris users 107 Feb 10 03:51 .gitmodules
-rw-r--r-- 1 chris users 14388 Feb 10 03:51 HACKING
-rw-r--r-- 1 chris users 3463 Feb 10 03:51 INSTALL.CMake
-rw-r--r-- 1 chris users 1373 Feb 10 03:51 INSTALL.plplot
-rw-r--r-- 1 chris users 4511 Feb 10 03:51 MAP_INSTALL
-rw-r--r-- 1 chris users 45497 Feb 10 03:51 NEWS
drwxr-xr-x 1 chris users 512 Feb 10 03:51 obsolete
drwxr-xr-x 1 chris users 128 Feb 10 03:51 paper
-rw-r--r-- 1 chris users 3979 Feb 10 03:51 PYTHON.txt
-rw-r--r-- 1 chris users 15050 Feb 10 03:51 README
-rw-r--r-- 1 chris users 5234 Feb 10 03:51 README.GRIB
-rw-r--r-- 1 chris users 10537 Feb 10 03:51 README.md
-rw-r--r-- 1 chris users 3144 Feb 10 03:51 README.THREADPOOL
drwxr-xr-x 1 chris users 256 Feb 10 03:51 resource
drwxr-xr-x 1 chris users 160 Feb 10 03:51 scripts
drwxr-xr-x 1 chris users 10976 Feb 10 03:51 src
drwxr-xr-x 1 chris users 10112 Feb 10 03:51 testsuite
bash$ git submodule update --init
fatal: not a git repository (or any parent up to mount point /media/psf)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
bash$
… On 10. Feb 2023, at 18:50, Alain ***@***.***> wrote:
where you have the .gitmodules & .gitignore files.
or, after, in the path where you did git pull
—
Reply to this email directly, view it on GitHub <#1474 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOC5K6D6AWR35KHFFOTB75TWW2Z2ZANCNFSM6AAAAAAT3PI7KY>.
You are receiving this because you authored the thread.
|
Very strange ! Could you create a new dir, then make :
That is working for me |
your instructions work for me as well.
The problem is when we download the .zip, this does not contain the .git folder just the .github folder.
Try to do the same in the downloaded .zip file and you will encounter the problem I faced.
… On 10. Feb 2023, at 19:17, Alain ***@***.***> wrote:
Very strange ! Could you create a new dir, then make :
git clone https://github.com/gnudatalanguage/gdl
cd gdl
git submodule update --init
That is working for me
—
Reply to this email directly, view it on GitHub <#1474 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOC5K6APPD2GN6DOTYPSTITWW246XANCNFSM6AAAAAAT3PI7KY>.
You are receiving this because you authored the thread.
|
Ouch, GitHub does not know about submodules? Strange that nobody complained to GH since it is so frequent. |
The lack of submodule content in source archives is the topic of #1496. |
The current file pointer must stay at position 100000 even if the file grows:
up to here it is correct. But if we increase the file size then the current pointer must stay at position 100000 as it is in IDL. It must not jump to 200000 which is the size of the file.
The text was updated successfully, but these errors were encountered: