text:
[BUG] dbt 1.8 and Python 3.12 causes failure

Describe the bug
When trying to run any dbterd command, even dbterd --version causes a stacktrace to be output
To Reproduce
Steps to reproduce the behavior:
Environment setup:

dbt version 1.8.5
Pyton version 3.12.2
dbterd version 1.17.0 (also fails on 1.16.0 and haven't tried any other versions further back)

Run the command dbterd --version stack trace produced

Expected behavior
The command not to produce a stack trace and run without error e.g. dbterd --version to output a version string.
Screenshots

Desktop (please complete the following information):

OS: Mac OS 14.3.1
dbterd --version's output [e.g. 1.7.1] -> I have pip installed 1.17.0 but version command doesn't work

Running logs (if possible):
Traceback (most recent call last):
  File "/Users/datageekdude/.pyenv/versions/zdbt/bin/dbterd", line 5, in <module>
    from dbterd.main import main
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/dbterd/main.py", line 1, in <module>
    from dbterd.cli import main as cli
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/dbterd/cli/main.py", line 7, in <module>
    from dbterd.adapters.base import Executor
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/dbterd/adapters/base.py", line 9, in <module>
    from dbterd.adapters.dbt_cloud.administrative import DbtCloudArtifact
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/dbterd/adapters/dbt_cloud/administrative.py", line 6, in <module>
    from dbterd.helpers import file
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/dbterd/helpers/file.py", line 5, in <module>
    from dbt_artifacts_parser import parser
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/dbt_artifacts_parser/parser.py", line 20, in <module>
    from dbt_artifacts_parser.parsers.manifest.manifest_v1 import ManifestV1
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/dbt_artifacts_parser/parsers/manifest/manifest_v1.py", line 17, in <module>
    class ManifestMetadata(BaseParserModel):
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/pydantic/_internal/_model_construction.py", line 200, in __new__
    set_model_fields(cls, bases, config_wrapper, types_namespace)
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/pydantic/_internal/_model_construction.py", line 469, in set_model_fields
    fields, class_vars = collect_model_fields(cls, bases, config_wrapper, types_namespace, typevars_map=typevars_map)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/pydantic/_internal/_fields.py", line 132, in collect_model_fields
    type_hints = get_cls_type_hints_lenient(cls, types_namespace)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/pydantic/_internal/_typing_extra.py", line 228, in get_cls_type_hints_lenient
    hints[name] = eval_type_lenient(value, globalns, localns)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/pydantic/_internal/_typing_extra.py", line 240, in eval_type_lenient
    return eval_type_backport(value, globalns, localns)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/datageekdude/.pyenv/versions/3.12.2/envs/zdbt/lib/python3.12/site-packages/pydantic/_internal/_typing_extra.py", line 264, in eval_type_backport
    return typing._eval_type(  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/datageekdude/.pyenv/versions/3.12.2/lib/python3.12/typing.py", line 400, in _eval_type
    return t._evaluate(globalns, localns, recursive_guard)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/datageekdude/.pyenv/versions/3.12.2/lib/python3.12/typing.py", line 907, in _evaluate
    eval(self.__forward_code__, globalns, localns),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 1, in <module>
TypeError: constr() got an unexpected keyword argument 'regex'

Additional context
N/A

Ah thanks! Yes that seems to have worked.
We use Poetry to do the install and it seems it didn't pick up the dependency to update that library too. Thanks.

Great!
FYI: We decided to relax the pinned version of dbt-artifacts-parser (here) because we wouldn't want to release newer versions everytime dbt-artifacts-parser got the new ones (meaning new dbt core version released).
In the meantime, I've tried to pay the attention in the home page but will be great if you could suggest something better here. Thanks 🙌 🙏

authors: CraigWilson-ZOE datnguye

repo: datnguye/dbterd


text:
Broken link in README

fyi the image is broken on README, and I looked around the few flowershow repos, but the obsidian-vs-flowershow can't be found anywhere so I'm not sure what to replace it with as well.
So just letting u guys to know to replace it 😊

@lyqht Thank you very much for reporting that! Fixed :)

source: gharchive/issue

authors: lyqht olayway

repo: datopian/flowershow

license: MIT

license_type: permissive

license_source: github-api


text:
Do a release to PyPI

Split out of #126
### Tasks
- [ ] Add @athornton as maintainer on pypi for giftless so he can push
- [ ] Do a release to pypi which covers ...
- [ ] https://github.com/datopian/giftless/issues/102
- [ ] https://github.com/datopian/giftless/issues/119
- [ ] Automate releases from tags (?)

I'm happy to push a new release if I'm empowered to do so, although we should definitely merge up that new auth work @vit-zikmund was working on and probably revisit the s3 signed URL thing too.

@demenech any news on being to add @athornton to pypi as a maintainer on giftless so he can push etc ...

Ok realise 🤦♂ this is really a duplicate of #119
Let’s close

authors: athornton rufuspollock

repo: datopian/giftless


text:
AkitaNgDevtools (.forFeature ?) to work with lazy loaded modules

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[x ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behaviour

AkitaNgDevtools isn't working when it's being imported to a module which is lazy loaded (unlike StoreDevtoolsModule of ngrx for example).
Expected behaviour

For AkitaNgDevtools to work with a lazy loaded module.
Something like AkitaNgDevtools.forFeature().
Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Although it seems unlikely, sometimes we want an app which only part of it will implement Akita.
Environment

Angular version: 7.1.0 beta

Browser:
- [x ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: XX
- Platform:

Others:

I'm not sure what you mean as Akita dev-tools works with lazily loaded modules. What is the problem?

@NataneBasal
Oh, well I either implemented it in a wrong way or its a bug.
When I try to import Akita dev-tool to the lazy loaded module, its simply not working.
But when I import it to the AppModule its work perfectly.

Can you create a simple demo on stackblitz or upload a simple demo to GitHub, please?

Can you create a simple demo on stackblitz or upload a simple demo to GitHub, please?

https://stackblitz.com/edit/angular-pvyj9v

Devtool is imported to lazy loaded module with no result in the redux extension
Comment it out and go to app module. uncomment the akita devtool and see the result in the redux extension.

*might need to hard reload between changes.

Why do you need to inject it in a lazy load module?

This part of our app needs to be lazy loaded and this is the only part (for now) which implements Akita.
I understand this is a very unusual scenario but this is due to the nature of this app being used for training and experiment purposes.

I will try to investigate, but can't promise anything :)

That's fine, we still love Akita and looking forward to using it more extensively in the future!

You can't use the AkitaNgDevtools.forRoot() module as it relies on the application bootstrap process. But it works with the underline API.
import { akitaDevtools } from '@datorama/akita';

akitaDevtools(); <======

const routes: Routes = [
  { path: '', component: LazyLoadedComponent }];

@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(routes)
  ],
  providers: [ExampleQuery, ExampleStore, ExampleService],
  declarations: [LazyLoadedComponent],
})
export class LazyLoadedModule { }

repo: datorama/akita


text:
added dat.json url parser to clone command.

I've added dat.json url parser to the clone command as described in #639. dat clone ., dat clone dat.json, and dat clone ./path/to/dat.json ./dir should work as expected.
dat clone ./path/to/dat.json without a target directory specified creates a dat repo clone in the current working directory named after the key link that was parsed from dat.json.
dat clone does not yet work. It seems to have something to do with src/parse-args.js. I'll submit an issue about it.

@ralphtheninja when I added aafb1c3 I was hoping someone would be able to clue me into why dat clone wouldn't work without any arguments. It turns out that I had accidentally used null instead of undefined which I fixed in 6e776c9 and dfa61dd. Everything should now work as specified in #639 and publish.md minus dat ..
I made another change in 6e776c9 and dfa61dd so now if an output directory isn't specified when a url is parsed from a dat.json file the working directory becomes the output directory.
There are a couple of caveats that I realized could be fixed that I'm working on now:

dat clone ./path/to/output won't work without catching that the key link is missing.

dat clone ./path/to/input ./path/to/output where ./path/to/input doesn't include dat.json won't work without catching that dat.json is missing.

After that I'll try writing and adding a new 'clone - dat.json' test to test/clone.js. I tried writing a test earlier using 'clone - default opts' as a template. I don't quit understand what's going on with help.shareFixtures yet but I'll try to figure it out.

I've fixed the caveats but there still needs to be tests for dat-is-link and clone - dat.json.

It would be really nice if you could take the code for dat-is-link and keep it inside dat to start with (it's just a function anyway). It's difficult to read the PR when there's a new module involved. Could put the tests locally to dat as well and once everything works, then refactor.

I can write some tests for dat-is-link if you want.

It would be really nice if you could take the code for dat-is-link and keep it inside dat to start with (it's just a function anyway).

@ralphtheninja, got it. I thought it could be a nice utility to have. Should I take the contents of dat-is-link and declare a function such as isDatLink within the scope of clone before the dat.json parser I added or is there somewhere in src to declare helper functions?
Any tests you could write for is-dat-link would be great!

Thanks for getting started on this. A few comments to add to @ralphtheninja:

dat clone without arguments seems a bit too magical for me. Requiring the third argument will help us make sure it's doing what is expected for now (even if its just dat clone .). We can drop that requirement later if needed.
We have dat-encoding for parsing dat links. Since it is already a dependency, we should reuse this if possible (we can PR any needed changes there).

Since its fairly easy to check if a dat.json exists, its not vital we catch 100% of the dat links. dat clone datproject.org/joehand/cli-demo is a valid link but hard to parse. That could refer to either a directory with a dat.json or a link we need to resolve. We should try finding the dat.json first and if that fails, then try to resolve the link.

Strange to me. Moving var path = require('path') from bottom of deps list to top in c38cc68 caused tests to fail when running on node.js:6, but passes on node.js:4 and node.js:8 . When I moved it back and ran locally on node.js:7 all tests passed.

We have some inconsistent failing tests because of a hypercore bug, we can rerun it again =). As long as they don't all fail it should be okay.

We should try finding the dat.json first and if that fails, then try to resolve the link.

:+1:
This should make this a lot easier and more clean.

Am I using neatLog as intended in 8d744a6? It does work. A test still needs to be written but is there anything else that should be done or changed?

Also, am I using neatLog as intended in 8d744a6? It does work.

Oops, sorry may have made that more complex than intended. I was thinking your logic could go inside of the existing neat log function, replacing the opts.key check. Neat that it works with how you did it but don't think we want to init the logger twice.

I've cleaned up the logic a bit. Now errors error when link is actually resolved.

I've cleaned up the logic a bit. Now errors error when link is actually resolved.

Awesome! This reads a lot nicer now. There are a few small things but I think we can add the tests/docs then get this merged! Let me know if you want help with either of those. Tests are still a bit of a pain right now.

@joehand help with the tests would be awesome. I should be fine with the docs if it's just updating publish.md.

@joehand tests pass locally but failed on Travis. Is there any way that I can restart Travis tests or can only you do that?

@joehand tests pass locally but failed on Travis. Is there any way that I can restart Travis tests or can only you do that?

Maybe only I can? Not sure if you see the restart arrow on the right side here: https://travis-ci.org/datproject/dat/builds/263573873
Anyways, restarted that one. As long as they pass locally (or some pass) we don't need to worry about travis until we're about to merge.

Hey @TimothyStiles see below for some tests (I tried to push but was rejected, did you allow edits from maintainers? maybe messed up my git-fu).
The tests where I don't set cwd fail because of the different default expectations.
Tests:

test('clone - specify directory containing dat.json', function (t) {
  help.shareFixtures(function (_, shareDat) {
    tempDir(function (_, dir, cleanup) {
      fs.writeFileSync(path.join(dir, 'dat.json'), JSON.stringify({url: shareDat.key.toString('hex')}), 'utf8')

      // dat clone /dir
      var cmd = dat + ' clone ' + dir
      var st = spawn(t, cmd)
      var datDir = dir

      st.stdout.match(function (output) {
        var downloadFinished = output.indexOf('Exiting') > -1
        if (!downloadFinished) return false

        var fileList = help.fileList(datDir).join(' ')
        var hasCsvFile = fileList.indexOf('all_hour.csv') > -1
        t.ok(hasCsvFile, 'csv file downloaded')
        var hasDatFolder = fileList.indexOf('.dat') > -1
        t.ok(hasDatFolder, '.dat folder created')
        var hasSubDir = fileList.indexOf('folder') > -1
        t.ok(hasSubDir, 'folder created')
        var hasNestedDir = fileList.indexOf('nested') > -1
        t.ok(hasNestedDir, 'nested folder created')
        var hasHelloFile = fileList.indexOf('hello.txt') > -1
        t.ok(hasHelloFile, 'hello.txt file downloaded')

        st.kill()
        return true
      })
      st.succeeds('exits after finishing download')
      st.stderr.empty()
      st.end(function () {
        cleanup()
        shareDat.close()
      })
    })
  })
})

test('clone - specify directory containing dat.json with cwd', function (t) {
  help.shareFixtures(function (_, shareDat) {
    tempDir(function (_, dir, cleanup) {
      fs.writeFileSync(path.join(dir, 'dat.json'), JSON.stringify({url: shareDat.key.toString('hex')}), 'utf8')

      // cd dir && dat clone /dir/dat.json
      var cmd = dat + ' clone ' + dir
      var st = spawn(t, cmd, {cwd: dir})
      var datDir = dir

      st.stdout.match(function (output) {
        var downloadFinished = output.indexOf('Exiting') > -1
        if (!downloadFinished) return false

        var fileList = help.fileList(datDir).join(' ')
        var hasCsvFile = fileList.indexOf('all_hour.csv') > -1
        t.ok(hasCsvFile, 'csv file downloaded')
        var hasDatFolder = fileList.indexOf('.dat') > -1
        t.ok(hasDatFolder, '.dat folder created')
        var hasSubDir = fileList.indexOf('folder') > -1
        t.ok(hasSubDir, 'folder created')
        var hasNestedDir = fileList.indexOf('nested') > -1
        t.ok(hasNestedDir, 'nested folder created')
        var hasHelloFile = fileList.indexOf('hello.txt') > -1
        t.ok(hasHelloFile, 'hello.txt file downloaded')

        st.kill()
        return true
      })
      st.succeeds('exits after finishing download')
      st.stderr.empty()
      st.end(function () {
        cleanup()
        shareDat.close()
      })
    })
  })
})

test('clone - specify dat.json path', function (t) {
  help.shareFixtures(function (_, shareDat) {
    tempDir(function (_, dir, cleanup) {
      var datJsonPath = path.join(dir, 'dat.json')
      fs.writeFileSync(datJsonPath, JSON.stringify({url: shareDat.key.toString('hex')}), 'utf8')

      // dat clone /dir/dat.json
      var cmd = dat + ' clone ' + datJsonPath
      var st = spawn(t, cmd)
      var datDir = dir

      st.stdout.match(function (output) {
        var downloadFinished = output.indexOf('Exiting') > -1
        if (!downloadFinished) return false

        var fileList = help.fileList(datDir).join(' ')
        var hasCsvFile = fileList.indexOf('all_hour.csv') > -1
        t.ok(hasCsvFile, 'csv file downloaded')
        var hasDatFolder = fileList.indexOf('.dat') > -1
        t.ok(hasDatFolder, '.dat folder created')
        var hasSubDir = fileList.indexOf('folder') > -1
        t.ok(hasSubDir, 'folder created')
        var hasNestedDir = fileList.indexOf('nested') > -1
        t.ok(hasNestedDir, 'nested folder created')
        var hasHelloFile = fileList.indexOf('hello.txt') > -1
        t.ok(hasHelloFile, 'hello.txt file downloaded')

        st.kill()
        return true
      })
      st.succeeds('exits after finishing download')
      st.stderr.empty()
      st.end(function () {
        cleanup()
        shareDat.close()
      })
    })
  })
})

test('clone - specify dat.json path with cwd', function (t) {
  help.shareFixtures(function (_, shareDat) {
    tempDir(function (_, dir, cleanup) {
      var datJsonPath = path.join(dir, 'dat.json')
      fs.writeFileSync(datJsonPath, JSON.stringify({url: shareDat.key.toString('hex')}), 'utf8')

      // cd /dir && dat clone /dir/dat.json
      var cmd = dat + ' clone ' + datJsonPath
      var st = spawn(t, cmd, {cwd: dir})
      var datDir = dir

      st.stdout.match(function (output) {
        var downloadFinished = output.indexOf('Exiting') > -1
        if (!downloadFinished) return false

        var fileList = help.fileList(datDir).join(' ')
        var hasCsvFile = fileList.indexOf('all_hour.csv') > -1
        t.ok(hasCsvFile, 'csv file downloaded')
        var hasDatFolder = fileList.indexOf('.dat') > -1
        t.ok(hasDatFolder, '.dat folder created')
        var hasSubDir = fileList.indexOf('folder') > -1
        t.ok(hasSubDir, 'folder created')
        var hasNestedDir = fileList.indexOf('nested') > -1
        t.ok(hasNestedDir, 'nested folder created')
        var hasHelloFile = fileList.indexOf('hello.txt') > -1
        t.ok(hasHelloFile, 'hello.txt file downloaded')

        st.kill()
        return true
      })
      st.succeeds('exits after finishing download')
      st.stderr.empty()
      st.end(function () {
        cleanup()
        shareDat.close()
      })
    })
  })
})

test('clone - specify dat.json + directory', function (t) {
  help.shareFixtures(function (_, shareDat) {
    tempDir(function (_, dir, cleanup) {
      var datDir = path.join(dir, 'clone-dest')
      var datJsonPath = path.join(dir, 'dat.json') // make dat.json in different dir

      fs.mkdirSync('clone-dest')
      fs.writeFileSync(datJsonPath, JSON.stringify({url: shareDat.key.toString('hex')}), 'utf8')

      // dat clone /dir/dat.json /dir/clone-dest
      var cmd = dat + ' clone ' + datJsonPath + ' ' + datDir
      var st = spawn(t, cmd)

      st.stdout.match(function (output) {
        var downloadFinished = output.indexOf('Exiting') > -1
        if (!downloadFinished) return false

        var fileList = help.fileList(datDir).join(' ')
        var hasCsvFile = fileList.indexOf('all_hour.csv') > -1
        t.ok(hasCsvFile, 'csv file downloaded')
        var hasDatFolder = fileList.indexOf('.dat') > -1
        t.ok(hasDatFolder, '.dat folder created')
        var hasSubDir = fileList.indexOf('folder') > -1
        t.ok(hasSubDir, 'folder created')
        var hasNestedDir = fileList.indexOf('nested') > -1
        t.ok(hasNestedDir, 'nested folder created')
        var hasHelloFile = fileList.indexOf('hello.txt') > -1
        t.ok(hasHelloFile, 'hello.txt file downloaded')

        st.kill()
        return true
      })
      st.succeeds('exits after finishing download')
      st.stderr.empty()
      st.end(function () {
        cleanup()
        shareDat.close()
      })
    })
  })
})

Darn, did not mean to merge that.

@joehand Can you restore the PR?

@joehand Can you restore the PR?

Not easily b/c it wasn't merged in github. Have to manually revert. @TimothyStiles you may need to reopen the PR in a bit, sorry.

@TimothyStiles please open the PR again, sorry! If you allow edits from maintainers, it'll be easier for me to add tests and what not. Thanks.

@joehand just reopened PR with edits from maintainers. #847

source: gharchive/pull-request

authors: TimothyStiles joehand ralphtheninja

repo: datproject/dat


text:
Stiphle\Storage\LockWaitTimeoutException while using Memcahced

I tried to setup the Rate Limit using the instruction, but failed in both using InProcess and Memcached.
With In Process, it result in an endless loop
$throttle = new \Stiphle\Throttle\LeakyBucket;
while (true){
    echo $throttle->throttle(getClientIP(), 2, 5000);
}
#Call API Function here

And with Memcached, I got LockWaitTimeoutException
$throttle = new \Stiphle\Throttle\LeakyBucket;
$storage = new \Stiphle\Storage\Memcached(new \Memcached());
$throttle->setStorage($storage);
while (true){
 echo $throttle->throttle(getClientIP(), 2, 5000);
}
#Call API Function here

Silly me, I didn't setup Memcached, thus it didn't work

repo: davedevelopment/stiphle

license: mit

license_source: bigquery


text:
Awesome library, but doesn't support InputStream as ImageSource

Please add InputStream support, thanks.

should first ask will a single InputStream suffice?  I am not sure, but I heard media playback like mp4 will request InputStream serveral times when you navigate

Q: mp4 will request InputStream serveral times when you navigate
A: Yes, but it works for a seekable InputStream.

Sorry, there is no plan to support InputStream because it could be partially read, blocking, already closed, or closed while the view is visible. This creates a lot of error conditions the view would have to handle and would result in a lot of unreproducible bugs.

authors: KnIfER davemorrissey lucca2011


text:
Fix editable install with pip

Avoid import textual_astview when use editable installation using pip
python -m pip install -e .
Obtaining file:///home/oleksis/PYTHON/textual-astview
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/home/oleksis/PYTHON/textual-astview/setup.py", line 10, in <module>
          import textual_astview
        File "/home/oleksis/PYTHON/textual-astview/textual_astview/__init__.py", line 15, in <module>
          from .widgets.astview     import ASTView, ASTNode
        File "/home/oleksis/PYTHON/textual-astview/textual_astview/widgets/astview.py", line 12, in <module>
          from rich.text import Text
      ModuleNotFoundError: No module named 'rich'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

[notice] A new release of pip available: 22.2.2 -> 22.3.1
[notice] To update, run: pip install --upgrade pip

Thanks. I'll hold off on this for the moment because I've been meaning to get out of my setup.py habit anyway, and this is the repo where I want to look at more current options -- one of my little midwinter holiday side-quests I have lined up. :-)

Thanks again; this was the push I needed to finally start to break the setup.cfg habit. Testing here, with https://github.com/davep/textual-astview/commit/b7777cb3e3b755b8d1bbe034ae49d7da210c0673 in place, editable install works fine.

Ok! You can keep move from setup.cfg to pyproject.toml

Aye, that'll be the next logical step.

authors: davep oleksis

repo: davep/textual-astview


text:
Take over display causes garbled text when using u8g2 library and attached code

Describe the bug
when using renderer.takeOverDisplay(myDisplayCallback);   on a callback function the screen is garbled
Confirm that the bug is in the embedded library
If the bug is in the designer, or you are not sure, raise in the main tcMenu repo.
Commerical or personal/community use
personal
To Reproduce
use the follwoing code with esp32 and ss1306 oled screen
`
#include "menuShow_menu.h"

#define CS 5
#define DC 17   // 16
#define RESET 4 // 17
u8g2_uint_t writeUTF8(const uint8_t *font, const u8g2_uint_t line, const u8g2_uint_t x, const char *buff, bool rtl = false)
{
    _oled.setFont(font);
    return _oled.drawExtUTF8(x, line, rtl ? 1 : 0, NULL, buff);
}
void myDisplayCallback(unsigned int encoderValue, RenderPressMode clicked)
{
    if (clicked == RPRESS_HELD)
    {
        renderer.giveBackDisplay();
    }
    else
    {
        _oled.clearBuffer();
        _oled.setFont(u8g2_font_ncenB08_tr);
        _oled.drawStr(0, 10, "Hello World!");
        _oled.sendBuffer();
    }
}

void setup()
{
    setupMenu();
    renderer.takeOverDisplay(myDisplayCallback);
}

void loop()
{
    taskManager.runLoop();
}

void CALLBACK_FUNCTION onExit(int id)
{
    renderer.takeOverDisplay(myDisplayCallback);
}

`
Expected behavior
when exiting the menu the string hello world should remain
Screenshots

Device Specs
esp32
1.3" OLED Module 1.3 inch LCD Screen Display Module Blue 128X64 I2C Communicate 128*64 4P

The code doesn't look quite right, you need to change the text color (and drawing mode), it is sometimes set to XOR in tcMenu. At the very least I think you'd need to add _oled.setDrawColor(WHITE);.

setting color to white worked, but that never appeared in the samples , this only happens in the menu switching , also this forces the code to be tied to a specific color oled, even though it only has one color.

The samples for this use the device drawable means of drawing instead of native library calls.
The take over display needs you to reset the display library to a known state just as you would if you drew yourself on the display.

Closing as not an issue.

i believe this is something that also needs to be in the docs for the takeoverDispaly

If you think something is missing in an example why not raise a PR with additional documentation in place?

authors: davetcc emaayan

repo: davetcc/tcMenuLib


text:
Removing the "error:" prefix in exception handling?

Hi! I have noticed that even when providing your own custom error classes, the message that gets output to stderr is always prefixed with "error:", as a result of this method:
https://github.com/davetron5000/gli/blob/gli-2/lib/gli/app_support.rb#L284-L288
I'd like more control over the exact error message here, and therefore would like to remove this prefix, would you be open to making that configurable at all please?
Thanks!

Sounds reasonable.  If you'd like to look into it, I'll be faster at looking at your PR than I was this issue (sorry for the delay).  The code that does it is here: https://github.com/davetron5000/gli/blob/gli-2/lib/gli/app_support.rb#L287 and it should be tested enough to give you a reference on how to make the change.


text:
Add info about installing/activating for Jupyter Lab?

It would be helpful to have some short info in the README about how to enable ipyearth when using Jupyter Lab.

Thanks @deeplook, I added some instructions about Jupyter Lab installation in https://github.com/davidbrochart/ipyearth/commit/83ea62e80655071a1e48c2500c7ab9e6b929cc5f.

authors: davidbrochart deeplook

repo: davidbrochart/ipyearth


text:
Not loading for Googlebot smartphone

Thanks for the pretty neat plugin :)
Library returning 403 when being loaded by GoogleBot Smartphone:

Hi @apo-fw,
Thank you for your issue. This is the unpkg servers returning a 403. I'm not sure why you think this is an issue with the library itself? Because pasting the link into the browser is working as expected.
Try jsdelivr and see if that works:
<script src="https://cdn.jsdelivr.net/npm/embla-carousel@4.5.2/embla-carousel.umd.min.js"></script>

Kindly,
David

Oh thank you, that works! My mistake, I didnt try a different server.

@apo-fw glad to hear that it works 👍. I'm not sure why unpkg is returning 403 for Googlebot smartphone. But I still don't think this is an issue with the library itself, but rather with unpkg or Googlebot smartphone 🙂.
Enjoy!
David

authors: apo-fw davidcetinkaya

repo: davidcetinkaya/embla-carousel


text:
Bigcleanup

So this is a big pull request with a bunch of cleanup and formatting stuff.
a few chunks of code removed, lots of whitespace fixes, moving some things around to make everything a bit clearer.
Primarily this was just so I could get stuck back into all the code and get it back in my head again.
Tested in chrome and firefox on OSX, going to test on windows when I get a chance

There seems to be a glitch - the reset button doesn't clear the screen.

is that happening consistently for you? I'm not able to reproduce it on chrome or firefox

wait I download the timekeeper-cleanup instead of the bigcleanup branch, sorry, will give i a go now.

[just deleted misleading posts above]
Found one minor glitch - clicking on the "Livecodelab 2.0" box on the top-left used to bring up a small dialog, it doesn't anymore.

ah ha, good spot. just fixed it. I'm going to give this a go on a windows machine now. and assuming there's nothing terribly broken with it I'd like to get it merged

cool let me know how it goes.

ok, Chrome on windows works just fine. both sound and visuals.
On IE11, it's not so great :( the framerate is pretty poor, hanging around 17 to 20 fps. The audio doesn't work. This does seem to be exactly the same as when running against the currently released version though, so nothing seems to be broken that wasn't already

K if it's same as current release let's merge and take it from there then.

awesome, some of this will help make some of the other stuff I have in mind easier

authors: davidedc rumblesan

repo: davidedc/livecodelab


text:
Feature request - increase/decrease brightness with mouse wheel

First of all, you did a great job with your widget, it should definitely be included in plasma by default! I was looking for a widget like this for so long, tried many, but none of them worked like yours. Very simple and easy but does its job perfectly!
I have a feature request that's common for plasma widgets. It's the ability to increase/decrease the value by pointing the mouse to the tray icon and scrolling with the mouse wheel. We see this feature in the audio devices widget or the battery and brightness widget so it would be really beneficial to have it standardized in your widget also. It saves from unnecessary clicking :-)

This is something I plan on implementing at some point, however it is not as trivial as it might seem as soon as you're dealing  with multiple monitors with different brightness levels.

Definitely, it's not trivial to implement it universally. Maybe one way could be to control the brightness of the monitor where the widget is, assuming the user has multiple widgets on each monitor. Another way is to allow the wheel when the user has only one monitor, I guess this will be the most common use case.

I am not really satisfied with either solution. Similar tools for other platforms like Lunar for macOS handle this in a more intelligent way (see this video), I think we should look into how this feature works. That being said, implementing this has a pretty low priority for me right now, so I won't be able to work on this for at least the next one or two months.

I'd really like this feature, even without the synchronisation options.
There is a related discussion on ddcutil about synchronizing monitor brightness, Maybe synchronisation will be implemented there one day?
Thoughts about some other implementations:
Twinkle Tray supports controlling synchronized brightness for multiple displays by limiting the min/max brightness of individual screens. For me, it's not an option to reduce the min/max, so I just use the scrolling wheel without calibration, which is kinda ok and i can still adjust each screen if needed.
A similar configuration would be great, but with the ability to increase the brightness further the min/max of each screen.

MonitorControl allows to calibrate the screens in detail, but I think this is overkill.

For me, I have slightly different models of Dells in a multiple monitor setup. To get a consistent brightness across them, it requires one being set at a relative higher brightness than the others. It would be epic it the scroll wheel would adjust the values relatively, such that with a single scroll we could adjust the relative brightness of all monitors.
Thanks for the awesome plugin! It's already a huge benefit.


text:
[Bug]: canScrollNext method returns false even when there are items to scroll

Which variants of Embla Carousel are you using?

[ ] embla-carousel (Core)
[X] embla-carousel-react
[ ] embla-carousel-vue
[ ] embla-carousel-svelte
[ ] embla-carousel-autoplay
[ ] embla-carousel-auto-scroll
[ ] embla-carousel-solid
[ ] embla-carousel-auto-height
[ ] embla-carousel-class-names
[ ] embla-carousel-docs (Documentation)
[ ] embla-carousel-docs (Generator)

Steps to reproduce
The bug occurs when I use Fluent V9 Arrow Navigation hook. https://react.fluentui.dev/?path=/docs/utilities-focus-management-usearrownavigationgroup--default
Applied this hook inside the viewport into the container and canScrollNext() method started giving false.
Expected Behavior
canScrollNext() method should return true when there are slides on the right
Additional Context
I have also tried...
What browsers are you seeing the problem on?
Chrome
Version
v8.0.0-rc11
CodeSandbox
No response
Before submitting

[X] I've made research efforts and searched the documentation
[X] I've searched for existing issues
[X] I agree to follow this project's Contributing Guidelines for bug reports

@bansal1789 what's going on here?

repo: davidjerleke/embla-carousel


text:
Adapt tests to work with Python 2.7 and fix errors

Test suite works only with Python >=3. Previous versions should be supported too.
Also, there is an error on the question_mark test. After text should be fixed.
/cc @feinsteinben

It was tiring to make the string.translate implementation work on python2, so I reimplemented it using regexes. It's also much simpler.

authors: davidmogar feinsteinben

repo: davidmogar/normalizr


text:
Add babel build script

I'm not very happy that the main file in the package.json points to the transpiled es5 version. However it's necessary to include the dist folder in the git source, since it should be possible to use stylebuddy with npm install as well as with a regular git clone.
As a consequence npm version will run the build script and includes the artefacts in the new tag. Unfortunately using stylebuddy with nodejs will require the transpiled version, even if all the es6 language features are fully supported.
This PR closes https://github.com/davidspinat/stylebuddy/issues/14

I'm not aware of any better way to do it, but maybe not up to date w/ latest and greatest on npm publishing, would there be?

Some work with .npmignore and so on, but they all end up with not supporting git clone.
Thanks for approving the PR.

authors: davidspinat marcelbeumer

repo: davidspinat/stylebuddy

license: isc


text:
Centralized docker file for all use cases

Related to https://github.com/davidusb-geek/emhass/pull/200

This is not tested yet. Still need to work out how to best test this thoroughly.
If you test this yourself feel free to re-add the finish & run files.
Sorry, I wasn't shore if they would be needed or not. (run shouldn't be)

@davidusb-geek , Do we need to publish the Docker images to DockerHub for HA addons to still work?
Isn't the Add-on repository the github repository  anyways?
I commented out the image: "davidusb/image-{arch}-emhass" Line so the addon builds using its local  Dockerfile.
I set https://github.com/GeoDerp/emhass-add-on.git as a repository and it run fine using the Local Dockerfile (besideds the fact the emhass pip needs to be updated to match the changes)

I created a Test.me

More then happy to uncomment the image line (just let me know).
Would be good to test the github workspaces to see if they require the build argument passed, or they copy the build arguments from build.yaml

Just a note if you test this using the regular addon mode it will fail, as emhass pip its trying to find the config in /share directory. Testing using addon-git should work using repo from pr 200: https://github.com/GeoDerp/emhass/tree/centralized-Docker
And pip should work when built with PR 200

Ok I will test and see if I got all this right.
Just one quick question, I thought that the add-on image was always pulled from Dockerhub and then loaded.
But you are saying that it is always build locally by the user HA instance?

Good question. It depends if you have the image: "davidusb/image-{arch}-emhass" commented out or not in he config.yaml. That line will pull from docker hub. otherwise it will pull from git and build locally.
I have commented it out for local testing but we can add it back in.

Ok yes that's actually what I do when locally testing. Just comment that line and put the add-on files on the add-on folder in my HA instance, then a local add-on shows for testing. I think that we can leave the image for downloading from docker-hub, it can be useful for users with some limited resources (some Rpi's).

Ok yes that's actually what I do when locally testing. Just comment that line and put the add-on files on the add-on folder in my HA instance, then a local add-on shows for testing. I think that we can leave the image for downloading from docker-hub, it can be useful for users with some limited resources (some Rpi's).

Sounds good. I'll uncomment the line and also tweak the test markdown now 👍

If the publish worflows don't work maybe adding the line  --generic latest. I think this may help building based on build.yaml, but im not sure.

example:
  publish_armv7:
    name: Publish-armv7
    runs-on: ubuntu-latest
    steps:
      - name: Checkout the repository
        uses: actions/checkout@v2
      - name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      - name: Publish
        uses: home-assistant/builder@master
        with:
          args: |
            --armv7 \
            --target emhass \
            --docker-hub davidusb \
             --generic latest

Im seeing now if we could integrate https://github.com/home-assistant/builder/blob/master/.github/workflows/test.yml into this repo to test

https://github.com/GeoDerp/emhass-add-on/blob/live-test/.github/workflows/test.yaml

https://github.com/GeoDerp/emhass-add-on/actions/runs/7989275935/job/21815534964
Looks like armhf failed with #9 246.9       ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'

The test.yaml by the way iterates the architectures and is triggered manually or on pull request .

That is very nice. The armhf builds are failing since some months ago. I've tried several times to solve it without success

@davidusb-geek
Got it working with this
Requirements:
pvlib>=0.10.2
protobuf>=3.0.0
pytz>=2021.1
requests>=2.25.1
beautifulsoup4>=4.9.3
h5py==3.10.0
pulp>=2.4
pyyaml>=5.4.1
tables<=3.9.1
skforecast==0.11.0
flask>=2.0.3
waitress>=2.1.1
plotly>=5.6.0
emhass==0.7.7
#git+https://github.com/davidusb-geek/emhass

Docker
RUN apt-get update \
    && apt-get install -y --no-install-recommends \
    libffi-dev \
    python3 \
    python3-pip \
    python3-dev \
    python3-numpy \
    python3-wheel \
    python3-setuptools \
    python3-setuptools-whl \
    python3-scipy \
    python3-pandas \
    git \
    build-essential \
    gcc \
    coinor-cbc \
    coinor-libcbc-dev \
    libglpk-dev \
    glpk-utils \
    libhdf5-dev \
    libhdf5-serial-dev \
    netcdf-bin \
    libnetcdf-dev \
    pkg-config \
    gfortran \
    libatlas-base-dev \
    && ln -s /usr/include/hdf5/serial /usr/include/hdf5/include \
    && export HDF5_DIR=/usr/include/hdf5 \
    && pip3 install --extra-index-url=https://www.piwheels.org/simple --no-cache-dir --break-system-packages -r requirements.txt \
    && apt-get purge -y --auto-remove \
    gcc \
    build-essential \
    libhdf5-dev \
    libhdf5-serial-dev \
    pkg-config \
    gfortran \
    && rm -rf /var/lib/apt/lists/*

@davidusb-geek , Tomorrow (Friday) I'll modify the build arguments for git and then ill be pritty happy for both related PR's.
I may also make the armhf test seperate

Hi @GeoDerp, so were you able to solve the build issues for armhf archs?
I see that they are not part of the automated builds now.

Yeah I have just set armhf to its own step so we can see the other three work. currently the workflow is broken tho. Fixing it now. And unfortunately, I haven't worked out a fix for armhf (besides bumping to python 3.11 which brakes its own issues )

Relativity happy with it (its not perfect). Found a error when using the latest EMHASS pip with the new Docker. Will work out if that a reliant issue (as new git EMHASS works). Will also proof read my work and then done.
The error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/requests/models.py", line 971, in json
    return complexjson.loads(self.text, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/decoder.py", line 340, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 4 (char 3)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/local/lib/python3.11/dist-packages/emhass/web_server.py", line 207, in <module>
    config_hass = response.json()
                  ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/requests/models.py", line 975, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Extra data: line 1 column 4 (char 3

Also another note. The main issue with armhf is with python wheel. If this got fixes it would fix everything related. Alternatively updating  pandas support to the latest version would also fix the issue by setting
    python3-numpy \
    python3-wheel \
    python3-setuptools \
    python3-setuptools-whl \
    python3-scipy \
    python3-pandas \

in apt-get instead of python requirements.txt

Thanks for all this work John. You tell me when it's ready to merge. It seems that some tests are falling

Hopefully I'll be able to finish it tonight.

@davidusb-geek , Should be ready to go. Will just wait for build test confirmation.

Just a note, the armv7 takes around a 1hr 30min to build test. My guess is that the armv7 servers are just less powerful.

Everything seems good. Yes that's normal for armv7, it has been like that for add-on releases. It even worst before I found the trick of passing the pywheels url. Before that it took like 10 hours!
Armhf is still failing but that won't block a new release.
It seems like a problem installing Pandas along with Python 3.11 on that arch.

Both PR's should be ready to be tested and pulled.
No stress if you choose not to use it. 👍
Let me know if anything comes up. 😁

authors: GeoDerp davidusb-geek

repo: davidusb-geek/emhass-add-on


text:
0.9.4 does not load on latest Mobile release

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Console Errors
Go to View->Toggle Developer Tools and open up the JavaScript console, reproduce your bug, and copy/paste any logs you see there.
Device info (please complete the following information):

OS: [e.g. iOS]
Plugin Version [e.g. 0.1.3]

Additional context
Add any other context about the problem here.
Title says it all!

Hi @davebhc71, please fill out the template. I can’t help reproduce the issue with just a title.
My guess is that I updated the required version of Obsidian to 1.1.1, which has not yet been released on mobile. I can try rolling it back to 0.16 and see if that makes a difference, but without knowing the exact error message I can’t do much.

repo: davish/obsidian-full-calendar


text:
Consider len(<CHAIN>) language element

Consider a language element such as len(<CHAIN>) to return the current number of neighbors in the sparse iteration described by <CHAIN>. It would be equivalent to writing sum_over(<CHAIN>, 1), which is a trick to express the same thing.
It's important to remark that the value of such expression is not the same across the whole domain, thus it cannot be considered a compile-time constant.

Good point. Thanks!
I think for now it's enough to track this. There's no immediate need for it and it's unclear how good this design would be.

repo: dawn-ico/dusk


text:
BROKEN plugin-sling: thread 'tokio-runtime-worker' panicked at 'called Option::unwrap() on a None value': src/tasks.rs:235

I get the error with v2.1.1 when starting CLN and I have an existing sling job:
2024-10-21T11:54:38.141Z DEBUG   plugin-sling: Peerchannels refreshed in 1ms
2024-10-21T11:54:38.141Z UNUSUAL plugin-sling: gossip_reader: Malformed gossip_store: 4101 without 256
2024-10-21T11:54:38.141Z DEBUG   plugin-sling: gossip_reader: header error at 46760008:failed to fill whole buffer (not an actual error if buffer could not be filled)
2024-10-21T11:54:38.141Z DEBUG   plugin-sling: gossip_reader: gossip_store read in: 3089ms
2024-10-21T11:54:38.141Z DEBUG   plugin-sling: gossip_reader: found updates:87101 announcements:59103 amounts:59103 deletes/dying:9
2024-10-21T11:54:38.141Z DEBUG   plugin-sling: Peerchannels refreshed in 110ms
2024-10-21T11:54:38.141Z DEBUG   plugin-sling: gossip_reader: post_processing_time: 224ms
2024-10-21T11:54:38.141Z DEBUG   plugin-sling: Reading gossip store done after 3315ms!
2024-10-21T11:54:38.141Z INFO    plugin-sling: 86265 public channels in sling graph after 3319ms!
2024-10-21T11:54:38.141Z DEBUG   plugin-sling: Got * local channels after 3319ms!
2024-10-21T11:54:38.141Z BROKEN plugin-sling: thread 'tokio-runtime-worker' panicked at 'called Option::unwrap() on a None value': src/tasks.rs:235

What CLN version are you running?

v24.08

This is very strange. The error implies that one of your private channels does not have an alias for the remote side. Could you check your channels (listpeerchannels) and see if they all have local and remote aliases like this?:
"alias": {
            "local": "111111x1111x111",
            "remote": "22222x2222x222"
         },

This is very strange. The error implies that one of your private channels does not have an alias for the remote side. Could you check your channels (listpeerchannels) and see if they all have local and remote aliases like this?:
"alias": {
            "local": "111111x1111x111",
            "remote": "22222x2222x222"
         },

None of my channels have a remote alias. I have a different peer for each channel.

That seems like a bug in CLN to me. I need that remote alias to receive sats on that channel. Just to be clear you have private channels where the output of listpeerchannels show something like this:
"alias": {
            "local": "111111x1111x111",
         },

That seems like a bug in CLN to me. I need that remote alias to receive sats on that channel. Just to be clear you have private channels where the output of listpeerchannels show something like this:
"alias": {
            "local": "111111x1111x111",
         },

Correct, this is what I see


text:
Mehrzeilige Checkbox und Radio Labels

Which design system content is impacted?

[ ] Figma Core Foundations
[X] Figma Core Components
[ ] Figma Core Patterns
[ ] Figma Core Icons
[ ] Sketch Core (Foundations/Components/Patterns)
[ ] Sketch Core Icons

Which version is impacted?
3.0.0-Beta-1
Reproduction case
Die Labels von Checkbox und Radio können nur über einen manuellen Umbruch mehrzeilig werden.
Expected
Prüfen, ob die Komponenten neben Auto Width auch ein Full Width verhalten aufweisen sollte.
Screenshots
No response
Add any other context about the problem here.
No response

Wird über Full Width gelöst.

branch
fix: minor bugfixes

Review
✅ Done
Findings

Checkbox Indeterminate Full (medium/small): Alignment center left
Checkbox Checked Full (medium/small): Alignment center left

Fixes

Checkbox Indeterminate Full (medium/small): Alignment top left
Checkbox Checked Full (medium/small): Alignment center left

authors: leape oli-ver-h

repo: db-ui/design-feedback


text:
Change Date formats in Query results

In the query results , currently date fields are showing in 12-14-2020 10:03:42 format.   I’d like them to display in 14-DEC-2020 10:21:07 AM format.   I’ve attempted to change the format in the format/view –> data format –> both global and datasource settings but have had no success.
Is it possible to change?
System information:
Windows 2012 R2
DBeaver 7.2.4
Connection specification:
Database Oracle 11g
Thanks you.

Most probably you change the format via settings button in the bottom toolbar. It doesn't work for now https://github.com/dbeaver/dbeaver/issues/10601
Please right-click the connection name in DB Navigator>select Edit connection>set you date/time format>Press Test connection and press Ok after it.
The changes will be applied.
Please feel free to ask to reopen the ticket if the issue is not resolved.

I followed your instructions.   The date format is still not showing correctly in my query results.
[cid:image001.png@01D6D2C1.1B0E4750]
From: Kseniia notifications@github.com
Sent: Tuesday, December 15, 2020 12:59 AM
To: dbeaver/dbeaver dbeaver@noreply.github.com
Cc: Wells, Kevin D. Kevin.Wells@mymlc.com; Author author@noreply.github.com
Subject: Re: [dbeaver/dbeaver] Change Date formats in Query results (#10691)
NOTICE: This email is from an external source. DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. REPORT suspicious emails to the Help Desk ASAP.

Most probably you change the format via settings button in the bottom toolbar. It doesn't work for now #10601https://github.com/dbeaver/dbeaver/issues/10601
Please right-click the connection name in DB Navigator>select Edit connection>set you date/time format>Press Test connection and press Ok after it.
The changes will be applied.
Please feel free to ask to reopen the ticket if the issue is not resolved.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dbeaver/dbeaver/issues/10691#issuecomment-745096133, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR7ES22GEYG5N4UEKQ3HPWTSU4CMTANCNFSM4U3MY6DA.
DISCLAIMER: The information contained in this message is privileged and confidential information intended for the use of the addressee. If you are not the intended recipient you are hereby notified that any disclosure, copying, or distribution is strictly prohibited.

Please check also that this option is disabled.
How do you write timestamp pattern? Here is my settings

This fixed my issues.
Thank you.
From: Kseniia notifications@github.com
Sent: Tuesday, December 22, 2020 1:08 AM
To: dbeaver/dbeaver dbeaver@noreply.github.com
Cc: Wells, Kevin D. Kevin.Wells@mymlc.com; Author author@noreply.github.com
Subject: Re: [dbeaver/dbeaver] Change Date formats in Query results (#10691)

NOTICE: This email is from an external source. DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. REPORT suspicious emails to the Help Desk ASAP.

Please check also that this option is disabled.

How do you write timestamp pattern? Here is my settings

[Screenshot 2020-12-22 at 09 58 45]https://user-images.githubusercontent.com/51405061/102859743-8e897900-443d-11eb-9903-a443b2ba11c3.png
[Screenshot 2020-12-22 at 10 01 01]https://user-images.githubusercontent.com/51405061/102859516-128f3100-443d-11eb-929e-c17d721cac9d.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dbeaver/dbeaver/issues/10691#issuecomment-749385331, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR7ES24AMN64YUCIFN3U7PTSWBAWVANCNFSM4U3MY6DA.
DISCLAIMER: The information contained in this message is privileged and confidential information intended for the use of the addressee. If you are not the intended recipient you are hereby notified that any disclosure, copying, or distribution is strictly prohibited.

Great!

authors: WellskDBeaver kseniiaguzeeva

repo: dbeaver/dbeaver


text:
Syntax error in DDL when exporting varchar column to MySQL/DB2 form another DB

System information:

DBeaver version 21.1.3

Connection specification:

Database name and version MySQL 5.5/DB2 + PostgreSQL 12

Describe the problem you're observing:
Exporting a table from PostgreSQL with a varchar column leads to syntax error because generated DDL reads CREATE TABLE Table_name ( column1 varchar NULL, column2 numeric NULL) , but it can't be created without a varchar column length in parenthesis. The same issue with export to DB2
Steps to reproduce, if exist:

Create a table in PostgreSQL with a varchar column
Perform an export to MySQL database with a create mapping for this table

Expected: Table is exported
Actual: Syntax error in DDL
Include any warning/errors/backtraces from the logs
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL, column2 numeric NULL

Same problem with export to Hive

Implemented.
Now in the case of table migration from those databases that may have varchar data type without modifiers DBever will choose other data types for long strings. Like longtext, clob or string.

Tested on Hive, Oracle, DB2, MySQL, SQLite.


text:
Go to Matching Bracket have save active key binding as Pin/Unpin

Description
Noticed that the "Go to Matching Bracket" have the same active key binding as "Pin/Unpin" - both are using Ctrl+Shift+P.
DBeaver Version
Community  23.0.4.202305071722
Operating System
Windows
Database and driver
No response
Steps to reproduce
Click on HELP -> "Show Active KeyBindings...."
Additional context
No response

Thank you for bug report.

Thabks everyone!
On Fri, May 26, 2023, 3:52 PM Serge Rider @.***> wrote:

Closed #20031 https://github.com/dbeaver/dbeaver/issues/20031 as
completed via #20088 https://github.com/dbeaver/dbeaver/pull/20088.
—
Reply to this email directly, view it on GitHub
https://github.com/dbeaver/dbeaver/issues/20031#event-9347647023, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AFLHD23DCRAKOYV2WYBR3ILXIBOL5ANCNFSM6AAAAAAYJZH7HA
.
You are receiving this because you authored the thread.Message ID:
@.***>


text:
Dbeaver would NOT start on RHEL 8 with SWT library issues

Description
DBeaver-ce has been installed on RHEL 8.8 kernel Linux 4.18.0-477.21.1.el8_8.x86_64, with snap, as described at https://snapcraft.io/install/dbeaver-ce/rhel
DBeaver wouldn't start and threw error such as:
!ENTRY org.eclipse.osgi 4 0 2023-09-04 08:56:03.023
!MESSAGE An error occurred while automatically activating bundle org.eclipse.ui.ide (153).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.ui.internal.ide.IDEWorkbenchPlugin.start() of bundle org.eclipse.ui.ide.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:839)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:767)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1032)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:371)
at org.eclipse.osgi.container.Module.doStart(Module.java:605)
at org.eclipse.osgi.container.Module.start(Module.java:468)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:513)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:570)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:335)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:397)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:41)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleLoader.java:496)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:416)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:168)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at org.jkiss.dbeaver.ui.app.standalone.DBeaverApplication.getRecentWorkspaces(DBeaverApplication.java:362)
at org.jkiss.dbeaver.ui.app.standalone.DBeaverApplication.setIDEWorkspace(DBeaverApplication.java:338)
at org.jkiss.dbeaver.ui.app.standalone.DBeaverApplication.start(DBeaverApplication.java:182)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/home/ec2-user/.eclipse/org.jkiss.dbeaver.product_23.2.0_634681369_linux_gtk_x86_64/configuration/org.eclipse.osgi/143/0/.cp/libswt-gtk-4960r6.so: /home/ec2-user/.e
clipse/org.jkiss.dbeaver.product_23.2.0_634681369_linux_gtk_x86_64/configuration/org.eclipse.osgi/143/0/.cp/libswt-gtk-4960r6.so: failed to map segment from shared object
no swt-gtk in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
no swt in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
/home/ec2-user/.swt/lib/linux/x86_64/libswt-gtk-4960r6.so: /home/ec2-user/.swt/lib/linux/x86_64/libswt-gtk-4960r6.so: failed to map segment from shared object
Can't load library: /home/ec2-user/.swt/lib/linux/x86_64/libswt-gtk.so
Can't load library: /home/ec2-user/.swt/lib/linux/x86_64/libswt.so
/home/ec2-user/.swt/lib/linux/x86_64/libswt-gtk-4960r6.so: /home/ec2-user/.swt/lib/linux/x86_64/libswt-gtk-4960r6.so: failed to map segment from shared object
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:346)
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:255)
    at org.eclipse.swt.internal.C.<clinit>(C.java:19)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:209)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:155)
    at org.eclipse.swt.widgets.Display.<clinit>(Display.java:169)
    at org.eclipse.ui.internal.ide.IDEWorkbenchPlugin.createProblemsViews(IDEWorkbenchPlugin.java:390)
    at org.eclipse.ui.internal.ide.IDEWorkbenchPlugin.start(IDEWorkbenchPlugin.java:347)
    at org.eclipse.osgi.internal.framework.BundleContextImpl$2.run(BundleContextImpl.java:818)
    at org.eclipse.osgi.internal.framework.BundleContextImpl$2.run(BundleContextImpl.java:1)
    at java.base/java.security.AccessController.doPrivileged(Unknown Source)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:810)
    ... 31 more

I couldn't find corresponding packages/libraries such as libswt-gtk ... in RHEL 8 we have though.
Could anyone kindly help? Many thanks,
DBeaver Version
23.2.0
Operating System
RHEL 8.8
Database and driver
N/A
Steps to reproduce
Follow the steps described at:
https://snapcraft.io/install/dbeaver-ce/rhel
Additional context
No response

Hi!
Is the EPEL repository added for rhel version 8 and not for 7?
Try to yum update
Also, please check the libswt-gtk.so library location

It’s been a while since an update here. If the issue is still happening, please let us know and provide additional information.

authors: arhayka daxuyin riednyko


text:
Error retrieving next row on Spark Thrift Server when create table or view

Description
Connecting to Thriftserver with Hive driver, every time I try to create a table or view I get this error:

DBeaver Version
22.3.0
Operating System
Linux/Windows
Database and driver
org.apache.hive.jdbc.HiveDriver 2.7.3.2.6.5.0-292
Steps to reproduce
Connect to a Thrift server, then:
create table tbl_test(id integer, code string) using delta;
or
create table tbl_test(id integer, code string);
Additional context
No response

Hello @andreachecchi
Could you please check the latest DBeaver version?
And please provide log files. You can find instructions here: https://dbeaver.com/docs/wiki/Log-files/. Thank you.

Thanks for your quick reply!
I have the latest version:

The log windows shows the same error I posted before:

You can find the debug log below:
head_dbeaver-debug.log
tail_dbeaver-debug.log
Hope this helps!
Thanks in advance

For me same for insert too. seems that sql queries which does not return any data they raise this exception.
It is the issue of the driver I belive.

Any news about this issue?
Thanks in advance

It is unclear for now how we can fix it from DBeaver's side.
Maybe changing this preference will help somehow?

It didn't work :(
Can I help you doing any other test?
Thanks

authors: LonwoLonwo andreachecchi matepek


text:
[Feature request] DBeaver should not close table tabs without active connection

There is not expected behaviour with closing table tabs when there are no connection within these tabs.
Lets make simple scenario:

Create connection without saved password.
Connect and give password.
Open some tables.
Close DBeaver.
Reopen DBeaver and DO NOT give password when asked.
Tabs will be closed, which is not expected.

I propose to mark these tabs as non-active and only ask for password when user select tab.
If user second time do not give password, tab should be empty and read-only.
Above behaviour is the same on network outage, then even giving password often close tabs, because program detect connection closed before reconnection.

This is still not very clear. If you click on some "saved" table and you don't provide password so there is no connection - table will be closed because DBeaver can't fetch any information about that table. for me this looks like more or less expected behavior.
Any how, we need some other opinions on that.

Already implemented

I'm afraid, it is not fully fixed. When there are no connection on dBeaver start and i have opened table (properties/data/er diagram) tab, error window is shown, but if i choose Ignore, then:
a) tab is lost, always displays error - i do not found a way to refresh this tab
b) and closes if i change tab to another (also these broken tabs are not saved at close).
It looks like only script tabs are properly supported by new mechanism now.

Thanks, i appreciate all work You do on this great software :-).

Thanks, i'll try it.

authors: SylwesterZarebski serge-rider uslss


text:
DBeaver: SQL Editor SQL Assistant/Completion fails the first time

DBeaver - Version 5.3.2 Beta CE
DBeaver driver: MS SQL Server  / Microsoft Driver (the new Microsoft Driver)
Operating System: Windows 7 / Windows 8.1 / Windows 10
Database Server: Microsoft SQL Express 2014, 2016, 2017
The first try to either use Auto SQL assistant or use of Sql Assist (Ctrl+Blank) fails. Seems that the DBeaver data source is not completely initiated the first time.
o Start DBeaver.
o Connect to a database that contain a table like Categories (if not already connected).
o Open a SQL Editor (if not already open).
o Write a SQL command like
   SELECT * FROM cat
o Wait for the Auto SQL assistant to kick in or use Sql Assist (Ctrl+Blank).
o A popup window is shown that only contain a choice of
   CATALOG
o Press ESC key to close the popup window.
o Activate the Sql Assist by pressing the Ctrl+Blank keys.
o A popup window is shown that now contain the tables available (I use the _Northwind DB)
   Categories
   Category sales for 1997
   Sales by Category
   ...
Seems that the environment for SQL Assistant (manual or automatic) is not fully initialized the first time the function is used.

Can't reproduce so far.
Is this SQL Server specific?

Oh yes. This is a bug with the new Microsoft Driver implementation. It works with the Old driver (Microsoft).
Also noticed this misbehaviour that has to do with this issue:
o Start DBeaver.
o Uncheck the global property/setting Database -> Editos -> SQL Editor -> SQL Completion -> Enable auto activation-
o Restart DBeaver.
o Now run the steps described in the main issue above.
When you use the Sql Assist (Ctrl+Blank) the first time DBeaver gives you a popup window/list containing a long list of procedures in the SQL Server *sys schema.
This misbehaviour looks alot like the one we had before you corrected my issue #4879.

I have tried the EA from 02-Jan-2019 18:48 and it workes ok. Great work!

authors: pdanie serge-rider


text:
Oracle Connection not respecting Role with JDBC string

System information:

Kali Linux Rolling
DBeaver version 6.3.1

Connection specification:

Oracle
Oracle JDBC Driver 11.2.0.3.0

Describe the problem you're observing:
DBeaver provides a Custom section when setting up Oracle database connections. A JDBC URL can be entered.
A JDBC URL can include the username and password to the database. Directly below the GUI to enter in the JDBC URL is a Security section where the user can add the username and password. The role can also set to Normal, SYSDBA, and SYSOPER.
As a user I would expect the username and password from the JDBC URL to be respected when choosing a Role. The current behavior is to disregard whatever the Role dropdown is set to when the username and password are not set in the Security section. When using a JDBC URL with the credentials it's unintuitive that the Role will be passed as Normal unless you additionally fill out the credentials in the Security portion.
Steps to reproduce, if exist:

Gather a JDBC string with username and password in it
Setup a new Oracle connection within DBeaver
Paste the JDBC under Custom -> JDBC URL
Select Role as SYSDBA or SYSOPER
Click Test Connection or OK
Observe that the GUI settings appear to be set for a SYSDBA or SYSOPER user, although you get connected with a Normal role.

Include any warning/errors/backtraces from the logs

N/A

It seems, there is the same bug with Firebird. The FB JDBC have connection roles.

is it still actual?

authors: mkgrgis uslss wdahlenburg


text:
Lines in ER Diagrams

I quite like ER diagrams but I don't like how the lines simply connects two tables without considering the columns to be mapped. When setting up a diagram with multiple tables & foreign key constraints, it can be tiresome trying to determine what columns participates in what foreign key constraints.
One possible solution is to make the lines connect to the column(s) rather than some generic point on the table's edge to make it clear what column(s) participate in what key columns.

I'm looking for a similar feature. Another approach would be to add text labels to the edges themselves. The label could be auto-populated with the names of the column(s) participating from each table.
A minimal (but still helpful) addition would be to export a table describing the edges, e.g.:
A smaller request would be a way to export a table of all of the edge connectivity, something like:

Table
Reference Table
Column
Reference Column

users
organizations
orgid
id

plans
organizations
orgid
id

sessions
users
userid
id

Thank you very much for maintaining DBeaver, it's a great tool.

@bclothier you already can see which columns connect tables. Please click a line between tables, and columns with foreign key and primary key will be highlighted.
@rdeese thank you for the suggestion.

@kseniiaguzeeva Thanks. I was aware of that, but it is not practical when you want to look at the diagram for the big picture and not have to click on each line to get that additional information. Also, it wouldn't work if it's on paper or on a PDF.

Thank you for clarifying

duplicates #7257

authors: bclothier kseniiaguzeeva rdeese uslss


text:
How to move results panel toolbars?

System information:

Operating system (distribution) and version: Archlinux
DBeaver version: 7.1.4

Connection specification:

Database name and version: Microsoft SQL Server 2019 (RTM-CU5) (KB4552255) - 15.0.4043.16 (X64)

Describe your question:
Can't move the toolbars in the results panel.

any update status on this?

We implemented toolbar customization, so now you can set up which buttons should be visible.

Please, let me know if it solve your issue.

There has been no update for a long time. If the issue is still actual for you - feel free to reopen it.


text:
CircleCI failing, bad ECMWF credentials?

Hey @dbekaert and @leiyangleon. My latest PR is passing all tests locally but failing on CircleCI when trying to download the weather model. I also see that the main dev branch is also failing at the weather model download stage with the message "Too long with no output (exceeded 10m0s): context deadline exceeded." I'm wondering if there is a problem with CircleCI credentials for ECMWF?

I have noticed that using ECMWF api to download data takes way longer than the other apis. Also it varies. Sometimes it is pretty fast but sometime not. I checked their FAQ, and there seems to be a queue of submitted tasks. Whenever there is a long queue, it takes much longer. I don't think we actually downloaded any data using ECMWF api in CircleCI. Only including ECMWF credentials seems fine to me. Not sure what exactly happens.

re-ran it and it worked. Looks like a time-out

authors: dbekaert jlmaurer leiyangleon

repo: dbekaert/RAiDER


text:
Upgrade dependencies

This includes serde 1.0 and sodiumoxide 0.0.15.
Fixes #12.

Blocked by https://github.com/hyperium/mime.rs/issues/49.

repo: dbrgn/threema-gateway-rs


text:
[CT-349] Add test for load_dataframe

While working on https://github.com/dbt-labs/dbt-bigquery/pull/121 the contributor noticed that similar funcitonality of load_dataframe did not contain any integration testing these should be built and a good framework could be from the mentioned PR.
Additional context
Should have capability to test that dataframes are loaded and can pull down information
Who will this benefit?
all who use load_dataframe to add files to their project to insure stability of funcitonality.

The load_dataframe method is used for seeds on BigQuery:
https://github.com/dbt-labs/dbt-bigquery/blob/a426d3aaee7cb2b642fc0cbfe421d785c67529e3/dbt/include/bigquery/macros/materializations/seed.sql#L13-L14
Still, I'm sure we can always use more tests :)

repo: dbt-labs/dbt-bigquery


text:
update default for --projects-dir to current directory

Closes #125
Do we want to add an integration test for this?

@graciegoheen Heads up that there is a test failure on this one!

authors: graciegoheen nicholasyager

repo: dbt-labs/dbt-meshify


text:
Unused models

Describe the feature
The evaluator currently spots unused sources.
Wouldn't it  make also sense to spot unused models, too like here: https://hub.getdbt.com/rjh336/dbt_model_usage/latest/
Describe alternatives you've considered
This dbt package https://hub.getdbt.com/rjh336/dbt_model_usage/latest/ is already out there and works, but why to install two things for essentially the same thing
Who will this benefit?
This helps governing large projects and reduce unnecessary clutter

Ok fair, then let's ignore the package of model_usage which indeed uses the Information-Schema to check if a model is QUERIED.
Probably you indeed need to exclude the dim/fact/reporting-layer, but I would consider it part of the scope of the project evaluator to tell me if there are models which aren't REFERENCED anywhere, right?
I'm on vacation the next few weeks, but would be also in to draft a potential solution in a PR

In my case, all public models are configured in one or more exposure.
This exposure described in which case models are used and allow us to contact our users when a data quality issue or freshness problem occurs.

authors: cedric-orange timhiebenthal

repo: dbt-labs/dbt-project-evaluator


text:
Update on connections settings

Hey there!
Is there an ETA on updating dbtcloud_connection and dbtcloud_project_connection? Since no so long ago connections were moved into the account object now? I'm down to work on this if needed

After testing I realized this is not an enhancement anymore but an issue. Connections can't be created with the latest version of the provider. The schema
POST url: https://cloud.getdbt.com/api/v3/accounts/4954/projects/377492/connections/, status: 400, body: {"status":{"code":400,"is_success":false,"user_message":"The request was invalid. Please double check the provided data and try again.","developer_message":""}

I am actively working on allowing global connections in TF. For that we will add a connection_id to dbtcloud_environment and create a new dbtcloud_global_connection resource.
But what surprises me is that the current resources should still work though.
Could you share a sanitized version of the resource that is failing?

Awesome! And thanks for the quick reply
Here you go:
resource "dbtcloud_connection" "snowflake" {
  project_id = dbtcloud_project.project.id
  account    = "xxx"
  type       = "snowflake"
  name       = "Snowflake Connection"
  database   = "xxx"
}

resource "dbtcloud_project_connection" "snowfalke_connection" {
  project_id    = dbtcloud_project.project_data_privacy.id
  connection_id = dbtcloud_connection.snowflake.connection_id
}

Sanitized error log here:
dbtcloud_connection.snowflake: Creating...
╷
│ Error: POST url: https://cloud.getdbt.com/api/v3/accounts/xxx/projects/xxx/connections/, status: 400, body: {"status":{"code":400,"is_success":false,"user_message":"The request was invalid. Please double check the provided data and try again.","developer_message":""},"data":{"details":"{'account': 'xxxx, 'database': 'xxx', 'allow_sso': False, 'client_session_keep_alive': False} is not valid under any of the given schemas"},"extra":{},"error_code":null}
│
│   with dbtcloud_connection.snowflake,
│   on connections.tf line 2, in resource "dbtcloud_connection" "snowflake":
│    2: resource "dbtcloud_connection" "snowflake" {
│
╵
❌  exit status 1

From DBT's API spec it looks like that endpoint is not there anymore. Closest to that one would be:
https://docs.getdbt.com/dbt-cloud/api-v3#/operations/Create Account Connection

OK, so I think that this is not related to the global connection change but you are just missing the warehouse config for the data warehouse. Could you try again and let me know?
The new dbtcloud_global_connection resource that will be released soon should be better at highlighting missing mandatory fields.

The "old" endpoints are removed from the docs as people should be using the new global/account connection going forward, but they should still work from the time being.

Confirmed!! Adding the warehouse fixed it. The provider docs didn't mention it as mandatory so I just skiped it. Thanks for the support!

authors: b-per jordiortegonvoi

repo: dbt-labs/terraform-provider-dbtcloud


text:
Vertical Issue

isVertical 을 true 로 하면 Clipp의 표시가 이상하게 된다.

paint의 strokeWidth 가 문제였던 것.
parentBox.size.height로 바꿔주니 isVertical이 어떤 값이더라도 대응이 된다.


text:
Colorscales

I added transformed continuous color scales to fix #744 and fix what I think is a typo in asinh_formatter.
It seems to work fine but I am a Gadfly beginner so please make sure I didn't break anything!

I'm not sure I understand what made the CI build fail but I'm happy to try fix it if you guide me.

That worked, thanks @darwindarak !

LGTM. But I suspect this could use a test, otherwise your shiny new functionality might get broken by some other well-meaning future contribution :smile:.
The general guideline seems to be to add a new file to the test/ folder, with only one rendered display per file. Others can correct me if I'm wrong.

I added a single test instead of testing all variants since that seems to be the norm. (I did test them all manually.) I also updated the docs.
There is one more thing I'd like to do but I'd rather ask first: update the docs such that the name color_continuous takes precedence over color_continuous_gradient, for consistency with [xy]_continuous. We could even go one step further and deprecate color_continuous_gradient. Let me know what you think.

I think we should move towards making test-all-variants the norm if possible.  Why not?
It seems a little awkward to group all the variants under the docs for continuous_color.  It might make more sense to show them as convenience functions for ContinuousColorScale.  What do you think?

@darwindarak Sure I can add more exhaustive tests, I just didn't want to add too many files.
About the docs, yes and no. I agree that color_continuous might not the best place since they are not arguments but actually alternatives to color_continuous. I did this to mimic the existing doc for x_continuous. However I find it pretty discoverable this way since they are indeed continuous color scales, they are just transformed. And it makes the index of the docs less cluttered than having all variants listed.
Also, it looks very odd to me that ContinuousColorScale is the only camel-cased identifier in the list. It's pretty inconsistent. In my opinion, color_continuous should accept an optional argument corresponding to the f of ContinuousColorScale (renamed to something more meaningful like color_mapping or colormap) and we should remove ContinuousColorScale from the docs. But that should probably be another PR.

That makes sense, so group everything under color_continuous, and deal with ContinuousColorScale later?

Sounds good. It's ready to merge then. In a different PR, I'll rename color_continuous_gradient in the docs to color_continuous, update color_continuous to accept ContinuousColorScale's function argument, and remove ContinuousColorScale from the docs. We can discuss if color_continuous_gradient should be deprecated or not in the new PR.

authors: darwindarak simleb timholy


text:
Add dcos config edit command

which opens temporary file copy of config file with $EDITOR and only updates the real config file if validation succeeds.
Happy path, when the edits result in a valid config file:
$ dcos config edit
Executing: vim /var/folders/3b/sf0lrb1d69v8gfr8gvzxyy0h0000gn/T/tmp_rfx8308
Updated file: /Users/abramowi/.dcos/dcos.toml

Sad path, when user used some unknown parameter:
$ dcos config edit
Executing: vim /var/folders/3b/sf0lrb1d69v8gfr8gvzxyy0h0000gn/T/tmpzi8i4xpb
Error: Additional properties are not allowed ('some_unknown_param' was unexpected)
Path: core
Value: {"some_unknown_param": "blah", ...}
File /var/folders/3b/sf0lrb1d69v8gfr8gvzxyy0h0000gn/T/tmpzi8i4xpb failed validation check. Not updating /Users/abramowi/.dcos/dcos.toml.

I implemented dcoscli.util.edit_file as a (hopefully reusable) util function, because I noticed there are some places in the code where it mentioned that opening with an editor would be a useful future addition.

Can one of the admins verify this patch?

we have dcos config set for this. We update it in memory, and if validation succeeds we write to the file.

True. For some reason I like opening an editor, but maybe it's just me.

you can always use your favorite editor directory on the config file

True. Ok, I'll close this.

authors: mesosphere-ci msabramo tamarrow

repo: dcos/dcos-cli


text:
DCOS-41500: show JSON parsing errors as top level errors

Testing

Go to the Service form and open the JSON editor. Create invalid JSON. Admire the error message being shown on the left side and the review button not doing anything on click
Trade-offs

Decided against system tests, as this is a UI only issue IMHO

Dependencies

None
Screenshots

Do you think it makes sense to hide or disable/hard the form? I created a syntax error, then I went to edit the form, and it still performs changes on the JSON. I wonder if it could lead to a problem.
Also, there is this ticket for next sprint I guess (https://jira.mesosphere.com/browse/DCOS-39660) this is a fallback for the editor, for when the schema does not match, which causes our reducers tp break. I wonder if that ticket and this ticket do not overlap.

:tada: This PR is included in version 2.21.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

@Fabs I don't think I understand, could you create a ticket for that?

@DanielMSchmidt I don't think it needs a ticket. My ask is for you to take a look on DCOS-16032 and DCOS-39660 and, with the knowledge you have about your ticket, and see if you have any comments about the way our team should proceed on those tickets.
It looks to me that this work, and the work that those tickets need are related.

authors: DanielMSchmidt Fabs mesosphere-ci

repo: dcos/dcos-ui


text:
Set version to 1.10.5-hotfix1

High-level description
Setting the version string to 1.10.5-hotfix1

@mesosphere-mergebot bump-ee

@mesosphere-mergebot label  ready for review

@mesosphere-mergebot label ship-it

repo: dcos/dcos


text:
Switch bootstrap to use entry_points, cleanup packaging a little

Should help with some of the dirty build problems we've been seeing

:ship:

authors: cmaloney spahl


text:
[1.12] set interfaces as unmanaged by coreos networkd

High-level description
What features does this change enable? What bugs does this change fix?
This was first introduced in https://github.com/dcos/dcos/pull/2833 which set network interfaces used by DC/OS as unmanaged by networkd on all releases of Linux, and before this happens only on coreos.
This may bring errors when networkd is enabled on other Linux releases, refer to cops ticket explanation for detailed explanation.
Here we change the configuration takes effect only on coreos, and since coreos 1409.x.0, unmanaged link is supported in coreos networkd. But the interfaces are unmanaged by default.
[root@osboxes2 ~]# networkctl
IDX LINK             TYPE               OPERATIONAL SETUP
  1 lo               loopback           carrier     unmanaged
  2 enp0s3           ether              routable    unmanaged
  3 enp0s8           ether              routable    unmanaged
  4 virbr0           ether              no-carrier  unmanaged
  5 virbr0-nic       ether              off         unmanaged
  6 m-dcos           ether              routable    unmanaged
  7 docker0          ether              routable    unmanaged
  8 d-dcos           ether              no-carrier  unmanaged
 12 vethfe3cdb4      ether              degraded    unmanaged
 13 tunl0            tunnel             routable    unmanaged
[root@osboxes2 ~]# systemctl --version
systemd 219
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN
[root@osboxes2 ~]# cat /etc/*release
CentOS Linux release 7.6.1810 (Core)
... ...

Also I tested on Ubuntu 16.04.6 LTS and Ubuntu 18.04.3 LTS, the interfaces are unmanaged by default when networkd is active.
Corresponding DC/OS tickets (required)

DCOS-60956 COPS-5575: Nodes and applications are not pingable on DC/OS 2.0.

Related tickets (optional)

DCOS-ID JIRA title / short description.

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain.
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

@mesosphere-mergebot label Ready For Review


text:
Handle reorg

Detect and handle chain reorganization.  This requires disconnect block handling.

would be useful to show data such as the orphan rate. (and, partially related, time elapsed between blocks)

Closed by https://github.com/dcrdata/dcrdata/pull/43, and https://github.com/dcrdata/dcrdata/pull/44

authors: chappjc raedah

repo: dcrdata/dcrdata


text:
segmentation fault using deflate_decompress

I've got a segmentation fault using the function deflate_decompress. Here is the test used:
(.env) @:~/wkpy/test$ python
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import base64
>>> import deflate
>>> tt1 = "Sy1LzNFQt7dT10uvKs1Lzs8tKEotLtZIr8rMS8tJLEnVSEosTjUziU9JT\x635PSdUoLikqSi3TU\x43kuKTHQ\x42\x41Fr\x41\x41\x3d\x3d"
>>> tt1_decoded = base64.b64decode( tt1 )
>>> deflate.gzip_decompress( tt1_decoded )
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
deflate.DeflateError: Invalid gzip data.
>>> deflate.deflate_decompress( tt1_decoded )
Segmentation fault (core dumped)

I was trying to decompress a file found in a php file, apparently compressed with the gzdeflate() function.

I have the same problem with zlib_decompress. Using an older option also is not an option because deflate_decompress and zlib_decompress seem to be newly added in 0.5.0, the most recent version.
Can be reproduced very easily with:
python3 -c 'import zlib, deflate; deflate.zlib_decompress(zlib.compress(b"a"))'

Backtrace:
#0  deflate_zlib_decompress (self=<optimized out>, args=<optimized out>) at deflate.c:283
#1  0x00000000005127a0 in ?? ()
#2  0x00000000004e0bab in _PyObject_MakeTpCall ()
#3  0x00000000004f627a in _PyEval_EvalFrameDefault ()
#4  0x00000000005d99bf in PyEval_EvalCode ()
#5  0x00000000005f7fc7 in ?? ()
#6  0x00000000005f49c3 in ?? ()
#7  0x00000000005e9371 in PyRun_StringFlags ()
#8  0x00000000005e924a in PyRun_SimpleStringFlags ()
#9  0x0000000000606a05 in Py_RunMain ()
#10 0x00000000005cb9db in Py_BytesMain ()
#11 0x00007ffff7c28150 in __libc_start_call_main (main=main@entry=0x5cb940, argc=argc@entry=3, argv=argv@entry=0x7fffffffda18) at ../sysdeps/nptl/libc_start_call_main.h:58
#12 0x00007ffff7c28209 in __libc_start_main_impl (main=0x5cb940, argc=3, argv=0x7fffffffda18, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffda08)
    at ../csu/libc-start.c:360
#13 0x00000000005cb875 in _start ()

Line 283 is the Py_DECREF here:
    if (result != LIBDEFLATE_SUCCESS) {
        Py_DECREF(output);
        PyErr_SetString(DeflateError, "Decompression failed.");
        return NULL;
    }

Note that Py_DECREF has this warning: The object must not be NULL; if you aren’t sure that it isn’t NULL, use [Py_XDECREF()](https://docs.python.org/3/c-api/refcounting.html#c.Py_XDECREF). although I'm not sure whether this is what happens here.
It is already surprising that this is inside the non-success path. Looking further at the source code, it seems that two arguments are expected, a bytes object and a size. No idea why it can't get the size from the bytes object, but ok. Nevertheless, it shouldn't segfault on wrong usage.
This works:
python3 -c 'import zlib, deflate; compressed=zlib.compress(b"a"); print(deflate.zlib_decompress(compressed, len(compressed)))'

Which version of Python are you using, and are you using the bundled libdeflate, or a system-installed version?
dcwatson@alektra deflate % python3.11 -c 'import zlib, deflate; deflate.zlib_decompress(zlib.compress(b"a"))'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
deflate.DeflateError: Decompression failed.

I agree that the documentation and API could use improvement. As for the Py_DECREF warning, there is a NULL check above, but perhaps _PyBytes_Resize is setting it to NULL after that? I'd be happy to accept a PR with a failing test so I can reproduce/fix this. I'm also due to bump the bundled libdeflate version, so I'll probably do that soon as well.

Python 3.11.6

are you using the bundled libdeflate, or a system-installed version?

No idea. Is there a way to query that? I simply installed it via pip install deflate, so I'd assume it is the bundled one? But, I also have libdeflate 1.18 installed.

I just pushed out 0.6.0 if you want to give it a try.

Ok, very interesting. I was trying to reproduce it on my other system and couldn't. I also only got the same non-segfault error you showed.
System with segfault:

Ubuntu 23.10
Can reproduce it with Python 3.11.6 and Python 3.12.0
Pip installs manylinux2014 deflate-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

System that only shows the error message:

Ubuntu 22.04.4 LTS
Can reproduce ith with Python 3.10.12, 3.11.8, 3.12.2
Pip installs manylinux2014 deflate-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

I don't know what else could be different and could have an influence. I also tried listing all loaded shared libraries after importing deflate but it doesn't look as if it uses the system libdeflate.so.
import os, deflate
mappedFilesFolder = f"/proc/{os.getpid()}/map_files"
if os.path.isdir(mappedFilesFolder):
    libraries = set(
        os.readlink(os.path.join(mappedFilesFolder, link)) for link in os.listdir(mappedFilesFolder)
    )
    print(sorted(list(libraries)))

Output:
/home/user/.local/lib/python3.11/site-packages/deflate.cpython-311-x86_64-linux-gnu.so
/usr/bin/python3.11
/usr/lib/locale/locale-archive
/usr/lib/python3.11/lib-dynload/readline.cpython-311-x86_64-linux-gnu.so
/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
/usr/lib/x86_64-linux-gnu/libc.so.6
/usr/lib/x86_64-linux-gnu/libexpat.so.1.8.10
/usr/lib/x86_64-linux-gnu/libm.so.6
/usr/lib/x86_64-linux-gnu/libpthread.so.0
/usr/lib/x86_64-linux-gnu/libreadline.so.8.2
/usr/lib/x86_64-linux-gnu/libtinfo.so.6.4
/usr/lib/x86_64-linux-gnu/libz.so.1.2.13

Well, on the system, on which I can still reproduce the segfault, updating to 0.6.0 fixes it. I now get:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: function missing required argument 'originalsize' (pos 2)

Great! This was most likely caused by PyBytes_FromStringAndSize returning an immortal object for size 0, then using that as the decompression buffer and calling _PyBytes_Resize on it.

authors: dcwatson mxmlnkn rlunaro

repo: dcwatson/deflate


text:
🛑 Danbs is down

In f34ad45, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 3152 ms

Resolved: Danbs is back up in e9b31dc after 326 days, 19 hours, 39 minutes.

repo: ddanbs/upptime


text:
🛑 Danbs is down

In 167711a, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 172 ms

Resolved: Danbs is back up in c034fb6 after 20 minutes.


text:
🛑 Danbs is down

In fa0feda, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 3921 ms

Resolved: Danbs is back up in 8eaf605 after 9 minutes.


text:
🛑 Danbs is down

In de1c50c, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 141 ms

Resolved: Danbs is back up in efe875f.


text:
🛑 Danbs is down

In 0992f0b, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 135 ms

Resolved: Danbs is back up in e3487cf.


text:
🛑 Danbs is down

In 10a163b, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 300 ms

Resolved: Danbs is back up in 85c9638.


text:
🛑 Danbs is down

In 80b1f75, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 194 ms

Resolved: Danbs is back up in cff2943.


text:
🛑 Danbs is down

In 67deb6e, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 3441 ms

Resolved: Danbs is back up in 9738d93.