Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the error messages and make them more helpful #131

Open
SaptakBhoumik opened this issue Oct 1, 2022 · 9 comments
Open

Improve the error messages and make them more helpful #131

SaptakBhoumik opened this issue Oct 1, 2022 · 9 comments

Comments

@SaptakBhoumik
Copy link
Owner

I am not that good in english so if anyone wants to improve the error messages(exceptionally in the typechecker) then please go ahead

@Ccode-lang
Copy link
Contributor

I can help with this if you want.

@SaptakBhoumik
Copy link
Owner Author

Go ahead if you want

@Muthulakshimi
Copy link
Contributor

hi @SaptakBhoumik I could help with this would be great for me to kickstart this years contribution

@SaptakBhoumik
Copy link
Owner Author

hi @SaptakBhoumik I could help with this would be great for me to kickstart this years contribution

Your help is welcome

@Muthulakshimi
Copy link
Contributor

hi @SaptakBhoumik I just improved some error messages got curious on how this language works would love to contribute but where can the code be compiled, if VS Code then what extensions would I need.
Also is your project involved in building the language, where exactly do you suggest me to contribute in without messing the whole code

@SaptakBhoumik
Copy link
Owner Author

@Muthulakshimi

I just improved some error messages

Thanks for that and I have merged it. Btw they are actually explanation of error and how to fix it

got curious on how this language works would love to contribute but where can the code be compiled, if VS Code then what extensions would I need.

You can use any code editor you want. If you use vs code then install Microsoft's c++ syntax highlighter but not clangd . For compiling just install ninja, meson and clang. Then follow the steps in the readme

is your project involved in building the language

Idk what you mean here because this project is the language itself

where exactly do you suggest me to contribute in without messing the whole code

You can improve the error messages in the typechecker. You will see a function named add_error. This function is called whenever we find error in the code. It takes the error message as input and this error message can be improved

@Muthulakshimi
Copy link
Contributor

@SaptakBhoumik yeahh i just realised i had to contribute in the typechecker will do that..
Thanks for the info on how to run it, I'll try working on it

@vanshitaverma
Copy link
Contributor

vanshitaverma commented Oct 11, 2022

Hello, I think I might be able to help with this too. The error.md in Peregrine/errors currently does not have the entire list of error messages, I am sending a pull request for the same.

@SaptakBhoumik
Copy link
Owner Author

Hello, I think I might be able to help with this too. The error.md in Peregrine/errors currently does not have the entire list of error messages, I am sending a pull request for the same.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants