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

An attempt to resolve an error on indenting. #46

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gugod
Copy link

@gugod gugod commented Jan 2, 2021

Fix issue #23

When indenting something like

if %h{"foo"} {
    ....... (press tab here)
}

This error happens.

(error "Lisp nesting exceeds ‘max-lisp-eval-depth’")

Note here that while the fix does makes the error go away, it is not
entirely certain whether it breaks the indentation for some other
cases.

But I think we could live with this until we found what's broken.

Fix issue Raku#23

When indenting something like

    if %h{"foo"} {
        ....... (press tab here)
    }

This error happens.

    (error "Lisp nesting exceeds ‘max-lisp-eval-depth’")

Note here that while the fix does makes the error go away, it is not
entirely certain whether it breaks the indentation for some other
cases.

But I think we could live with this until we found what's broken.
Copy link
Member

@Altai-man Altai-man left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a strong feeling this is not a proper solution, but I do know the error is really annoying, so we are better off with than without.

@gugod
Copy link
Author

gugod commented Jan 5, 2021

I agree with @Altai-man ... on the other hand no extra tests are prepared in this PR yet to cover the error cases.

@Altai-man
Copy link
Member

Can you wrote some?

@gugod
Copy link
Author

gugod commented Jan 5, 2021

Of course, after I teach myself how it is done...:)

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

Successfully merging this pull request may close these issues.

2 participants