Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

msaraiva
Copy link
Collaborator

Properly handle callback suggestions (with or without def/defmacro before the cursor).

Requires elixir-lsp/elixir_sense#99, otherwise, suggestions will not appear after typing "d", "de" or "def".

@msaraiva msaraiva changed the title Property handle callback suggestion Properly handle callback suggestion May 26, 2020
@axelson
Copy link
Member

axelson commented May 28, 2020

Is it possible to add a test for this?

@msaraiva
Copy link
Collaborator Author

msaraiva commented May 28, 2020

I'll try. Maybe I can push the test in a week or two when dialyzer finishes "Building core Dialyzer Elixir PLT" :)

]
})
}),
300
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without that, I get timeouts all the time.

@msaraiva
Copy link
Collaborator Author

@axelson done. Testing elixir-ls has been a poor dev experience for me. Lots of timeouts, crashes and some times it just gets stuck and I need to run it again until all tests pass. It might be related to my environment but anyway, I'll probably start running only the tests directly related to the changes. If something goes wrong in the CI server, I'll tackle it later.

@msaraiva
Copy link
Collaborator Author

Not sure why it breaks in the CI server. Locally, a get all green:

image

As I told you, I have a very bad dev experience running the tests. Some tests run fine on my machine but not on the CI server, other tests run on the CI server but not on my machine :(

@axelson
Copy link
Member

axelson commented May 29, 2020

@axelson done. Testing elixir-ls has been a poor dev experience for me. Lots of timeouts, crashes and some times it just gets stuck and I need to run it again until all tests pass. It might be related to my environment but anyway, I'll probably start running only the tests directly related to the changes. If something goes wrong in the CI server, I'll tackle it later.

Thanks for adding some tests! I am totally with you on that the current state of the test suite is quite poor. Unfortunately I too get test failures locally that I haven't been able to track down, and the tests are quite noisy (lots of output to stdout). Some of the tests are a bit flaky on CI as well. Although I did just submit #270 which cleans up the test output quite a bit.

That particular test looks to be failing because this PR doesn't actually update elixir_sense to get elixir-lsp/elixir_sense#99

I have some changes locally that I'll push up to this branch that will make the tests not depend on the standard library and update elixir_sense.

@msaraiva
Copy link
Collaborator Author

Fantastic! You're my hero :)

Feel free to merge it whenever you're done with your changes.

Cheers.

@axelson
Copy link
Member

axelson commented May 30, 2020

Haha, thanks! I must say that it is nice to now have the test suite more under control. With #270 and #271 the test suite is completely "clean" and works reliably locally for me 🎊

@axelson axelson merged commit 3b5a43c into elixir-lsp:master May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants