getJsDocComments missing in .d.ts

The getJsDocComments function is missing from the current (1.6.2) .d.ts. Is this on purpose? Is it not a public compiler API? :)

it is, why do you need to use it directly?

I am traversing the AST to generate documentation and a living styleguide for UI components (Angular 1 + TS). The comment(s) above nodes hold additional JSDoc information.
Iterating sourcefile.statements in combination with calling getJsDocComments was the first thing that woredk. Is this a bad idea or is there a better way?

Are Nodes sufficient here? in general documentation is associated with Symbols and not Nodes, as a Symbol can have multiple declarations. the Symbol object has a public getDocumentationComment method that should do that.

Thanks for the clarification. I really appreciate your help since using tsc was a lot try and error so far :)
Could you point me to a documentation how to get to symbols from a sourcefile (do I need to create a full program)? I couldn't find any thorough tutorials how to make use of TypeScript's awesome compiler.
So far I could infer all information I wanted from nodes and their children, but maybe it would be nicer and cleaner with symbols. Until now I am not doing any auto completion of JSDocs, I only used the nodes to find class member docs and to check the used decorators.

I will admit the API documentation are not exhaustive. if there are specific areas that you need docs on we can add it to: https://github.com/Microsoft/TypeScript/wiki/Architectural-Overview, or https://github.com/Microsoft/TypeScript/wiki/FAQs-for-API-Consumers. also there are some examples in:
https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API
So a quick overview, the parser generates AST Nodes. these are just abstract representation of the user input, nothing smart here. A SourceFile object is just an AST with some additional information like file name and source text. The binder then passes over the AST and generates/binds Symbols; these are one per named entity, each Symbol can have multiple Nodes, e.g.: multiple declarations of namespace, or class and a namespace with the same name, etc.. the binder also handles scopes and makes sure that each symbol is created in the correct enclosing function/block scope.
Now these so far are on a file level. but namespaces for instance can span multiple files. so are interfaces, classes, etc.. so now you need a Program. a Program is a collection of SourceFiles and a set of CompilerOptions. you create a Program by calling createProgram, you can have a program with only one file. the program gives you access to a TypeCheker which is the core of the TypeScript type system. The first thing the TypeCheker will do is will consolidate all the Symbols from different SourceFiles into a single view, basically building a single Symbol Table, and "merging" any common symbols (again, namespaces spanning multiple files). The TypeCheker also creates Types for Symbols.
TypeCheker can answer questions like what is the Symbol for this Node, or what is the Type of this Symbol. what are the symbols visible at a location, or what are the correct signatures for a function.. what errors would be produced for a file, or what is the output if i want to emit it.
Now which level should you use?
this depends on what are you trying to do. some features are limited to Syntactic analysis, think of this as formatting for instance, all it cares about is the shape of the code in a file, not the whole program. for something like this, i would just operate on SoruceFile, and not worry about the whole program. others would want to do some Semantic operations, like is this variable of type blah or where can i find the declaration of a in x.a = 0, for these you want to operate on Program.
it would help if you can walk me through what you want to do.

Thanks for the exhaustive rundown. I read all of the resources you linked, but those 3 paragraphs really helped me to understand the compiler a lot more :) Maybe this should be added to the wiki?
So, what I want to do:
My company has some applications (mostly written in Angular) that share services + components (you could say it is a little library). Currently there is only little documentation for these. Because we started to migrate our codebase and components to TypeScript I was looking for a way to generate documentation based on JSDoc-like comments.
The idea was to parse the AST with tsc to find comments and their associated node (symbol). From this I want to generate a JSON (or preferably an object containing all information) that contains all information from the comment and some additional information about used decorators. Afterwards the JSON will be used to generate a static HTML page.
We are using @Component,@Service, ... to add some boilerplate code and metadata to the class. On the basis of the used decorator(s) I wanted to group everything. I also wanted to gather all interfaces and link to them if they are used as an input or return value.
Because my input is more like a library there is only one namespace (in which I am not really interested). It is more relevant to me what type is contained in a sourcefile.
What I didn't want to do (in the first iteration at least) is to validate that all required JSDoc is present (e.g. a comment that describes every present input parameter, like C#'s Resharper does). But I guess I sill want the option to do that at a later point in time. Also, I thought about adding some kind off autocomplete functionality that will add missing documentation if it is possible to infer it.
The reason I ended up using tsc and traversing the AST is that just using a regex to find comments fails (or at least makes it unnecessary complex) when the class has a comment and its members also. I didn't want to force developers to put everything in one big comment.
I just started the project on Thursday and did a small proof of concept. I do not have implemented everything I talked about above. Currently I am just generating a JSON with the parsed JSDoc comments + some information about the decorators and the SyntaxKind. So far nodes worked fine for me :)

Thanks for the exhaustive rundown. I read all of the resources you linked, but those 3 paragraphs really helped me to understand the compiler a lot more :) Maybe this should be added to the wiki?

I have a PR for the wiki at: ttps://github.com/Microsoft/TypeScript-wiki/pull/43, would appreciate it if you can take a look and let me know if/what needs to be added.

I thought about adding some kind off autocomplete functionality that will add missing documentation if it is possible to infer it.

Based on this comment, i would say you need to use the TypeChecker. this way you can ask questions about types, possibly serialize inferred type names in documentation for instance.

here is a sample to walk the AST and use the checker to serialize class information. I have used the typeCheker to get symbol and type information. i have also included the docComments for the class, construct signature and constructor parameters.
/// <reference path="typings/node/node.d.ts" />

import * as ts from "typescript";
import * as fs from "fs";

interface DocEntry {
    name?: string,
    fileName?: string,
    documentation?: string,
    type?: string,
    constructors?: DocEntry[],
    parameters?: DocEntry[],
    returnType?:string
};

/** Generate documention for all classes in a set of .ts files */
function generateDocumentation(fileNames: string[], options: ts.CompilerOptions): void {
    // Build a program using the set of root file names in fileNames
    let program = ts.createProgram(fileNames, options);

    // Get the checker, we will use it to find more about classes
    let checker = program.getTypeChecker();

    let output: DocEntry[] = [];

    // Visit every sourceFile in the program
    program.getSourceFiles().forEach(sourceFile => {
        // Walk the tree to search for classes
        ts.forEachChild(sourceFile, visit);
    });

    // print out the doc
    fs.writeFileSync("classes.json", JSON.stringify(output, undefined, 4));

    /** Serialize a symbol into a json object */
    function serializeSymbol(symbol: ts.Symbol): DocEntry {
        return {
            name: symbol.getName(),
            documentation: ts.displayPartsToString(symbol.getDocumentationComment()),
            type: checker.typeToString(checker.getTypeOfSymbolAtLocation(symbol, symbol.valueDeclaration))
        };
    }

    /** Serialize a class symbol infomration */
    function serializeClass(symbol: ts.Symbol) {
        let details = serializeSymbol(symbol);

        // Get the construct signatures
        let constructorType = checker.getTypeOfSymbolAtLocation(symbol, symbol.valueDeclaration);
        details.constructors = constructorType.getConstructSignatures().map(serializeSignature);
        return details;
    }

    /** Serialize a signature (call or construct) */
    function serializeSignature(signature: ts.Signature) {
        return {
            paramters: signature.parameters.map(serializeSymbol),
            returnType: checker.typeToString(signature.getReturnType()),
            documentation: ts.displayPartsToString(signature.getDocumentationComment())
        };
    }

    /** True if this is visible outside this file, false otherwise */
    function isNodeExported(node: ts.Node): boolean {
        return (node.flags & ts.NodeFlags.Export) !== 0 || (node.parent && node.parent.kind === ts.SyntaxKind.SourceFile);
    }

    /** vist nodes finding exported classes */
    function visit(node: ts.Node) {
        // Only consider exported nodes
        if (!isNodeExported(node)) {
            return;
        }

        if (node.kind === ts.SyntaxKind.ClassDeclaration) {
            // This is a class, get its symbol
            let symbol = checker.getSymbolAtLocation((<ts.ClassDeclaration>node).name);
            output.push(serializeClass(symbol));
        }
        else if (node.kind === ts.SyntaxKind.ModuleDeclaration) {
            // This is a namespace, visit its children
            ts.forEachChild(node, visit);
        }
    }
}

generateDocumentation(process.argv.slice(2), {
    target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
});

to try this:
tsc docGenerator.ts --m commonjs
node docGenerator.js test.ts

with input like:
/**
 * Documentation for C
 */
class C {
    /**
     * constructor documentation
     * @param a my paramter documentation
     * @param b another parameter documentation
     */
    constructor(a: string, b: C) { }
}

you should get output like:
[
    {
        "name": "C",
        "documentation": "Documentation for C ",
        "type": "typeof C",
        "constructors": [
            {
                "paramters": [
                    {
                        "name": "a",
                        "documentation": "my paramter documentation",
                        "type": "string"
                    },
                    {
                        "name": "b",
                        "documentation": "another parameter documentation",
                        "type": "C"
                    }
                ],
                "returnType": "C",
                "documentation": "constructor documentation"
            }
        ]
    }
]

Hope that helps.

Thanks @mhegazy I can not tell you how grateful I am for your time and effort. I can really feel your enthusiasm for the project! When I asked about the API I did not expect to get so much help from the TypeScript team and I especially didn't expect to get some working code (luckily it seems that I wasn't too far off)!
I hope I can convince my boss to open source our documentation generator once it is finished.
PS: I guess your code example should also find its way into the wiki :)

Just a quick note: Your example code works fine, but when the class is preceded by a export default getSymbolAtLocation() will return the correct symbol (as far as I can tell), but the symbol's name is default and not C.

Looks like the original issue is addressed. closing. please reopen if you run into other issues.

I am trying to extend this example and have a question.
how do I differentiate the inherited constructor or properties?
in following example it provides constructor for B, I would like to add an item inheritedFrom:'A' in output section of class B.
/**
 * Documentation for A
 */
class A {
    /**
     * constructor documentation
     * @param a my parameter documentation
     * @param b another parameter documentation
     */
    constructor(a: string, b: number) { }
}
/**
 * Documentation for B
 */
class B extends A {

}
/**
 * Documentation for C
 */
class C extends B {
    /**
     * constructor documentation
     * @param a my parameter documentation
     * @param b another parameter documentation
     */
    constructor(a: number, b: A) { super(null, null); }
}

the declaration property on the signature should take you to the node where it came from. you can use the parent of that to get the originating class.


Updated the cleartext element

Updated the size of cleartext element in the top.css file
Please review .....:)
#317

Hi Piyush, thanks for tackling this!
Can you post a screen capture and if it looks good I'll give it a test on my laptop and phone?

sorry for the delay..

Thus i kept it normal.
Please tell me if i should increase the size....

Please open a single pull request for each issue and iterate based on comments until we merge it. If you want to show an alternative font, just post a second picture and describe it.

I think the PR with the larger font might be better, but I would need to see it on a smaller screen (a phone). It might be good to conditionally set the font size based on the screen resolution (using @media rules or another method).

This is how it looks on phone with a larger font(23px).
Yes i do agree with you regarding the font-size should change based on screen resolution

I think the larger font looks better.

This one consist of the larger font-size (23px) and  looks like this in the browser.

Please review...:)

Looks good. Can you squash your commits into a single commit and I will merge?

Sir i guess i did it wrong...sorry
will be soon updating it now.....
Ignore this squash of commits

A more Updated pull request here ....#354


changed 2015 to 2017 for VS build instructions

We should at least add this change in the instructions. should we also add a note for the VS requirement now?

This addresses issue #189

fyi: if you change your initial post on this PR to have the line "Fixes #189", that issue will automatically close when this is merged.

thanks, that's what I was trying to do but thought it would close the issue when I commented. will do it next time. And I'll squash these two commits with the merge.

You can edit the initial post to include it


Android Gradle documentation task failed

Gradle documentation task failed here:
https://github.com/airbnb/react-native-maps/blob/master/lib/android/src/main/java/com/airbnb/android/react/maps/AirMapView.java#L116
I have run:
./gradlew build

I recently made a fresh example build.
https://github.com/alvelig/react-native-maps-example.
Try to check it out or build through the README.MD. If it does not help, let me know.

@alvelig have you try to run in command line gradle build ?
cd /android
./gradlew build

There is no problem with react-native build -> assembleDebug or assembleRelease
the problem is with Android Gradle documentation task.

Yes, I have, it has some warnings but compiles ok.


导入错误（nonebot-plugin-session==0.2.2，nonebot-plugin-session-saa==0.1.0）

11-27 16:28:01 [ERROR] nonebot | Failed to import "nonebot_plugin_session_saa"
Traceback (most recent call last):
  File "/usr/local/bin/gunicorn", line 8, in <module>
    sys.exit(run())
  File "/usr/local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 67, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/usr/local/lib/python3.11/site-packages/gunicorn/app/base.py", line 231, in run
    super().run()
  File "/usr/local/lib/python3.11/site-packages/gunicorn/app/base.py", line 72, in run
    Arbiter(self).run()
  File "/usr/local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 202, in run
    self.manage_workers()
  File "/usr/local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 551, in manage_workers
    self.spawn_workers()
  File "/usr/local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 622, in spawn_workers
    self.spawn_worker()
  File "/usr/local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
    worker.init_process()
  File "/usr/local/lib/python3.11/site-packages/uvicorn/workers.py", line 66, in init_process
    super(UvicornWorker, self).init_process()
  File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
    self.load_wsgi()
  File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
    self.wsgi = self.app.wsgi()
  File "/usr/local/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
  File "/usr/local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
    return self.load_wsgiapp()
  File "/usr/local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/local/lib/python3.11/site-packages/gunicorn/util.py", line 359, in import_app
    mod = importlib.import_module(module)
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/app/bot.py", line 36, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/usr/local/lib/python3.11/site-packages/nonebot/plugin/load.py", line 130, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/usr/local/lib/python3.11/site-packages/nonebot/plugin/load.py", line 64, in load_all_plugins
    return manager.load_all_plugins()
  File "/usr/local/lib/python3.11/site-packages/nonebot/plugin/manager.py", line 176, in load_all_plugins
    return set(
  File "/usr/local/lib/python3.11/site-packages/nonebot/plugin/manager.py", line 177, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
  File "/usr/local/lib/python3.11/site-packages/nonebot/plugin/manager.py", line 142, in load_plugin
    module = importlib.import_module(name)
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "/usr/local/lib/python3.11/site-packages/nonebot/plugin/manager.py", line 242, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/local/lib/python3.11/site-packages/nonebot_plugin_pixivbot/__init__.py", line 16, in <module>
    require("nonebot_plugin_session_saa")
  File "/usr/local/lib/python3.11/site-packages/nonebot/plugin/load.py", line 179, in require
    plugin = load_plugin(name)
  File "/usr/local/lib/python3.11/site-packages/nonebot/plugin/load.py", line 39, in load_plugin
    return manager.load_plugin(module_path)
> File "/usr/local/lib/python3.11/site-packages/nonebot/plugin/manager.py", line 142, in load_plugin
    module = importlib.import_module(name)
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "/usr/local/lib/python3.11/site-packages/nonebot/plugin/manager.py", line 242, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/local/lib/python3.11/site-packages/nonebot_plugin_session_saa/__init__.py", line 34, in <module>
    from nonebot_plugin_session.const import SupportedAdapter, SupportedPlatform
ImportError: cannot import name 'SupportedAdapter' from 'nonebot_plugin_session.const' (/usr/local/lib/python3.11/site-packages/nonebot_plugin_session/const.py)

真巧，我还打算提个bug。我发现为 nonebot_plugin_session更新0.2.2版本后，删除了nonebot_plugin_session\const.py中SupportedAdapter这部分的代码，导致无法启动。
1、回退至0.2.1
2、在nonebot_plugin_session/const.py文件中，增加如下代码
class SupportedAdapter(StrEnum):
onebot_v11 = "OneBot V11"
onebot_v12 = "OneBot V12"
console = "Console"
kaiheila = "Kaiheila"
qqguild = "QQ Guild"
telegram = "Telegram"
feishu = "Feishu"
red = "RedProtocol"
discord = "Discord"
即可


Add a flag to infer appropriate cross compile hosts on Darwin

Use that immediately for the macOS package presets.
Addresses rdar://98787335, #60348

This is based off the suggestion from @shahmishal in #60624
Keeping this as a draft since I expect to iterate on tests and linting.

@swift-ci please python lint

@swift-ci please test

@swift-ci please build toolchain

@swift-ci please build Apple Silicon

fixed validation-test/BuildSystem/infer-cross-compile-hosts-on-darwin-macosx.test to rely instead on %target-cpu -- the %if feature I was using is not present in stable/20220421 (https://reviews.llvm.org/rG1041a9642ba035fd2685f925911d705e8edf5bb0)
split the usage of the new flag in a separate commit, so in case of regressions that can be reverted separately while leaving the bulk of the logic in place (but inert)

@swift-ci please test

@swift-ci please build toolchain

@swift-ci please build Apple Silicon

@swift-ci please python lint

Hitting an unrelated failure in macOS PR testing now solved by #60709, retrying
@swift-ci please macOS

@edymtt Hi, after using this code, I got another error when buidling the toolchain, can you help me?
Undefined symbols for architecture arm64:
  "llvm::cl::Option::anchor()", referenced from:
      vtable for llvm::cl::list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > in swift-demangle.cpp.o
  "llvm::cl::Option::addOccurrence(unsigned int, llvm::StringRef, llvm::StringRef, bool)", referenced from:
      vtable for llvm::cl::list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > in swift-demangle.cpp.o
  "llvm::cl::GenericOptionValue::anchor()", referenced from:
      vtable for llvm::cl::OptionValueCopy<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > in swift-demangle.cpp.o
      vtable for llvm::cl::OptionValue<bool> in swift-demangle.cpp.o
  "vtable for llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >", referenced from:
      __GLOBAL__sub_I_swift_demangle.cpp in swift-demangle.cpp.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "llvm::cl::Option::addArgument()", referenced from:
      __GLOBAL__sub_I_swift_demangle.cpp in swift-demangle.cpp.o
  "vtable for llvm::cl::OptionValue<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >", referenced from:
      __GLOBAL__sub_I_swift_demangle.cpp in swift-demangle.cpp.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "llvm::cl::Option::setArgStr(llvm::StringRef)", referenced from:
      __GLOBAL__sub_I_swift_demangle.cpp in swift-demangle.cpp.o
  "llvm::SmallVectorBase<unsigned int>::grow_pod(void*, unsigned long, unsigned long)", referenced from:
      llvm::cl::Option::Option(llvm::cl::NumOccurrencesFlag, llvm::cl::OptionHidden) in swift-demangle.cpp.o
  "vtable for llvm::cl::opt<bool, false, llvm::cl::parser<bool> >", referenced from:
      llvm::cl::opt<bool, false, llvm::cl::parser<bool> >::~opt() in swift-demangle.cpp.o
      __GLOBAL__sub_I_swift_demangle.cpp in swift-demangle.cpp.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "llvm::cl::basic_parser_impl::getOptionWidth(llvm::cl::Option const&) const", referenced from:
      llvm::cl::list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::getOptionWidth() const in swift-demangle.cpp.o
  "llvm::cl::ParseCommandLineOptions(int, char const* const*, llvm::StringRef, llvm::raw_ostream*, char const*, bool)", referenced from:
      _main in swift-demangle.cpp.o
  "llvm::raw_ostream::write(unsigned char)", referenced from:
      _main in swift-demangle.cpp.o
      demangle(llvm::raw_ostream&, llvm::StringRef, swift::Demangle::Context&, swift::Demangle::DemangleOptions const&) in swift-demangle.cpp.o
      llvm::raw_ostream::operator<<(char) in swift-demangle.cpp.o
  "vtable for llvm::cl::parser<bool>", referenced from:
      __GLOBAL__sub_I_swift_demangle.cpp in swift-demangle.cpp.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "llvm::cl::getGeneralCategory()", referenced from:
      llvm::cl::Option::Option(llvm::cl::NumOccurrencesFlag, llvm::cl::OptionHidden) in swift-demangle.cpp.o
  "llvm::cl::basic_parser_impl::printOptionInfo(llvm::cl::Option const&, unsigned long) const", referenced from:
      llvm::cl::list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::printOptionInfo(unsigned long) const in swift-demangle.cpp.o
  "llvm::outs()", referenced from:
      _main in swift-demangle.cpp.o
      demangle(llvm::raw_ostream&, llvm::StringRef, swift::Demangle::Context&, swift::Demangle::DemangleOptions const&) in swift-demangle.cpp.o
  "llvm::errs()", referenced from:
      demangle(llvm::raw_ostream&, llvm::StringRef, swift::Demangle::Context&, swift::Demangle::DemangleOptions const&) in swift-demangle.cpp.o
  "llvm::raw_ostream::write(char const*, unsigned long)", referenced from:
      _main in swift-demangle.cpp.o
      demangle(llvm::raw_ostream&, llvm::StringRef, swift::Demangle::Context&, swift::Demangle::DemangleOptions const&) in swift-demangle.cpp.o
      llvm::raw_ostream::operator<<(llvm::StringRef) in swift-demangle.cpp.o
      llvm::raw_ostream::operator<<(char const*) in swift-demangle.cpp.o
      llvm::raw_ostream::operator<<(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in swift-demangle.cpp.o
  "vtable for llvm::cl::opt<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, false, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >", referenced from:
      llvm::cl::opt<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, false, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::~opt() in swift-demangle.cpp.o
      __GLOBAL__sub_I_swift_demangle.cpp in swift-demangle.cpp.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "llvm::raw_ostream::operator<<(long)", referenced from:
      llvm::raw_ostream::operator<<(int) in swift-demangle.cpp.o
  "llvm::raw_ostream::operator<<(unsigned long)", referenced from:
      llvm::raw_ostream::operator<<(unsigned int) in swift-demangle.cpp.o
  "vtable for llvm::cl::Option", referenced from:
      llvm::cl::opt<bool, false, llvm::cl::parser<bool> >::~opt() in swift-demangle.cpp.o
      llvm::cl::opt<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, false, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::~opt() in swift-demangle.cpp.o
      llvm::cl::list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::~list() in swift-demangle.cpp.o
      llvm::cl::Option::Option(llvm::cl::NumOccurrencesFlag, llvm::cl::OptionHidden) in swift-demangle.cpp.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture arm64

@rayxia this is not something I hit so far when building on Apple Silicon
I would suggest creating an issue at https://github.com/apple/swift/issues/new/choose
providing at least

the machine you are building on (OS and architecture)
the build-script/build-toolchain invocation you are using

If possible it would be nice to have

the full log from the run
the build.ninja files from any build/*/swift-macosx- folders you have

(not sure how much I can follow up since I'm busy with other efforts, but this way you others may be more likely to see your issue)

@rayxia this is not something I hit so far when building on Apple Silicon
I would suggest creating an issue at https://github.com/apple/swift/issues/new/choose providing at least

the machine you are building on (OS and architecture)
the build-script/build-toolchain invocation you are using

If possible it would be nice to have

the full log from the run
the build.ninja files from any build/*/swift-macosx- folders you have

(not sure how much I can follow up since I'm busy with other efforts, but this way you others may be more likely to see your issue)

@edymtt OK, thanks for your suggestion.


Feature custom outputs

Closes #297
Rather than building functionality separate to just dumping JSON, this feature actually implements a new option wherein the user can output as many compiled templates they want with the given context, which they can also modify. See README.md for more specific information / config examples.

@sapegin Hope you'll find the modifications sufficient! Thanks for your input. I'm feeling much better about this now.

Thanks! Can you now squash everything to a one commit? And I’ll merge it.

Squashed!

:shipit:

@sapegin Any plans to patch into a release?

@scottyeck Done! Sorry for the delay.


support more activity types

fix: #2962

Pull Request Test Coverage Report for Build 90031

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage remained the same at 77.555%

Files with Coverage Reduction
New Missed Lines
%

/libraries/Microsoft.Bot.Builder/Adapters/TestFlow.cs
1
72.45%

Totals

Change from base Build 89888:
0.0%

Covered Lines:
5767

Relevant Lines:
7436

💛  - Coveralls

:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.5.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll compared against version 4.5.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll compared against version 4.5.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll compared against version 4.5.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll compared against version 4.5.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll compared against version 4.5.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll compared against version 4.5.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Configuration.dll compared against version 4.5.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Connector.dll compared against version 4.5.3
:heavy_check_mark: No Binary Compatibility issues for Microsoft.Bot.Schema.dll compared against version 4.5.3


Gecko driver abysmal performance

Compared to Chrome or other browser, Gecko driver performances are very bad.
Tests completed in 436.17s

After some investigation, I found out this was a common concern and was tied to the way Gecko Driver was implemented.
That being said, there's a very easy solution to that, which is to set the DriverService host property to specifically listen to localhost.
$service.Host = '::1'
#...
$Driver = [OpenQA.Selenium.Firefox.FirefoxDriver]::new($service, $Firefox_Options)

Performances after that change was made skyrocketed to be on par with other browsers 🎉 😄

-Passthru was removed and instead the original behavior was kept.
IwebDriver will be returned when calling it.
A default parameter set (#111) ensure that we are not drown into a huge chunk of source code if we were to omit to call this cmdlet outside of a variable / null assignment.


Add to awesome-safegraph-datascience: An Interactive Comparison of Movement Between Counties by Day using Tableau as the Visualization Tool

https://public.tableau.com/shared/6TTTCYYX8?:display_count=y&:origin=viz_share_link.
This is an interactive comparison of movement between counties by day using Tableau as the visualization tool.

Thank you @youngceltic  added: https://github.com/SafeGraphInc/awesome-safegraph-datascience/commit/7a29a94199ca2063503bd970dbc98efb7d083b67


Static Website Solution: Create a new app to serve a directory with caddy

Create a docker image containing caddy, git, and zinit inside.
This image should take the git url and clone the repo.
Serve whatever is in the repo with caddy server.
Convert this image to a flist.
Use this flist and create a new app in the dashboard.

Work Completed:
A docker image was successfully created

Work in Progress (WIP):
All zinit errors are resolved now, and every process is successful. Next step is converting the image to an flist and test against a vm

Work Completed:
Converted The image to an flist and tested it against a vm and can ssh to the machine
Investigation and Solution:
The following errors need investigation
[+] caddy: {"level":"warn","ts":1709465488.7981684,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"Caddyfile","line":4}
[+] caddy: {"level":"info","ts":1709465488.8023553,"logger":"http.auto_https","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}

Work Completed:

Fixed docker image (Fixed caddyfile, fixed caddy zinit process, added a domain zinit process) https://github.com/threefoldtech/tf-images/pull/218

Work in Progress (WIP):

A solution for caddy should be added in the dashboard

Work Completed:

Added a solution in the dashboard

Work in Progress (WIP):

Adding a readme file in info-grid

Investigation and Solution:

(dashboard issue) whenever a domain is added to the deployed instance it produces a bad gateway unlike using a public ip which serves the files correctly

Work Completed:
Added a solution in the dashboard
Work in Progress (WIP):
Adding a readme file in info-grid
Investigation and Solution:

testing with a custom domain

Work Completed:
Work in Progress (WIP):

Docker Updates

Remove node from docker image if not needed
Add branch flag
Pulling policy (not prio)
Ports should be default ports not 9000
separate caddy run into it's own service
Remove ssh service as zos takes care of it
add a bash script for caddyfile construction and execute it in the zinit service

Dashboard Updates

change title html directory
check if you can add ip while using custom domain

Work Completed:

Docker Updates

Remove node from docker image if not needed
separate caddy run into it's own service
Add branch service

Dashboard Updates

change title to html directory
check if you can add ip while using custom domain

Work in Progress (WIP):

Docker Updates

Remove sshkey service as zos takes care of it
Pulling policy (not prio)
Ports should be default ports not 9000
add a bash script for caddyfile construction and execute it in the zinit service

Work in Progress (WIP):
Trying to use caddy git plugin for pulling policy

Work in Progress (WIP):

Working on comments on the pr
will be using crone jobs for the pulling policy instead of the plugin

Devnet, 51f43a7.
The action button is empty.

And the docs need to be updated to the latest changes.

can we Upgrade the Flist to an official one?  @hossnys @PeterNashaat

there is a comment on your PR for that image here , then we can ask Maxime for promoting it to official apps on hub .

there is a comment on your PR for that image here , then we can ask Maxime for promoting it to official apps on hub .

Comments are resolved now, the pr should be reviewed and merged

@maayarosama another comment there please check https://github.com/threefoldtech/tf-images/pull/218#discussion_r1618725746

@maayarosama PR approved

caddy is now integrated to the dashboard

https://app.testlodge.com/a/26076/projects/40893/suites/234374?expand_section=422332#case_4289467


It's works in Vuejs

Just to share that I tried to translate sooner in Vue.js with gpt-4, spent 10h on it and couldn't make it properly.
Then I found out : https://github.com/devilwjp/veaury
And tried and in 5 min it worked.
So, Your plugin is now used in a Vue 3 app: https://github.com/Cap-go/capgo
Thanks for the work <3

That's great to hear!

Just need some polishing and it’ll be ready to use
https://github.com/wobsoriano/sonner-vue


[WIP]  Azure instance plugin

This PR adds support for creating VM instances on Azure.

Added package in pkg/provider/azure
Added driver in pkg/run/v0/azure to associate with a new kind azure (for infrakit plugin start).
Load the package in cmd/infrakit main.

TODO:

Tests
Support for basic resource types such as Disks and Subnets.

Signed-off-by: David Chung<EMAIL_ADDRESS>

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "azure" git@github.com:chungers/infrakit.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354030176
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.


[INSTALLER] Small Enhancements

Some small enhancements for the installer

Get rid of the default encryption key by generating a safe key and place it in the config.php
renamed max_upload_file_size to  upload_max_filesize to match the true PHP option
Make sure all mig's are done and show success message (there was a race-condition issue)

screwed this one up. will propose a new PR


feat: implementation of reservation button sorting

Description
Overview
This node assigns button actions to topics to be published according to operator status that Autoware has.

If operator is AUTONOMOUS, it functions as delivery reservation button.
If other than 1, it functions as shutdown button.

Input and Output

Input

from autoware.universe

/api/external/get/operator [tier4_external_api_msgs/msg/operator]:Operator Status.

from delivery_reservation_/button_manager

delivery_reservation_button_manager/output/delivery_reservation_button [autoware_state_machine_msgs/msg/VehicleButton]:Delivery reservation button input. (this topic is remapped from input/delivery_reservation_button.)

Output

to autoware_state_machine

/delivery_reservation_button [autoware_state_machine_msgs/msg/VehicleButton]:Serves as a reservation for delivery. (this topic is remapped from output/delivery_reservation_button.)

to shutdown_manager

/shutdown_button [autoware_state_machine_msgs/msg/VehicleButton]:Serves as a shutdown operation. (this topic is remapped from output/shutdown_button.)

Node Graph

Parameter description
This node has no parameters.
Related Links
eve-autonomy/shutdown_manager#1
eve-autonomy/delivery_reservation_lamp_manager#6
eve-autonomy/button_manager#6
eve-autonomy/autoware_state_machine#2
eve-autonomy/autoware_state_machine_msgs#1
eve-autonomy/proj_launch#6
Review Procedure

[ ] Make sure the description is valid.
[ ] Make sure that what is described in the description matches the implementation.

No response is needed in this PR because of the change in specifications.
Move to another PR.
Therefore, this PR is closed.


RELEASE 2.0.70 - Feature#200

Translation challenge list eng, es, ca from endpoint
(warning, the backend must still update the "cat" to "ca" and therefore cat  translation doesn't work yet)

error


reduce memory usage

Is it worthy for us to migrate to FLTK-rs, drop CSS theme support and in exchange make waylyrics much more memory effiencient?

on modern PC we have at least 16GB RAM
waylyrics it self allocates only ~4MiB, the remaining ~80MiB in shared memory contains GTK4, ~40MiB in resource memory are about graphic driver

Lastly, with GTK+ CSS,  we could provide hightly flexible custom theme support


Not Updating Text

I have created a custom Label type to allow a canvas to draw and fill the label with custom colors that wouldn't normally work with a regular Label. However, after creating the MenuLabel type (see below), the label text no longer updates when its changed using label.text = "text here" where label: MenuLabel. I've already verified that the value is actually being changed and there is no issues with any values being nil, but is not drawn to the canvas with the updated text value. I believe it has something to do with the the text being drawn onto the canvas only once. If this is a basic fix, sorry, I am very new to Nim, but any ideas/clues as to how I can work around this?
menu_label.nim
import nigui

type MenuLabel* = ref object of Label

proc newMenuLabel*(text = ""): MenuLabel =
    result = new MenuLabel
    result.init()
    result.text = text

method handleDrawEvent*(control: MenuLabel, event: DrawEvent) =
    let canvas = event.control.canvas
    canvas.areaColor = rgb(23, 25, 33)
    canvas.textColor = rgb(255, 233, 83)
    canvas.lineColor = rgb(255, 233, 83)
    canvas.drawRectArea(0, 0, control.width, control.height)
    canvas.drawTextCentered(control.text)
    canvas.drawRectOutline(0, 0, control.width, control.height)

Initialization of MenuLabel object
var newFileBtn = newMenuButton("New File")
menuContainer.add(newFileBtn)
newFileBtn.onClick = proc(event: ClickEvent) =
    textArea.text = ""
    fileName.text= "New File"

Updating MenuLabel text
var pathParts = split(dialog.files[0], "\\")
fileName.text= pathParts[len(pathParts)-1]

EDIT: added syntax highlighting for nim

With my latest commit it should work as you expect.
btw, I just saw that you want to create a text editor with NiGui, this is also my plan. I think would be interesting to chat with you e.g. on IRC.
GitHub tip: use syntax highlighting when pasting source code.

Thanks for the update! As for assisting in creating a text editor with NiGui, as I said before I'm very new to Nim, and my project was mainly to learn more about Nim and GUI applications. I'm currently a high school senior heading into a Computer Science major for university, so I'm not sure how much help I'd be, but I'd love to chat and talk about it.


feat: add new theme(utopian-light)

Added a new theme. There is only one light theme before, and I added a second one now.

I think this theme is too similar to the light theme.


Wwhen trying to setup on private project on a group

Hi!,
When I'm trying to setup the plugin for a private project on a private group, the plugin returns.
"Something went wrong, please start the setup again"

This is weird, at Scalefast we are using private repos with the plugin. Can you give more info, maybe opening developer tools in insomnia and checking the errors in the console.
Thanks in advance.

Hi Diego,
I thinks its somethinkg related to https://github.com/riedeljan/insomnia-universal-git/issues/12#issuecomment-1048859565
Because, I tested all other alternatives and they have the same issues.

For me this works. I was having similar issues too, but those seemed to be caused by the fact that I didn't give API read privileges to my access token. Maybe this could be causing the issues you are having as well @JonathanLoscalzo?


Flaky test: Pack_Works_IncludesRazorAssembly

This test fails occasionally with the following error:
System.ArgumentOutOfRangeException : Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: chunkLength
   at System.Text.StringBuilder.ToString()
   at Microsoft.AspNetCore.Razor.Design.IntegrationTests.MSBuildProcessManager.<>c__DisplayClass0_0.<RunProcessAsync>b__1() in /_/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/MSBuildProcessManager.cs:line 89
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Razor.Design.IntegrationTests.PackIntegrationTest.Pack_Works_IncludesRazorAssembly() in /_/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/PackIntegrationTest.cs:line 83
--- End of stack trace from previous location where exception was thrown ---

Other tests within that build may have failed with a similar message, but they are not listed here. Check the link above for more info.
CC @Eilon,@muratg,@mkArtakMSFT
This issue was made automatically. If there is a problem contact @ryanbrandenburg.

Please use this workflow to address this flaky test issue, including checking applicable checkboxes and filling in the applicable "TODO" entries:

Is this actually a flaky test?

No, this is a regular test failure, fix the test/product (TODO: Link to commit/PR)
Yes, proceed below...

Is this test failure caused by product code flakiness? (Either this product, or another product this test depends on.)

[ ] File a bug against the product (TODO: Link to other bug)
Is it possible to change the test to avoid the flakiness?

Yes? Go to the "Change the test!" section.
No?

[ ] Disable the test (TODO: Link to PR/commit)
[ ] Wait for other bug to be resolved
[ ] Wait for us to get build that has the fix
[ ] Re-enable our test (TODO: Link to PR/commit)
[ ] Close this bug

Is it that the test itself is flaky? This includes external transient problems (e.g. remote server problems, file system race condition, etc.)

Is there is a way to change our test to avoid this flakiness?

Yes? Change the test!

[ ] Change the test to avoid the flakiness, for example by using a different test strategy, or by adding retries w/ timeouts (TODO: Link to PR/commit)
[ ] Run the test 100 times locally as a sanity check.
[ ] Close this bug

No?

[ ] Delete the test because flaky tests are not useful (TODO: Link to PR/commit)

This comment was made automatically. If there is a problem contact @ryanbrandenburg.


Add Nanbeige-Plus-Chat-v0.1 to AlpacaEval

We would like to add a API model, Nanbeige-Plus-Chat-v0.1, to Alpaca Eval 2.0.
The model is hosted on HF space https://huggingface.co/spaces/Nanbeige/Nanbeige-Plus-Chat-v0.1.

Very impressive @yuani114 . how large is this model?

@YannDubs Thanks for your time! It is a 62B model. And we utilized the same training process as the one used for the Nanbeige2-8B-Chat to train this model.


Stops working after a while (process still running)

Hi.
I'm using a .bat script in shell:startup to launch uncap to remap some keys on every boot, like so:
> uncap 0x91:0x14
For some time now, after working just fine for a while (hours), the remapping will altogether stop working. If I open task manager I can see the uncap.exe process is still there, so it's not that the process died.
If I manually relaunch this .bat script, the new process will sit right there with the old one in task manager, and everything will go back to working again for a few hours (the amount of time it'll work for doesn't feel particularly consistent).
I basically never turn off my computer completely, only putting it on standby when the day is over. Could that have anything to do with it? I've been using uncap for years now but I never noticed this until somewhat recently.. This is on my Windows 10 desktop, I also use it on a laptop and another desktop at work and I don't think I've ever seen this behaviour in any of those.
I'm a power user so I don't mind delving into the registry or even attaching my debugger to the running process to figure out what may be happening.. any ideas?

Hi @n00bmind, Thanks for reporting this issue. Without reproducing the issue myself, I can only speculate. One such speculation that comes to my mind: Is it possible that there is another tool running on the system that is also attaching a keyboard hook and that messes with what keystrokes Uncap can see? This is just a wild guess.
Uncap can be run in debug mode with uncap -d. If you are willing to troubleshoot this issue, you could keep uncap -d running as a foreground process and keep an eye on the debug logs to get a sense of what the debug logs look like during normal operation. Once the issue occurs, you could check the debug logs again to see if Uncap is receiving any keystrokes.

I've been running as a frontend process with uncap -d (just a normal cmd window that I kept open), and lo & behold even across a few days of putting the computer to sleep at night etc. the issue didn't happen a single time..
Yesterday I fully rebooted my computer so the normal background process was started again and today it broke again as usual..
What would happen if I launch my background process passing -d to it? This is just a normal process except its launched from inside a .bat file.. I assume since its console window is not kept open it wont be too useful.. I'll try it and report back.
Is there any way to tell uncap to log its debug output to a file instead or something like this?

Ok, so this is interesting..
I did add the '-d' flag to my batch file, and even though the console window has remained open this entire time, it did stop working after a while too.
Now when I press any keys at all no new lines appear in the debug log.. seems like the process stopped receiving input for some reason?

I went ahead an create a .dmp file for the running process, in case it's of any help to you..
If you point me to a .pdb file maybe I could connect to it with the debugger myself and have a look around.
uncap.zip

Thanks for the debug output. The observations you have shared is what I had suspected. It does look like for some reason the keyboard hook that Uncap sets to receive key strokes becomes ineffective at some point. It is unclear what causes it but I suspect it could be because some other program is setting a keyboard hook that is interfering with Uncap.
Unfortunately, I don't have a PDB file for this binary. It would have been nice to keep one, however, I haven't kept one. If you have a compiler with you, you might be able to build Uncap from source and get a PDB file for yourself. There are some instructions in the dev/ folder about it. However, I doubt whether the dump is going to be useful. Uncap only reacts to keyboard events it receives and since Uncap does not receive any events when this issue occurs, not much can be found in the dump.


GSoC 2017 with PySAL: porting clusterpy to Python 3

This PR includes includes a fork from clusterpy. The code is ported to Python 3 as described in this blog entry.

🎉

Will move regionskate in tomorrow


SICF services

Hi Rahul,
Can you try adding the SICF services for the web dynpro applications to the repository? Object type = SICF should appear in ZABAPGIT for the repository. Then the applications should be possible to start right after installing via abapGit.
Also for your information I've added issue https://github.com/larshp/abapGit/issues/121 for abapGit

Hi,
Can you try updating abapGit and commiting the files again? this should solve some diffs in TABL + sorting for WDYN
It looks like there is an issue in abapGit regarding
ACCESSIBILITY_DESCR
will look into this after you've updated the files

Unable to add SICF node to ABAPGIT repo. Details at https://github.com/larshp/abapGit/issues/121

update to latest abapGit version and try again

Thanks. Will get back once done. Happy new Year!
On Mon, Dec 28, 2015 at 9:34 AM, Lars Hvam<EMAIL_ADDRESS>wrote:

update to latest abapGit version and try again
—
Reply to this email directly or view it on GitHub
https://github.com/techaware/wdalv_config/issues/1#issuecomment-167608603
.

--
Rahul Aware

After updating the latest ABAPGIT - I was able to add SICF nodes to the GIT repo.


Cannot load "latest local version"

The "latest local version" cannot be loaded because the app tries to load file:///.../browser-solidity/index.html/soljson.js instead of file:///.../browser-solidity/soljson.js.

This was broken by #277.
Solutions:

remove index.html from the pathname (this will make it work if accessing through HTTP, but without access to github.io)
don't do the location parsing when on file://

We should check whether the path ends in / or not.


Create two labels in the same row

I am trying to create labels constraint in the same row with offset each other and superview,for example offset with superview equal 20pt but offset each other no fixed.

Can you try like this, use ViewAttribute for reference
`
label1.snp_makeConstraints { (make) -> Void in
make.left.equalTo(20)
}
label2.snp_makeConstraints { (make) -> Void in
make.left.equalTo(label1.snp_right).offset(20)
}
`
Thanks :dancers:

Ahh @igroomgrim I want the first label to "compact" but the second label to never compact?

Can you show layout that you need in image type?

This is my code
     let docNumber = UILabel()
        docNumber.text = "234234"
        docNumber.lineBreakMode = .ByTruncatingMiddle
        self.view.addSubview(docNumber)

        let docTitle = UILabel()
        docTitle.text = "Document number of loan contract"
        docTitle.lineBreakMode = .ByTruncatingMiddle
        self.view.addSubview(docTitle)

        docTitle.snp_makeConstraints { make in
            make.left.top.equalTo(view).offset(20)
        }

           docNumber.snp_makeConstraints { make in
            make.top.equalTo(docTitle.snp_top)
            make.left.equalTo(docTitle.snp_right).offset(-8)
            make.right.equalTo(view).offset(-20)

        }

You can try to add
docTitle.adjustsFontSizeToFitWidth = true

and
docNumber.snp_makeConstraints { make in
            make.top.equalTo(docTitle.snp_top)
            make.left.equalTo(docTitle.snp_right).offset(8)
            make.right.equalTo(view).offset(-20)

        }

Thanks,but I would not to change font size,I need to truncate left label text,create compact and right label to be static

It's nice. Enjoy your code :v:


navmesh support

https://github.com/BabylonJS/Babylon.js/blob/34802bcae6c23cc4a452a31101305f0bc051bf76/src/Navigation/Plugins/recastJSPlugin.ts#L17

New releases are out: 0.8.1 / v1.0.0-nullsafety.2


python 3.x

Tried running on Python 3.6.0 and got this error:
File "C:\Users\zsun\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bagit_profile.py", line 65
print "Cannot retrieve profile from ", self.url
^
SyntaxError: Missing parentheses in call to 'print'

okay, thanks, sorry about the mixup, we'll check to see if that is the problem.


move docs to testing-library.com?

Hey @dfcook! Would you be interested in moving your docs to https://testing-library.com/vue? (Similar to https://testing-library.com/react and https://testing-library.com/cypress)
The site source is here: https://github.com/alexkrolick/testing-library-docs
I think it'd be pretty trivial to move things over.
What do you think? cc @alexkrolick

Yep -it could resemble the pages for react or the shorter one-pagers for Cypress and the jest-dom/user-event ecosystem

Working on it

Awesome! Thanks @dfcook!


MAINT: mypy: don't install numpy-stubs

Reference issue
na
What does this implement/fix?
numpy-stubs has been archived a while ago and so it doesn't contain more recent type hints. e.g. np.typing.DTypeLike. Moreover, numpy >= 1.20.0 ships with all the stubs so we don't need to install them separately again.
Additional information
na

thanks @tirthasheshpatel


upgrade Rollup, add back install treeshaking

Upgrade rollup plugins to latest, fix lots of ESM-CJS interop issues (Resolves #420)
Smaller builds via tree-shaking for both bundled & unbundled builds (Resolves #408)
Most CJS package issues filed on our message board are probably fixed by this

This PR adds back our old tree-shaking algorithm to give you even smaller production builds. As an example, this reduced one user's @fluentui/react usage by 80%. You can enable this yourself via --treeshake, and you can disable via --no-treeshake. Given the amount of testing this got in Snowpack v1, we feel comfortable turning this on by default for builds in the next version.
By happy accident, this upgrade also serves a dual-purpose: improved React handling in the latest version of Rollup (we can remove our special workarounds).
One small issue is that namedExports is no longer supported by Rollup. This is ultimately a good thing: it was removed because Rollup got good enough at CJS interop to no longer need it. But, this will cause an error for anyone who defined namedExports in their project config, with instructions to resolve.

Great stuff!


'S006e' missing from Dataset 1.

First of all thanks for providing this wonderful toolbox.
File 'S006e.mat' is missing from Dataset 1. Can you kindly update the archives on https://dx.doi.org/10.6084/m9.figshare.2068677
Many thanks.

Hi,
Thanks for the observation, we will try to update it as soon as possible. In the meantime you may download the missing file from this [link] (https://drive.google.com/file/d/0B78CJrM6Fga_bElxMlhJZWI5eTQ/view?usp=sharing)

Thank you for the swift response. :)


Control doesn't change state when disabled or readonly

If a checkbox is disabled and the value it is bound to is altered from true to false the checkbox is unchecked.  Its still disabled or readonly but the value is updated.
The bootstrap-switch doesn't work this way.  When the bootstrap-switch is disabled or readonly and the value its bound to is altered the state doesn't change therefore becoming out of sync with the underlying value.
The switch's state should stay in sync with the value the switch is bound to.

:+1:
Related to https://github.com/frapontillo/angular-bootstrap-switch/issues/68

I also have this need, it will be awesome if toggleDisabled/toggleReadonly methods accept a second parameter, to tell if the state have to remain in sync also if disabled/readonly.

Is this still a "work in progress"? It would be great if this can be done. One switch which relates to another disabled switch's value.
I tried to do this using jQuery:
$('input[name="obstacleStreet"]').on('switchChange.bootstrapSwitch', function (e, state){
        $('input[name="obstacleBowl"]').bootstrapSwitch('toggleDisabled', false);
        $('input[name="obstacleBowl"]').bootstrapSwitch('state', state);
        $('input[name="obstacleBowl"]').bootstrapSwitch('toggleDisabled');
    });

But still not working. If this is a known issue, is there any plan to make it available soon? Thank you


Single Lambda Airnode

Slack discussion here

This should include allowing the user to configure the memory size of that single Lambda

as discussed on weekly planning, pushing to v0.12


make fabric API optional

#400
also makes dimentional tools tooltip server-side and changes bee tooltip to cancelable=false

I have no interest in making random features disable themselves or become randomly nonfunctional if Fabric API is not present. JIJ is the intended solution, #400 is a problem with how it has been done; it's likely the JIJ version of Fabric API needs updating.
I don't have the energy right now to give this PR a proper review and make a decision on it, or to make my own fix for #400 or port whatever change winds up being made.


Update Database Security

Until #43 is in progress/done, anyone is allowed edit any document.
Need to update this security to be based on the request.auth.uid when this gets done.
https://firebase.google.com/docs/firestore/security/rules-conditions

I have updated the security rules for Firestore. Please review if this rule is ok for now.
It can be seen under Database -> Rules

Aight sounds good


WIP: Add ancillary factory fragment

Add ancillary factory Fragment which would be used to show ancillary services on Android.
Also addFragment to the playground

You are making changes to rnkiwimobile, so you would need to increase target-framework-version(or something like that) in <root>/package.json, and increase version in <root>/.build/package.json

Isnt the one in the build folder just for hotels or its just the same name?
  "name": "@kiwicom/react-native-app-hotels",
  "version": "0.0.52",

And in the <root>/package.json do you mean that this one should be updated?
  "rnkiwimobile": {
    "code-push-target-binary-version": "15.0.0"
  },

Isnt the one in the build folder just for hotels or its just the same name?

No, it is for the integration used by android team. Probably a good idea to rename it. Could you create an issue for that?

do you mean that this one should be updated?

Yes, that is the one

Okay, thanks! will update

No, it is for the integration used by android team. Probably a good idea to rename it. Could you create an issue for that?

Sure, issue done https://github.com/kiwicom/mobile/issues/1704


Incorrect mode of sensor Charger Source Priority

I have original PorMr POW-HVM6.2M-48V-N
And ESPhome shows Incorrect mode of sensor Charger Source Priority:
Current incorrect mapping:
CSO - utility first (should be solar first)
OSO - solar and utility(should be solar only)
SNU - solar first (should be solar and utility)
Correct mapping  (but should be):
CSO - solar first
OSO - solar only
SNU - solar and utility
please fix!
as I understand it's need to fix inverter.yaml

platform: modbus_controller
modbus_controller_id: smg_inverter
id: charger_source_priority_text
name: "Charger Source Priority"
entity_category: diagnostic
address: 4536
register_type: holding
response_size: 2
raw_encode: HEXBYTES
lambda: |-
uint16_t sensorIndex = swapBytes(modbus_controller::word_from_hex_str(x, 0));
updateUnknownSelect(sensorIndex, id(charger_source_priority_select));
switch (sensorIndex) {
case 0: return std::string("Utility first");
case 1: return std::string("Solar first");
case 2: return std::string("Solar and Utility");
case 3: return std::string("Only solar");
default: return std::string(x);
}

to
  switch (sensorIndex) {
    case 0: return std::string("Solar first");
    case 1: return std::string("Solar and Utility");
    case 2: return std::string("Only solar");
    default: return std::string(x);
  }

And

platform: modbus_controller
id: charger_source_priority_select
name: "Charger Source Priority"
optimistic: true
skip_updates: ${select_skip_updates}
force_new_range: true
entity_category: config
address: 5017
value_type: U_WORD
optionsmap:
"Utility first": 0
"Solar first": 1
"Solar and Utility": 2
"Only Solar": 3

should be
    optionsmap:
      "Solar first": 0
      "Solar and Utility": 1
      "Only Solar": 2``

Related: #48


Examples?

Examples are mentioned in the Readme, but a link to them would be of great use.

I don't think I mentioned them at any point in the readme, but I've got some updates for this repo and have some examples floating around that should be posted, thanks for the reminder

Fixed. https://github.com/excessive/love3d-demos


second correction to the release workflow

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


"Go" button seems to be useless

When I type a destination and then click on "Go", the app looks for POIs around me...

This is not a bug, it is not implemented...

Lol x)

Okay no problem

Fixed in 7d17b754266abbd54b61a57da19a23538585e845


Base-load (households) should be added to technology list

Now you cannot select baseload (or households)

INSERT INTO technologies (id, key, name, export_to, behavior) VALUES 	(11, 'base_load', 'Household', NULL, NULL);
I added the household in the technologies table.


Fix typos

Just fixes some typos. Please check the fixes are correct or not.

Thanks for your PR. I merge it.


Update to new bumped version of ImageMagick

new bumped version of ImageMagick according to http://www.imagemagick.org/download/binaries/

Woopsa, u changed more then I saw, I'm closing this...

Thanks for going to the effort to fix this. Hopefully manual version bumps won't be necessary in the future.


Error: response transaction id does not match request

If you leave this driver running long enough, you get this:
2020-08-21T12:36:40Z I! [inputs.modbusgw] Modbus Error: modbus: response transaction id '51219' does not match request '51220'
2020-08-21T12:36:40Z I! [inputs.modbusgw] Modbus Error: modbus: response transaction id '51220' does not match request '51221'
2020-08-21T12:36:40Z I! [inputs.modbusgw] Modbus Error: modbus: response transaction id '51221' does not match request '51222'

forever.  I have seen this type of thing before... I think the normal fix is to make sure that if you get a transaction with a transaction ID earlier than the one you requested, recognize that it's old and throw it away.

This is resolved by #65 (if accepted)


Fixed duplicate datarow issue

Why make this change?

Closes #2255

What is this change?

modified the duplicate SMALLDATETIME_TYPE and DisplayName for the DataRow to Sequential values.

How was this tested?

[x] Integration Tests
[ ] Unit Tests

/azp run

@seantleonard   - Can you please check and let me know if any changes need to be made? Thank you!

/azp run

Hi @seantleonard  - there is a unit test check that failed which is not related to this change, can you please help me close this issue?

/azp run

Hi @Surya056, yes, there was #2264 I needed to merge to get this working. Merged now at set your PR to auto-merge. Thank you again for your contribution!


Fix for offline build

Fix for offline build
Pet portlint
It seems to build fine without the network.
It probably make sense to merge the make-npm-cache and pre-fetch target.
You should run portfmt on the Makefile, there are some style fix.
Can you host the distfiles somewhere else?
I won't have time to do more review or test your port.

Any news on this @Rob4226

Before we resort to hosting the npm dependencies externally, I'd still like to try and pull them all directly from npm during the network phase of the build. If that proves to be impossible they we will go with this PR.  Thanks.


Index, does it support files other than apps/**/*.{js,jsx,ts,tsx}

In the Index configuration, I am trying to change the inclusion filter, but my edits are replaced with apps/**/*.{js,jsx,ts,tsx}
I can modify the text in the inclusion filter, but when I stop typing, the edits are replaced with apps/**/*.{js,jsx,ts,tsx}
Does the index support a user-defined inclusion filter?
I just installed the extension configured with Ollama chat and embeddings.

Hi Mark,
Yes this is indeed a bug, there is a little state background refresh on the indexer view since the whole panel is never unloaded from memory. I will get a fix out for this shortly.
Thanks for reporting the bug!

This is fixed in release 0.7.11 - it should be available in the next 5-10 minutes, please let me know if you run into any more issues. This area will be enhanced in the next release.
Enhancements:

Persist filters
Expose filters after index is created
Use filters during file save operations

@MarkWard0110 - good to close?

@MarkWard0110 - The update is now released, v0.7.23 should be available shortly. This will now persist the filters on change, and will use the same filters server side when you save documents.


History of Deliveries

User story :
As a user of Magess the delivery car, I want to have a history log so that I can see my past deliveries data and plan my future deliveries.
Acceptance Criteria :
The application saves the delivery data in the database and displays the data to the user.

Future features maybe


clarify libcurl dependency?

My first build:
Compiling postgres
In file included from /home/eric/zenith/zenith/tmp_install/build/../../vendor/postgres/src/backend/storage/smgr/lazyrestore.c:39:
/home/eric/zenith/zenith/tmp_install/build/../../vendor/postgres/src/include/zenith_s3/s3_ops.h:17:10: fatal error: curl/curl.h: No such file or directory
   17 | #include <curl/curl.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [../../../../src/Makefile.global:923: lazyrestore.o] Error 1
make[3]: *** [/home/eric/zenith/zenith/tmp_install/build/../../vendor/postgres/src/backend/common.mk:39: smgr-recursive] Error 2
make[3]: *** Waiting for unfinished jobs....
/home/eric/zenith/zenith/tmp_install/build/../../vendor/postgres/src/zenith_s3/s3_ops.c:4:10: fatal error: curl/curl.h: No such file or directory
    4 | #include <curl/curl.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[3]: *** [../../src/Makefile.global:923: s3_ops.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/home/eric/zenith/zenith/tmp_install/build/../../vendor/postgres/src/zenith_s3/s3_sign.c:3:10: fatal error: curl/curl.h: No such file or directory
    3 | #include <curl/curl.h>  /* for curl_slist */
      |          ^~~~~~~~~~~~~

I would have expected ./configure to complain if libcurl isn't installed.
Also, on my machine (Ubuntu) I have a few different libcurl -dev package options:
libcurl4-gnutls-dev
  development files and documentation for libcurl (GnuTLS flavour)

libcurl4-nss-dev
  development files and documentation for libcurl (NSS flavour)

libcurl4-openssl-dev
  development files and documentation for libcurl (OpenSSL flavour)

I installed the openssl variant, but haven't tried the others.  Maybe we should document the recommended package for debian-flavored environments?

The libcurl dependency is gone now, so this moot.


xmind: fix mimeType, xscheme-handler -> x-scheme-handler

Motivation for this change
Something has been printing a warning about this,
not sure what but it's an easy fix :).
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Notify maintainers
cc @

Most likely update-mime-database? Maybe we should have some NixOS tests that can tell us about these errors. update-desktop-database

Not sure. Being honestly I guess that I simply mistyped this while adding the desktop file to the derivation. AUR also uses x-scheme-handler (https://aur.archlinux.org/cgit/aur.git/tree/xmind.desktop?h=xmind) and the package didn't change there for about a year: https://aur.archlinux.org/cgit/aur.git/commit/?h=xmind

Merging now. I'm pretty sure that this is a bug in the package (sorry for that!).
Even if we implement tests for MIME databases, this should be done in a different PR.

@dtzWill thanks!


[BUG]: Overall additions and deletions count not working

Description
In Contributors tab, number of lines that were added/deleted are not being counted.
Individual counts seem to still work, but overall changes are not.

(optional) What browsers are you seeing the problem on?
Chrome
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Additions and deletions are related to the current week (starting from Aug 13). The data is being sourced from the GitHub API, and there doesn't appear to be a calculation error.

Aha, I see... So that is the way we want to keep it? Only count weekly contributions and not overall?

Closed the issue for now. It can be re-opened if we decide to count overall contributions in the future.


Headers downcase warning

I've migrated to Req 0.4.1, and I've been getting a lot of warnings about headers needing to be downcased.
I use req as a proxy to another HTTP backend, and the logs are becoming huge by req.
Req already downcases the headers here.
Do you know how I can disable the warning?
I don't see a reason to downcase the headers of each request if Req is already handling it internally.

Thank you for feedback. I just released v0.4.2 which removes the warning.
We emitted the warning because there are two ways to access headers:

Req.Response.get_header(resp, "content-type")
response.headers["content-type"]

in the former case we can ensure the given header name is treated as case-insensitive. in the latter we can't, it is what it is.
so the idea was to "teach" people to always use downcase header names. but yeah, this model breaks for use cases like yours. I have updated the docs to mention we're automatically downcasing and hopefully that will be enough for folks not to shoot themselves into the foot.


ES6 format is not working

Hi!
I already have my .babelrc with and the npm package installed node_modules
"presets" : ["es2015"]

But when I run sails lift the console is showing and error related to the import word
So I want to know what else is necessary to run the webpack config in ES6 format.
I'm using sails 0.12.2
Thanks!

You won't just be able to use ES6 in your project, you need to either compile your source into ES5 or use the babel-register require hook, and then lift via node app.js not sails lift
See https://github.com/teamfa/sails-universal-react-starter - it's a full ES6 project, sails, react + HMR and server side rendering of react too.

I see, thank you
Actually I'm building a project but using Angular 1.x so, some configurations will be useful from that react-starter.
For now I'm going to use the ES5 mode in my project and I'm using a pice of code from other issue which is this one:
    // config/webpack.js
var webpack = require('webpack');
var path = require("path");
//
//  __dirnamne - https://nodejs.org/docs/latest/api/globals.html#globals_dirname
//  so this is basically `./config` in this file.
//
module.exports.webpack = {
    config: {
      entry: path.resolve(__dirname, "./../assets/js/app"), // go up one from config into the src dir, no need to say index.js
      output: {
          path: path.resolve(__dirname, './../assets/js/app'),  // go up one from config into the assets dir,
          filename: "bundle.js"
      },
      module: {
          loaders: [
              { test: /\.css$/, loader: "style!css" }
          ]
      }
    },  // webpack config here
    development: { // dev server config
      webpack: { }, // separate webpack config for the dev server or defaults to the config above
      config: { // webpack-dev-server-config
        port: 3000
      }
    },
    watchOptions: {
      aggregateTimeout: 300
    }
};

but the console says
    sails lift

info: Starting app...

D:\Development\web_projects\imsoldier\node_modules\webpack-dev-middleware\middleware.js:106
                        if(err) throw err;
                                ^
 Error: invalid argument
    at pathToArray (D:\Development\web_projects\imsoldier\node_modules\memory-fs\lib\MemoryFileSystem.js:44:10)
    at MemoryFileSystem.mkdirpSync (D:\Development\web_projects\imsoldier\node_modules\memory-fs\lib\MemoryFileSystem.js:139:13)
    at MemoryFileSystem.(anonymous function) [as mkdirp] (D:\Development\web_projects\imsoldier\node_modules\memory-fs\lib\MemoryFileSystem.js:279:34)
    at Compiler.<anonymous> (D:\Development\web_projects\imsoldier\node_modules\webpack\lib\Compiler.js:229:25)
    at Compiler.applyPluginsAsync (D:\Development\web_projects\imsoldier\node_modules\tapable\lib\Tapable.js:60:69)
    at Compiler.emitAssets (D:\Development\web_projects\imsoldier\node_modules\webpack\lib\Compiler.js:226:7)
    at Watching.<anonymous> (D:\Development\web_projects\imsoldier\node_modules\webpack\lib\Compiler.js:54:18)
    at D:\Development\web_projects\imsoldier\node_modules\webpack\lib\Compiler.js:403:12
    at Compiler.next (D:\Development\web_projects\imsoldier\node_modules\tapable\lib\Tapable.js:67:11)
    at Compiler.<anonymous> (D:\Development\web_projects\imsoldier\node_modules\webpack\lib\CachePlugin.js:40:4)
    at Compiler.applyPluginsAsync (D:\Development\web_projects\imsoldier\node_modules\tapable\lib\Tapable.js:71:13)
    at Compiler.<anonymous> (D:\Development\web_projects\imsoldier\node_modules\webpack\lib\Compiler.js:400:9)
    at Compilation.<anonymous> (D:\Development\web_projects\imsoldier\node_modules\webpack\lib\Compilation.js:577:13)
    at Compilation.applyPluginsAsync (D:\Development\web_projects\imsoldier\node_modules\tapable\lib\Tapable.js:60:69)
    at Compilation.<anonymous> (D:\Development\web_projects\imsoldier\node_modules\webpack\lib\Compilation.js:572:10)
    at Compilation.applyPluginsAsync (D:\Development\web_projects\imsoldier\node_modules\tapable\lib\Tapable.js:60:69)

I'm using that /assets/js/app because inside I have my app.js, controllers.js, etc. of angular and I have the style loaderand the path package.

That issue is usually because a path you specified in the config is invalid.
The config below is looking for a file /assets/js/app/index.js or /assets/js/app.js:
 config: {
      entry: path.resolve(__dirname, "./../assets/js/app"), // go up one from config into the src dir, no need to say index.js
      output: {
          path: path.resolve(__dirname, './../assets/js/app'),  // go up one from config into the assets dir,
          filename: "bundle.js"
      },

So change these to the correct entry file of your angular code, you should probably change the output path also otherwise this builds to the same directory - the sails grunt build normally goes to a .tmp folder in the root of the project so this is generally a good place to output to for consistency. So maybe output to ./../.tmp/assets/js ? perhaps. Entirely up to you.

Also, remove the 'development' object from your config if it's not being used, this creates a webpack dev server which you're currently not using.

I see now,
I'm trying to replicate almost all the grunt default functions and in this case I'm using CopyWebpackPlugin to copy the folder to the .tmp/public and it's working fine but now I'm dealing with the stylus compilation to css but if you really can create an angular quick starter.. will be perfect!
I'm new in webpack as you can see but I really want to create this project and release it then I'm going to create a new differente one but using react.

For stylus you can use https://github.com/shama/stylus-loader - you need to add the loader and then the export extensions as listed on the readme, should just work straight away then. You'll need all the extensions shown, including the empty one.
Can't promise a starter until later tomorrow or the day after though

That´s ok.
Thanks!


Raid Support

Using a software raid in not supported, even bios-level software raids.  Enable software raid support to allow extended storage.

I secound this,  for what its worth :D  Ever by the install media or added as extra storage via the web app.


change cutlass url in ut

Motivation
change cutlass url in ut
Modification
Please briefly describe what modification is made in this PR.
BC-breaking (Optional)
Does the modification introduce changes that break the backward-compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist

Pre-commit or other linting tools are used to fix the potential lint issues.
The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness.
If the modification has a dependency on downstream projects of a newer version, this PR should be tested with all supported versions of downstream projects.
The documentation has been modified accordingly, like docstring or example tutorials.

llama3 results in UT failure

Fixed in #1438


Rpi4 support

Just wondering if this would still work on the pi with videocore vi or is it incompatible

I have no idea how the VC 6 works, it's probably completely different. My guess is no.

For what I hear its not much diferent than vc4... and its vulkan capable on the hardware. There is no more mesa development for now (not really active at least, just minor fixes).

Should we ever have a working Vulkan driver for VC6 in mesa, I think it would be easier to "migrate"  necessary VC4 code to mesa.
That said - I think we are still years away ;)

This is on pi4 ...
pi@raspberrypi:~/src/mesa-/rpi-vk-driver $ ./depthTex
supported extensions:
VK_KHR_get_display_properties2
VK_KHR_get_physical_device_properties2
VK_KHR_get_surface_capabilities2
VK_KHR_surface
VK_KHR_xcb_surface
VK_KHR_xlib_surface
VK_KHR_display
VK_EXT_direct_mode_display
VK_EXT_acquire_xlib_display
VK_EXT_display_surface_counter
VK_EXT_debug_report
VK_KHR_external_memory_capabilities
VK_EXT_debug_utils
created vulkan instance
physical device with vulkan support found
physical device supports version 1.1.102
segmentation error

this driver only supports the Videocore IV GPU, so only RPi 0, 1, 2, 3 are supported.

Official Raspberry Pi 4 Vulkan driver is in development by the consulting firm Igalia with a recent status update.
Previous MESA efforts for VC4 Vulkan support can be found in some vc4/v3d WIP branches by Eric Anholt.
See Phoronix for good media coverage (this is how I became aware of the project in the first place)!


FirstOrCreate 好像有bug,没查寻到时，insert 插入的全是空值

db.Table("mid_award").FirstOrCreate(res,map[string]interface{}{"school":5})
SELECT * FROM "mid_award"  WHERE ("mid_award"."school" = 5) ORDER BY "mid_award"."id" ASC LIMIT 1
[0 rows affected or returned ]
[2019-06-27 12:39:53]  [0.62ms]  INSERT  INTO "mid_award" ("ctime","utime","ipad","onion_head") VALUES ('0001-01-01 00:00:00','0001-01-01 00:00:00',0,0) RETURNING "mid_award"."id"

struct 字段首字母写成了小写


Drizzle plugin -Schema property required

I had to add the schema property to the drizzle option - or else I would get an error Cannot convert undefined or null to object when creating my objects.
Maybe this should be documented ?

The schema option is shown in the docs for installing the plugin (https://pothos-graphql.dev/docs/plugins/drizzle#installing) which has a link to the drizzle docs describing how to create a relational query builder:

The drizzle plugin is built on top of drizzles relational query builder, and requires that you define and configure all the relevant relations in your drizzle schema. See https://orm.drizzle.team/docs/rqb for detailed documentation on the relations API.

More than happy to accept PRs to improve the docs though

Hey thanks for the quick reply and of course I can lend a hand. Thanks for this necessary library.


[sntp] initial implementation of sntp client

This PR introduces support for SNTP that includes:

Basic SNTP Client implementation
Retransmission mechanism
CLI example
CI extension

SNTP client takes around 1.5kB of FLASH and 70 bytes of RAM on nRF52840 platform.

Thanks for contributing this - looks great! There seems to be a lot of code duplicated with other components, especially DNS Client. We should consider if/how to share that code in the future.


Expose message size stats in arroyo

We currently do not have those and as a result, every consumer writes their own.
i tried to add them in https://github.com/getsentry/arroyo/pull/235 -- but that PR ended up being a huge performance regression

Can we sample aggressively? Approximate trends in sizes may still be useful?


Added index.d.ts to package bundle

As i can see you've a index.d.ts file in your project source. Unfortunately this file is not shipped in the bundeled package. This pull request will add this file to the bundle and register the typings.

👍

You're welcome - Thanks for merging :)


DOC, Style: Use editor compatible code cells in gallery

closes #9563
This is a global search and replace through the examples/ and tutorials/ directories for going from 79 "#" to "# %% ####...".
I furthermore changed some licenses from "BSD style" to "BSD (3-clause)" (see 61d3f54f7b9c879fd506d660e80491c17d952e60) AND added licenses as follows to examples/tutorials that had no license:
# Authors: MNE-Developers
#
# License: BSD (3-clause)

(see a462d2e44d9839bdeaccc678823b0669bcff051f)
I then made use of the fact that each gallery file has a string # License: BSD (3-clause) before the imports to inject a "# %% ####..." right above the imports, so that editors will pick this up as a code cell as well.
Let's see how it looks. You can click on details to see the code I used for this.
If we later decide to use # %% instead of # %% ######..., that can be easily adjusted.
(PS: Going through the commits one by one is probably more helpful than looking at the whole diff in this case)

"""Reformat sphinx-gallery.

Before running this I did a global search and replace from
###############################################################################
to the new # %% syntax

And I renamed several "BSD style" licenses to "BSD (3-clause)" for consistency
and clarity.

"""

# %%
# imports
from pathlib import Path
import glob
import io

# %%
# find all example and tutorial PYTHON files
p = Path("/home/stefanappelhoff/Desktop/bids/mne-python")

searchstr = str(p / "tutorials" / "**" / "*.py")
tutfiles = glob.glob(searchstr, recursive=True)
print(len(tutfiles))

searchstr = str(p / "examples" / "**" / "*.py")
exfiles = glob.glob(searchstr, recursive=True)
print(len(exfiles))

len(tutfiles) + len(exfiles)

# %%
# find files that are missing a license

match = "License: BSD (3-clause)"
fs_wo_lic = []
for fpath in tutfiles + exfiles:
    with open(fpath, "r") as fin:
        lines = fin.readlines()

    flag = True
    for line in lines:
        if match in line:
            flag = False
            break

    if flag:
        fs_wo_lic.append(fpath)

fs_wo_lic

# %%
# make sure each example / tutorial has a copyright line at the top

inject = """
# Authors: MNE-Developers
#
# License: BSD (3-clause)
"""
inject_lines = io.StringIO(inject).readlines()

for fpath in fs_wo_lic:
    with open(fpath, "r") as fin:
        lines = fin.readlines()

    new_lines = []
    got_quotes = 0
    injection_done = False
    for line in lines:

        # We'll print this line back later
        new_lines += line

        # Now check injection
        if '"""' in line:
            got_quotes += 1

        if got_quotes == 2 and not injection_done:
            new_lines += inject_lines
            injection_done = True

    with open(fpath, "w") as fout:
        fout.writelines(new_lines)

# %%
# Now make the imports their own cell

inject_part = "# %%"
inject = f"""
{inject_part} ##########################################################################
"""
inject_lines = io.StringIO(inject).readlines()

for fpath in tutfiles + exfiles:
    with open(fpath, "r") as fin:
        lines = fin.readlines()

    new_lines = []
    injection_done = False
    for line in lines:

        # We'll print this line back later
        new_lines += line

        # Now check injection
        if "# License: BSD (3-clause)" in line and not injection_done:
            new_lines += inject_lines
            injection_done = True

    with open(fpath, "w") as fout:
        fout.writelines(new_lines)

# %%

let's stick with # %% after all.  It will be easier to type when writing new tutorials, and I'm OK with how it ends up looking in the editor (given that many editors do add an extra line or something that makes it more "landmarky").

Okay thanks @drammock, I'll do that in the next commit. Before doing that, could you inspect the rendered docs and let me know if I should change anything?

Before: https://mne.tools/dev/auto_examples/connectivity/mixed_source_space_connectivity.html
After: https://30859-1301584-gh.circle-artifacts.com/0/dev/auto_examples/connectivity/mixed_source_space_connectivity.html#sphx-glr-auto-examples-connectivity-mixed-source-space-connectivity-py

I did only a few spot checks:

nothing should have changed in the rendering
EXCEPT that the "Authors and license" snippet should be its own cell now, which I think is okay. WDYT?

Before:

After:

I took a look, and honestly I'm not crazy about the addition of
# Authors: MNE-Developers
# License: BSD (3-clause)

(e.g., here: https://30859-1301584-gh.circle-artifacts.com/0/dev/auto_tutorials/intro/10_overview.html compared to current main https://mne.tools/stable/auto_tutorials/intro/10_overview.html).
My reasons are:

authorship is trackable by git blame, I never really saw the point of putting it in the examples/tutorials to begin with
saying the author is "MNE Developers" is uninformative
the license is already specified in the repo, seems unnecessary to re-state it on every example/tutorial

If anything, I'd lean toward removing the author/license block on tutorials/examples that have it, rather than adding a (redundant?) author/license block to ones that didn't have it yet.
@sappelhoff in requirements_doc.txt can you also change sphinx to  sphinx != 4.1.0 please?  There's a bug in 4.1.0 that makes our logo disappear (see the circleci rendering, it just says "logo" there); a fix is merged already but 4.1.1 hasn't been released yet.

I think these are valid reasons and I'd agree with all of them in principle.
One valid point for having the author/copyright notices is "recognition" (e.g., for new contributors), and maybe a point to a lesser degree is "easier accountability" (not everybody has the knowledge to search through git blame).
The main reason why I added them here is consistency: This was only missing in a minority of cases, and in an even smaller minority it said "BSD style" instead of BSD 3-clause.
Having that said, I would be up to removing all of these notices (consistently). I just think that it would need a bigger discussion than adding the few notices with "MNE Devs" as copyright holder, just because removing somebody's name is maybe more of an affront. I don't know, interested in your view here. Could also be done in a separate PR.
I'll add the sphinx change in the next push.

After some off-GitHub discussion, the emergent decision seems to be:

change BSD-style to BSD 3-clause
don't add # authors: MNE Developers anywhere
leave existing authors alone in this PR; we'll do a separate PR to remove them (but tag everyone who would be affected, and be open to not merging it if there's general disapproval)

To this I will add my personal aesthetic opinion that it looks odd to me when there's a code cell in the rendered tutorial that only contains author/license comments.  If there's an easy way to get the existing author/license comments into the imports code cell (presumably by putting the # %% a couple lines higher), I would advocate for that.

leave existing authors alone in this PR; we'll do a separate PR to remove them

I'm -1 on this. While git blame is possible, the number of users who know about it and can use it (even with GitHub button) are the minority. Writing the tutorials is extremely time consuming. I feel that having your name at the top of these documents is good for recognition amongst ones peers, and this would be lost if they are removed.
For those people who's names are on the papers this probably makes no difference. But for the smaller contributors this is probably a big deal. Just as we added new authors to the change log, I think including names at top of examples is good encouragement for new submitters.
If anything I would vote to also add all reviewers of a tutorial to increase contributor exposure, not reduce it.

I think in this situation it's good to put on the non-developer hat. It's likely only coders read the change logs. Whereas your PIs and general scientists probably read the tutorial/examples. So for widest possible recognition of contributions the tutorials would be most effective

Thanks for the summary Dan, and thanks for chiming in from a different perspective Rob.
For now I'll:

leave my change from BAS-style --> BSD 3-clause
remove my change to add generic "MNE Developers" copyright notices

Lastly, regarding your comment:

To this I will add my personal aesthetic opinion that it looks odd to me when there's a code cell in the rendered tutorial that only contains author/license comments. If there's an easy way to get the existing author/license comments into the imports code cell (presumably by putting the # %% a couple lines higher), I would advocate for that.

I think it's actually nicer to have the imports cell without the authors, so that If I want to actually copy the imports, I don't have to remove the authors from my own script into which I want to copy the imports. But I agree with your point that having the authors as their own cell looks weird. Perhaps I can try to integrate them into the initial docstring (bounded by the triple quotation marks)

But I agree with your point that having the authors as their own cell looks weird. Perhaps I can try to integrate them into the initial docstring (bounded by the triple quotation marks)

I ended up not changing this from my previous commits: Authors/License are still their own code block before the imports codeblock.

I don't find that nice, but nicer than having a comment about authors in the imports block
We might (or not, we'll see how the discussion goes) remove the author/license blocks anyhow.

This is ready for review / merge from my side.

Yes, it's:

replace ############### to # %%
block sphinx 4.1.0
change BSD-style --> BSD 3-clause
Add a #%% before the imports

all of this only in tutorials/ and examples/

Sorry I'm a bit late, just wanted to share that to SPDX identifier for the license is BSD-3-Clause (mind the dashes), see
https://spdx.org/licenses/

I think it's a good idea to use that identifier, so I made some global search+replace calls.
There remain some BSD licenses in the code base that I did not remain because it was unclear:

BSD 2-clause --> BSD-2-Clause?
BSD Style --> BSD-3-Clause?
BSD (or similar) --> ??
BSD form
BSD license

BSD 2-clause --> BSD-2-Clause?

Yes

BSD Style --> BSD-3-Clause?
BSD (or similar) --> ??
BSD form
BSD license

I think these are all under-specified and we'd have to guess :\

okay, done, except for one case of "BSD 2-clause" which was a copy paste from somewhere, and that's probably something we don't want to touch.
As for the rest: I vote leaving them alone for now.

As for the rest: I vote leaving them alone for now.

+1

+1 for merge when CIs green

Thanks @sappelhoff!


How to set minimunClusterSize?

I have some markers that the coordenates are almost identical, but on the map the cluster doesn't group them unless there are more than 5 markers on the same place (which I believe is the default minimun value). Is there any way to change this setting?

Having the same issue here, did you figure it out?

Ah, found it: https://github.com/googlemaps/android-maps-utils/blob/master/library/src/com/google/maps/android/clustering/view/DefaultClusterRenderer.java
    public int getMinClusterSize() {
        return mMinClusterSize;
    }

    public void setMinClusterSize(int minClusterSize) {
        mMinClusterSize = minClusterSize;
   }

So in my service I call:
var renderer = new dis.clustering.view.DefaultClusterRenderer(app.android.context, dis.gMap, dis.cluster_manager);

renderer.onBeforeClusterItemRendered = function (item, markerOptions) {
    console.log("setup");
    markerOptions.alpha(0.8);
    markerOptions.flat(true);
    markerOptions.rotation(item.rotation);

    var icon = new Image();
    icon.imageSource = imageSource.fromResource('icon_location');
    var androidIcon = com.google.android.gms.maps.model.BitmapDescriptorFactory.fromBitmap(icon.imageSource.android);
    markerOptions.icon(androidIcon);

};

dis.cluster_manager.setRenderer(renderer);

renderer.setMinClusterSize(1);

I don't get the "setup" console log, which is another story to figure out, but "setMinClusterSize" does its work :)

related to #5
closing unless unless a PR is proposed


Screenshot Viewer cant show screenshots on symlinks

i have been playing with this mod for a good while and it is a really good mod
recently tho, i wanted to try the Better MC modpack, but my computer is weak so i decided to go on linux and play there
since i dont always use linux, i decided to make the screenshot folder a symlink to the one in windows (because windows cant read ext3/ext4 partitions and therefor i cant access my screenshots on windows)
the screenshots are saved fine, but screenshot viewer says there are no screenshots

Hello,
It is quite complicated to replicate your issue and as I tested, it seems that Screenshot Viewer doesn't have much issues when reading symlinks. Make sure the path to your symlink specified in the mod config is correct and is accessible and readable.
I can't bring further help so I'm closing this.