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

Running the contributed command: 'highlightwords.addHighlight' failed. #24

Open
isaleo opened this issue Jan 4, 2021 · 5 comments
Open

Comments

@isaleo
Copy link

isaleo commented Jan 4, 2021

what's the problem?

@rsbondi
Copy link
Owner

rsbondi commented Jan 5, 2021

I don't understand the question, is the title an error message you recieved? What are the steps to reproduce?

@JRolly
Copy link

JRolly commented Jan 6, 2021

I also met this problem when I want to highlight word in a large file.

@cygarm
Copy link

cygarm commented Jan 19, 2021

Command 'Highlight Toggle Sidebar' resulted in an error (Running the contributed command: 'highlightwords.toggleSidebar' failed.)

Command 'Highlight Toggle Current' resulted in an error (Running the contributed command: 'highlightwords.addHighlight' failed.)


Also met this problem while running ''Highlight Toggle Current'.
'Set Highlight Mode' command running fine.

vscode version info:
Version: 1.52.1
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-16T16:30:02.420Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 19.6.0

QQ图片20210119164752

@rsbondi
Copy link
Owner

rsbondi commented Jan 19, 2021

I can not recreate these issues, if someone could please provide the steps to recreate, thanks.

@cygarm
Copy link

cygarm commented Jan 21, 2021

I follow the Microsoft VSCode Extension dev guide, and setup a dev environment with your source code.
I got these Errors while debugging:

node_modules/@types/node/index.d.ts(66,11): error TS2300: Duplicate identifier 'IteratorResult'.
src/tree.ts(51,6): error TS2611: 'tooltip' is defined as a property in class 'TreeItem', but is overridden here in 'HighlightNode' as an accessor.
../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts(41,6): error TS2300: Duplicate identifier 'IteratorResult'.


After doing these changes, i can run the extension well:

  1. Comment the 'tooltip()' function, for skip 'tooltip' funciton error
  2. Add '"skipLibCheck": true' into "compilerOptions" of 'tsconfig.json' file, for fix Duplicate identifier 'IteratorResult' error

I'm not familiar with typescript, hope these info can be helpful, thanks.

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

No branches or pull requests

4 participants