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

Cassette not recognising absolute paths reference path's #24

Closed
nazjunaid opened this issue Aug 4, 2011 · 4 comments
Closed

Cassette not recognising absolute paths reference path's #24

nazjunaid opened this issue Aug 4, 2011 · 4 comments

Comments

@nazjunaid
Copy link
Contributor

Most of our JavaScript references are absolute paths which Cassette seems to treat as relative paths.

Eg.

/// <reference path="/resources/scripts/shared/utils.js"/>
/// <reference path="/resources/scripts/shared/location.js"/>
/// <reference path="/resources/scripts/shared/sector.js"/>
/// <reference path="/resources/scripts/shared/account.js"/>

We get errors like

The file "resources/scripts/account/edit//resources/scripts/shared/utils.js" is referenced by "resources/scripts/account/edit/contact.js" but cannot be found.

I think it should support absolute paths in reference paths

@andrewdavey
Copy link
Owner

That sounds like a reasonable enhancement to make. I wonder if using a '~/' prefix makes more sense, since it's really absolute to the web application, not the system.

Do those relative paths still make the Visual Studio intellisense work? Does it know to treat the leading "/" as "from the web application root directory"?

@andrewdavey
Copy link
Owner

(I updated your issue to use triple back ticks around the code block, so the angle brackets work.)

@nazjunaid
Copy link
Contributor Author

Visual studio and resharper 6 intellisense works with absolute paths

Thanks for fixing the post :)

@andrewdavey
Copy link
Owner

Cassette 0.6 allows paths to start with "/" and "~/". It treats them both as application directory relative.

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

2 participants