Eric Dallo

Results 685 comments of Eric Dallo

Hum, looks a edge case indeed, maybe we should do what @DanTup did [here](https://github.com/Dart-Code/Dart-Code/issues/2886#issuecomment-711937241)? treat snap as a specific case

I see, thank you for the explanation @DanTup, I'll take a closer look on that change and try to reproduce the same behavior on lsp-dart side

@gerrywastaken we can take this same approach, checking if `$HOME/snap/flutter/common/flutter` is a valid file/folder in lsp-dart, right?

Hum, I don't see any issues with that approach, as the flutter/dark sdk are really on $HOME/snap/flutter/common/flutter, but I may be wrong

> But our following code get wrong place @zw963 I think lsp-dart is correct actually, there are 2 functions at lsp-dart, one called `lsp-dart-get-flutter-sdk-dir ` which should return the root...

@Walheimat `lsp-dart-run` uses `dap-mode` under the hood that as you can see [here](https://github.com/emacs-lsp/lsp-dart/blob/master/lsp-dart-dap.el#L158) get the dart sdk, so configuring it correctly it should work 🤔 Also, your workaround expect `flutter...

@Walheimat the `(lsp-dart-get-sdk-dir)` checks the current buffer to know if it's a flutter project, so running from a flutter project evals to something otherwise it tries other ways

Will try to repro and fix if any issues soon, thank you for the report

@zw963 couldn't repro creating a new project with the same flutter version, [flutter-sample](https://github.com/ericdallo/flutter_sample/tree/new-sample). lsp-dart starts properly to me on that repo, could you try as well?

oh, it seems lsp-dart it's considering the dart-sdk of yours as `"/home/zw963/flutter/bin/snapshots/analysis_server.dart.snapshot".`, which is wrong and should be `"/home/zw963/flutter/bin/cache/dart-sdk/snapshots/analysis_server.dart.snapshot".` Maybe some You can see how it says it's not a...