question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getBazelInfo() gets confused by Windows paths

See original GitHub issue

This line:

              const [key, value] = line.split(":", 2);

Will fail on Windows because paths have a : in them.

>bazel info
bazel-bin: C:/users/[REDACTED]/bazel-out/x64_windows-dbg/bin

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
allevatocommented, Jan 23, 2020

I was confused at how this could possibly be the case, until I noticed this sentence in Mozilla’s documentation of String.split:

Any leftover text is not included in the array at all.

I cannot imagine any scenario where that’s the behavior I would expect or want. 🤢 I’m happy to review a small PR that does the right thing here.

0reactions
JayBazuzicommented, Feb 5, 2020

Not at this time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugger breakpoints do not respect file path rules by platform
Wait for a fix for getBazelInfo() gets confused by Windows paths vscode-bazel#176 (or fix it yourself); On Windows install vscode-bazel in ...
Read more >
paths confused when linked file opened from another computer
We have Windows 10 computers running Excel 2010 to 2016. When files on one computer are opened from another, only the links to...
Read more >
File path formats on Windows systems | Microsoft Learn
In this article, learn about file path formats on Windows systems, such as traditional DOS paths, DOS device paths, and universal naming ...
Read more >
Maximum Path Length Limitation - Win32 apps | Microsoft Learn
In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined ......
Read more >
Working with Alternate Paths during Backup - Win32 apps
The term alternate path, as used with VSS, should not be confused with the term alternate location mapping. Alternate paths are used only ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found