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

Transpiler exception #70

Open
davidwynter opened this issue Mar 30, 2018 · 0 comments
Open

Transpiler exception #70

davidwynter opened this issue Mar 30, 2018 · 0 comments

Comments

@davidwynter
Copy link

I don't seem to be able to get the right sources for my version 4.22 (attached to /home/david/.m2/repository/de/ruedigermoeller/kontraktor-http/4.22/kontraktor-http-4.22-sources.jar) to be able to debug this TranspilerJSX. I also tried checking out commit id dd4f351 (don't forget to tag it save me searching the commit logs for the release version)

Thread [XNIO-1 task-2] (Suspended (exception NullPointerException))	
	DependencyResolver.resolveUniquePath(File) line: 109	
	DynamicResourceManager.resolveUniquePath(File) line: 314	
	JSXIntrinsicTranspiler.constructLibName(File, FileResolver) line: 510	
	JSXIntrinsicTranspiler$1.getFinalLibName(File, FileResolver, String) line: 66	
	JSXIntrinsicTranspiler.generateImportPrologue(JSXGenerator$ParseResult, FileResolver) line: 483	
	JSXIntrinsicTranspiler.processJSX(boolean, File, FileResolver, Map<String,Object>) line: 265	
	JSXIntrinsicTranspiler.transpile(File, FileResolver, Map<String,Object>) line: 43	
	DynamicResourceManager.resolve(File, String, Map<String,Object>) line: 274	
	JSXIntrinsicTranspiler.resolveImportSpec(File, ImportSpec, FileResolver, Map<String,Object>, Set) line: 384	
	JSXIntrinsicTranspiler.processJSX(boolean, File, FileResolver, Map<String,Object>) line: 260	
	JSXIntrinsicTranspiler.transpile(File, FileResolver, Map<String,Object>) line: 43	
	DynamicResourceManager.getResource(String) line: 180	
	DefaultResourceSupplier.getResource(HttpServerExchange, String) line: 39	
	ResourceHandler$1.handleRequest(HttpServerExchange) line: 205	
	Connectors.executeRootHandler(HttpHandler, HttpServerExchange) line: 332	
	HttpServerExchange$1.run() line: 812	
	XnioWorker$TaskPool(ThreadPoolExecutor).runWorker(ThreadPoolExecutor$Worker) line: 1142	
	ThreadPoolExecutor$Worker.run() line: 617	
	Thread.run() line: 745	

There are a number of paths to scan, this is a '|' delimited list of them, all are prefixed with the src directory, in my case ./websrc

/node_modules|/components|/components/tree-nav|/components/tree-nav/TreeComponents|/components/tree-nav/TreeComponents/VisualAssets|/components/tree-nav/TreeComponents/VisualAssets/Location|/components/table-edit|/components/table-edit/CsvImport|/components/AnnotatedObject|/actions|/reducers

This is the one which causes the error, taken from the result arg here

generateImportPrologue(JSXGenerator.ParseResult result, FileResolver resolver)

/home/david/git/inspectit/././websrc/components/table-edit/./TableEdit.jsx

Which does exist:

david@david-desktop:~/git/inspectit$ ls /home/david/git/inspectit/././websrc/components/table-edit/./TableEdit.jsx
/home/david/git/inspectit/././websrc/components/table-edit/./TableEdit.jsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant