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

Issue 2714373002: fix MemoryResourceProvider context on Windows (Closed)

Created:
3 years, 9 months ago by danrubel
Modified:
3 years, 9 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fix MemoryResourceProvider context on Windows On Windows, the MemoryResourceProvider.convertPath method prefixes the path with the C: drive, but the context associated with the MemoryResourceProvider has a drive letter based upon the underlying current directory. Most of the time, these two drive letters are the same, but sometimes, such as on the Windows bot, the current working directory is on drive E:, rather than drive C:. This causes package Uris to be mapped to drive E: rather than the expected drive C: This CL changes the MemoryResourceProvider constructor to set the current working directory to C:\ when running on Windows so that it aligns with MemoryResourceProvider.convertPath. R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/4ca5ac929a3525709afe9ff02cde32f184a77a22

Patch Set 1 #

Patch Set 2 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -18 lines) Patch
M pkg/analyzer/lib/file_system/memory_file_system.dart View 1 chunk +6 lines, -1 line 0 comments Download
M pkg/analyzer/test/src/context/builder_test.dart View 1 chunk +9 lines, -13 lines 0 comments Download
M pkg/analyzer/test/src/context/source_test.dart View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
danrubel
3 years, 9 months ago (2017-02-26 17:19:44 UTC) #2
Brian Wilkerson
Would it make more sense to make convertPath use the current drive letter? Maybe, given ...
3 years, 9 months ago (2017-02-26 17:44:36 UTC) #3
danrubel
On 2017/02/26 17:44:36, Brian Wilkerson wrote: > Would it make more sense to make convertPath ...
3 years, 9 months ago (2017-02-26 17:53:20 UTC) #4
danrubel
3 years, 9 months ago (2017-02-26 21:30:51 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
4ca5ac929a3525709afe9ff02cde32f184a77a22 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698