+ Reply to Thread
Results 1 to 3 of 3

Thread: Problems compiling Extension for v9.12.2 (MindTouch.Tasking.Result Catch definition)

  1. #1
    Join Date
    Nov 2008
    Posts
    66

    Default Problems compiling Extension for v9.12.2 (MindTouch.Tasking.Result Catch definition)

    hello everyone,

    i'am currently trying to upgrade from v9.02.02 to v9.12.2 on a testserver. i've made myself a custom subversion extension which worked fine under v9.02.02 but not under v9.12.2. so i imported the new dll's into the project and recompiled again but it says that "'MindTouch.Tasking.Result' does not contain a definition for 'Catch' (CS0117) - D:\Work\DekiWikiExtensions\Subversion\SubversionSe rvice.cs:230,77".

    Code:
            protected override Yield Start(XDoc config, Result result) {
                yield return Coroutine.Invoke(base.Start, config, new Result()).Catch(result);
    
                // read configuration settings
                _username = config["username"].AsText;
                _password = config["password"].AsText;
                _uri = config["svn-uri"].AsUri;
                if (_uri == null) {
                    throw new ArgumentException(MISSING_FIELD_ERROR, "svn-uri");
                }
                _svnBinPath = config["path-to-svn"].AsText;
                if (string.IsNullOrEmpty(_svnBinPath)) {
                    throw new ArgumentException(MISSING_FIELD_ERROR, "path-to-svn");
                }
                if (!System.IO.File.Exists(_svnBinPath)) {
                    throw new System.IO.FileNotFoundException("SVN binary not found", _svnBinPath);
                }
                _bugUri = config["bugs-uri"].AsUri;
                _svnRevUri = config["svn-revision-uri"].AsUri;
                _svnBaseDir = config["svn-uri-is-base-dir"].AsBool ?? false; 
                
                result.Return();
            }
    my project references the following dll's: mindtouch.deki.ext.dll, mindtouch.dream.dll

    are there some major changes on the interfaces and its functionality?

    thanks, best regards christoph

  2. #2
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    Remove the calls to .Catch(). We changed how exceptions are handled for coroutines into something that is much more reliable (no explicit catch needed anymore).
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

  3. #3
    Join Date
    Nov 2008
    Posts
    66

    Default

    Thanks for your info, now its working perfectly!

    best regards Christoph

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts