[Gambas-user] linked project-files

Charlie Reinl Karl.Reinl at Fen-Net.de
Sat Dec 2 19:04:53 CET 2017


Am Samstag, den 02.12.2017, 15:36 +0100 schrieb Benoît Minisini:
> Le 02/12/2017 à 12:36, Charlie Reinl a écrit :
> > Salut Benoît,
> > 
> > I work a lot with linked project-files in my projects, and often I want
> > to add or change something, but with linked files that's not possible,
> > they are read only.
> > So I had a look to the code of the IDE. With the Stat(file).Type=gb.link
> > the read only flag is set. Changing the path from the save procedure
> > (path is always <project>/src/file) with the Stat(file).Link path, fails
> > because the gambas3 commands can't use relative path nominations. So the
> > solution to make Linked Files saveable will be to change the relative
> > path from Stat(file).Link to a full path, that can be done with readlink
> > or realpath.I checked that and have now a IDE with r/w to linked files.
> > And that works well.
> > But perhaps there are other reasons why Links are read-only, are there ?
> > 
> > 
> 
> Yes. These source files must be opened by the project owning them, not 
> the projects using them as links.

Ok, but why MUST. For me, most of these files are not in a, better, no
more in a project, I call that my common Function pool, which provide me
common gambas3 routines etc.
If absolutely MUST, can you imagine one special directory where files
are stored (also in subdirectories), which are used like huge snippets,
but linked in r/w mode to the project?
> You remind me that I had to make a menu option to open the project of a 
> linked file in a new window.






More information about the User mailing list