Skip to content

LSP Known Issues #2286

Closed
Closed

Description

@DanTup

When running in LSP mode, the following things are known not to work (or function differently to non-LSP):

Activity

  1. added this to the On Deck milestone on Mar 4, 2020
  2. ericdallo commented on Apr 24, 2020

    @ericdallo
    • For some reason the widget guides feature is not available.
    • Tests codeLens(Run|Debug) is not available.

    @DanTup I'm implementing the Emacs support for dart/flutter on lsp-dart so I'm checking how you did it on this extension and notice the problems above :)

  3. DanTup commented on May 4, 2020

    @DanTup
    MemberAuthor

    @ericdallo thanks! I've added UI Guides to the list above. CodeLens is supposed to work, though I can see it failing so I've opened #2421 - probably will be an easy fix. Thanks!

  4. ericdallo commented on May 4, 2020

    @ericdallo

    I implemented the both features on lsp-dart, so I think it's easy to fix them on the vscode extension :)

  5. DanTup commented on May 5, 2020

    @DanTup
    MemberAuthor

    @ericdallo actually, the reason my code lens didn't work is that I was using an older Dart SDK that wasn't sending the outline notifications. On the most recent nightly the code lens seem to work fine. Do you know what version you were using when you saw it fail?

  6. ericdallo commented on May 5, 2020

    @ericdallo

    Yeah, me too 😅 I was using dart dev 2.8.0-10

  7. DanTup commented on May 5, 2020

    @DanTup
    MemberAuthor

    Ok great, working as expected then :-) I've fixed up Flutter UI Guides and Gutter icons too.

  8. ericdallo commented on May 5, 2020

    @ericdallo

    Nice! just a thing to keep in mind, If the next features could be implemented for LSP too, I could implement it on lsp-dart :)
    Thanks!

  9. DanTup commented on May 5, 2020

    @DanTup
    MemberAuthor

    @ericdallo do you mean specific features, or just in general? Any new features being implemented are very likely to be added to LSP too (some may even only be implemented in LSP) as I'd like to switch Dart-Code over to LSP by default (without losing any significant functionality).

    Some of the things mentioned above (like dart.analysisExcludedFolders and dart.doNotFormat) are kinda hacks though, so they might not be carried over (or may be reworked if they are).

  10. ericdallo commented on May 5, 2020

    @ericdallo

    Nice, good to know!
    That's what I wanted to hear, I was afraid that DAS was the focus for new features, not LSP

  11. 7 remaining items

  12. Kavantix commented on Jul 15, 2020

    @Kavantix

    I enabled the log file but it stays empty (other than the versions I am using)
    Here is a gif showing the issue:
    ezgif com-video-to-gif

  13. DanTup commented on Jul 15, 2020

    @DanTup
    MemberAuthor

    @Kavantix I reproduced this with Dart 2.8.2 but couldn't reproduce on the current code to try and debug. Could you temporarily try with the latest nightly SDK from http://gsdview.appspot.com/dart-archive/channels/be/raw/latest/sdk/ to see if it still happens for you there?

    I enabled the log file but it stays empty (other than the versions I am using)

    That doesn't sound right - though VS Code sometimes doesn't update files that are modified correctly unless you close/re-open them - could it be that? Also - can you check you used dart.analyzerLogFile and not dart.analyzerInstrumentationLogFile? Thanks!

  14. RaviKavaiya commented on Jul 18, 2020

    @RaviKavaiya

    Thanks! Got a fix for this at https://dart-review.googlesource.com/c/sdk/+/154008.

    @DanTup I am using latest beta version of DartCode in LSP mode. How can I set custom line length?

  15. Kavantix commented on Jul 18, 2020

    @Kavantix

    @DanTup Also happens with the last version:
    image

    It did however now write some info to the log file
    dartlog_import_issue.txt

    Btw I was checking the log file using tail -f from the command line ;)

  16. DanTup commented on Jul 18, 2020

    @DanTup
    MemberAuthor

    @RaviKavaiya

    @DanTup I am using latest beta version of DartCode in LSP mode. How can I set custom line length?

    This fix is in the server, so you need an updated Dart SDK (such as a nightly from http://gsdview.appspot.com/dart-archive/channels/be/raw/latest/sdk/). It should then use the same dart.lineLength setting that the non-LSP implementation uses.

    @Kavantix

    @DanTup Also happens with the last version:

    Thanks - I also managed to hit this again yesterday in the nightly, so it is still there. I'll do some more digging, thanks!

  17. RaviKavaiya commented on Jul 18, 2020

    @RaviKavaiya

    @DanTup Sorry, I don't know whether I should ask that here. But, Flutter doesn't allow custom Dart SDKs right? If yes, then I would wait for it. (BTW, I am on Flutter Dev channel)

  18. DanTup commented on Jul 18, 2020

    @DanTup
    MemberAuthor

    @RaviKavaiya correct - for Flutter you need to use the SDK it provides. When you run flutter --version it will show the version of the SDK (eg. Dart 2.9.0 (build 2.9.0-21.0.dev 89fe12b12a)) so once that's higher than the version that includes this change it should work.

  19. DanTup commented on Jul 20, 2020

    @DanTup
    MemberAuthor

    @Kavantix I got to the bottom of the issue - I've got a fix out for review at https://dart-review.googlesource.com/c/sdk/+/154960/. Thanks!

  20. Kavantix commented on Jul 21, 2020

    @Kavantix

    @DanTup I can confirm that the fix works, Thanks a lot this will save me quite some headaches using the LSP in vim :)

  21. DanTup commented on Jul 21, 2020

    @DanTup
    MemberAuthor

    @Kavantix excellent, thanks for confirming!

  22. removed this from the On Deck milestone on Nov 11, 2020
  23. DanTup commented on Nov 11, 2020

    @DanTup
    MemberAuthor

    Most of the issue here are resolved. There are a few outstanding which have their own issues (which I've linked in the description above), which I'm hoping to address fairly soon so that LSP can become the default.

    If you encounter any other issues not listed, please file new specific issues. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions