Fix uri -> path resolution on Windows

This commit is contained in:
Simon Binder 2020-01-22 11:57:11 +01:00
parent 2efe11d386
commit c6230e628f
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
4 changed files with 9 additions and 4 deletions

View File

@ -36,7 +36,7 @@ Exits with error code `1` if any error was found.
## Identify databases
This is more of a test command to test that moor's analyzer is working correctly.
This is more of a test command to verify that moor's analyzer is working correctly.
It will identify all databases or daos defined in your project.
```

View File

@ -1,3 +1,7 @@
## 2.3.1
- CLI/IDE: Fix path resolution on Windows
## 2.3.0
- Support explicit type arguments for queries in moor files. In

View File

@ -75,8 +75,9 @@ class MoorDriver implements AnalysisDriverGeneric {
}
void _potentiallyNewFile(FoundFile file) {
final path = _resourceProvider.pathContext.fromUri(file.uri);
if (!file.isParsed) {
handleFileChanged(file.uri.path);
handleFileChanged(path);
}
}

View File

@ -1,6 +1,6 @@
name: moor_generator
description: Dev-dependency to generate table and dataclasses together with the moor package.
version: 2.3.0
version: 2.3.1
repository: https://github.com/simolus3/moor
homepage: https://moor.simonbinder.eu/
issue_tracker: https://github.com/simolus3/moor/issues
@ -10,7 +10,7 @@ environment:
dependencies:
collection: ^1.14.0
recase: ^2.0.1
recase: '>=2.0.1 <4.0.0'
meta: ^1.1.0
path: ^1.6.0
json_annotation: ^3.0.0