Weird problem with editing code from IDE

Post your Gambas programming questions here.
Post Reply
User avatar
gbWilly
Posts: 68
Joined: Friday 23rd September 2016 11:41am
Location: Netherlands
Contact:

Weird problem with editing code from IDE

Post by gbWilly »

Hi all,

I have been playing with LDME (Linux Mint Debian version).
Installed it on an old PC and all works fine in Gambas (being 3.15.2)
Let's call this System01

Yesterday I installed an old laptop with LDME and also installed Gambas from its repository (being the same 3.15.2)
Let's call this system02

On system01 all works fine in Gambas
So, I can open projects, edit code and run the applications
On system02 strange things happen
I can open projects and run the applications, but I can't edit the code
I can edit translations, but not the code, no keyboard input is accepted.
I can edit the source files with a regular text editor, but not from within the IDE, so it has nothing to do with access rights.

Both installs are from the repository of LDME installed with sudo apt-get install gambas3
No further fine tuning of settings is done.
System01 works out of the box
System02 doesn't edit code

I've been looking through all menu's hoping to find some setting that prevents editing, but haven't found anything.
I uninstalled Gambas completly and did a clean reinstall, but that didn't solve anything.
This is the strangest problem I've ever encountered with Gambas.

Below the system info of both systems and as you can see all is the same.
So, I hope someone out here ever had the same and knows how to solve this.
It must be some stupid thing I guess that I overlook somehow.

System01:
[System]
Gambas=3.15.2
OperatingSystem=Linux
Kernel=5.10.0-23-686
Architecture=x86
Distribution=LMDE 5 Elsie
Desktop=CINNAMON
Theme=qt5ctproxy
Language=en_US.UTF-8
Memory=3460M

[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.7.0
DBus=libdbus-1.so.3.19.15
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2404.20
GStreamer=libgstreamer-1.0.so.0.1804.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2404.20
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.102.0.0
QT5=libQt5Core.so.5.15.2
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

System02
[System]
Gambas=3.15.2
OperatingSystem=Linux
Kernel=5.10.0-23-686
Architecture=x86
Distribution=LMDE 5 Elsie
Desktop=CINNAMON
Theme=qt5ctproxy
Language=en_US.UTF-8
Memory=3008M

[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.7.0
DBus=libdbus-1.so.3.19.15
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2404.20
GStreamer=libgstreamer-1.0.so.0.1804.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2404.20
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.102.0.0
QT5=libQt5Core.so.5.15.2
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6
gbWilly
- Dutch translation for Gambas3
- Gambas wiki content contributer


... there is always a Catch if things go wrong!
User avatar
BruceSteers
Posts: 1569
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Weird problem with editing code from IDE

Post by BruceSteers »

odd, do both systems have same user id?
possibly a file ownership issue as it appears to be read-only.
can you chown the project files?
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1569
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Weird problem with editing code from IDE

Post by BruceSteers »

maybe if you use the "create project archive" option on system1 then unpack it on system2
If at first you don't succeed , try doing something differently.
BruceS
User avatar
gbWilly
Posts: 68
Joined: Friday 23rd September 2016 11:41am
Location: Netherlands
Contact:

Re: Weird problem with editing code from IDE

Post by gbWilly »

BruceSteers wrote: Wednesday 17th May 2023 2:45pm odd, do both systems have same user id?
possibly a file ownership issue as it appears to be read-only.
can you chown the project files?
That was one of the first things I checked and all is okay there.
If I go with my file browser to the project source folder I can with a regular text editor open and edit the source code and save it, as stated before. See attached screenshot where you see FMain.class before and after edited with text editor (see time stamp before edit 00:12 and after edit 17:40).
Screenshot.png
Screenshot.png (27.08 KiB) Viewed 1461 times
So, that doesn't seem like a access rights/ownership problem, so no need to chown the files.

I also made a new graphical project with an FMain and I couldn't edit the code there either.
If I type nothing happens, so no input is accepted from keyboard
If it was read only it would allow me to edit the file but not save it, I can't even edit it.
If I for example select a piece of code with the mouse and press Delete key, nothing happens, the piece of code is still selected.
There is no keyboard input whatsoever. It is not a read only problem.

I have text files with some notes in my project folder and I can't edit them either, so everything opened in the editor of the IDE doesn't accept keyboard input. With editor of the IDE mean the window that opens your source code and text files within the IDE.
When I go to translate in the project I can edit the translations, but they are not opened in the editor of the IDE.
gbWilly
- Dutch translation for Gambas3
- Gambas wiki content contributer


... there is always a Catch if things go wrong!
User avatar
BruceSteers
Posts: 1569
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Weird problem with editing code from IDE

Post by BruceSteers »

Hmm. Well I'd try making sure the themes and font sizes match.

Too small font or an unfamiliar theme can cause gambas problems.

And if course update all system files.

If that fails try the auto tools install method. Maybe some dependency is missing?

Sorry I cannot help further 😕
If at first you don't succeed , try doing something differently.
BruceS
User avatar
gbWilly
Posts: 68
Joined: Friday 23rd September 2016 11:41am
Location: Netherlands
Contact:

Re: Weird problem with editing code from IDE

Post by gbWilly »

BruceSteers wrote: Wednesday 17th May 2023 9:33pm Hmm. Well I'd try making sure the themes and font sizes match.

Too small font or an unfamiliar theme can cause gambas problems.
I was thinking about that as well last night, but turns out themes and all are the same on the two systems.
For the OS I didn't change themes, fonts or such after install, only desktop background.

I also compared the preferences, themes and fonts set in the Gambas IDE and they are the same as well.
BruceSteers wrote: Wednesday 17th May 2023 9:33pm And if course update all system files.

If that fails try the auto tools install method. Maybe some dependency is missing?

Sorry I cannot help further 😕
Updated was one of the first things I did. Also checked in the Synaptic Package Manager on both systems and all the same gambas packages are installed on both systems.
If I can't find the problem I'll just try a complete reinstall of the system, see what that brings.
gbWilly
- Dutch translation for Gambas3
- Gambas wiki content contributer


... there is always a Catch if things go wrong!
User avatar
grayghost4
Posts: 187
Joined: Wednesday 5th December 2018 5:00am
Location: Marengo, Illinois usa

Re: Weird problem with editing code from IDE

Post by grayghost4 »

Under "EDIT" There is a lock flag ..... that gets me every time :D
User avatar
gbWilly
Posts: 68
Joined: Friday 23rd September 2016 11:41am
Location: Netherlands
Contact:

Re: Weird problem with editing code from IDE [Solved]

Post by gbWilly »

grayghost4 wrote: Thursday 18th May 2023 3:17pm Under "EDIT" There is a lock flag ..... that gets me every time :D
Nope, it wasn't the lock flag, That was one of the first things I checked.

What it was we might never know as I reinstalled LDME, updated all files after install and then installed Gambas3.
All works fine now, so I consider this as solved.

I will how ever check if code stays editable after each change I might make to the OS configuration as there must be something that is causing the problem. As I stated in the title it is the most weird problem I ever encountered
gbWilly
- Dutch translation for Gambas3
- Gambas wiki content contributer


... there is always a Catch if things go wrong!
Post Reply