|
Post by alexfish on Apr 23, 2020 18:42:16 GMT 1
Hi Peter
found that the gui makes the exec in tmp dir : and is not been copied to source directory
BR Alex
|
|
|
Post by Pjot on Apr 24, 2020 8:40:29 GMT 1
Hi Alex, You have to set the compilation "Temp dir" to the current directory (see screenshot). If you leave it to "/tmp" then everything is put there, also the resulting binary. This is the same when using BaCon from the command line using the '-d' option. HTH Peter Attachments:
|
|
|
Post by alexfish on Apr 24, 2020 9:40:55 GMT 1
Hi Peter
Thanks for the info
the difficult bit here its , yes can see the directory from the status line
/path/to/mydir/.../file
to a new user ??
hence enter a single dot '.' notation does the job, to a novice ??
BR Alex
|
|
|
Post by Pjot on Apr 24, 2020 16:02:05 GMT 1
Dear Alex, Unfortunately I do not completely understand what your question entails? So maybe I am not understanding you right, but the "." means the current directory. The ".." means the parent directory. This is considered to be common Unix knowledge, also to a novice to BaCon... Again I am sorry if I do not understand your remarks correctly. Best regards, Peter
|
|
|
Post by alexfish on Apr 24, 2020 18:04:16 GMT 1
Hi Peter
documentation
-d: determine the directory where BaCon should store the generated C files (defaults to the current directory)
bacon -h
-d <tmpdir> Temporary directory (default: .)
What can I say
Hope this helps
from configs since I put the . notation in the gui not sure on this one but bacon exec defaulted to . , since I was using that before discovering the missing exec ,
indent 0 linenr 1 wrap 2 savepage 0 font DejaVu Sans Mono 12 color #FFFFFF window_size 1069x882 shell xterm -hold -sb -geometry 132x40 -e @ compiler cc options libraries tmpdir . scheme cobalt
BR Alex
|
|
|
Post by Pjot on Apr 24, 2020 19:50:24 GMT 1
Hi Alex,
So your point is that the resulting binary in a shell appears in the current directory by default, while the GUI uses '/tmp' by default?
But there is some logic to it. If you are using BaConGUI then you do not want to clutter your system with all kinds of temporary C files. If these files are created into '/tmp' then the operating system will take care of cleaning up, just in case something goes wrong.
So the GUI version aims for ease of usage, and uses a different configuration altogether, because its logic is different - it is a GUI, and not a shell binary. When using the GUI, you do not want to check your filesystem from within a shell every once and a while just to see if you need to clean up some trash.
Besides, when using BaConGUI, the resulting binary also is executed from there. No need to lookup the binary at all. Or to go into a shell for that matter.
Anyway, if you change the Tempdir in the GUI then it will remember this for the next time.
Hope this clarifies,
Kind regards Peter
|
|
|
Post by alexfish on Apr 27, 2020 14:40:49 GMT 1
Hi Peter bacon gtk gui save open gui , type some code select compile , up comes the save file if savefile reports file exists then dialog comes up with option over-wright or NO the gui crashes on NO BR Alex Attachments:
|
|
|
Post by Pjot on Apr 28, 2020 18:15:12 GMT 1
Thanks Alex,
I was able to reproduce this issue, it is fixed now (see fossil repo).
BR Peter
|
|
|
Post by alexfish on Apr 28, 2020 23:22:56 GMT 1
Working here
Thanks
BR Alex
|
|
|
Post by alexfish on Jun 25, 2020 23:31:10 GMT 1
Hi Peter
The gtk gui Scratchpad does not work if the gui is launched from the system menu launcher
it will work if the .bac is opened in a directory IE 'open with' bacongui gtk
BR Alex
|
|
|
Post by Pjot on Jun 26, 2020 17:42:17 GMT 1
Hi Alex,
I already noticed this problem, it was fixed on May 7 (see commit [708f5e83a6] in fossil).
If you have time, please update your BaCon installation and let me know if you still experience the same issue.
BR Peter
|
|
|
Post by alexfish on Jun 26, 2020 19:42:42 GMT 1
Hi Peter
last update was 19/06/20 13:55
?
Cleared out the build , + fossil update
& Now All OK
BR Alex
|
|