Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing PhantomJS on a Linux causes errors #2

Closed
manuth opened this issue Apr 13, 2017 · 2 comments
Closed

Executing PhantomJS on a Linux causes errors #2

manuth opened this issue Apr 13, 2017 · 2 comments
Assignees
Labels

Comments

@manuth
Copy link
Owner

manuth commented Apr 13, 2017

Converting MarkDown to any format but HTML causes following error:

Error: spawnSync /home/w/.vscode/extensions/manuth.markdown-converter-0.0.6/node_modules/phantomjs-prebuilt/lib/phantom\bin\phantomjs.exe ENOENT
Open FileClose
InfoSuccessfully wrote the HTML-file to "/home/w/wWorks/buresh_ru/zDev-ib-ru/infoPravo/Law_3-includs/README.html".
@vBuresh
Copy link

vBuresh commented Apr 13, 2017

Hi, Manuel

Very good start!

It seems that everything is working fine, only the error message is displayed.
The problem has appeared on Linux, Debian, Stretch

Regards,
Vladimir

@manuth
Copy link
Owner Author

manuth commented Apr 13, 2017

Hi Vladimir

I found the problem's source.
It's because PhantomJS inside my extension is built for Windows.
I'm just about to fix it by automatically building the propper version of PhantomJS when the extension's activated.

@manuth manuth closed this as completed Apr 13, 2017
manuth added a commit that referenced this issue Apr 13, 2017
This fixes issue #2
Sadly phantomjs-prebuilt isn't working on every platform out of the box.
For that reason MarkdownConverter now checks whether phantomjs is compiled for the correct os.
If not, phantomjs will be rebuilt.
manuth added a commit that referenced this issue Apr 13, 2017
Sadly the previous solution didn't work since the module doesn't contain the values of the rebuilt phantomjs-version.
For that reason people will have to restart before they can use MarkdownConverter after they rebuilt PhantomJS.
@manuth manuth self-assigned this Apr 13, 2017
@manuth manuth added the bug label Apr 26, 2017
manuth added a commit that referenced this issue Jan 15, 2019
This fixes issue #2
Sadly phantomjs-prebuilt isn't working on every platform out of the box.
For that reason MarkdownConverter now checks whether phantomjs is compiled for the correct os.
If not, phantomjs will be rebuilt.
manuth added a commit that referenced this issue Jan 15, 2019
Sadly the previous solution didn't work since the module doesn't contain the values of the rebuilt phantomjs-version.
For that reason people will have to restart before they can use MarkdownConverter after they rebuilt PhantomJS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants