Skip to content

Ignite --Version fails to work #8

@munsterlander

Description

@munsterlander

Installed per the instructions:

flutter pub global activate ignite_cli
Resolving dependencies...
+ args 2.3.1
+ charcode 1.3.1
+ collection 1.16.0
+ ignite_cli 0.4.0
+ io 1.0.3
+ logging 1.0.2
+ meta 1.8.0
+ path 1.8.2
+ process_run 0.12.3+2
+ prompts 2.0.0
+ pub_semver 2.1.1
+ source_span 1.9.1
+ string_scanner 1.1.1
+ synchronized 3.0.0+2
+ term_glyph 1.2.1
+ yaml 3.1.1
Building package executables...
Built ignite_cli:ignite.
Installed executable ignite.
Activated ignite_cli 0.4.0.

Running ignite --version as per the pub.dev instructions throws:

ignite --version
$ ignite --version:
Unhandled exception:
FileSystemException: Cannot open file, path = 'C:\flutter\flutter\.pub-cache\global_packages\ignite_cli\bin\..\pubspec.yaml' (OS Error: The system cannot find the file specified.
, errno = 2)
#0      _File.open.<anonymous closure> (dart:io/file_impl.dart:356:9)
<asynchronous suspension>
#1      getVersionFromPubspec (package:ignite_cli/commands/version_command.dart:19:25)
<asynchronous suspension>
#2      versionCommand (package:ignite_cli/commands/version_command.dart:10:9)
<asynchronous suspension>
#3      mainCommand (package:ignite_cli/main.dart:59:5)
<asynchronous suspension>
No active package ignite_cli.

Yet ignite create works fine.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions