Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Issue 464583002: Properly translate file: URIs to paths on Windows. (Closed)

Created:
6 years, 4 months ago by Paul Berry
Modified:
6 years, 4 months ago
Reviewers:
scheglov
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Properly translate file: URIs to paths on Windows. Uri.path returns the path component of the URI in raw form. This works on MacOS and Linux, but on Windows we need for drive letters to be handled and for '/' to be converted to '\'. To do this, we have to use Uri.toFilePath(windows: ...). This was preventing the index from being able to find source files, which in turn prevented search.getTypeHierarchy from traversing subclasses (since it finds subclasses using the index). BUG=dartbug.com/20436 R=scheglov@google.com Committed: https://code.google.com/p/dart/source/detail?r=39105

Patch Set 1 #

Patch Set 2 : Use fromUri to avoid depending on dart:io #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M pkg/analyzer/lib/file_system/file_system.dart View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Paul Berry
6 years, 4 months ago (2014-08-11 20:50:57 UTC) #1
scheglov
LGTM for the version with path.
6 years, 4 months ago (2014-08-11 21:01:47 UTC) #2
Paul Berry
6 years, 4 months ago (2014-08-11 21:02:10 UTC) #3
Message was sent while issue was closed.
Committed patchset #2 manually as r39105 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698