-
Notifications
You must be signed in to change notification settings - Fork 31
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
Conversation
There was a problem hiding this 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)
}
}
uni/ulsp/database.icn
Outdated
|
||
pop(db_paths) # remove the current directory | ||
|
||
write("Looking in:") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
uni/ulsp/database.icn
Outdated
|
||
write("Looking in:") | ||
every dir := !ipaths_get() do | ||
# remove the current dir, also skip pasrer due to a unidoc bug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: pasrer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
uni/ulsp/database.icn
Outdated
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 |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Signed-off-by: Jafar Al-Gharaibeh <[email protected]>
5263dab
to
027050d
Compare
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... |
ulsp: unidoc chokes on 'parser', skip it for now
No description provided.