[Gambas-user] linked project-files

Benoît Minisini g4mba5 at gmail.com
Sat Dec 2 15:36:42 CET 2017


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.

You remind me that I had to make a menu option to open the project of a 
linked file in a new window.

-- 
Benoît Minisini


More information about the User mailing list