diff --git a/Makefile b/Makefile index 5ee2a9b..3a08157 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,14 @@ run: dart run scip_dart ./snapshots/input/staging-project --verbose snap: - scip snapshot --to ./snapshots/output/staging-project + scip snapshot --project-root ./snapshots/input/staging-project --to ./snapshots/output/staging-project lint: scip lint ./index.scip +stats: + scip stats + gen-proto: protoc --dart_out=. ./lib/src/gen/scip.proto diff --git a/lib/src/indexer.dart b/lib/src/indexer.dart index d5c5873..f668447 100644 --- a/lib/src/indexer.dart +++ b/lib/src/indexer.dart @@ -31,7 +31,7 @@ Future indexPackage( } final metadata = Metadata( - projectRoot: 'file:/' + dirPath, + projectRoot: Uri.file(dirPath).toString(), textDocumentEncoding: TextEncoding.UTF8, toolInfo: ToolInfo( name: 'scip-dart', diff --git a/pubspec.lock b/pubspec.lock index ca9fe15..ecdf853 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -21,7 +21,7 @@ packages: name: args url: "https://pub.dartlang.org" source: hosted - version: "2.4.2" + version: "2.4.1" async: dependency: transitive description: @@ -175,7 +175,7 @@ packages: name: glob url: "https://pub.dartlang.org" source: hosted - version: "2.1.2" + version: "2.1.1" graphs: dependency: transitive description: