Skip to content

lsp-dart not work with a new created dart console-full project.(non flutter) #150

@zw963

Description

@zw963

Describe the bug
i create a new project use following command:

$: dart create test_dart -t console-full

when open this folder, and specify the correct lsp root, lsp server start failed.

Following is log:

lsp-log

Command "/home/zw963/flutter/bin/dart /home/zw963/flutter/bin/snapshots/analysis_server.dart.snapshot --lsp --client-id emacs.lsp-dart --client-version 1.21.0" is present on the path.
Command "/home/zw963/flutter/bin/dart /home/zw963/flutter/bin/snapshots/analysis_server.dart.snapshot --lsp --client-id emacs.lsp-dart --client-version 1.21.0" is present on the path.
Found the following clients for /home/zw963/Dart/test_dart/lib/test_dart.dart: (server-id dart_analysis_server, priority 1)
The following clients were selected based on priority: (server-id dart_analysis_server, priority 1)

dart_analysis_server::stderr

Could not find a command named "/home/zw963/flutter/bin/snapshots/analysis_server.dart.snapshot".

Usage: dart <command|dart-file> [arguments]

Global options:
-h, --help                 Print this usage information.
-v, --verbose              Show additional command output.
    --version              Print the Dart SDK version.
    --enable-analytics     Enable analytics.
    --disable-analytics    Disable analytics.

Available commands:
  analyze    Analyze Dart code in a directory.
  compile    Compile Dart to various formats.
  create     Create a new Dart project.
  devtools   Open DevTools (optionally connecting to an existing application).
  doc        Generate HTML API documentation from Dart documentation comments.
  fix        Apply automated fixes to Dart source code.
  format     Idiomatically format Dart source code.
  migrate    Perform null safety migration on a project.
  pub        Work with packages.
  run        Run a Dart program.
  test       Run tests for a project.

Run "dart help <command>" for more information about a command.
See https://dart.dev/tools/dart-tool for detailed documentation.

Process dart_analysis_server stderr finished
[LSP Dart] 1.21.0 at 2022.03.11 @ Emacs 28.0.91
[Dart SDK] Dart SDK version: 2.16.1 (stable) (Tue Feb 8 12:02:33 2022 +0100) on "linux_x64"

[Flutter SDK] /home/zw963/flutter/
[Flutter project] false
[Project entrypoint] Not found
[LSP Dart] 1.21.0 at 2022.03.11 @ Emacs 28.0.91
[Dart SDK] Dart SDK version: 2.16.1 (stable) (Tue Feb 8 12:02:33 2022 +0100) on "linux_x64"

[Flutter SDK] /home/zw963/flutter/
[Flutter project] false

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions