Comments (9)
I closed some tabs and opened some other tabs, and it started working again. I'll leave the issue open in case you want to debug further...
from rewrap.
Thanks for reporting. Unfortunately I can't really tell anything from that; it's all just vscode's own code. I'll leave this open for a while in case you or anyone else has the same problem and we can work on reproducing it, and I'll add some more logging code into the next version to try to diagnose any errors that occur.
from rewrap.
Hi @stkb, I think I'm running into this issue. I'm on VS Code 1.6.1 (rolled back from 1.7), macOS Sierra 10.12.1, and rewrap 0.6.2
Here's the log:
[Extension Host] TypeError: Cannot read property '0' of null
at Object.textAfterPrefix (/Users/nico/.vscode/extensions/stkb.rewrap-0.6.2/out/src/Strings.js:28:51)
at /Users/nico/.vscode/extensions/stkb.rewrap-0.6.2/out/src/Section.js:35:33
at Array.map (native)
at new Section (/Users/nico/.vscode/extensions/stkb.rewrap-0.6.2/out/src/Section.js:32:18)
at BasicLanguage.findSections (/Users/nico/.vscode/extensions/stkb.rewrap-0.6.2/out/src/BasicLanguage.js:35:38)
at wrapSomething (/Users/nico/.vscode/extensions/stkb.rewrap-0.6.2/out/src/Main.js:33:28)
at /Users/nico/.vscode/extensions/stkb.rewrap-0.6.2/out/src/Main.js:15:20
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:13:23492
at e.edit (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:12:16971)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:13:23458
I can only reproduce it in one file right now, a compiled version of https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/goToDeclaration/common/goToDeclaration.ts.
Thanks for the great plugin.
from rewrap.
@nicot Thanks, that helps a lot, but I'm having trouble reproducing. Could you upload the exact file that it errors on (you can attach a file to a comment here), and tell me which comment in it you're trying to wrap?
from rewrap.
Here's a gist with the failing code/line: https://gist.github.com/nicot/aed1b230392ec2a3bcdc7b2ac970f653#file-gotodeclaration-js-L321. It blows up on every line I've tried in that file though.
from rewrap.
Perfect! thanks. In that file, it's the empty //
on line 54 with nothing after it, that's causing the error. I'll get on to fixing it.
from rewrap.
Have just published v0.6.3 which hopefully fixes the issue (have tried on vscode 1.6.1 and 1.7.1). Could you update and confirm?
from rewrap.
Works perfectly now! Thanks a bunch for quick the fix and the great plugin.
from rewrap.
Great! Thanks for the help
from rewrap.
Related Issues (20)
- Wrapping in Nix is broken in a remote SSH host HOT 3
- Zig doc comments `///` are mangled
- Markdown tables are reformatted wrongly with `rewrap.onSave: true`
- Release 17.7 Pre-Release as main published version? HOT 3
- Unmaintained?
- Problem with empheq in in latex (using latex-workshop extension)
- Add Luau compatibility
- Git Commit Message Wraps lines at 50 characters instead of 72 HOT 5
- Unavailable on arm64
- `Typst` support
- GitHub action for building and testing no longer works
- Valid C++ comment delimiter not recognized prevents rewrap
- Won't wrap email text pasted in a Quarto listing (code fence) HOT 1
- Won't wrap Rust comments
- Standalone tool/binary? HOT 1
- Rewrap replaces spaces with null characters inside Javadoc tags in the presence of HTML tags in some situations
- Add support for Doxygen `///` comments in ST files
- Handle Markdown in comments
- not support Chinese
- `command 'rewrap.rewrapComment' not found` when working with Solidity
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rewrap.