Skip to content

[BUG] Using "customWordPath" options not working #24

@JeffTeter

Description

@JeffTeter

Describe the bug
I have a file with custom words that in previous iterations worked properly. The following config options are set:

"mvon.customWordPath": "C:\users\jteter\documents\VSCode\WNBVariables.txt",
"mvon.customWordColor": "RED"

The words are not being colored and the hover function does not work. I am seeing the following messages in the output console:

[Error - 5:24:50 PM] Request textDocument/hover failed.
Message: Request textDocument/hover failed with message: Cannot read property 'substr' of undefined
Code: -32603
[Error - 5:24:51 PM] Request textDocument/hover failed.
Message: Request textDocument/hover failed with message: Cannot read property 'substr' of undefined
Code: -32603

To Reproduce
Steps to reproduce the behavior:

  1. Create a file on your PC called "WORDS.TXT". The contents of the file will be word, description pairs such as "CUST.NAME":"Customer name" with one pair on each line.
  2. In the workspace configuration, add a line for the file giving it the full path and file name:
    "mvon.customWordPath": "C:\users\jteter\documents\VSCode\WORDS.TXT"
  3. Assign a color in the workspace configuration:
    "mvon.customWordColor": "RED"
  4. Save the configuration and start the workspace session.
  5. Create a new file and enter one or more of the words you have put into the WORDS.TXT file.

Expected behavior
The words entered that are in the WORDS.TXT file should be colored and when hovering over them should display the description provided in the file.

Versions of applicable software
Detail on the versions of any and all pieces of software that are part of your environment, such as:

  • Windows 10
  • Linux 6, UV 11.3.1
  • VSCode with mvExtensions.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions