Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Fix record missing key's error#174

Merged
scottming merged 2 commits into
lexical-lsp:mainfrom
scottming:fix-record-missing-keys-error
May 22, 2023
Merged

Fix record missing key's error#174
scottming merged 2 commits into
lexical-lsp:mainfrom
scottming:fix-record-missing-keys-error

Conversation

@scottming

@scottming scottming commented May 21, 2023

Copy link
Copy Markdown
Collaborator
exception #=> %ArgumentError{message: "record :user does not have the key: :email"}

[test/lexical/remote_control/build/error_test.exs:436: Lexical.RemoteControl.Build.ErrorTest."test error_to_
diagnostic/3 handles record missing keys error"/1]
stack #=> [
  {Record, :create, 4, [file: 'lib/record.ex', line: 423]},
  {Bar, :user, 1, [file: 'expanding macro']},
  {Bar, :bar, 0, [file: 'nofile', line: 7]}
]

preview

image

@scottming scottming requested a review from scohen May 21, 2023 08:14
Comment thread apps/remote_control/lib/lexical/remote_control/build/error.ex
@scottming scottming merged commit b000b84 into lexical-lsp:main May 22, 2023
scottming added a commit to scottming/lexical that referenced this pull request May 23, 2023
* Fix record missing key's error
* Remove maybe
@scottming scottming deleted the fix-record-missing-keys-error branch April 6, 2024 01:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants