[fidl][lsp] Skip libraries that cannot be imported

The referenced bug is caused by two things in "find all references":
 * We return an error when one library fails to import, rather than
   continuing to search other libraries
 * We incorrectly call getLibraryWithFile instead of getLibrary

This CL also changes a `Fatalf` log on failure to parse
fidl_project.json into a `Printf` log, so that the server doesn't
crash.

Fixed: 54918
Test: go test -p 1 ./...
Change-Id: I19b9a1c82dd15d61ad794b0568f50764aca0b8a1
Reviewed-on: https://fuchsia-review.googlesource.com/c/fidl-misc/+/401833
Reviewed-by: Benjamin Prosnitz <bprosnitz@google.com>
2 files changed
tree: 62c382e236f5270235cdd79eab2d81ca136dd11e
  1. fidl-lsp/
  2. fidldev/
  3. vscode-language-fidl/
  4. .gitignore
  5. .vscodeignore
  6. AUTHORS
  7. CONTRIBUTING.md
  8. LICENSE
  9. PATENTS
  10. README.md
README.md

Fuchsia Open Source Template Repository

This repository is a template that we will use when creating new open source repositories for Fuchsia.