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

0.6.1 when use copy hot key. Automatically pops up the error log #134

Closed
Moerj opened this issue Apr 21, 2017 · 17 comments

Comments

Projects
None yet
6 participants
@Moerj
Copy link

commented Apr 21, 2017

qq20170421-174513

when i copy a object name in vue data. the error log will pops up
the vetur version 0.6.1

the previous version 0.6.0 is ok

@c01nd01r

This comment has been minimized.

Copy link

commented Apr 21, 2017

+1

My log
[0421/150539:ERROR:tcp_listen_socket.cc(76)] Could not bind socket to 127.0.0.1:6005
[0421/150539:ERROR:node_debugger.cc(86)] Cannot start debugger server
/Users/c01nd01r/.vscode/extensions/octref.vetur-0.6.1/client/server/node_modules/vetur-vls/lib/parser/htmlScanner.js:46
            this.len = source.length;
                             ^

TypeError: Cannot read property 'length' of undefined
at new MultiLineStream (/Users/c01nd01r/.vscode/extensions/octref.vetur-0.6.1/client/server/node_modules/vetur-vls/lib/parser/htmlScanner.js:46:30)
at Object.createScanner (/Users/c01nd01r/.vscode/extensions/octref.vetur-0.6.1/client/server/node_modules/vetur-vls/lib/parser/htmlScanner.js:188:22)
at Object.getDocumentRegions (/Users/c01nd01r/.vscode/extensions/octref.vetur-0.6.1/client/server/modes/embeddedSupport.js:9:35)
at /Users/c01nd01r/.vscode/extensions/octref.vetur-0.6.1/client/server/modes/languageModes.js:11:125
at Object.get (/Users/c01nd01r/.vscode/extensions/octref.vetur-0.6.1/client/server/languageModelCache.js:30:33)
at /Users/c01nd01r/.vscode/extensions/octref.vetur-0.6.1/client/server/modes/javascriptMode.js:14:43
at Object.get (/Users/c01nd01r/.vscode/extensions/octref.vetur-0.6.1/client/server/languageModelCache.js:30:33)
at Object.getScriptKind (/Users/c01nd01r/.vscode/extensions/octref.vetur-0.6.1/client/server/modes/javascriptMode.js:69:33)
at Object.getScriptKind (/Users/c01nd01r/.vscode/extensions/octref.vetur-0.6.1/client/server/node_modules/typescript/lib/typescript.js:70920:31)
at HostCache.createEntry (/Users/c01nd01r/.vscode/extensions/octref.vetur-0.6.1/client/server/node_modules/typescript/lib/typescript.js:84794:36)
[Info - 3:05:56 PM] Connection to server got closed. Server will restart.
[0421/150556:ERROR:tcp_listen_socket.cc(76)] Could not bind socket to 127.0.0.1:6005
[0421/150556:ERROR:node_debugger.cc(86)] Cannot start debugger server
[Error - 3:18:32 PM] Request textDocument/definition failed.
Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 3:18:32 PM] Request textDocument/definition failed.
Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
Code: -32603

@Moerj Moerj changed the title when use copy hot key. Automatically pops up the error log 0.6.1 when use copy hot key. Automatically pops up the error log Apr 21, 2017

@octref

This comment has been minimized.

Copy link
Member

commented Apr 21, 2017

Can't repro it. Can you two try to find a minimal repro case and paste the code here?

@Moerj

This comment has been minimized.

Copy link
Author

commented Apr 21, 2017

https://github.com/Moerj/GOPIGGY
this is my project. Hope it can help you. @octref

@bannermiao

This comment has been minimized.

Copy link

commented Apr 24, 2017

+1

@octref octref added the bug label Apr 25, 2017

@octref

This comment has been minimized.

Copy link
Member

commented Apr 25, 2017

I tried vetur with your project, still can't repro...
Does 0.6.2 have any effect with this bug?

@Moerj

This comment has been minimized.

Copy link
Author

commented Apr 25, 2017

qq20170425-224319 2x

And did not solve the problem😔 @octref

@Moerj

This comment has been minimized.

Copy link
Author

commented Apr 25, 2017

By the way. I use macOS and Chinese system language. Is it a system problem?
I just want the console not to pop up automatically.

@octref

This comment has been minimized.

@Moerj

This comment has been minimized.

Copy link
Author

commented Apr 25, 2017

ok i got it. thanks

@Moerj

This comment has been minimized.

Copy link
Author

commented Apr 25, 2017

You need to be replicated many times to reproduce the problem

@bannermiao

This comment has been minimized.

Copy link

commented Apr 26, 2017

I have the same problem
GIF:
GitHub Logo

@Moerj

This comment has been minimized.

Copy link
Author

commented Apr 27, 2017

0.6.3 also have this problem

@octref octref closed this in 2c12bb5 May 1, 2017

@octref

This comment has been minimized.

Copy link
Member

commented May 1, 2017

Fix wil be in 0.6.5.

@cubodehelio

This comment has been minimized.

Copy link

commented May 4, 2017

I'm experiencing the same issue when copy in 0.6.4. Here is the full output

[Error - 10:01:17 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
  Code: -32603 
[Error - 10:42:35 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
  Code: -32603 
/home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/node_modules/typescript/lib/typescript.js:84996
                throw new Error("Could not find file: '" + fileName + "'.");
                ^

Error: Could not find file: '/home/code/app/components/main-area/main-area.vue'.
    at getValidSourceFile (/home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/node_modules/typescript/lib/typescript.js:84996:23)
    at Object.getSyntacticDiagnostics (/home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/node_modules/typescript/lib/typescript.js:85204:52)
    at Object.doValidation (/home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/modes/javascriptMode.js:131:49)
    at /home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/htmlServerMain.js:142:43
    at Array.forEach (native)
    at validateTextDocument (/home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/htmlServerMain.js:140:59)
    at Timeout._onTimeout (/home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/htmlServerMain.js:134:9)
    at tryOnTimeout (timers.js:232:11)
    at Timer.listOnTimeout (timers.js:202:5)
[Info  - 10:46:45 AM] Connection to server got closed. Server will restart.
/home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/node_modules/typescript/lib/typescript.js:84996
                throw new Error("Could not find file: '" + fileName + "'.");
                ^

Error: Could not find file: '/home/code/app/components/examples/container.vue'.
    at getValidSourceFile (/home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/node_modules/typescript/lib/typescript.js:84996:23)
    at Object.getSyntacticDiagnostics (/home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/node_modules/typescript/lib/typescript.js:85204:52)
    at Object.doValidation (/home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/modes/javascriptMode.js:131:49)
    at /home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/htmlServerMain.js:142:43
    at Array.forEach (native)
    at validateTextDocument (/home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/htmlServerMain.js:140:59)
    at Timeout._onTimeout (/home/***/.vscode/extensions/octref.vetur-0.6.4/client/server/htmlServerMain.js:134:9)
    at tryOnTimeout (timers.js:232:11)
    at Timer.listOnTimeout (timers.js:202:5)
[Info  - 11:08:49 AM] Connection to server got closed. Server will restart.
[Error - 11:27:19 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
  Code: -32603 
[Error - 11:27:19 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
  Code: -32603 
[Error - 11:27:19 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
  Code: -32603 
[Error - 11:35:11 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
  Code: -32603 
[Error - 11:35:11 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
  Code: -32603 
[Error - 11:35:12 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
  Code: -32603 
[Error - 11:35:17 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
  Code: -32603 
[Error - 11:35:17 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
  Code: -32603 
[Error - 11:35:17 AM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
  Code: -32603 

@Moerj

This comment has been minimized.

Copy link
Author

commented May 5, 2017

@ @octref 你的0.6.5版本多久来啊

@octref

This comment has been minimized.

Copy link
Member

commented May 5, 2017

Published a few minutes ago.

@asphub

This comment has been minimized.

Copy link

commented Jun 5, 2017

Getting error on output window

[Error - 12:07:41 PM] Request textDocument/definition failed.
  Message: Request textDocument/definition failed with message: Cannot read property 'length' of undefined
  Code: -32603 
  • VSCode Version: Code 1.12.2 (19222cdc84ce72202478ba1cec5cb557b71163de, 2017-05-10T13:13:11.413Z)
  • OS Version: Darwin x64 15.4.0
  • Extensions:
Extension Author Version
minify HookyQR 0.3.0
html-css-class-completion Zignd 1.2.1
vscode-svgviewer cssho 1.4.1
githistory donjayamanne 0.2.0
Angular2 johnpapa 2.3.2
csharp ms-vscode 1.10.0
debugger-for-chrome msjsdiag 3.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.