Giter VIP home page Giter VIP logo

Comments (13)

iRyusa avatar iRyusa commented on September 26, 2024

You're not on this version, it only happen's when using Attila's original version

from vscode-mjml.

tbunique avatar tbunique commented on September 26, 2024

I uninstalled and reinstalled this specific version of MJML VSCode extension several times just to be sure and I still get this error message.
image

from vscode-mjml.

Knappster avatar Knappster commented on September 26, 2024

Sadly I'm running into the same issue. Double checked I'm using the right extension.
MJML couldn't build the proper version of PhantomJS. Restart VSCode in order to try it again.

from vscode-mjml.

sk-gara avatar sk-gara commented on September 26, 2024

Same here. Can we reopen this issue?

from vscode-mjml.

iRyusa avatar iRyusa commented on September 26, 2024

What OS are you running ? Can you do some preview ?

from vscode-mjml.

sk-gara avatar sk-gara commented on September 26, 2024

Hi!
Windows 10 and Debian 12.
What do you mean by doing some preview?

from vscode-mjml.

iRyusa avatar iRyusa commented on September 26, 2024

from vscode-mjml.

sk-gara avatar sk-gara commented on September 26, 2024

Ah! :)
In the preview pane appears the message "Active editor doesn't show a MJML document.", while vscode notifies:
"MJML needs to be rebuilt for your current platform. Please wait for the installation to finish..."

This fails with "MJML couldn't build the proper version of PhantomJS. Restart VSCode in order to try it again."

from vscode-mjml.

iRyusa avatar iRyusa commented on September 26, 2024

from vscode-mjml.

sk-gara avatar sk-gara commented on September 26, 2024

No problem :) But yeah, I'm testing on the demo mjml taken from the online editor.

from vscode-mjml.

sk-gara avatar sk-gara commented on September 26, 2024

Hey! I just had a moment to think about this issue and found something. It works when the source is an actual file.
I only opened a new tab and set the language to mjml before. I wasn't aware that this is how you're supposed to use it. Maybe it should say so explicitly in the description?
I imagine this restriction comes with the way the processor works?

from vscode-mjml.

iRyusa avatar iRyusa commented on September 26, 2024

I think we can do it for unsaved file but I guess it would mean to do some stuff to handle relative path (img, and so on...)

from vscode-mjml.

sk-gara avatar sk-gara commented on September 26, 2024

I'm okay with working with files for now. I just think there should be a line somewhere in the README.md to make it clear.
A fileless preview and live editing would be nice of course. Maybe set a working directory in the settings where relative paths can be set for assets.

from vscode-mjml.

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.