Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 27 13:06

    pmoura on master

    Fix references to required Scry… (compare)

  • Sep 27 09:14

    pmoura on lgt3580stable

    (compare)

  • Sep 27 08:36

    pmoura on master

    Change version to 3.58.0 stable… (compare)

  • Sep 26 21:55

    pmoura on master

    Improve global list of develope… (compare)

  • Sep 26 16:22

    pmoura on master

    Update release notes (compare)

  • Sep 26 16:18

    pmoura on master

    Add: snippets for emacs (#154) … (compare)

  • Sep 26 16:18
    pmoura closed #154
  • Sep 26 16:18
    pmoura commented #154
  • Sep 26 16:08
    PaulBrownMagic opened #154
  • Sep 26 14:30

    pmoura on master

    Minor update to the `ctags` sup… Regenerate Handbook and APIs do… (compare)

  • Sep 25 21:16

    pmoura on master

    Update the `tplgt` man page for… (compare)

  • Sep 24 11:02

    pmoura on master

    Update notes on generating and … (compare)

  • Sep 24 10:39

    pmoura on master

    Add RedHat to the global list o… (compare)

  • Sep 22 14:30

    pmoura on master

    Add convenient global list of m… (compare)

  • Sep 22 10:05

    pmoura on master

    Update the `help::help` tool pr… Update SVG diagrams (compare)

  • Sep 22 09:31

    pmoura on master

    Document the `help` tool experi… (compare)

  • Sep 22 09:21

    pmoura on master

    Fix link to Allure reports webs… (compare)

  • Sep 21 21:14

    pmoura on master

    Fix the `update_html_docs.*`, a… Add experimental PowerShell ver… (compare)

  • Sep 20 15:07

    pmoura on master

    Update list of required depende… (compare)

  • Sep 20 08:09

    pmoura on master

    Fix manual installation script … (compare)

Paulo Moura
@pmoura
?- {j}.
% junk server loaded...
% [ /Users/pmoura/j.lgt loaded ]
% (0 warnings)
true.
I will add a warning for invalid keys.
A Man With A Clever Disguise
@ACleverDisguise
OK, so the keys are highly context-sensitive (ironically!).
I need to call entity_identifier in the initialization block, not in predicates called from within it?
So when I split it that way, it works correctly.
I even use comment, E which was something I dropped early on thinking that might have been the problem. (It wouldn't tell me which goal failed so I was clutching at straws.)
Paulo Moura
@pmoura
In cases like this, you can compile the code in debug mode and start tracing before the suspected code by calling from it debugger::trace.
A Man With A Clever Disguise
@ACleverDisguise
Good trick. Thanks.
Paulo Moura
@pmoura
The current git version (Logtalk 3.58.0-b03 or later) now implements a compilation warning for invalid logtalk_load_context/2 keys.
A Man With A Clever Disguise
@ACleverDisguise
Thanks.
I'm curious why logtalk_load_context/2 only works inside the initialization block, though.
dgelessus
@dgelessus
I'd be interested in this too. Am looking for a way to get the calling entity name inside a predicate that gets called from initialization or a directive.
In my case they're Prolog modules being loaded as Logtalk objects, but as I understand it that shouldn't make a big difference
Paulo Moura
@pmoura
Calling entity name as in the sender of a message?
dgelessus
@dgelessus
Ah, good point, that seems to be enough for my use case. I went looking for "the object whose initialization is currently running", but that should be identical to sender as long as there are no intermediate objects in the call chain.
Paulo Moura
@pmoura
In that case, you can use this/1.
dgelessus
@dgelessus
hmm, this just gives me the object in which the method is defined, not the one that's calling it
In any case, sender seems to work well enough in my case. Thanks for the hint!
Paulo Moura
@pmoura
Pushed experimental support to the "help" tool for browsing and searching the Texinfo versions of the Logtalk Handbook and APIs documentation from within the top-level. Currently limited to POSIX systems and when using Ciao Prolog, LVM, or SWI-Prolog as the backend.
dsabanin
@dsabanin:matrix.org
[m]
hi there!
I'm very excited to find Logtalk, big time. Reading everything I can find on it, but is there any particular doc (besides the awesome manual) / slides / talk I should check out?
dsabanin
@dsabanin:matrix.org
[m]
also interested in good codebases in Logtalk that I could read (besides Logtalk itself)
Paulo Moura
@pmoura
Welcome! Happy to know that you're enjoying Logtalk. W.r.t. interesting codebases, maybe check the third-party packs at https://github.com/LogtalkDotOrg/pack-registries
1 reply
Paulo Moura
@pmoura
The experimental help tool described earlier is also now available when using ECLiPSe, SICStus Prolog, Trealla Prolog, or XSB on POSIX systems.
dsabanin
@dsabanin:matrix.org
[m]
Is there a source code formatter that I can run through vscode or terminal?
dsabanin
@dsabanin:matrix.org
[m]
:point_up: Edit: Is there a source code formatter that I can run through vscode or terminal? (on a mac)
Paulo Moura
@pmoura
There's a VSC plug-in (https://github.com/jacobfriedman/vsc-logtalk) in active development. But no code (re)formatting support yet.
dsabanin
@dsabanin:matrix.org
[m]
yep, using that one. I wonder what's the status of this? https://github.com/lindseyspratt/format-source
Paulo Moura
@pmoura
0.4.8 was just released.
13 replies
format-source is work-in-progress.
dsabanin
@dsabanin:matrix.org
[m]
got it, I see that you're committing to that one as well :) awesome
dsabanin
@dsabanin:matrix.org
[m]
yep, I've set it
Paulo Moura
@pmoura
And you still get that logtalkTerminal.js type error?
Paulo Moura
@pmoura
Version 0.4.9 of the VSCode plug-in released. Thanks to Jacob work, you can now Cmd/Ctrl-click on a warning or error in the embedded terminal and jump to that file and line(s) location.