Git Product home page Git Product logo

zzarchive-projekt's Introduction

Projekt

A utility for editing fsharp project files.

Note that this repository is dormant. We suggest that you consider using Forge instead.

Quick contributing guide

  • Fork and clone locally.
  • Build the solution with Visual Studio, build.cmd or build.sh.
  • Create a topic specific branch in git. Add a nice feature in the code. Do not forget to add tests and/or docs.
  • Run build.cmd (build.sh on Mono) to make sure all tests are still passing.
  • Send a Pull Request.

License

The MIT license

Maintainers

zzarchive-projekt's People

Contributors

cthom06 avatar kjnilsson avatar rneatherway avatar sergey-tihon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zzarchive-projekt's Issues

error when running build.sh

fsharpi --define:RELEASE --define:HELP generate.fsx
Copying file: /Users/karlnilsson/code/kjnilsson/projekt/docs/output/img/logo-template.pdn
Copying file: /Users/karlnilsson/code/kjnilsson/projekt/docs/output/img/logo.png
Copying styles and scripts: /Users/karlnilsson/code/kjnilsson/projekt/docs/output/content/style.css
Copying styles and scripts: /Users/karlnilsson/code/kjnilsson/projekt/docs/output/content/style.css.bak
Copying styles and scripts: /Users/karlnilsson/code/kjnilsson/projekt/docs/output/content/style_light.css
Copying styles and scripts: /Users/karlnilsson/code/kjnilsson/projekt/docs/output/content/tips.js
Copying styles and scripts: /Users/karlnilsson/code/kjnilsson/projekt/docs/output/content/img/github-blue.png
Copying styles and scripts: /Users/karlnilsson/code/kjnilsson/projekt/docs/output/content/img/github.png
Generating '/Users/karlnilsson/code/kjnilsson/projekt/docs/tools/../content/index.html'

Processing the file 'docpage' failed
Source written to: '/var/folders/0_/18mv6y610d39ql2lyl5gtr_80000gn/T/tmp1cf1214c.tmp.cs'
Compilation errors:

  • error: (0, 0) Assembly fsi, Version=4.3.1.0, Culture=neutral, PublicKeyToken=f536804aa0eb945b' referencesFSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version number than imported assembly `FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

System.Exception: Generating HTML failed.
at FSharp.Literate.RazorRender.handleCompile[String](System.String source, Microsoft.FSharp.Core.FSharpFunc2 f) [0x00000] in <filename unknown>:0 at FSharp.Literate.RazorRender.ProcessFileModel[IDictionary2](System.Type modelType, System.Object model, Microsoft.FSharp.Core.FSharpOption1 properties) [0x00000] in <filename unknown>:0 at FSharp.Literate.Templating.generateFile (Microsoft.FSharp.Core.FSharpOption1 references, System.String contentTag, IEnumerable1 parameters, Microsoft.FSharp.Core.FSharpOption1 templateOpt, System.String output, IEnumerable1 layoutRoots) [0x00000] in <filename unknown>:0 at FSharp.Literate.Templating.processFile (Microsoft.FSharp.Core.FSharpOption1 references, FSharp.Literate.LiterateDocument doc, System.String output, FSharp.Literate.ProcessingContext ctx) [0x00000] in :0
at FSharp.Literate.Literate.ProcessScriptFile (System.String input, Microsoft.FSharp.Core.FSharpOption1 templateFile, Microsoft.FSharp.Core.FSharpOption1 output, Microsoft.FSharp.Core.FSharpOption1 format, Microsoft.FSharp.Core.FSharpOption1 formatAgent, Microsoft.FSharp.Core.FSharpOption1 prefix, Microsoft.FSharp.Core.FSharpOption1 compilerOptions, Microsoft.FSharp.Core.FSharpOption1 lineNumbers, Microsoft.FSharp.Core.FSharpOption1 references, Microsoft.FSharp.Core.FSharpOption1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption1 replacements, Microsoft.FSharp.Core.FSharpOption1 includeSource, Microsoft.FSharp.Core.FSharpOption1 layoutRoots, Microsoft.FSharp.Core.FSharpOption1 generateAnchors, Microsoft.FSharp.Core.FSharpOption1 assemblyReferences, Microsoft.FSharp.Core.FSharpOption1 customizeDocument) [0x00000] in <filename unknown>:0 at <StartupCode$FSharp-Literate>[email protected] (System.String file, System.String output) [0x00000] in <filename unknown>:0 at Microsoft.FSharp.Core.FSharpFunc2[System.String,System.String].InvokeFast[Unit] (Microsoft.FSharp.Core.FSharpFunc2 func, System.String arg1, System.String arg2) [0x00000] in <filename unknown>:0 at <StartupCode$FSharp-Literate>.$Main.processDirectory@199 (Microsoft.FSharp.Core.FSharpOption1 format, Boolean processRecursive, Microsoft.FSharp.Core.FSharpFunc2 processScriptFile, Microsoft.FSharp.Core.FSharpFunc2 processMarkdown, System.String indir, System.String outdir) [0x00000] in :0
at FSharp.Literate.Literate.ProcessDirectory (System.String inputDirectory, Microsoft.FSharp.Core.FSharpOption1 templateFile, Microsoft.FSharp.Core.FSharpOption1 outputDirectory, Microsoft.FSharp.Core.FSharpOption1 format, Microsoft.FSharp.Core.FSharpOption1 formatAgent, Microsoft.FSharp.Core.FSharpOption1 prefix, Microsoft.FSharp.Core.FSharpOption1 compilerOptions, Microsoft.FSharp.Core.FSharpOption1 lineNumbers, Microsoft.FSharp.Core.FSharpOption1 references, Microsoft.FSharp.Core.FSharpOption1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption1 replacements, Microsoft.FSharp.Core.FSharpOption1 includeSource, Microsoft.FSharp.Core.FSharpOption1 layoutRoots, Microsoft.FSharp.Core.FSharpOption1 generateAnchors, Microsoft.FSharp.Core.FSharpOption1 assemblyReferences, Microsoft.FSharp.Core.FSharpOption1 processRecursive, Microsoft.FSharp.Core.FSharpOption1 customizeDocument) [0x00000] in :0
at FSI_0003.buildDocumentation () [0x00000] in :0
at <StartupCode$FSI_0003>.$FSI_0003.main@ () [0x00000] in :0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
Stopped due to error
Running build failed.
Error:
System.Exception: generating help documentation failed
at FSI_0001.Build.generateHelp' (Boolean fail, Boolean debug) [0x00000] in :0
at [email protected] (Microsoft.FSharp.Core.Unit _arg1) [0x00000] in :0
at Fake.TargetHelper+targetFromTemplate@155[Microsoft.FSharp.Core.Unit].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00000] in :0
at Fake.TargetHelper.runSingleTarget (Fake.TargetTemplate`1 target) [0x00000] in :0

Tests currently fail on Windows

Might be something to do with using fsunit, which sometimes causes these kinds of problems. Seem to have NuGet 2.6.4 locally and something is expecting 2.6.3.

1) Test Error : Projekt.Tests.addFile should fail if file in project
   System.IO.FileLoadException : Could not load file or assembly 'nunit.framework, Version=2.6.
3.13283, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The loca
ted assembly's manifest definition does not match the assembly reference. (Exception from HRESU
LT: 0x80131040)
   at Projekt.Tests.addFile should fail if file in project()

Can't get init to work

I'm on an up-to-date OSX (El Capitan 10.11.1) and I just installed that latest Mono (Mono MDK 4.2.1 El Capitan Preview). I can't get the init subcommand to work. It seems that pretty much any permutation of command line arguments and current working directory locations results in an "err: target directory:

already exists". Here is one example (from /tmp but any dir ends up the same):

[ /tmp ]$ mono ~/Applications/projekt/Projekt.exe init NewProject.fsproj --template console --organisation George
err: target directory: /private/tmp already exists

(I also tried building Projekt from source but that produces some warnings and NUnit test failures. The first warning was "WARNING: The runtime version supported by this application is unavailable.".)

Can't build v0.0.4

Hi there, trying to compile this on OS X by running build.sh gives me the following failing test:

  Expected: True
  But was:  False

at Projekt.Tests.assertDeepEquals (System.Xml.Linq.XNode expected, System.Xml.Linq.XNode result) <0x10893c580 + 0x0009b> in <filename unknown>:0
at Projekt.Tests.delFile should remove file in later ItemGroups () <0x108afeef0 + 0x000e5> in <filename unknown>:0


Running build failed.
Error:
Fake.UnitTestCommon+FailedTestsException: NUnit test failed (2).
  at Fake.NUnitSequential.NUnit (Microsoft.FSharp.Core.FSharpFunc`2 setParams, IEnumerable`1 assemblies) <0x114af0620 + 0x00456> in <filename unknown>:0
  at [email protected] (Microsoft.FSharp.Core.Unit _arg7) <0x114af0590 + 0x00076> in <filename unknown>:0
  at Fake.TargetHelper+targetFromTemplate@155[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) <0x114ade860 + 0x00023> in <filename unknown>:0
  at Fake.TargetHelper.runSingleTarget (Fake.TargetTemplate`1 target) <0x114ad2aa0 + 0x000fd> in <filename unknown>:0

Any ideas what's going on there?

implement --verbose

We should have a --verbose mode that outputs trace/debug info for debugging stuff.

fails to load templates on linux

first, thank you for this tool, i can't express how vital it is for someone who only wants to deal with emacs ;P !!

i tried installing it on linux and the only way i could get it to successfully create a project is to run it from the actual folder because it looks like it uses relative paths to figure out where the templates are

eg:

┌(yawnt@ehecatl) (iojs 1.2.0)
╰─(/tmp)> ~/.projekt/bin/Projekt/Projekt.exe init /tmp/potatoes/MyProject.fsproj --template console --organisation MyOrganisation                                                                              1 ↵
err: failed to copy /tmp/templates/Console/Console.fsproj to /tmp/potatoes/MyProject.fsproj. Message: /tmp/templates/Console/Console.fsproj does not exist

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.