sacalon / sacalon

Sacalon is a general purpose and open source programming language designed to build optimal, maintainable, reliable and efficient software.

Home Page:https://sacalon.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to execute script 'hascal' due to unhandled exception!

mehanalavimajd opened this issue · comments

Hascal version:
Hascal Compiler 1.3.6 linux/x86_64
OS:
Linux ubuntu 20.04
What did you do?
I installed it using the docs. Ran the script to path:

export path="$HOME/code/hascal/dist/hascal:$PATH"

I ran make deps && make build before adding to path
Then in a directory, I made a file called file.has putting the following code in it:

function main() : int {
    print("Hello World!")
    return 0
}

Also I run it even in the dist folder so I don't guess the problem is from path
I did hascal ./file.has and It gave me:

Traceback (most recent call last):
  File "hascal.py", line 15, in <module>
  File "core/h_builder.py", line 134, in __init__
  File "core/h_builder.py", line 143, in compile
  File "core/h_compiler.py", line 68, in generate
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/_MEIYLOjhv/hlib/libcpp/std.cc'
[13084] Failed to execute script 'hascal' due to unhandled exception!

What did you expect to see?
"Hello World"
What did you see instead?
The error

This problem occurs because Hascal cannot find the libraries. I don't have this problem in the last commit( 4ced1cc )

What do you think? @bistcuite

Which OS are you on @mmdbalkhi?

Which OS are you on @mmdbalkhi?

Arch Linux

commented

@mehanalavimajd is there hlib directory in dist directory?

We recommend you to use latest release, old releases have many bugs.

I installed v1.3.12 tag and It's working!
But I guess It's really bad that 6 patch versions before this is not working.

I will try to research which patch versions has been released and they are not working.