Skip to content

Commit

Permalink
lsp server mostly works again
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Dec 4, 2024
1 parent fd3331f commit 91b2f00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libraries/lsp_server_metta/prolog/lsp_metta_xref.pl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
%load_mettalog_xref(LTH):- atom_concat(LTH,'/integration/metta_swi',Init),
% exists_source(Init),!,metta:ensure_loaded(Init),!,listing(metta:'$lgt_default_flag'/2).
load_mettalog_xref(LTH):- \+ exists_directory(LTH),!,dmsg("Skipping metta: not exists_directory").
load_mettalog_xref(LTH):- absolute_file_name('src/canary/metta_interp.pl',File,[relative_to(LTH)]),!,
load_mettalog_xref(LTH):- absolute_file_name('prolog/metta_lang/metta_interp.pl',File,[relative_to(LTH)]),!,
notrace(load_mettalog_xref_file(File)).
load_mettalog_xref(LTH):- dmsg("Skipping metta="+LTH).

Expand Down
6 changes: 3 additions & 3 deletions prolog/metta_lsp.pl
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
:- module(metta_lsp, []).


:- (prolog_load_context(directory, Value);Value='.'),
unused:- (prolog_load_context(directory, Value);Value='.'),
absolute_file_name('../../libraries/',Dir,[relative_to(Value)]),
absolute_file_name('../../',MettaDir,[relative_to(Value)]),
atom_concat(Dir,'predicate_streams',PS),
atom_concat(Dir,'logicmoo_utils',LU),
atom_concat(Dir,'lsp_server_metta',LSP),
attach_packs(Dir,[duplicate(replace),search(first)]),
% attach_packs(Dir,[duplicate(replace),search(first)]),
pack_attach(PS,[duplicate(replace),search(first)]),
pack_attach(LU,[duplicate(replace),search(first)]),
pack_attach(MettaDir,[duplicate(replace),search(first)]),
Expand Down

0 comments on commit 91b2f00

Please sign in to comment.