Closed dotted closed 7 years ago
Hey Bo
Wow, thanks for trying Pathfinder.
I cannot reproduce this, so let me tell you what I did.
I am curious about the exception "Package not found: Sitecore". When installing, Pathfinder creates a NuGet feed that points back to the project directory. If Pathfinder gets the project directory wrong, it cannot find the package, which would throw this exception.
Is your project directory in a really long path? Did you run run-scc outside the project directory?
I have sitecore-pathfinder installed globally npm i -g sitecore-pathfinder
, which is where run-scc
comes from, I presume run-scc
is generated by npm because of this https://github.com/JakobChristensen/Sitecore.Pathfinder/blob/53ec36b651ebe81492a3bd184faa98f19d8aff27/src/buildfiles/npm/package.json#L11
So I tried the following
scc
Same outcome
I forgot to mention this previously, but running scc
again I get this error, requiring me to delete the file in question
C:\Users\...\Documents\GitHub\pathfinder-test>scc
scc.cmd(0,0): information SCC3041: Checking project...
items\master\sitecore\content\Home\CleanBlog\NavBar\About.item.xml(19,10,19,15): warning SCC3008: Field contains 'Lorem Ipsum' text: The field "Text" contains the test data text: "Lorem Ipsum...". Replace or remove the text data. [FieldContainsLoremIpsum]
scc.cmd(0,0): information SCC3042: Checks: 39, references: 11, errors: 0, warnings: 1, messages: 0
scc.cmd(0,0): information SCC4015: Writing package exports...
scc.cmd(0,0): information SCC4018: Creating packages...
scc.cmd(0,0): error SCC4020: Failed to create the Nupkg file: Processen kan ikke få adgang til filen 'C:\Users\...\Documents\GitHub\pathfinder-test\sitecore.project\build\Sitecore.1.0.0.nupkg', fordi den bliver brugt af en anden proces.
scc.cmd(0,0): information SCC4008: Installing packages...
scc.cmd(0,0): information SCC4016: Publishing database...
scc.cmd(0,0): information SCC4014: Database: master
scc.cmd(0,0): information SCC7013: Showing website...
scc.cmd(0,0): information SCC7014: (if this annoys you, remove the 'show-website' task from the 'build-project:tasks' setting)
Project metrics: 23 items, 4 templates, 5 media files, 4 renderings, 29 files
Time: 1.322ms, Ducats earned: 900
The path length to the root folder of the project is 50 characters, so I dont think that is the issue.
Still no luck reproducing it.
npm i -g sitecore-pathfinder
run-scc new-project
to create project and install CleanBlogrun-scc
Everything worked and the website came up.
Next:
npm install sitecore-pathfinder
(Pathfinder is still globally installed)Running scc
fails, because scc is not found - this is expected.
Running run-scc
shows the help, because there is no scconfig.json file - this is expected as the project is missing.
Could you try this:
scc new-project
and install CleanBlogscc
to compileI assume you have a clean CMS 8.1 installed.
I just had the same issue on a clean workstation. Here is what worked for me. Open IIS and find what kind of account runs the app pool. For me it was Network Service
. Then grant this account Read
, Read & execute
and List folder contents
permissions on the folder where you have Pathfinder initialized, so the worker process can access the following subfolder with the nuget package: \sitecore.project\build
Hope this helps!
I think the new npm installation fixes this issue.
I'm trying to build the CleanBlog project using version 0.8.0-alpha as released on npm, however doing so yields this error:
I used SIM to install Sitecore 8.1 update 3 to C:\inetpub\wwwroot\Pathfinder