Comments (14)
That must be quite the webpage! Perhaps trim it down a bit, too? ;)
from html5validator.
@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.
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.
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.
How I can workaround this? How to specify the stack size?
from html5validator.
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.
@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.
@svenkreiss No, it's on Fedora 22 with OpenJDK 1.8.0_60
from html5validator.
It also fail in TravisCI with the same error :-( Probably, it's because I still use old build type...
from html5validator.
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.
I'll try it when I will have a time..
from html5validator.
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.
When I'm trying new version it works without any options. I don't know why...
Thank you!
from html5validator.
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)
- The `vnujar` should be updated HOT 2
- add missing CSS Property "text-decoration-thickness"
- [Feature Request] Programmatic integration with Selenium Webdriver HOT 1
- break dependency on outdated log4j
- CSS: Doesn't know color-schema
- Report info isssues
- Numerous vulnerabilities in package from PyPI HOT 1
- Can we get a new pip release please? HOT 5
- Consider using --stdout option to vnu.jar HOT 4
- Bad value "doc-endnote" for attribute "role" on element "li".
- [CSS] False positives HOT 3
- Show --also-check-css parameter in --help output HOT 1
- Make the json/xml output parseable by other tools HOT 1
- Documentation of config file HOT 1
- AttributeError: module 'os' has no attribute 'errno' HOT 1
- HTML5validator exits with return code 24 when invalid root given
- JSON parseable test is never run
- --ignore flag works but the return code is nonzero HOT 2
- Unable to use ignore-re with start regex "^"
- The "--format json" and "--ignore" not working together
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 html5validator.