Weird problem with editing code from IDE

Post

Posted
Rating:
#1 (In Topic #1046)
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’
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
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
 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?
Online now: No Back to the top

Post

Posted
Rating:
#3
Guru
BruceSteers is in the usergroup ‘Guru’
maybe if you use the "create project archive" option on system1 then unpack it on system2
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’

BruceSteers said

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).
Image

(Click to enlarge)

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
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: No Back to the top

Post

Posted
Rating:
#5
Guru
BruceSteers is in the usergroup ‘Guru’
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 <EMOJI seq="1f615" tseq="1f615">😕</EMOJI>
Online now: No Back to the top

Post

Posted
Rating:
#6
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’

BruceSteers said

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 said

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 <EMOJI seq="1f615" tseq="1f615">😕</EMOJI>
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
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: No Back to the top

Post

Posted
Rating:
#7
Avatar
Enthusiast
GrayGhost is in the usergroup ‘Enthusiast’
Under "EDIT" There is a lock flag    ….. that gets me every time  :D
Online now: Yes Back to the top

Post

Posted
Rating:
#8
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’

grayghost4 said

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
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: No Back to the top

Post

Posted
Rating:
#9
Regular
rj71 is in the usergroup ‘Regular’

gbWilly said

grayghost4 said

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

Sorry to revive a year and a half old thread but I had sort of the same problem. I was trying to load projects from a samba share and kept getting that the project is read-only. I could run the executable but I couldn't edit any code. I doubt it was a permissions issue as I chmod 777 the whole shared directory in desperation. It was every single project I tried in that samba share. This was Debian 11, Gambas 3.15.2 (I think). If it's not a file/directory permissions issue, what could it be? I also don't see anything about "lock" anywhere in the IDE….?
Online now: No Back to the top

Post

Posted
Rating:
#10
Guru
BruceSteers is in the usergroup ‘Guru’
the only similar problem i had was only fixed when i altered the /etc/fstab entry that mounted the disk.

you can chmod 777 the whole disk but it does not actually change anything.
same for chown , seems to run without error but does not actually change owner.

But now the disk line in /etc/fstab says this….

Code

LABEL=SSDiskspace /media/bonus/SSDiskspace auto rw,nosuid,nodev,relatime,uid=1000,gid=1000,windows_names,iocharset=utf8,uhelper=udisks2,x-gvfs-show 0 0

and it now works
Online now: No Back to the top
1 guest and 0 members have just viewed this.