-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow recent created files to be imported #12
Comments
I'm seeing same issue, and when I checked this in VSCode it works fine. |
Not sure if it is the same issue but in the past I have investigated similar issue. It was caused by the fact that emacs creates files in memory while vscode touches them on the disk. Can you try |
It seems that auto import is not working even with file that is create by |
I was able to confirm that the problem is on server. $ touch b.dart
$ echo 'class B { }' > b.dart Then in |
@yyoncho, so do you think I should open an issue on upstream? |
Here it is the spec:
The server should work without depending on the file present on the disc or not. |
It makes totally sense, a weird behavior too, is that evenly saving the buffer before or after creating the B class, it does not work |
This might be the same issue shown here: Dart-Code/Dart-Code#2286 (comment) Which should be fixed by: |
Thanks, @DanTup, I'll try to reproduce the issue with the fix... |
I could confirm that this is fixed on the latest SDK: http://gsdview.appspot.com/dart-archive/channels/be/raw/latest/sdk/ |
Describe the bug
when using
lsp-mode
withdart-mode
, after I create a new dart file, when I try to use it, it just don't show an option onlsp-ui
for the auto import.Sometimes if I run
lsp-restart-workspace
thenlsp
again, or I kill the buffer, the option to import shows off.To Reproduce
Example:
I create a file
b.dart
:then on an existent file
a.dart
,lsp-ui
doesn't recognize the class to import:the only options are:
![image](https://user-images.githubusercontent.com/7820865/78319152-ee9d5f80-753c-11ea-95ee-379a20128a6f.png)
Expected behavior
Like
lsp-java
I expect it to recognize the new file/class and allows me to import it.Which Language Server did you use
lsp-dart
OS
Which os do you use?
NixOS 20.03
Error callstack
The text was updated successfully, but these errors were encountered: