Comments (3)
My bad,
I looked through the code and can see that the message which says MJML needs to be rebuilt for your current platform. Please wait for the installation to finish... is actually just installing phantom-js and once its done the following shows JML's been updated. Please restart VSCode in order to continue using MJML. - I/one would presume from them messages that its an update and is unrelated to screenshots when it all works (except screens) afterwards.
I restarted vs-code and it works fine after some initial boot time the screen size prompt pops up.
My suggestion would be to simply tell the user your installing phantom-js vs saying doing an update, then specifically tell them to restart to enable screenshot functionality, though as long as one actually reads the message and restarts It should be fine.
Though you could also probably make a method for the code in the constructor
subscriptions.push(
commands.registerCommand('mjml.screenshot', () => {
this.renderMJML(false)
}),
commands.registerCommand('mjml.multipleScreenshots', () => {
this.renderMJML(true)
}),
)
// passing subscriptions object to the rebuild method call
... and then call it on the successful install of phantom-js line 63, then it won't need the restart message, it would just work.
Did you know phantom-js is deprecated?
from vscode-mjml.
It's a fork of first "community" extension here so we've never really looked that part of the extension. PhantomJS is just archived not really deprecated, i'm not sure we really want to re-do that part just for this ?
from vscode-mjml.
np, sorry I just saw on npm that it says its deprecated https://www.npmjs.com/package/phantomjs-prebuilt
from vscode-mjml.
Related Issues (20)
- Associate .mjmlconfig as JSON language
- Differences from original vscode-mjml? HOT 1
- Previewing relative images HOT 1
- [Feature Request] Pre-processor support for MJML preview
- Format Document replaces raw <style> with <mj-style> HOT 2
- Commmand 'MJML: Template' resulted in an error (command 'mjml.template' not found)
- "MJML: Open Preview to the Side" not working HOT 1
- When using a header include to define <mjml> preview window states "Active editor doesn't show a MJML document" HOT 2
- HTML export/Copy Encoding problem HOT 2
- Custom components aren't being registered by the extension
- Uncertainty of the VSCode plugin HOT 6
- Extension causes high cpu load
- <mj-style> formatting goes crazy when the css contains '<' or '>' HOT 1
- MJML needs to rebuilt for your current platform HOT 1
- MJML couldn't build the proper version of PhantomJS HOT 13
- Templating compatibility HOT 1
- About section in this repo still points to old extension
- No support to preview mjml files generated by other tools HOT 3
- Option to insert external css file or code
- Multiple Security Vulnerabilities Found in Repository
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 vscode-mjml.