Comments (9)
A new version of the package has been published: https://atom.io/packages/jsdoc-preview. Let me know if this resolution satisfies this issue.
from jsdoc-preview.
Hey there,
I'll try to reproduce later today, thanks.
from jsdoc-preview.
@prayaggandhi1080, I've done a quick repro on my machine and it looks like all is working well. This may be an environment issue. It looks like your using a windows machine. Can you please provide me with the version of windows you're using, a sample of the JSDocs you are trying to generate, and (if any) any errors thrown in the atom console? To see the atom console, go to View -> Developer -> Toggle Developer Tools in your atom menus.
from jsdoc-preview.
This appears to be caused by the rather rudimentary way I've been storing generated JSDoc files. Linux/OSX machines do not seem to care when I write to the root folder of the package, but windows does. I will have to sort out a better way of storing those temp files across the board.
https://github.com/benderTheCrime/jsdoc-preview/blob/develop/lib/renderer.coffee#L11
from jsdoc-preview.
from jsdoc-preview.
@benderTheCrime thanks for fixing this quickly. Sorry wasn't able to reply to your initial comments as I was out of country. I appreciate your timely attention to the issue. I confirmed that it is fixed. Only thing is that I wasn't able to do to straight upgrade. I had to uninstall the previous version and reinstall it again.
from jsdoc-preview.
I'm getting this message now... (First time install) :-(
from jsdoc-preview.
I'm on the Mac--here's the console error I get...
renderer.coffee? [sm]:35 Uncaught (in promise) TypeError: Cannot read property 'querySelectorAll' of null
at Object.toDOMFragment (renderer.coffee? [sm]:17)
at _Class.module.exports._Class.renderJSDocText (view.coffee? [sm]:62)
at view.coffee? [sm]:46
at <anonymous>
toDOMFragment @ renderer.coffee? [sm]:35
module.exports._Class.renderJSDocText @ view.coffee? [sm]:118
(anonymous) @ view.coffee? [sm]:107
Promise resolved (async)
module.exports._Class.renderJSDoc @ view.coffee? [sm]:107
(anonymous) @ view.coffee? [sm]:53
module.exports._Class.resolveEditor @ view.coffee? [sm]:58
module.exports._Class.attached @ view.coffee? [sm]:22
View.element.attached @ /Users/brett/.atom/packages/atom-webbrowser/node_modules/space-pen/lib/space-pen.js:164
CustomElementPrototype.attachedCallback @ /Users/brett/.atom/packages/atom-webbrowser/node_modules/space-pen/lib/space-pen.js:51
activeItemChanged @ /Applications/Atom.app/Contents/Resources/app.asar/src/pane-element.js:152
module.exports.Emitter.simpleDispatch @ commitCommentContainer_item.graphql.js:112
module.exports.Emitter.emit @ commitCommentContainer_item.graphql.js:112
setActiveItem @ commitCommentContainer_item.graphql.js:112
addItem @ commitCommentContainer_item.graphql.js:112
activateItem @ commitCommentContainer_item.graphql.js:112
open @ commitCommentContainer_item.graphql.js:112
async function (async)
open @ commitCommentContainer_item.graphql.js:112
addPreviewForEditor @ index.coffee? [sm]:72
toggle @ index.coffee? [sm]:52
atom.commands.add.jsdoc-preview:toggle @ index.coffee? [sm]:17
handleCommandEvent @ commitCommentContainer_item.graphql.js:112
dispatch @ commitCommentContainer_item.graphql.js:112
dispatchApplicationMenuCommand @ commitCommentContainer_item.graphql.js:112
outerCallback @ commitCommentContainer_item.graphql.js:112
emitThree @ events.js:136
emit @ events.js:217
Actually, this hanging "Loading JSDoc..." was only after I addressed an error complaining that an index.html
file didn't exist in /var/folders/...
(I created an empty file and got the above message)
from jsdoc-preview.
Well it turns out that adding a <nav>
element to the index.html file makes the error go away, but now I see "No JSDocs to Preview", so apparently it is not saving some Markdown-to-HTML content to the /var/folders/...index.html
path.
from jsdoc-preview.
Related Issues (6)
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 jsdoc-preview.