Forum > Editor

Unreliable IDE behaviors

(1/2) > >>

backprop:
1. Create new application
2. Put one TButton on the form
3. Press F2 and change the name of it to btnStart and text to Start

Error will popup. After that, every click on the button to create a code will result with error that creating method is not possible.

Trying further to delete button will result with endless AVs.

Reopen project and try to do anything with - nothing is possible, just various errors popup

Lazarus 3.2, FPC 3.2.2 installed from DEB files. KDE neon

Aruna:

--- Quote from: backprop on September 08, 2024, 02:31:11 am ---1. Create new application
2. Put one TButton on the form
3. Press F2 and change the name of it to btnStart and text to Start

Error will popup. After that, every click on the button to create a code will result with error that creating method is not possible.

Trying further to delete button will result with endless AVs.

Reopen project and try to do anything with - nothing is possible, just various errors popup

Lazarus 3.2, FPC 3.2.2 installed from DEB files. KDE neon

--- End quote ---
Hi @backprop if you can't interact with the button, try recreating it:

Remove the Button:
Open the form in the designer and try to remove the problematic button. If you get an AV (Access Violation), you might need to manually remove the button from the .pas and .lfm files.

Add a New Button:
After removing the problematic button, add a new TButton to the form. Make sure to use the Object Inspector to set properties correctly.

Try to Clean and Rebuild the Project. Sometimes, residual files can cause issues.
Clean Project: Use Project -> Clean Up to remove any intermediate files.
Rebuild Project: Rebuild the project using Project -> Build All.

If the problem persists and is specific to the current project:
Create a New Project: Start a new project and see if you can replicate the problem. This helps to determine if the issue is with the project or the Lazarus installation.
Copy Code: If the new project works fine, copy over your existing code from the problematic project to the new project piece by piece to identify where the issue lies.

please have a look here

backprop:
Using object inspector creates all necessary code correctly, but not with F2. It need to be fixed.

wp:

--- Quote from: backprop on September 08, 2024, 02:31:11 am ---1. Create new application
2. Put one TButton on the form
3. Press F2 and change the name of it to btnStart and text to Start

Error will popup.  After that, every click on the button to create a code will result with error that creating method is not possible.

--- End quote ---
Cannot confirm this. I am on Windows, though, but I cannot imagine that there is a difference between Windows and Linux here.

I see the error that a method cannot be created usually when I was coding something, but did not complete and left the code syntactically incorrect, and added another component or renamed a component. Please check your code. After step 2 in your instructions do not do anything else, just press F2.

dbannon:
 backprop, it might just be worthwhile testing to see if you have this problem with another distro.

I used to have Neon on my list of (VM) distros to test my app with but I found so many non-reproducible (on another distro) problems I stopped testing with it. Debian Trixie has a KDE version available if you must have the newest but does appear to be more stable in my limited experience.

Davo

Navigation

[0] Message Index

[#] Next page

Go to full version