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

Decompiling a double not throws an exception #491

Open
SlenderFox opened this issue Jun 16, 2024 · 1 comment
Open

Decompiling a double not throws an exception #491

SlenderFox opened this issue Jun 16, 2024 · 1 comment
Labels
bug Something isn't working decompiler Decompiling workshop code to OSTW code

Comments

@SlenderFox
Copy link

As title states, decompiling an action with a double not throws an error.
image
Example rule ^
Here is the error message

An exception was thrown while decompiling: System.InvalidOperationException: Stack empty.
   at System.Collections.Generic.Stack`1.ThrowForEmptyStack()
   at System.Collections.Generic.Stack`1.Pop()
   at Deltin.Deltinteger.Decompiler.TextToElement.ConvertTextToElement.PopOperator() in D:\Projects_Local\Overwatch-Script-To-Workshop\Deltinteger\Deltinteger\Decompiler\TextToElement\TextToElement.cs:line 1013
   at Deltin.Deltinteger.Decompiler.TextToElement.ConvertTextToElement.PushOperator(TTEOperator op) in D:\Projects_Local\Overwatch-Script-To-Workshop\Deltinteger\Deltinteger\Decompiler\TextToElement\TextToElement.cs:line 976
   at Deltin.Deltinteger.Decompiler.TextToElement.ConvertTextToElement.Expression(ITTEExpression& expr, Boolean root) in D:\Projects_Local\Overwatch-Script-To-Workshop\Deltinteger\Deltinteger\Decompiler\TextToElement\TextToElement.cs:line 683
   at Deltin.Deltinteger.Decompiler.TextToElement.ConvertTextToElement.Expression(ITTEExpression& expr, Boolean root) in D:\Projects_Local\Overwatch-Script-To-Workshop\Deltinteger\Deltinteger\Decompiler\TextToElement\TextToElement.cs:line 684
   at Deltin.Deltinteger.Decompiler.TextToElement.ConvertTextToElement.ContainExpression(ITTEExpression& expr) in D:\Projects_Local\Overwatch-Script-To-Workshop\Deltinteger\Deltinteger\Decompiler\TextToElement\TextToElement.cs:line 721
   at Deltin.Deltinteger.Decompiler.TextToElement.ConvertTextToElement.Function(ElementBaseJson func, FunctionExpression& expr) in D:\Projects_Local\Overwatch-Script-To-Workshop\Deltinteger\Deltinteger\Decompiler\TextToElement\TextToElement.cs:line 640
   at Deltin.Deltinteger.Decompiler.TextToElement.ConvertTextToElement.Function(Boolean actions, FunctionExpression& expr) in D:\Projects_Local\Overwatch-Script-To-Workshop\Deltinteger\Deltinteger\Decompiler\TextToElement\TextToElement.cs:line 560
   at Deltin.Deltinteger.Decompiler.TextToElement.ConvertTextToElement.Action(ITTEAction& action) in D:\Projects_Local\Overwatch-Script-To-Workshop\Deltinteger\Deltinteger\Decompiler\TextToElement\TextToElement.cs:line 537
   at Deltin.Deltinteger.Decompiler.TextToElement.ConvertTextToElement.ActionGroup(List`1& actionList) in D:\Projects_Local\Overwatch-Script-To-Workshop\Deltinteger\Deltinteger\Decompiler\TextToElement\TextToElement.cs:line 469
   at Deltin.Deltinteger.Decompiler.TextToElement.ConvertTextToElement.Rule(TTERule& rule) in D:\Projects_Local\Overwatch-Script-To-Workshop\Deltinteger\Deltinteger\Decompiler\TextToElement\TextToElement.cs:line 372
   at Deltin.Deltinteger.Decompiler.TextToElement.ConvertTextToElement.Get() in D:\Projects_Local\Overwatch-Script-To-Workshop\Deltinteger\Deltinteger\Decompiler\TextToElement\TextToElement.cs:line 74
   at Deltin.Deltinteger.LanguageServer.StdServer.<>c.<AddRequests>b__11_2() in D:\Projects_Local\Overwatch-Script-To-Workshop\Deltinteger\Deltinteger\Language Server\StdServer.cs:line 96
@CactusPuppy CactusPuppy added bug Something isn't working decompiler Decompiling workshop code to OSTW code labels Jun 16, 2024
@CactusPuppy
Copy link
Collaborator

Probably related to #249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working decompiler Decompiling workshop code to OSTW code
Projects
None yet
Development

No branches or pull requests

2 participants