Skip to content
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

[LSP] Fix initialize on OTP 23.0/23.1 #1449

Merged
merged 2 commits into from
Dec 21, 2023

Conversation

danielfinke
Copy link
Contributor

Description

els_uri:path/2 was calling uri_string:percent_decode/1, which is unavailable until OTP 23.2
(https://www.erlang.org/doc/man/uri_string#percent_decode-1)

`els_uri:path/2` was calling `uri_string:percent_decode/1`, which is
unavailable until OTP 23.2
(https://www.erlang.org/doc/man/uri_string#percent_decode-1)
@robertoaloi
Copy link
Member

Hi @danielfinke and thanks for this. It seems the OTP 23 CI still breaks on a XRef error.

Suppress undefined and deprecated function warnings for calls in
`els_uri:percent_decode/1`
@danielfinke
Copy link
Contributor Author

@robertoaloi I think I have addressed the xref error (as well as a Dialyzer warning when on OTP 23.0/23.1)

@plux plux merged commit 8e25c99 into erlang-ls:main Dec 21, 2023
5 checks passed
@plux
Copy link
Contributor

plux commented Dec 21, 2023

Thanks for your contribution @danielfinke !

@danielfinke danielfinke deleted the fix-initialize-on-otp-23.0-23.1 branch December 21, 2023 03:08
shuying2244 pushed a commit to shuying2244/erlang_ls that referenced this pull request Dec 30, 2023
* [LSP] Fix initialize on OTP 23.0/23.1

`els_uri:path/2` was calling `uri_string:percent_decode/1`, which is
unavailable until OTP 23.2
(https://www.erlang.org/doc/man/uri_string#percent_decode-1)

* [LSP] Add Dialyzer/xref ignores

Suppress undefined and deprecated function warnings for calls in
`els_uri:percent_decode/1`
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.

3 participants