Coder Social home page Coder Social logo

Stack Overflow about html5validator HOT 14 CLOSED

svenkreiss avatar svenkreiss commented on July 30, 2024
Stack Overflow

from html5validator.

Comments (14)

Supuhstar avatar Supuhstar commented on July 30, 2024

That must be quite the webpage! Perhaps trim it down a bit, too? ;)

from html5validator.

svenkreiss avatar svenkreiss commented on July 30, 2024

@DanielOaks Thanks for bringing this up. I had not seen this problem. I like the idea of making it a command line option.

from html5validator.

DanielOaks avatar DanielOaks commented on July 30, 2024

I can imagine something like a -b option (big) that doubles the memory size each time it's added, maybe something like: html5validator -bb doubling it from 512 to 1024, then from 1024 to 2048? Similar to how multiple levels of verbosity/debugging flags work in some programs.

Otherwise just a simple way of specifying the size manually, --size 2048k or something simple like that?

@Supuhstar Unfortunately, pages describing technical data can get pretty big :)

from html5validator.

svenkreiss avatar svenkreiss commented on July 30, 2024

I like the -b, -bb, -bbb approach. Nobody knows in any case which file size corresponds to which stack size. Makes this feature more accessible.

from html5validator.

php-coder avatar php-coder commented on July 30, 2024

How I can workaround this? How to specify the stack size?

from html5validator.

php-coder avatar php-coder commented on July 30, 2024

P.S. Answering to myself:

--- /usr/lib/python2.7/site-packages/html5validator/validator.py.orig   2016-01-13 18:06:41.974810572 +0100
+++ /usr/lib/python2.7/site-packages/html5validator/validator.py    2016-01-13 18:06:57.563825066 +0100
@@ -68,7 +68,7 @@
                 raise JavaNotFoundException()

         try:
-            o = subprocess.check_output(['java', '-Xss512k', '-jar',
+            o = subprocess.check_output(['java', '-jar',
                                          self.vnu_jar_location] + opts + files,
                                         stderr=subprocess.STDOUT,
                                         ).decode('utf-8')

from html5validator.

svenkreiss avatar svenkreiss commented on July 30, 2024

@php-coder Interesting. Is this on Windows?

I was under the impression that specifying '-Xss512k' would always increase the stack size (from 128k or 320k). For you however it seems to increase when you remove it. I am not sure, but I found some reference online that on Windows the default is actually 1024k.

from html5validator.

php-coder avatar php-coder commented on July 30, 2024

@svenkreiss No, it's on Fedora 22 with OpenJDK 1.8.0_60

from html5validator.

php-coder avatar php-coder commented on July 30, 2024

It also fail in TravisCI with the same error :-( Probably, it's because I still use old build type...

from html5validator.

svenkreiss avatar svenkreiss commented on July 30, 2024

Working on this. The 0.2 branch contains a fix for this. It contains the new command line options -l, -ll and -lll which increase the stack size. It also contains an update of the underlying Java checker. Unfortunately, that now requires Java 8. I updated the readme in the 0.2 branch with instructions.

Any volunteers to test this branch? Unit tests are passing.
I think you can install this branch directly with pip install https://github.com/svenkreiss/html5validator/zipball/0.2.

from html5validator.

php-coder avatar php-coder commented on July 30, 2024

I'll try it when I will have a time..

from html5validator.

svenkreiss avatar svenkreiss commented on July 30, 2024

Thank you all!

Version 0.2.1 is now released and should address this. If it does not work out of the box for you, try the new command line options -l, -ll and -lll. Please reopen this issue if you see any problems.

from html5validator.

php-coder avatar php-coder commented on July 30, 2024

When I'm trying new version it works without any options. I don't know why...

Thank you!

from html5validator.

svenkreiss avatar svenkreiss commented on July 30, 2024

The default in the new version is not to have an -Xss option when calling Java. Like in your diff a few days ago ;)
Thanks!

from html5validator.

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.