polard8 / kernel

Polar D8 kernel.
https://github.com/polard8/kernel
MIT License
646 stars 35 forks source link

fs: Can't open files with only one letter in the extension, ex: file.c #30

Closed zBl4ckUser closed 1 year ago

zBl4ckUser commented 3 years ago

After creating a new file and opening it with gramcode, this appears: image

frednora commented 3 years ago

Cool :) Very nice this test. Probably you created a new file using the command interpreter gdeshell. In this case the command will create an empy file. But it is not a bug. It is a 'work in progress' ... the function to create new files is very very primitive ... See the routines in: gramado/landos/kernel/0mem/sci/fs/ Thank you.

Another test: If you open gramcode with no file, so you can type something and save the new file with a standard name for now ... this way you can reopen this saved file in the next session. ;)

frednora commented 3 years ago

We need to do more tests like this one. We can create files using the gramcode and using some commands in the command interpreter gdeshell. We can open these text files using the commnad 'cat'. This way: "$ cat file.txt &" ... or we can open the file using the command: "$ gramcode file.txt"

frednora commented 3 years ago

very good, thank you!

zBl4ckUser commented 3 years ago

Hi! Yes, I created the file using the command 'newfile aa.c' in gdeshell, after that I opened the file with the gramcode. I thought it was a bug because of those characters that appeared on the screen.

zBl4ckUser commented 3 years ago

Thanks for answering :)

frednora commented 3 years ago

Hi! Yes, I created the file using the command 'newfile aa.c' in gdeshell, after that I opened the file with the gramcode. I thought it was a bug because of those characters that appeared on the screen.

Ohh i'm sorry ... In this special way, it is actually a bug. A bug in the routines for opening files. It is because there is a problem when we try to open a file named with extension with only one letter. ex: 'file.c' ... it is working better with three letter, like this: 'file.cpp'. :)

frednora commented 2 years ago

This is still a work to do in the file system support. That is why im using only .cpp .ini and .txt. hehehe

frednora commented 2 years ago

gramado-root-1 See: im still not using .c extention ... we still can't use only one single letter in the extention. In the picture you can see a file called test1.c ... sometimes im using this file to work in this issue. :)

FrancisBFTC commented 1 year ago

Hello Fred! Does this extension bug still exist in the file system? I´m thinking of contributing it...

frednora commented 1 year ago

ext-test At this moment the system is able to open files when the filename has an extension with only one letter. And also some different combinations of number of letters. And also support some special 'symbols', just like + - $ etc ...