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

error in load somehow changes bash's character scheme #188

Open
AdrickTench opened this issue Nov 8, 2024 · 0 comments
Open

error in load somehow changes bash's character scheme #188

AdrickTench opened this issue Nov 8, 2024 · 0 comments
Labels
bug Issues that represent errors in the code good first issue Good for newcomers High Priority
Milestone

Comments

@AdrickTench
Copy link
Collaborator

AdrickTench commented Nov 8, 2024

Experimenting with load-ascii I tried

!(load-ascii &self "(bar 1)")

which apparently was incorrect usage as it triggers a horrid error:

(ugtrace  (error  (error  (missing_exception  (include_metta  &self '(bar 1)')) $_10518)) $_10584)


%~ FIlE: user_input:17
)$[⎽≤⎽├␊└] ⎽≤⎽├␊└:'$␌ ␌▒┌┌ ⎻⎼⎺┌⎺±'.  ┼⎺(␌┌▒┤⎽␊).
)$[$├⎺⎻┌␊┴␊┌] '$├⎺⎻┌␊┴␊┌':'$␋┼␋├␋▒┌␋⎽␊'. ⎺⎻┌␊┴␊┌.⎻┌:556:
(2)$[⎽≤⎽├␊└] ⎽≤⎽├␊└:␌▒├␌␤('$├⎺⎻┌␊┴␊┌':␋┼␋├␋▒┌␋⎽␊ ⎻⎼⎺┌⎺±,A,'$├⎺⎻┌␊┴␊┌':␋┼␋├␋▒┌␋⎽␊ ␊⎼⎼⎺⎼(A)). ┼␋├.⎻┌:564:
)<*>$Ä$toplevelÅ '$toplevel':run_init_goal('<garbage_collected>',@(user:loon(main),'/home/atench/mettalog/metta-wam/sr rc/canary/metta_interp.pl':2250)). oplevel.pl:740:
(6)$ÄsystemÅ system:catch_with_backtrace('<garbage_collected>','<garbage_collected>','<garbage_collected>'). nit.pl:644:

)$ÄsystemÅ system:catch(user:loon(main),A,'$toplevel':true). nit.pl:564:
(9)$ÄuserÅ do_loon. etta_interp.pl:2051:
(10)<*>$ÄsystemÅ system:ignore('<garbage_collected>'). nit.pl:546:
(14)$ÄapplyÅ apply:maplist_('<garbage_collected>',user:catch_red_ignore). pply.pl:225:
(18)$ÄapplyÅ apply:maplist_('<garbage_collected>',user:catch_red_ignore). pply.pl:225:

etc, etc...

% Got exception missingèexception(includeèmetta('&self','(bar 1)')) (Ctx0=è628176, Catcher=system:'<meta-call>'/1)
% Stack =  <span class="pl-ellipsis">...</span></span>, <span class="pl-var">Kw75</span>, <span class="pl-compound"><span class="pl-ellipsis">...</span> <span class="pl-infix">:</span> <span class="pl-ellipsis">...</span></span></span>)</span></span>)</span>,
            <span class="pl-atom">frame</span>( <span class="pl-int">6</span>,
              <span class="pl-compound pl-level-0"><span class="pl-functor">clause</span>(<span class="pl-args"><span class="pl-blob">&lt;clause&gt;</span>, <span class="pl-int">6</span></span>)</span>,
              <span class="pl-compound pl-level-0"><span class="pl-functor">catch_with_backtrace</span>(<span class="pl-args"><span class="pl-atom">'&lt;garbage_collected&gt;'</span>, <span class="pl-atom">'&lt;garbage_collected&gt;'</span>, <span class="pl-atom">'&lt;garbage_collected&gt;'</span></span>)</span>)]
   Exception: (107) ésystemê throw(error(missingèexception(includeèmetta('&self', '(bar 1)')), è3208)) ? exit (status 4)
; DEBUG Exit code of METTAèCMD: 4

and now after exiting my bash console is messed up: atenchàAdrickDesktop:û/mettalog/metta-wam$
(before: atench@AdrickDesktop:~/mettalog/metta-wam$)

@AdrickTench AdrickTench added bug Issues that represent errors in the code High Priority labels Nov 8, 2024
@TeamSPoon TeamSPoon added the good first issue Good for newcomers label Nov 11, 2024
@TeamSPoon TeamSPoon modified the milestones: Month 3 of 5, Month 4 of 5 Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that represent errors in the code good first issue Good for newcomers High Priority
Projects
None yet
Development

No branches or pull requests

2 participants