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

Alsdev: Issue with search paths for prolog projects #132

Open
kenbowen opened this issue Oct 9, 2018 · 0 comments
Open

Alsdev: Issue with search paths for prolog projects #132

kenbowen opened this issue Oct 9, 2018 · 0 comments
Labels

Comments

@kenbowen
Copy link
Member

kenbowen commented Oct 9, 2018

[Described for vqueens below, but happens for the other projects in ~visual]

  1. Start alsdev
  2. Prolog > Open ~ALSProlog/examples/visual/vqueens.ppj
  3. Do ?- listing. in the console; should show no clauses.
  4. Open (no Load) ~ALSProlog/examples/visual/vqueens.ppj
  5. Again do ?- listing. in the console; should show no clauses.
  6. Toggle the Prolog Files arrow; Should show the file vqueens.pro.
  7. Toggle the Search Individual Directories arrow; It shows no entries.
  8. Click the (Re)Load button; No /Apparent/ effect an extra ?- now on the last console line.
  9. Again do ?- listing. Now shows all the clauses for vqueens.pro.

In vqueens.ppj, no search directories are listed: search_dirs = [].
However, the project contains:

primary_project_dir = '/Users/ken/ALS/GitHub/ALSProlog/examples/visual'

Almost certainly this is what is being used to find vqueens.pro. (Verify this).
The slot ‘primary_project_dir’ gets it’s value when the project is created and saved.
Either:
A) Add the path for primary_project_dir to search_dirs at that time
or
B) Block the system from using the value of primary_project_dir for searching (unless it has been added to search_dirs).

Also (either way), show the primary_project_dir path on the specification panel.

@kenbowen kenbowen added the bug label Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant