radon-project / radon

The Radon Programming Language
https://radon-project.github.io
GNU General Public License v3.0
21 stars 2 forks source link

Error displaying issue. #160

Open Almas-Ali opened 1 month ago

Almas-Ali commented 1 month ago

Describe the bug Error blocks are taking too much space (indent) some time.

Screenshots or Code snippets

 ./radon.py -s examples/io-test.rn
Enter an integer number: 34.3
Radiation (most recent call last):
  File examples/io-test.rn, line 3, in <program>
  File ***/radon/stdlib/io.rn, line 8, in get_int
  File ***/radon/stdlib/io.rn, line 8, in int
RuntimeError: Could not convert to int

            return int(_val)
                   ^^^^^^^^
During the handling of the above error, another error occurred:

Radiation (most recent call last):
RuntimeError: Invalid input

            raise radiation.ValueError("Invalid input")
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Almas-Ali commented 1 month ago

@angelcaru could you please check this?

angelcaru commented 1 month ago

I would if #162 wasn't literally the fix

Almas-Ali commented 1 month ago

I would if #162 wasn't literally the fix

Sorry mentioned on wrong place. I was asking to review #162

Almas-Ali commented 1 month ago

Still no progress on this issue. Need to figure it out.