Skip to content

Critical error in enum interpreter. #139

Closed

Description

@MatiDragon-YT

The error does not allow the IDE to read the enumeration and the rest of them properly.
It only appears when you use a word that contains end

enum Example
	Matias=0				// Nice
	Girlfriends=184				// ERROR
	FriendlyGang=240			// ERROR
	BestPositionInCountryEndurance=286	// ERROR
	BestTimeInCountryEndurance=287		// ERROR
end

Small expression regex like this \nend\n might help :D

Activity

  1. added
    priority:p2
    type:bug
    on Apr 23, 2021
  2. added this to the v3.8.0 milestone on Apr 23, 2021
  3. x87 commented on Apr 26, 2021

    @x87
    Collaborator

    @MatiDragon-YT please test with the dll from the attached archive. unzip to the Sanny Builder\lib folder.

    core.zip

  4. added
    workaround-available
    on Apr 26, 2021
  5. MatiDragon-YT commented on Apr 27, 2021

    @MatiDragon-YT
    MemberAuthor

    With my files in <sb>\data\sa sa.zip

    I found two errors:

    1. The first and most noticeable to the naked eye, the enumeration disables the number highlighter.
    2. When wanting to compile with and without enums, the error below skips.
      image
  6. x87 commented on Apr 27, 2021

    @x87
    Collaborator

    Hey @MatiDragon-YT thanks for the detailed report.

    I'm able to reproduce the exception on v3.7.0 with the files you provided. However it works fine on my latest dev build. It appears as if something was broken, it has been fixed already. I will investigate and get back to you.

    Regarding the numbers highlighting, it looks like you've encountered this bug: #129

  7. MatiDragon-YT commented on Apr 27, 2021

    @MatiDragon-YT
    MemberAuthor

    @x87 A few weeks ago, I had a problem with SB, that when you ran it, it would jump a problem with the C ++ 2015 framework.
    The error message was that it could not find a file xxxxxx140.dll.

    Could you add a message to tell you that you have to install the x86 version?
    SB does not recognize x64. And there are people who stayed in v3.3.3 and 3.4.x why they did not know how to solve it.


    Could all these problems be related to the c ++ framework?

  8. x87 commented on Apr 27, 2021

    @x87
    Collaborator

    I'm not aware of this problem. Was it msvcp140.dll or vcruntime140.dll?

  9. MatiDragon-YT commented on Apr 27, 2021

    @MatiDragon-YT
    MemberAuthor

    Exactly vcruntime140.dll

  10. x87 commented on Apr 27, 2021

    @x87
    Collaborator

    Are you able to reproduce this error again by uninstalling Microsoft Visual C++ Redistributables or by deleting vcruntime140.dll from your PC? I want to test if the attached DLL has no dependency on C++ runtime.

    core_static.zip

  11. MatiDragon-YT commented on Apr 27, 2021

    @MatiDragon-YT
    MemberAuthor

    sanny.exe - System error
    Code execution cannot continue because vcruntime140.dll was not found.
    image
    if i install Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.24215 the error disappears

  12. x87 commented on Apr 27, 2021

    @x87
    Collaborator

    Is this happening even with core.dll from static zip?

  13. MatiDragon-YT commented on Apr 27, 2021

    @MatiDragon-YT
    MemberAuthor

    Yes yes...

  14. x87 commented on Apr 27, 2021

    @x87
    Collaborator

    Ok, I'll take a look. Thanks for letting me know 👍

  15. x87 commented on May 9, 2021

    @x87
    Collaborator

    @MatiDragon-YT please try with two updated DLLs from the attached archive. unzip to sanny builder\lib folder.

    lib_static.zip

    • it should not have a dependency on vcruntime140.dll
    • it should not fail on enums with end
    • it should not raise Access Violation error as seen on screenshot ☝️
  16. MatiDragon-YT commented on May 9, 2021

    @MatiDragon-YT
    MemberAuthor

    These new libraries work well :') 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:p2scope:typestype:bugworkaround-available

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions