Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#16716 closed defect (fixed)

js-doc-parse windows paths - / vs \

Reported by: lzboron Owned by: Colin Snover
Priority: undecided Milestone: 1.9
Component: Doc parser Version: 1.8.3
Keywords: Cc:
Blocked By: Blocking:


I tried to run js-doc-parse with my app package, that is not placed next to dojo, so I declared it explicitly in dojo config. When I run parser, I get error message saying that my modules are outside of defined packages. I investigated this issue and found out, that problem is in lib/File.js.

This code assumes that path should end with '/'

if (pathPrefix.charAt(pathPrefix.length - 1) !== '/') {
	pathPrefix += '/';

But this path was normalized by pathUtil.normalize, which uses '\' on windows ( This means that '/' is added to path and it will end with '\/'.

I think that this check should also consider possibility that path ends with '\'.

Change History (3)

comment:1 Changed 9 years ago by bill

Owner: set to Colin Snover
Status: newassigned

comment:2 Changed 9 years ago by Colin Snover

Resolution: fixed
Status: assignedclosed

This was fixed. Please report js-doc-parse bugs on the js-doc-parse bug tracker, as it is a separate project.

comment:3 Changed 9 years ago by bill

Component: GeneralDoc parser
Milestone: tbd1.9
Note: See TracTickets for help on using tickets.