Code Monkey home page Code Monkey logo

Comments (9)

MonsieurMan avatar MonsieurMan commented on August 28, 2024 1

I got this when it began doing the same thing :

Illegal value forline: Error: Illegal value for lineat t._lineAt (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:229497) at Object.lineAt (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:228287) at TagManager.getNewWord (C:\Users\Codin\.vscode\extensions\formulahendry.auto-rename-tag-0.0.11\out\src\tagManager.js:88:33) at TagManager.updatePairedTag (C:\Users\Codin\.vscode\extensions\formulahendry.auto-rename-tag-0.0.11\out\src\tagManager.js:81:27) at vscode.workspace.onDidChangeTextDocument.event (C:\Users\Codin\.vscode\extensions\formulahendry.auto-rename-tag-0.0.11\out\src\tagManager.js:13:18) at e.invoke (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:30930) at e.fire (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:34737) at t.$acceptModelChanged (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:298227) at t.e.handle (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:266430) at s (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:154933)

from vscode-auto-rename-tag.

formulahendry avatar formulahendry commented on August 28, 2024

I could not repro it. Are you using latest version?
rename

from vscode-auto-rename-tag.

tomchovanec avatar tomchovanec commented on August 28, 2024

from vscode-auto-rename-tag.

Romane-T avatar Romane-T commented on August 28, 2024

Up till now, has been working perfectly. Then, 2 days ago, it started doing as described here (this thread) and as in thread #20 . Today, non-functional at all.

Same steps to reproduce as report from @tomchovanec above.

Have tried a number of times by closing then reopening Code, which in the past has fixed problems with extensions not working. This "fix" now (today) does not work for this extension, though it did when the issue started about two days ago. Tried a reboot, same failure.

Latest version of Code. Latest version of Extension. Operating system fully up to date (Linux, Debian Testing, XFCE desktop)

Have noticed that where previously both starting and ending tag were selected on the double-click of the opening tag, now only the starting tag is selected.

Anything else that can look at that may help?

from vscode-auto-rename-tag.

formulahendry avatar formulahendry commented on August 28, 2024

Could you go to Help -> Toggle Developer Tools, and see if there is any error message in Console?

image

from vscode-auto-rename-tag.

Romane-T avatar Romane-T commented on August 28, 2024

from vscode-auto-rename-tag.

Romane-T avatar Romane-T commented on August 28, 2024

from vscode-auto-rename-tag.

alextegelid avatar alextegelid commented on August 28, 2024

For me it seems Auto Rename Tag correctly renames the div tag to an a (as in the first letter of article) then switches over to renaming a matching a tag not the initial div tag I started renaming. What's funny is that if the extension is checking for a new matching tag for each keystroke the matching a tag should be the one that was just created by typing the first a.

Perhaps a solution to this could be to not search for a new matching tag until the cursor is repositioned with either a mouse click or pressing the arrow keys etc.

I'm attaching the highly simplified WordPress template markup below as well as a demo video.

<div class="post-entry">

	<a href="#">
		<div class="post-thumbnail">
			<img src="" alt="">
		</div>
	</a>

	<h1 class="post-title"><?php the_title(); ?></h1>

	<a href="<?php the_permalink(); ?>">
		Lorem
	</a>

</div>

screen recording 2018-03-13 at 02 40 em

from vscode-auto-rename-tag.

capaj avatar capaj commented on August 28, 2024

I have the same error as @MonsieurMan

  ERR Illegal value for `line`: Error: Illegal value for `line`
    at t._lineAt (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:377:34)
    at Object.lineAt (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:375:860)
    at TagManager.getNewWord (/home/capaj/.vscode/extensions/formulahendry.auto-rename-tag-0.0.15/out/src/tagManager.js:97:33)
    at TagManager.updatePairedTag (/home/capaj/.vscode/extensions/formulahendry.auto-rename-tag-0.0.15/out/src/tagManager.js:90:27)
    at __dirname.run.vscode.workspace.onDidChangeTextDocument.event (/home/capaj/.vscode/extensions/formulahendry.auto-rename-tag-0.0.15/out/src/tagManager.js:14:18)
    at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:133:218)
    at e.$acceptModelChanged (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:538:1008)
    at t._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:658:837)
    at t._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:658:509)
    at t._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:657:126)
    at t._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:656:59)
    at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:653:895
    at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:130:793
    at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:133:218)
    at a (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:186:147)
    at Socket.n._socketDataListener (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:186:368)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)

from vscode-auto-rename-tag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.