You are browsing as a guest. Sign up (or log in) to start making projects!

Halyra IDE

  • 10 Devlogs
  • 12 Total hours

A python IDE made with Kotlin Compose Desktop

Open comments for this post

1h 50m 25s logged

Hi guys!

Its been a long time since i posted my last devlog, the main reason was because…..

LEXER IS SO HARD TO IMPLEMENT

before in Halyra PySide6 Edition, I just used a regex and everything works perfectly, but in Kotlin, somehow it didnt work, so i had to search for techniques and try to implement one myself(Kotlin tutorials are hard to find ಥ_ಥ)

I retried and retried until I got what i wanted, class definition/call rendering, keyword, numbers string, and others rendering perfectly….

I was planning to use parser to detect variable definitions and calls, but It was so hard that i eventually gave up..

Anyways, I made it! I’m aiming for find and replace next ;)

0
0
23
Open comments for this post

2h 10m 58s logged

LETS GOOOOOOOOOOOOOOOOOOOOOO🎉🎉🎉🎉!!!!!

After about 4 to 6 hours, I MADE TO FIX THE INDENTING GLITCHES!!!

Summary:
After trying 3 different algorithms, I reinspected the code of all my commits and noticed the true issue:
I was trying to make the same implementation to handle different behaviors, which caused the bug.

Basically Tab in editors had two different behaviors:

prin|t(“a”)

after tab:

prin |t(“a”)

the second behavior happens at the start of a line:

|print(“a”)

after tab:

|print("a")

I originally planned to use the same code to detect what the user wants, and it didn’t work well no matter how hard I tried until I separated the two behaviors into two snnipets completely, which just ended the bug that I tried fixing for hours.

I’ll never be lazy again….

0
0
3

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…