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

ulsp: unidoc chokes on 'parser', skip it for now #476

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

Jafaral
Copy link
Member

@Jafaral Jafaral commented Sep 15, 2024

No description provided.

@Jafaral Jafaral requested a review from Don-Ward September 15, 2024 16:08
Copy link
Collaborator

@Don-Ward Don-Ward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the following is an improvement

     every dir := !ipaths_get() do {
         # remove the current dir, also skip uni/parser due to a unidoc problem
        if not((dir == ("." | "")) | find("uni/parser", dir)) then {
           put(db_paths, dir)
           write("   ", dir)
        }
      }


pop(db_paths) # remove the current directory

write("Looking in:")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be some extra writes that print out each directory that is added?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We print it down below, but there was a duplicate "Looking in" that I took out now.


write("Looking in:")
every dir := !ipaths_get() do
# remove the current dir, also skip pasrer due to a unidoc bug
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: pasrer

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

write("Looking in:")
every dir := !ipaths_get() do
# remove the current dir, also skip pasrer due to a unidoc bug
if not((dir == ("." | "")) | find("parser", dir))then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might be a bit too sweeping. It removes any path with "parser" somewhere in it. I think I'd prefer "uni/parser"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@Don-Ward Don-Ward merged commit bac7c90 into uniconproject:master Sep 15, 2024
20 checks passed
@StephenWampler
Copy link
Collaborator

Is this new behavior with UniDoc and parser.icn or was parser.icn never passed to UniDoc before? I can take a look at it from the UniDoc to see why it's unhappy...

ValG4 pushed a commit to ValG4/unicon that referenced this pull request Dec 7, 2024
ulsp: unidoc chokes on 'parser', skip it for now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants