-
Notifications
You must be signed in to change notification settings - Fork 526
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
ERROR: [object Object] #99
Comments
Hi @kneeki, thanks for the report -- this looks to be caused by HMR's incorrect handling of missing or irregular resume section data. See also #93. As a sanity test, are you able to run |
Hi @hacksalot, It doesn't look like it: dave@Dave-MacBookAir:~/Downloads$ hackmyresume new test.json
*** HackMyResume v1.5.0 ***
Creating new FRESH resume: test.json
dave@Dave-MacBookAir:~/Downloads$ hackmyresume build test.json to test.pdf -t node_modules/jsonresume-theme-slick
*** HackMyResume v1.5.0 ***
Reading resume: test.json
Applying JSONRESUME-THEME-SLICK theme (2 formats)
Generating PDF resume: test.pdf
ERROR: [object Object]
The JSONRESUME-THEME-SLICK theme says: "For
best results view JSON Resume themes over a local or remote
HTTP connection. For example:
http-server <resume-folder>
For more information, see the README."
dave@Dave-MacBookAir:~/Downloads$ |
Thanks, good to know. One last question, are you able to run |
Sure thing: dave@Dave-MacBookAir:~/Downloads$ hackmyresume analyze resume.json
*** HackMyResume v1.5.0 ***
Reading resume: resume.json
Analyzing FRESH resume: resume.json
SECTIONS (8):
employment: 4
education: 2
service: 1
skills: 3
writing: 0
social: 2
interests: 0
languages: 0
COVERAGE (100.0%):
Total Days: 3904
Employed: 3904
Gaps: 0 []
Overlaps: 2 [1919, 304]
KEYWORDS (13):
HTML 5: 1 mentions
CSS: 1 mentions
Javascript: 2 mentions
LAMP: 1 mentions
XAMPP: 1 mentions
REST: 2 mentions
PHP: 1 mentions
AJAX: 1 mentions
MySQL: 1 mentions
SQL Server 2008: 1 mentions
Node.js: 1 mentions
jQuery: 1 mentions
Bootstrap: 1 mentions
TOTAL: 15 mentions
dave@Dave-MacBookAir:~/Downloads$ |
Thanks @kneeki. If you install latest (1.5.1) and pass in the |
Tested with 1.5.1:
|
Okay and one last question. Can you successfully run wkhtmltopdf input.html output.pdf If it's not installed and path-accessible, or if |
Yep, no problems. dave@Dave-MacBookAir:~/Downloads$ wkhtmltopdf resume.html topdf.pdf
Loading page (1/2)
Printing pages (2/2)
Done
dave@Dave-MacBookAir:~/Downloads$ |
There was actually a glitch in that stack trace (now resolved in 1.5.2). If you can post the trace one more time w/ latest version we should be able to resolve this. Thanks! |
It doesn't look like the dave@Dave-MacBookAir:~/Downloads$ hackmyresume build resume.json to resume.pdf -d
*** HackMyResume v1.5.2 ***
Reading resume: resume.json
Applying MODERN theme (5 formats)
Generating PDF resume: resume.pdf
ERROR: [object Object]
The MODERN theme says: "To get colored skill
progress bars, make sure your resume includes a `level`
element for each skill!"
dave@Dave-MacBookAir:~/Downloads$ |
Thanks for the feedback @kneeki @umpirsky. There are a few corner cases in the code where an error can occur but have no stack trace associated with it, so this helps somewhat to narrow it down. If you'd be willing to send me ([email protected]) or post here an anonymized version of the resume (.json) that is yielding this error, we'll roll out a hotfix today. |
Hmm, I'm getting the OS: Arch Linux x86_64 > hackmyresume new test.json
*** HackMyResume v1.5.2 ***
Creating new FRESH resume: test.json > hackmyresume analyze test.json
*** HackMyResume v1.5.2 ***
Reading resume: test.json
Analyzing FRESH resume: test.json
SECTIONS (14):
social: 1
employment: 2
projects: 1
education: 1
service: 2
skills: 2
samples: 1
writing: 1
reading: 3
recognition: 2
references: 2
testimonials: 1
languages: 2
interests: 2
COVERAGE (100.0%):
Total Days: 2383
Employed: 2383
Gaps: 0 []
Overlaps: 0 []
KEYWORDS (10):
LAMP: 1 mentions
JavaScript: 1 mentions
HTML 5: 1 mentions
Angular.js: 1 mentions
jQuery: 1 mentions
Sass: 1 mentions
LESS: 1 mentions
Tokagure Ryu: 1 mentions
Shuriken: 1 mentions
Yogen: 1 mentions
TOTAL: 10 mentions
> which phantomjs
/home/codekirei/code/node/npm/bin/phantomjs > hackmyresume build test.json to out/resume.pdf --pdf phantomjs
*** HackMyResume v1.5.2 ***
Reading resume: test.json
Applying MODERN theme (5 formats)
Generating PDF resume (with phantomjs): out/resume.pdf
ERROR: [object Object]
The MODERN theme says: "To get colored skill
progress bars, make sure your resume includes a `level`
element for each skill!" The LMK if any other logs would be helpful! EDIT looks like these logs may not be helpful based on #97 (didn't look there before posting here) — I'll keep an eye out for |
@codekirei Missed your comment -- thanks for the info! v1.6.0 will feature better logging (via |
@hacksalot No worries! I'll for sure follow up when you release the next version to confirm the fix. Thanks for doing great work and making communication a priority! |
Worth retrying in 1.7.0 even though we were never 100% able to reproduce this. |
Thanks for the update! Here are the new logs: versions> hackmyresume -v
*** HackMyResume v1.7.0 ***
1.7.0
> phantomjs -v
1.9.8
|
Thanks-- the first issue ( |
As for the second issue with As a sanity check, if you use |
> hackmyresume build test.json to out/resume.all -p phantom -d
*** HackMyResume v1.7.0 ***
The -d or --debug switch was specified. DEBUG mode engaged.
Platform: linux
Node.js: v5.4.1
HackMyResume: v1.7.0
FRESCA: ~0.6.0
OPTIONS:
theme undefined
prettify true
css undefined
pdf phantom
sort true
tips undefined
debug true
Invoking BUILD command.
Reading FRESH resume: test.json
Verifying MODERN theme.
Applying MODERN theme (8 formats)
Generating TXT resume: out/resume.txt
Generating MD resume: out/resume.md
Generating DOC resume: out/resume.doc
Generating HTML resume: out/resume.html
Generating PDF resume: out/resume.pdf (with phantom)
Generating JSON resume: out/resume.json
Generating YML resume: out/resume.yml
Generating PNG resume: out/resume.png |
Great, glad to hear it. 👍 We're polishing these resume formats again for 1.8.0 and later, feel free to log another issue for any visual glitches or typos, etc. The fix for the |
I've just updated hackmyresume and I'm attempting to generate a pdf using the shell theme:
edit: building an .html file works without any issues.
The text was updated successfully, but these errors were encountered: