GithubHelp home page GithubHelp logo

uniformal / mmt Goto Github PK

View Code? Open in Web Editor NEW
68.0 19.0 23.0 230.59 MB

The MMT Language and System

Home Page: https://uniformal.github.io/

License: Other

Batchfile 0.03% Shell 0.09% HTML 0.82% CSS 0.96% JavaScript 13.96% Scala 82.02% GAP 0.04% TeX 1.59% Roff 0.01% Makefile 0.01% Python 0.18% Dockerfile 0.01% Isabelle 0.25% Java 0.05%

mmt's Issues

MMT server crash

for http://ash.eecs.jacobs-university.de:8080/errorview.html the MMT server seems to have reached its limit. The web page still showed 126963 counted error entries (but without tables). The file oaf.log shows:

09:50:22.446    error: (server) error in underlying server: class java.nio.channels.ClosedChannelException:null
sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:270)
sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:461)
tiscaf.HSimplePeer$class.writeToChannel(HPeer.scala:133)
tiscaf.HServer$$anon$2.writeToChannel(HServer.scala:196)
tiscaf.HWriter.write(HWriter.scala:31)
tiscaf.HWriter.write(HWriter.scala:23)
tiscaf.HWriter.writeSeq(HWriter.scala:35)
tiscaf.HIdentOut.write(HOut.scala:53)
tiscaf.HTalk.write(HTalk.scala:57)
tiscaf.HTalk.write(HTalk.scala:58)
info.kwarc.mmt.api.web.Server$$anon$1.act(Server.scala:41)
tiscaf.HSimpleLet$$anonfun$aact$1.apply$mcV$sp(HLet.scala:166)
tiscaf.HSimpleLet$$anonfun$aact$1.apply(HLet.scala:166)
tiscaf.HSimpleLet$$anonfun$aact$1.apply(HLet.scala:166)
scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
scala.concurrent.impl.ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:121)
scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

allow preload customization for LaTeXML build

In MathHubInfo/Legacy-localmh#226 we want to customize the preloads of the LaTeXML build per MathHub repository. I would like to allow to customize that via the repository-specific build.msl file:

  • in build.msl I want to define a variable LaTeXML-Preloads, which contains a list of file names and directives e.g. tikz.sty 'literal:\usetikzlibrary{foo}' (here a whitespace-separated list)
  • the LaTeXML build process should then add . --preload=tikz.sty --preolad='literal:\usetikzlibrary{foo}' to the invocation of LaTeXML. (see the discussion in slatex/sTeX#91 for more details)

I am not sure whether this is possible already, but we need the same functionality with the variable LaTeXML-paths and --path=....

created content omdoc and relational depends on build context

If openmath.mmt is built separately, content and relational differs in order of elements.
(Usually, all of urtheories is built together.)


-     </constant><constant name="OMF">
+     </constant><ruleconstant name="info.kwarc.mmt.api.objects.OMI"/><constant name="OMF">
        <metadata><link rel="http://cds.omdoc.org/mmt?metadata?sourceRef" resource="http://docs.omdoc.org/urtheories/openmath.mmt#215.10.2:219.10.6"/></metadata>



-     </constant><constant name="OMSTR">
+     </constant><ruleconstant name="info.kwarc.mmt.api.objects.OMF"/><constant name="OMSTR">
        <metadata><link rel="http://cds.omdoc.org/mmt?metadata?sourceRef" resource="http://docs.omdoc.org/urtheories/openmath.mmt#325.13.2:331.13.8"/></metadata>



-     </constant><ruleconstant name="info.kwarc.mmt.api.objects.OMI"/><ruleconstant name="info.kwarc.mmt.api.objects.OMF"/><ruleconstant name="info.kwarc.mmt.api.objects.OMSTR"/></theory></omdoc>
\ No newline at end of file
+     </constant><ruleconstant name="info.kwarc.mmt.api.objects.OMSTR"/></theory></omdoc>
\ No newline at end of file
...
--- a/relational/http..www.openmath.org/cd/OpenMath.rel
+++ b/relational/http..www.openmath.org/cd/OpenMath.rel
@@ -9,13 +9,13 @@ Declares http://www.openmath.org/cd?OpenMath http://www.openma
th.org/cd?OpenMath
 constant http://www.openmath.org/cd?OpenMath?binder
 Declares http://www.openmath.org/cd?OpenMath http://www.openmath.org/cd?OpenMat
h?OMI
 constant http://www.openmath.org/cd?OpenMath?OMI
-Declares http://www.openmath.org/cd?OpenMath http://www.openmath.org/cd?OpenMath?OMF
-constant http://www.openmath.org/cd?OpenMath?OMF
-Declares http://www.openmath.org/cd?OpenMath http://www.openmath.org/cd?OpenMath?OMSTR
-constant http://www.openmath.org/cd?OpenMath?OMSTR
 Declares http://www.openmath.org/cd?OpenMath http://www.openmath.org/cd?OpenMath?info.kwarc.mmt.api.objects.OMI
 constant http://www.openmath.org/cd?OpenMath?info.kwarc.mmt.api.objects.OMI
+Declares http://www.openmath.org/cd?OpenMath http://www.openmath.org/cd?OpenMath?OMF
+constant http://www.openmath.org/cd?OpenMath?OMF
 Declares http://www.openmath.org/cd?OpenMath http://www.openmath.org/cd?OpenMath?info.kwarc.mmt.api.objects.OMF
 constant http://www.openmath.org/cd?OpenMath?info.kwarc.mmt.api.objects.OMF
+Declares http://www.openmath.org/cd?OpenMath http://www.openmath.org/cd?OpenMath?OMSTR
+constant http://www.openmath.org/cd?OpenMath?OMSTR
 Declares http://www.openmath.org/cd?OpenMath http://www.openmath.org/cd?OpenMath?info.kwarc.mmt.api.objects.OMSTR
 constant http://www.openmath.org/cd?OpenMath?info.kwarc.mmt.api.objects.OMSTR

Fix compiler warnings in mmt

There are a lot of non-exhaustive match warnings, it would be great if they would disappear (Maybe we can throw an exception in case they occur).
screen shot 2015-04-29 at 14 57 35
The same thing holds true for deprecation warnings.

library scala code integration

for MMT/LATIN and MMT/examples scala codes needs to be compiled for numbers. Classes are expected to be in the bin subdirectory that is traversed by mathpath java. META-INF/MANIFEST.MF contains classpath: bin.

do not use absolute paths in committed build.msl files

Currently, https://gl.mathhub.info/MMT/LATIN/blob/master/build.msl relies on "/usr/local/share/twelf-mod/bin/twelf-server" which only works on our maintained linux systems.

@florian-rabe suggests to put environment variables in an uncommitted file deploy/main/startup.msl.
However, for automatic tests, configurations need to be stored somewhere.

Many external tools do not even need to be given by an absolute path, if they can be found via the $PATH.

stex-omdoc reports many errors

maeder@lati:/var/data/localmh/MathHub/smglom/mv$ echo -e "log console\n log+ archive\n extension info.kwarc.mmt.stex.STeXImporter\n archive add .\n build smglom/mv stex-omdoc\n exit" | ../../../ext/MMT/mmt.jar 

This is the MMT shell.
See https://svn.kwarc.info/repos/MMT/doc/api/index.html#info.kwarc.mmt.api.frontend.Action for the available commands.


user: log console finished
user: log+ archive
user: log+ archive finished
user: extension info.kwarc.mmt.stex.STeXImporter 
user: extension info.kwarc.mmt.stex.STeXImporter  finished
user: mathpath archive /var/data/localmh/MathHub/smglom/mv
user: mathpath archive /var/data/localmh/MathHub/smglom/mv finished
user: build [smglom/mv] stex-omdoc  
archive: entering /var/data/localmh/MathHub/smglom/mv/source
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/approxeq.de.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/approxeq.de.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/approxeq.en.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/approxeq.en.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/approxeq.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/approxeq.omdoc
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/argseq.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/argseq.omdoc
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/defeq.de.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/defeq.de.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/defeq.en.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/defeq.en.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/defeq.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/defeq.omdoc
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/equal.de.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/equal.de.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/equal.en.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/equal.en.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/equal.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/equal.omdoc
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Skipping declaration element notation due to error: key not found: args
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/localpaths.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/localpaths.omdoc
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/piecewise.de.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/piecewise.de.omdoc
error: No stex:srcref attribute for <imports  from="smglom/numberfields/source/arithmetics#arithmetics">
error: No stex:srcref attribute for <imports  from="smglom/mv/source/equal#equal">
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/piecewise.en.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/piecewise.en.omdoc
error: No stex:srcref attribute for <imports  from="smglom/numberfields/source/arithmetics#arithmetics">
error: No stex:srcref attribute for <imports  from="smglom/mv/source/equal#equal">
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
error: Cannot resolve module for functions?function from theory http://mathhub.info/smglom/mv/piecewise.en.omdoc?piecewise.en
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/piecewise.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/piecewise.omdoc
error: Notation is missing latex macro information: For input string: ""
error: Skipping declaration element notation due to error: mspace (of class java.lang.String)
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/structure.de.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/structure.de.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/structure.en.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/structure.en.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/structure.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/structure.omdoc
error: Notation is missing latex macro information: For input string: ""
archive: leaving  /var/data/localmh/MathHub/smglom/mv/source
archive: entering /var/data/localmh/MathHub/smglom/mv/source
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/approxeq.de.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/approxeq.de.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/approxeq.en.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/approxeq.en.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/approxeq.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/approxeq.omdoc
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/argseq.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/argseq.omdoc
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/defeq.de.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/defeq.de.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/defeq.en.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/defeq.en.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/defeq.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/defeq.omdoc
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/equal.de.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/equal.de.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/equal.en.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/equal.en.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/equal.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/equal.omdoc
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
error: Skipping declaration element notation due to error: key not found: args
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/localpaths.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/localpaths.omdoc
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/piecewise.de.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/piecewise.de.omdoc
error: No stex:srcref attribute for <imports  from="smglom/numberfields/source/arithmetics#arithmetics">
error: No stex:srcref attribute for <imports  from="smglom/mv/source/equal#equal">
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/piecewise.en.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/piecewise.en.omdoc
error: No stex:srcref attribute for <imports  from="smglom/numberfields/source/arithmetics#arithmetics">
error: No stex:srcref attribute for <imports  from="smglom/mv/source/equal#equal">
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/piecewise.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/piecewise.omdoc
error: Notation is missing latex macro information: For input string: ""
error: Skipping declaration element notation due to error: mspace (of class java.lang.String)
error: Notation is missing latex macro information: For input string: ""
error: Notation is missing latex macro information: For input string: ""
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/structure.de.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/structure.de.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/structure.en.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/structure.en.omdoc
error: No stex:srcref attribute for <div  class="CMP">
error: Unexpected element label in CMP: div
archive: [source -> narration] /var/data/localmh/MathHub/smglom/mv/source/structure.omdoc -> /var/data/localmh/MathHub/smglom/mv/narration/structure.omdoc
error: Notation is missing latex macro information: For input string: ""
archive: leaving  /var/data/localmh/MathHub/smglom/mv/source
user: build [smglom/mv] stex-omdoc   finished
user: exit

use assembled MMTPlugin.jar

sbt deploy creates a big assembled MMTPlugin.jar file that can be used instead the many other .jar files under MMT/deploy/jedit-plugin/plugin/jars.

However, the file src/jEdit-mmt/src/resources/mmtplugin.props that lists the needed jars must be adjusted. (The corresponding line 20 can be simply deleted.)

many pdf problems

In the archive smglom/sets all .zhs.tex fail for me, because font "FandolFang" cannot be found (and I don't know how to install it under Ubuntu).

many non-language .tex files end with No pages of output.

.tr.tex files have problems with \endcsname.

The problems are best tested using run-pdflatex.sh (that is a link to run-latexml.sh) or i.e.:

maeder@lati:/var/data/localmh/MathHub/smglom/sets$ echo -e "log console\n log+ archive\n extension info.kwarc.mmt.stex.PdfLatex\n archive add .\n build smglom/sets pdflatex disjoint.tr.tex\n exit\n" | ../../../ext/MMT/mmt.jar

Fix the jEdit install script + documentation

I just tried to install the MMT plugin following the instructions at https://svn.kwarc.info/repos/MMT/doc/html/index.html?install.html
I encountered several problems most of which should be fixable:

mkdir content

so that you can later check out content repositories (e.g., the ones in the OAF) into the content folder.

lmh / MathHub should be mentioned here (instead of just OAF).
2) You tell people to run:

svn co https://svn.kwarc.info/repos/MMT system

and a few lines later you say to run the script

MMT/setup.sh

this is inconsistent because we only created a "system" folder. It should also be mentioned that windows users should run the batch script instead.

  1. I could not get the automated setup script to run (even when trying the manual installation). It kept failing with:

Error: Could not find or load main class info.kwarc.mmt.jeditsetup.Setup

Running sbt deploy in an attempt to rebuild did not help.

  1. After installing manually (via the instructions at https://svn.kwarc.info/repos/MMT/doc/html/index.html?install.html ) I got the plugin itself to run.
    (As a side note: There was only one jar in plugin/jars. Is that intended?)
    After checking out the examples repository and opening a file I got several unbound token errors:

1439974189703

pdflatex problem

run-pdflatex.sh MiKoMH/ACS/source/cfl/en/BNF.tex reports this:

(/usr/share/texlive/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tik
zlibrarybackgrounds.code.tex)

! Package tikz Error: I did not find the tikz library 'mmt'. I looked for files
 named tikzlibrarymmt.code.tex and pgflibrarymmt.code.tex, but neither could be
 found in the current texmf trees..

See the tikz package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.14 \usetikzlibrary{mmt}

MMT/urtheories/source/subtypes.mmt needs building twice

Because theory Inhabitation is (textually) given after the theory PredicateSubtypes that includes Inhabitation the source files needs to be build twice. The first time error: unbound token: ! is reported for PredicateSubtypes (line 17, column 25 or char 553 in the source file)

Luckily, building all of urtheories (in alphabetical order) twice is sufficient. theory PLF (from lf.mmt) needs to be known before subtypes.mmt any way.

empty .err file created

export in urtheories creates an empty errors/svg_narration/.err file. This should not happen, since such files cannot be parsed as xml. The expected content is:

<errors>
</errors>

integrate oeis

trying to add oeis to build.sbt

lazy val oeis = (project in file("mmt-oeis")).
  dependsOn(stex).
  settings(commonSettings("mmt-oeis"): _*)

yields compilation errors:

[error] /home/maeder/MMT/src/mmt-oeis/src/info/kwarc/mmt/oeis/OEISImporter.scala:156: type mismatch;
[error]  found   : info.kwarc.mmt.api.MPath
[error]  required: info.kwarc.mmt.api.modules.DeclaredTheory
[error]     OMDoc.parseNarrativeObject(n)(dpath, mpath, errorCont, resolveSPath)
[error]                                          ^
[error] /home/maeder/MMT/src/mmt-oeis/src/info/kwarc/mmt/oeis/OEISSearchServer.scala:7: not found: type TEMASearchServer
[error] class OEISSearchServer extends TEMASearchServer("oeis") {
[error]                                ^
[error] /home/maeder/MMT/src/mmt-oeis/src/info/kwarc/mmt/oeis/OEISSearchServer.scala:9: not found: value controller
[error]   lazy val imp = controller.extman.get(classOf[OEISImporter]) match {
[error]                  ^
[error] /home/maeder/MMT/src/mmt-oeis/src/info/kwarc/mmt/oeis/OEISSearchServer.scala:21: not found: value controller
[error]       val errorCont = new ErrorLogger(controller.report)
[error]                                       ^
[error] /home/maeder/MMT/src/mmt-oeis/src/info/kwarc/mmt/oeis/OEISSearchServer.scala:22: value parseNarrativeObject is not a member of Any
[error]       imp.parseNarrativeObject(elem)(dpath, mpath, errorCont)
[error]           ^

building omdoc twice makes a difference

"build examples mmt-omdoc ; build examples mmt-omdoc" produces the following difference compared to separate calls for building.

@@ -28,7 +28,7 @@
        <metadata><link rel="http://cds.omdoc.org/mmt?metadata?sourceRef" resource="http://docs.omdoc.org/examples/instances.mmt#212.8.2:272.11.5"/></metadata>
        <type><om:OMOBJ xmlns:om="http://www.openmath.org/OpenMath"><om:OMA><metadata><link rel="http://cds.omdoc.org/mmt?metadata?sourceRef" resource="http://docs.omdoc.org/examples/instances.mmt#220.8.10:227.8.17"/></metadata>
               <om:OMS base="http://cds.omdoc.org/urtheories" module="LF" name="arrow"></om:OMS>
-              <om:OMS base="http://cds.omdoc.org/examples" module="ObjectLevelInstances" name="tp"></om:OMS><om:OMS base="http://cds.omdoc.org/mmt" module="ModExp" name="theory"><metadata><link rel="http://cds.omdoc.org/mmt?metadata?sourceRef" resource="http://docs.omdoc.org/examples/instances.mmt#225.8.15:227.8.17"/></metadata></om:OMS>
+              <om:OMS base="http://cds.omdoc.org/examples" module="ObjectLevelInstances" name="tp"><metadata><link rel="http://cds.omdoc.org/mmt?metadata?sourceRef" resource="http://docs.omdoc.org/examples/instances.mmt#220.8.10:221.8.11"/></metadata></om:OMS><om:OMS base="http://cds.omdoc.org/mmt" module="ModExp" name="theory"><metadata><link rel="http://cds.omdoc.org/mmt?metadata?sourceRef" resource="http://docs.omdoc.org/examples/instances.mmt#225.8.15:227.8.17"/></metadata></om:OMS>
       </om:OMA></om:OMOBJ></type>
        <definition><om:OMOBJ xmlns:om="http://www.openmath.org/OpenMath"><om:OMBIND><metadata><link rel="http://cds.omdoc.org/mmt?metadata?sourceRef" resource="http://docs.omdoc.org/examples/instances.mmt#298.14.9:302.14.13"/></metadata>
                  <om:OMS base="http://cds.omdoc.org/urtheories" module="LF" name="lambda"></om:OMS>

generated lf-scala code and scala realizations of MMT-examples do not match

mmt file build.msl export creates scala files in export/lf-scala/content/http..cds.omdoc.org/examples.

The files IntLiterals.scala and NatLiterals.scala differ in that the corresponding trait is extended with org.omdoc.real.lf.Bool but only org.omdoc.real.Bool is given in the folder scala_realizations.

For compiling the generated .scala files I also needed to exclude FlexaryConnectives2.scala, Lists.scala, ObjectLevelInstances.scala. (The gitlab repo for MMT/examples no contains a build.sbt file to compile the .scala files to classes within the bin-subdirectory.)

allow to specify build exceptions

I would like to have mechanism where I can specify files that should not be built (by a regexp). I imagine a .mmtbuild file per directory which has entries like

no-sms: foo.tex
no-omdoc: *bar*.tex

And when we have something like this, we could have other build-config targets as well.

test mws

I've got no clue how to test the MMT connection to the mws-daemon.

svn-mirror broken

@mhamilton723 I think you've committed wrongly to the git svn-mirror branch. Your last changes are not in svn, so the svn-mirror does no longer reflect the svn status

build [smglom/mv] planetary causes "head of empty list"

user: build [smglom/mv] planetary  
archive: entering /var/data/localmh/MathHub/smglom/mv/narration
archive: [narration -> export/planetary/narration] /var/data/localmh/MathHub/smglom/mv/narration/approxeq.de.omdoc -> /var/data/localmh/MathHub/smglom/mv/export/planetary/narration/approxeq.de.html
error: planetary_narration: unknown build error: head of empty list

proper svg generation

I've added svg export to urtheories. The export is different if the relation archive is added. Without this archive I get (red) errors for Semantic and Syntactic:

archive: [content -> export/svg/content] /var/data/localmh/MathHub/MMT/urtheories/content/http..cds.omdoc.org/urtheories/Syntactic.omdoc -> /var/data/localmh/MathHub/MMT/urtheories/export/svg/content/http..cds.omdoc.org/urtheories/Syntactic.svg
error: svg_content: unknown build error: None.get

With the relation archive I get additional .svg files in export/svg/narration, yet a couple of them are empty. Many files in export/svg/content are different then. The file export/svg/content/http..cds.omdoc.org/urtheories/Typed.svg even becomes empty. All empty files are due to (yellow) errors:

error: parse error: not an MPath-encoded Term: Errors
error: parse error: not an MPath-encoded Term: ModExp
error: parse error: not an MPath-encoded Term: QMT
error: parse error: not an MPath-encoded Term: mmt

log success / failure of build targets

When generating files using MMT in localmh, there is currently no feedback if a file suceeded or failed other than the messy log output given by MMT.

I discussed it with @cmaeder and together we agreed that there should be a new logger that prints success or failure for each of the files that MMT tries to generate.

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.