Recent

Author Topic: Unable to write "/usr/share/lazarus/2.2.6/docs/xml/lcl/forms.xml"  (Read 1184 times)

Rbart

  • New Member
  • *
  • Posts: 19
Hi,

My project works but, I get this message when debugging.
Unable to write "/usr/share/lazarus/2.2.6/docs/xml/lcl/forms.xml"
What to do? I am on Ubuntu 22.04. with Lazarus 2.2.6

Greetings,
Rbart

Rbart

  • New Member
  • *
  • Posts: 19
Re: Unable to write "/usr/share/lazarus/2.2.6/docs/xml/lcl/forms.xml"
« Reply #1 on: December 03, 2023, 03:34:06 pm »
Getting it all the time when coding now.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9672
  • Debugger - SynEdit - and more
    • wiki
Re: Unable to write "/usr/share/lazarus/2.2.6/docs/xml/lcl/forms.xml"
« Reply #2 on: December 03, 2023, 03:37:55 pm »
I have no idea. But this is a file from the documentation.

The only thing that I can think of is the build in fpdoc editor. Check if you have that window open? Menu: View > FpDoc Editor.



Rbart

  • New Member
  • *
  • Posts: 19
Re: Unable to write "/usr/share/lazarus/2.2.6/docs/xml/lcl/forms.xml"
« Reply #3 on: December 03, 2023, 05:25:41 pm »
FPDoc Editor is open.

Rbart

  • New Member
  • *
  • Posts: 19
Re: Unable to write "/usr/share/lazarus/2.2.6/docs/xml/lcl/forms.xml"
« Reply #4 on: December 03, 2023, 05:27:42 pm »
There's nothing in there

Rbart

  • New Member
  • *
  • Posts: 19
Re: Unable to write "/usr/share/lazarus/2.2.6/docs/xml/lcl/forms.xml"
« Reply #5 on: December 04, 2023, 09:06:28 am »
Could it be related with the autocomplete function in the IDE?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9672
  • Debugger - SynEdit - and more
    • wiki
Re: Unable to write "/usr/share/lazarus/2.2.6/docs/xml/lcl/forms.xml"
« Reply #6 on: December 04, 2023, 10:28:17 am »
FPDoc Editor is open.

Does the issue go away, if you close it (and maybe restart the IDE (and keep it closed)?

The fact that is is empty, only means there is no entry in the file for that particular keyword. There may still be a xml file open.

I don't know if FpDoc would (or should) try to (re-)save the file, if you haven't edited any of the entries (assuming you haven't). But easiest way to find out is to close it (restart the IDE with it closed before, so it really is closed) and see if the error still happens.

wp

  • Hero Member
  • *****
  • Posts: 11768
Re: Unable to write "/usr/share/lazarus/2.2.6/docs/xml/lcl/forms.xml"
« Reply #7 on: December 04, 2023, 12:34:45 pm »
When the FPDoc editor is open it will always try to write to the xml file - this is very annoying because it destroys preformatted xml. Not 100% sure if this is true also when the file has not yet been created explicitely

Thaddy

  • Hero Member
  • *****
  • Posts: 13956
  • Probably until I exterminate Putin.
Re: Unable to write "/usr/share/lazarus/2.2.6/docs/xml/lcl/forms.xml"
« Reply #8 on: December 04, 2023, 02:26:11 pm »
It is simply a rights issue. You have no rights to write to that folder.
Easy to fix in many ways.
Specialize a type, not a var.

 

TinyPortal © 2005-2018