{"action":"closed","issue":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5669","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5669/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5669/comments","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5669/events","html_url":"https://github.com/OrchardCMS/Orchard/issues/5669","id":102350923,"number":5669,"title":"Can't setup a new instance of OrchardCMS without PathTooLongException","user":{"login":"rtpHarry","id":1038062,"avatar_url":"https://avatars.githubusercontent.com/u/1038062?v=3","gravatar_id":"","url":"https://api.github.com/users/rtpHarry","html_url":"https://github.com/rtpHarry","followers_url":"https://api.github.com/users/rtpHarry/followers","following_url":"https://api.github.com/users/rtpHarry/following{/other_user}","gists_url":"https://api.github.com/users/rtpHarry/gists{/gist_id}","starred_url":"https://api.github.com/users/rtpHarry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtpHarry/subscriptions","organizations_url":"https://api.github.com/users/rtpHarry/orgs","repos_url":"https://api.github.com/users/rtpHarry/repos","events_url":"https://api.github.com/users/rtpHarry/events{/privacy}","received_events_url":"https://api.github.com/users/rtpHarry/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-21T10:43:09Z","updated_at":"2015-08-21T12:54:52Z","closed_at":"2015-08-21T12:54:52Z","body":"I've cloned the repo using GitExt as suggested in the setting up a source enlistment documentation.\r\n\r\nWhen I open the solution in Visual Studio Community 2015, run it with F5 and attempt to go though the initial setup screen an exception is thrown from `ViewsBackgroundCompilation.cs` in `GetViewDirectories()`.\r\n\r\nIt tries to dig deep into the `node_modules` folders and eventually gets stuck on this folder:\r\n\r\n    \"~/Modules/Orchard.DynamicForms/node_modules/gulp-minify-css/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/node_modules/number-is-nan/\"\r\n\r\nI don't think that the code should be going through the `node_modules` folders at all looking for views so I think the code needs to be changed somewhere to skip these folders.\r\n\r\nIt looks like the offending code that triggers this cascade is in `ViewsBackgroundCompilation.cs` `CompileViews()`. On lines 89/90 it does this:\r\n\r\n    // Leave these at end (as a best effort)\r\n    \"~/Core\", \"~/Modules\", \"~/Themes\"\r\n\r\nWhich sends it off into a spiral of doom."}}