* * *

Author Topic: Alt-G does not work any more  (Read 6278 times)

Relativity

  • Jr. Member
  • **
  • Posts: 95
Re: Alt-G does not work any more
« Reply #15 on: April 05, 2018, 04:38:52 pm »
I can not find any lazarus.cfg file in C:\lazarus

"How'm I gonna get through?"
  -- Pet Shop Boys

rvk

  • Hero Member
  • *****
  • Posts: 3450
Re: Alt-G does not work any more
« Reply #16 on: April 05, 2018, 04:49:02 pm »
I can not find any lazarus.cfg file in C:\lazarus
Ok, that's weird.

Where does the shortcut for your Lazarus startup point to? C:\Lazarus or some other directory?
(Maybe you already installed it to some alternative directory)

You need to find the correct environmentoptions.xml. Lazarus doesn't work without it (or it will create a new one).

Relativity

  • Jr. Member
  • **
  • Posts: 95
Re: Alt-G does not work any more
« Reply #17 on: April 05, 2018, 04:52:57 pm »
It points to C:\lazarus\lazarus.exe


"How'm I gonna get through?"
  -- Pet Shop Boys

rvk

  • Hero Member
  • *****
  • Posts: 3450
Re: Alt-G does not work any more
« Reply #18 on: April 05, 2018, 04:56:06 pm »
If you run Lazarus 1.8.2 and open up Tools > Code Templates.
What is the directory and file that's listed there.
The directory should be the same as your config-directory.

If you open the explorer and paste %localappdata% you should see a lazarus directory.
In there, there should be a environmentoptions.xml.

PS. Lazarus might only recreate the file when it exits.

Relativity

  • Jr. Member
  • **
  • Posts: 95
Re: Alt-G does not work any more
« Reply #19 on: April 05, 2018, 05:08:35 pm »
The directory and file listed there are:

C:\Users\A.Conti\AppData\Local\Lazarus\lazarus.dci

Actually on my Computer there is no C:\Users Folder, because I am in Germany and here we have C:\Benutzer instead of C:\Users, because "Benutzer" in German means "users".
So it points to a non-existing directory.

I installed the german version of Lazarus 1.8.2.
"How'm I gonna get through?"
  -- Pet Shop Boys

rvk

  • Hero Member
  • *****
  • Posts: 3450
Re: Alt-G does not work any more
« Reply #20 on: April 05, 2018, 05:16:14 pm »
Actually on my Computer there is no C:\Users Folder, because I am in Germany and here we have C:\Benutzer instead of C:\Users, because "Benutzer" in German means "users".
So it points to a non-existing directory.
No, Explorer shows you Benutzer but it is actually Users.
You can even type C:\Users in the explorer and it will put you in (what you think is) C:\Benutzer.

Anyway... %localappdata% is a shortcut to C:\Users\A.Conti\AppData\Local\ (or C:\Benutzer\A.Conti\AppData\Local\) and it has the Lazarus directory. (AppData itself is also normally hidden)

If you exit Lazarus it should contain a environmentoptions.xml now.
If you rename it and start Lazarus again, go to the code-editor and press Alt+G, does that work?

Relativity

  • Jr. Member
  • **
  • Posts: 95
Re: Alt-G does not work any more
« Reply #21 on: April 05, 2018, 05:38:21 pm »
You are right.
I pasted %localappdata% in Explorer and I got C:\Users\A.Conti\AppData\Local\.
There was the lazarus directory and in the lazarus directory was the environmentoptions.xml file.
I renamed it to environmentoptionsOLD and I restarted Lazarus but Alt-g still gives the error.
However Lazarus created a new environmentoptions file.

In attachment there is a copy of environmentoptions as .txt file.

"How'm I gonna get through?"
  -- Pet Shop Boys

rvk

  • Hero Member
  • *****
  • Posts: 3450
Re: Alt-G does not work any more
« Reply #22 on: April 05, 2018, 05:57:07 pm »
In attachment there is a copy of environmentoptions as .txt file.
Your environmentoptions.xml worked fine here.

But I'm missing some coordinates in your xml (for <MainIDE> and <SourceNotebook> etc).
Did you have the docking-packages installed? (I already asked but got no answer)
What screen-resolution are you on?

Relativity

  • Jr. Member
  • **
  • Posts: 95
Re: Alt-G does not work any more
« Reply #23 on: April 05, 2018, 06:14:04 pm »
My screen resolution in this moment is 1920 x 1080.
I don't remember having installed any extra package apart from the default Lazarus version.
In any case I checked under Package - Install/Uninstall packages... and I don't see any "docking" package or so listed under the installed packages.

"How'm I gonna get through?"
  -- Pet Shop Boys

rvk

  • Hero Member
  • *****
  • Posts: 3450
Re: Alt-G does not work any more
« Reply #24 on: April 05, 2018, 06:18:44 pm »
They are called AnchorDockingDsgn 0.5 and sparta_DockedFormEditor 0.0.

You could try moving all the files in the config directory to a subdirectory named old.
All config files should then be recreated.
I can't think of anything else (if the Docking packages are not installed).

Here it is working correctly on 1920x1080.

Relativity

  • Jr. Member
  • **
  • Posts: 95
Re: Alt-G does not work any more
« Reply #25 on: April 05, 2018, 06:35:51 pm »
The packages you mention are not installed here.
They are only signalled as available for installation, but they are definitely not installed.

I moved all the files of the config directory in a new subdirectory named "old" and I restarted Lazarus: It works but when I do Alt-g I still get the error.

"How'm I gonna get through?"
  -- Pet Shop Boys

GetMem

  • Hero Member
  • *****
  • Posts: 3111
Re: Alt-G does not work any more
« Reply #26 on: April 05, 2018, 09:08:55 pm »
You should debug the IDE. Please do the following:
1. Go to ($LazarusDir)\IDE folder
2. Open project lazarus.lpi
3. Open unit procedurelist.pas, put a breakpoint to FormCreate first line
4. Click the Run button, ignore any error might occur, wait until another instance of Lazarus appears then press Alt + G 
5. Press F8 until you see the "InvalidatePreferresSize loop detected" error. I need a line number

PS: You can switch to Debug IDE if you like, but is not necessary at this point.

dsyrios

  • New member
  • *
  • Posts: 41
Re: Alt-G does not work any more
« Reply #27 on: April 06, 2018, 06:30:18 am »
@GetMem
I have the same problem.
Following your instructions I got exception...
In file '.\include\control.inc' at line 5576

GetMem

  • Hero Member
  • *****
  • Posts: 3111
Re: Alt-G does not work any more
« Reply #28 on: April 06, 2018, 08:26:33 am »
@dsyrios
Quote
I have the same problem.
Following your instructions I got exception...
OK. This is the exception itself, but from which line of procedurelist.pas is coming from? I would debug it myself but I cannot reproduce the error. Please do the following, debug the IDE again(as in the above post) and when the exception appears, go to View-->Debug Windows-->Call Stack, or press: Ctrl + Alt + S, then make a screenshot and post it here.

dsyrios

  • New member
  • *
  • Posts: 41
Re: Alt-G does not work any more
« Reply #29 on: April 06, 2018, 10:44:29 am »
@GetMem
I have NOT any experience on debug, but...
Do you mean this attachment?

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus