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

Fix: SymbolScanner fail to read URLs on Windows #27

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

WilsonZiweiWang
Copy link
Collaborator

I encountered a read file error on Windows, so I made the following changes:

  1. Remove the throw in the catch block because the upper call stack doesn't handle it.
  2. Use decodeURIComponent to decode URLs. This will correctly decode Windows URLs (e.g. d%3A/folder -> d:/folder)

From my understanding of this SymbolScanner, some functionalities could be moved to the Analyzer (tree-sitter). For now, let's keep it as is.

@WilsonZiweiWang WilsonZiweiWang self-assigned this Oct 13, 2023
@WilsonZiweiWang WilsonZiweiWang added the bug Something isn't working label Oct 14, 2023
@WilsonZiweiWang WilsonZiweiWang marked this pull request as ready for review October 16, 2023 15:32
@idillon-sfl
Copy link
Member

are we sure we want to think about Windows? I am quite sure we've been told we did not have to

@rossburton
Copy link

are we sure we want to think about Windows? I am quite sure we've been told we did not have to

The focus is Linux hosts right now as you can only run bitbake on Linux. Maybe add a comment anywhere there's a Linux assumption, like line endings.

@WilsonZiweiWang WilsonZiweiWang merged commit 32b4c8d into staging Oct 17, 2023
@WilsonZiweiWang WilsonZiweiWang deleted the Fix-symbolscanner-fail-to-read-on-windows branch October 20, 2023 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants