You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
biroj@88665a0182c9 demonewapp % otterkit build --run -e hello.cob --free
Analyzer Error [COB0085]: Missing source unit definition.
ββ/> [hello.cob:1:7]
β
1 β program-id. hello.
β ~~~~/> Expected a source unit id definition.
β
β Note: The identification header is optional but every source unit must still have an ID.
β
βββββ―
Unhandled exception. System.InvalidOperationException: Stack empty.
at System.Collections.Generic.Stack1.ThrowForEmptyStack() at System.Collections.Generic.Stack1.Peek()
at Otterkit.Analyzers.Analyzer.Source() in C:\Users\KTSno\Documents\GitHub\otterkit\Otterkit.Analyzers\src\Analyzer.cs:line 54
at Otterkit.Analyzers.Analyzer.Analyze(List`1 tokenList) in C:\Users\KTSno\Documents\GitHub\otterkit\Otterkit.Analyzers\src\Analyzer.cs:line 17
at Otterkit.Otterkit.CommandLineArguments(String[] args) in C:\Users\KTSno\Documents\GitHub\otterkit\src\Otterkit.cs:line 115
at Otterkit.Otterkit.Main(String[] args) in C:\Users\KTSno\Documents\GitHub\otterkit\src\Otterkit.cs:line 27
zsh: abort otterkit build --run -e hello.cob --free
ran this command
otterkit build --run -e hello.cob --free
Expected behavior
Expecting CS file
Screenshots
If applicable, add screenshots to help explain the issue. This could be terminal screenshots that can help us find the source of the issue.
Platform Information (please complete the following information):
OS: Mac
OS Version [e.g. Ubuntu 22.04]
CPU Architecture [e.g. x64]
Libotterkit Version 1.0.70
Additional context
Add any other context about the problem here.
Describe the bug
biroj@88665a0182c9 demonewapp % otterkit build --run -e hello.cob --free
Analyzer Error [COB0085]: Missing source unit definition.
ββ/> [hello.cob:1:7]
β
1 β program-id. hello.
β ~~~~/> Expected a source unit id definition.
β
β Note: The identification header is optional but every source unit must still have an ID.
β
βββββ―
Unhandled exception. System.InvalidOperationException: Stack empty.
at System.Collections.Generic.Stack
1.ThrowForEmptyStack() at System.Collections.Generic.Stack1.Peek()at Otterkit.Analyzers.Analyzer.Source() in C:\Users\KTSno\Documents\GitHub\otterkit\Otterkit.Analyzers\src\Analyzer.cs:line 54
at Otterkit.Analyzers.Analyzer.Analyze(List`1 tokenList) in C:\Users\KTSno\Documents\GitHub\otterkit\Otterkit.Analyzers\src\Analyzer.cs:line 17
at Otterkit.Otterkit.CommandLineArguments(String[] args) in C:\Users\KTSno\Documents\GitHub\otterkit\src\Otterkit.cs:line 115
at Otterkit.Otterkit.Main(String[] args) in C:\Users\KTSno\Documents\GitHub\otterkit\src\Otterkit.cs:line 27
zsh: abort otterkit build --run -e hello.cob --free
To Reproduce
https://gist.github.com/birojnayak/6b939399336ac80da8e50a47e58ae8de <= CobolFile
ran this command
otterkit build --run -e hello.cob --free
Expected behavior
Expecting CS file
Screenshots
If applicable, add screenshots to help explain the issue. This could be terminal screenshots that can help us find the source of the issue.
Platform Information (please complete the following information):
Additional context
Add any other context about the problem here.