text:
Remove check of drep metadata size.

Changelog
- description: |
    Remove check of Drep metadata size, always return the hash of the file passed by the user. This to be compatible with CIP119.
# uncomment types applicable to the change:
  type:
   - feature        # introduces a new feature
  # - breaking       # the API has changed in a breaking way
  # - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - refactoring    # QoL changes
  # - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  # - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context
Resolves: https://github.com/IntersectMBO/cardano-cli/issues/792
Depends on: https://github.com/IntersectMBO/cardano-api/pull/569 which is not on the tagged cardano-api-9.0.0.0 . Therefore this requires a new release of cardano-api.
How to trust this PR
Before this PR we had:
cardano-cli conway governance drep metadata-hash --drep-metadata-file drep.jsonld
Command failed: governance drep metadata-hash  Error: DRep metadata validation error: DRep metadata must consist of at most 512 bytes, but it consists of 178103 bytes.

With this PR we always return the hash and  the resulting hash matches the one on the test vector of CIP-119  AND  matches the hash obtained with governance hash anchor-data AND matches the result of using blake2b directly:
$ ./dist-newstyle/build/x86_64-linux/ghc-8.10.7/cardano-cli-8.25.0.0/x/cardano-cli/build/cardano-cli/cardano-cli conway governance drep metadata-hash
 --drep-metadata-file tmp/drep.jsonld
a14a5ad4f36bddc00f92ddb39fd9ac633c0fd43f8bfa57758f9163d10ef916de

$ ./dist-newstyle/build/x86_64-linux/ghc-8.10.7/cardano-cli-8.25.0.0/x/cardano-cli/build/cardano-cli/cardano-cli conway governance hash anchor-data --file-text tmp/drep.jsonld
a14a5ad4f36bddc00f92ddb39fd9ac633c0fd43f8bfa57758f9163d10ef916de

$ b2sum -l 256 tmp/drep.jsonld
a14a5ad4f36bddc00f92ddb39fd9ac633c0fd43f8bfa57758f9163d10ef916de  tmp/drep.jsonld

Checklist

[x] Commit sequence broadly makes sense and commits have useful messages
[x] Self-reviewed the diff

Backup: https://github.com/IntersectMBO/cardano-cli/tree/backup/clr/drepmetadata

FYI: I have rebased your branch because we have done changes to the formatting. I have made a copy of the unrebased branch that you can find in my previous comment in this PR.

authors: CarlosLopezDeLara palas


text:
Image source not readable laravel 5.2 image package

how to solve this problem?
<?php
require '../../vendor/autoload.php';
require('Uploader.php');
$manager = new \Intervention\Image\ImageManager(array('driver' => 'gd'));
// Directory where we're storing uploaded images
// Remember to set correct permissions or it won't work
$upload_dir = '../img/upload_thumb';

$uploader = new FileUpload('uploadfile');
$name = $uploader->getFileName();

$random = date('YmdHis',time());
$newName= $random.'-'.$name;
$uploader->newFileName = $newName;
// Handle the upload
$result = $uploader->handleUpload($upload_dir);

if (!$result) {
exit(json_encode(array('success' => false, 'msg' => $uploader-  >getErrorMsg())));
}else{
$img = $manager->make($newName);
echo json_encode(array('success' => true, 'name' => $img));}

I used to turn the uploaded image will be displayed at the time the error was displayed.

$img = $manager->make($newName);
replace with:
$img = $manager->make($upload_dir.'/'.$newName);

not work $newName is object

Is there a method for the FileUpload class that outputs the filepath?

yes

Can you not call the method that outputs the full path to the image into the make() method?

yes :+1:

Does that work?

not work

by this code problem solved
if (!$result) {
  exit(json_encode(array('success' => false, 'msg' => $uploader->getErrorMsg())));
}else{
    $img = $newName;
echo json_encode(array('success' => true, 'name' => $img));}

source: gharchive/issue

authors: TechKat Xiphin premier213

repo: Intervention/image

license: mit

license_type: permissive

license_source: bigquery


text:
Option to add utf-8 characters on image

Can we have an option for utf-8 characters
May be something like $font->encode('utf-8');.
$img->text('foo', 0, 0, function($font) {
    $font->encode('utf-8');
});

Currently, it is not supporting these characters.
I have tested it with following fonts

Arial unicode ms
Devanagari
Noto_Sans

All the above fonts supports hindi language
This is the expected result In Indian (Hindi) language.

इण्टरनेट पर हिन्दी के साधन

This is how it getting rendered

I faced the exact same issue. This is too frustrating and needs an urgent fix. Can anyone tell me what's going on here? Or if this is not the right place where should this be reported?

me too facing the same issue, please provide a fix asap

It seems like the language is supported but you have to select a font which supports both the languages.

There are same problem in Turkish characters. For example, it's writing "Ü" instead of 'Ü'

There are same problem in Turkish characters. For example, it's writing "Ü" instead of 'Ü'

This problem in my server. It's running in my localhost. Why can be?

I am going to +1 this issue. It would be nice to be able to use UTF-8 character.
As you can see I am missing UTF-8 characters below:
Original

Using Intervention:

I ended up with sort of a solution. I used preg_match('/([^\x00-\x7F]+)/u', $msg) to see if the character was unicode. If it was I used a different font to render. I recommend this font: https://fontlibrary.org/en/font/gnu-unifont
as you can see unicode blocks/symbols are rendering:

Hi Author,
Can we please find a solution for this issue?

same issue, any help

I have checked this again with the current version 3. Maybe someone can help me, as I can't see a problem at the moment.
As long as the font supports the character, the result is rendered correctly in my opinion.
$text = "इण्टरनेट पर हिन्दी के साधन";
$image->text($text, 100, 100, function ($font) {
    $font->filename('./ArialUnicodeMS.ttf');
    $font->size(32);
});

Result Image

authors: Satendra-SR abhishek-pokhriyal ankitsinghmyself codernik huseyinerbayat james090500 olivervogel samgan-khan


text:
Allow for mixed types lists like (string|number)[]

Title
Could it be possible to support lists with multiple types ?
Thanks.

Hey @ExtReMLapin , checkout version 0.11.0 which includes #28 that I believe should suit your use-case. Let us know if that doesn't work for you!

Thanks !
giga based

repo: IntrinsicLabsAI/gbnfgen

license: MIT

license_source: github-api


text:
🛑 ck.no is down

In 3193b9f, ck.no (https://ck.no) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ck.no is back up in 8400450 after 37 minutes.

repo: Intus-AS/Types-status


text:
🛑 industri.mardahl.no is down

In c096ac8, industri.mardahl.no (https://industri.mardahl.no) was down:

HTTP code: 0
Response time: 0 ms

Resolved: industri.mardahl.no is back up in f1662e9 after 37 minutes.


text:
🛑 grano.no is down

In 1ec1ed8, grano.no (https://grano.no) was down:

HTTP code: 0
Response time: 0 ms

Resolved: grano.no is back up in 6d87976 after 8 minutes.


text:
🛑 IPAP Virtual is down

In e5b1235, IPAP Virtual (http://ipapvirtual.chaco.gov.ar) was down:

HTTP code: 0
Response time: 0 ms

Resolved: IPAP Virtual is back up in b2f08de after 10 minutes.

repo: Ipapticsjbiain/EstadoDePaginas


text:
AuthZ for Preservation: Ensure no one person has write access to all copies.

A "a challenging, food for thought-type requirement" from Brad, as worded in The NDSA Levels of Digital Preservation, Level 4:

Title (Goal)
Ensure no one person has write access to all copies.

Primary Actor
Repository admin

Scope
preservation, access

Level
High

Story
I want to comply with the The NDSA Levels of Digital Preservation, Level 4.

Source:  Page 3, Table 1, Row 2 (File Fixity and Data Integrity), Level 4 definition:
http://www.digitalpreservation.gov/documents/NDSA_Levels_Archiving_2013.pdf
This is a "use case" that might involve other system aspects, such as the backups and (possibly) where else an object has been duplicated.

I'm sorry. I know nothing about standards for digital preservation. I tried to include a disclaimer that this is not necessarily CLAW related, but likely has more to do with the implementation of good backup policies and strategic content duplication.
My goal in including this was to bring the use cases that were brought forward in the discussion group to the appropriate venue.
Please close this ticket if this is unacceptable.

So no admin user, then?  Or just block admin user from having admin privileges, thus rendering it not admin?

From here: https://groups.google.com/forum/#!topic/islandora/YGBMUU4OSM8
As mentioned it was "a challenging food for thought" requirement.
We've always managed one single copy of an archival object, maybe this points out a use case where multiple would be worthwhile?

Maybe I'm missing something, but this seems like a staffing/practice problem? Without two systems administrators, how would software solve this problem?

authors: dannylamb kstapelfeldt rosiel

repo: Islandora/documentation


text:
Fixing TransactionTooLarge on Android N

Hey!
As mentionend in #101 this library causes crashes on Android N (and above) due to parcelling too much data in onSaveInstanceState().
This PR fixes the crash by saving the bitmap into a temporary file instead.
If you have any feedback, suggestions or want any changes, feel free to contact me.
Cheers

Hi @joekoe92
SInce issue is not resolved.i am facing issue on android N
And why its not merged in master?

source: gharchive/pull-request

repo: IsseiAoki/SimpleCropView


text:
Frontend: Refactor layout and implementation of setting component

Original PR
Description:

Use of flex and grid to avoid fixed elements in page and provide more flexibility to frontend's upcoming improvements / features
Removed the deactivation of the legend when option where toggled on and vice versa
Creation of a setting component to handle graph options and later shortcuts (or any other future setting)
Fixed bug on Safari where filter panel was squashed and non usable.
Button in sidebar are ordered and separated by category (panels, settings, interaction with graph)
Link opacity is set to 0.3 instead of 0.15 (request from customer)

Screenshot:

Future possible improvements:

Rework graph option component to better use allocated place in settings.
Once implementation phase is finished, refactor file organisation to better organise components (initiated here, but not completed to avoid conflicts)
Make link opacity and other type of settings customisable

Havent really tested this but looks fine so ill trust it on face value

thanks!

authors: RuthgerD alrapal

repo: ItJustWorksTM/EiffelVis


text:
API Calls to Perplexica Hang Without Response When Using Docker Setup

I recently started using Perplexica with the Docker configuration as outlined in the documentation. However, when triggering API calls via the API testing platform (APIdog), the platform continuously loads without providing any response.
Here are the details of my setup:

OS: Ubuntu 22.04
RAM: 16 GB
CPU: Intel i5 13th Gen (1335U) 12-core
GPU: None

Perplexica is running within a Docker instance, and the UI is accessible at localhost:3000, as expected. I am using the Ollama model with the following configuration:

Chat Model: llama3:latest
Embedding Model: nomic-embeded-text:latest

Has anyone encountered this issue or knows a solution? Any help would be appreciated!

What is your request body?

There isn't any response being generated

I hope this would help. If any other data related to this issue is needed, feel free to ask

What are the logs?

Did you mean the docker logs ?

I have restarted the docker backend service and these are the recent logs
yarn run v1.22.22
$ npm run db:push && node dist/app.js

> perplexica-backend@1.10.0-rc1 db:push
> drizzle-kit push sqlite

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...

[i] No changes detected
info: WebSocket server started on port 3001
info: Server is running on port 3001
error: Error at generating documents from links: Invalid URL
error: Unhandled Rejection at: [object Promise], reason: TypeError: Cannot read properties of undefined (reading 'map')

What are the logs?

yarn run v1.22.22
$ npm run db:push && node dist/app.js

> perplexica-backend@1.10.0-rc1 db:push
> drizzle-kit push sqlite

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...

[i] No changes detected
info: WebSocket server started on port 3001
info: Server is running on port 3001
error: Error at generating documents from links: Invalid URL
error: Unhandled Rejection at: [object Promise], reason: TypeError: Cannot read properties of undefined (reading 'map')

Can you follow the update guide and update Perplexica to the latest version, I published a fix for this issue a while ago. How to update: https://github.com/ItzCrazyKns/Perplexica/blob/master/docs/installation/UPDATING.md

Hi @ItzCrazyKns , The issue still persists in my machine. Still I am not being able to access the API services. Theses are the current logs that I have obtained after rebuilding the docker image
sudo docker logs 23ae11348065
yarn run v1.22.22
$ npm run db:push && node dist/app.js

> perplexica-backend@1.10.0-rc2 db:push
> drizzle-kit push sqlite

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...

[i] No changes detected
info: WebSocket server started on port 3001
info: Server is running on port 3001
error: Error at generating documents from links: Invalid URL
yarn run v1.22.22
$ npm run db:push && node dist/app.js

> perplexica-backend@1.10.0-rc2 db:push
> drizzle-kit push sqlite

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...

[i] No changes detected
info: WebSocket server started on port 3001
info: Server is running on port 3001
error: Error at generating documents from links: Invalid URL
```

There is no response obtaining in the API testing applications (APIdog). Are there any solution to this issue or is it being occurred from my end due to any wrong configuration that I have provided ?

Hi @ItzCrazyKns , The issue still persists in my machine. Still I am not being able to access the API services. Theses are the current logs that I have obtained after rebuilding the docker image
sudo docker logs 23ae11348065
yarn run v1.22.22
$ npm run db:push && node dist/app.js

> perplexica-backend@1.10.0-rc2 db:push
> drizzle-kit push sqlite

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...

[i] No changes detected
info: WebSocket server started on port 3001
info: Server is running on port 3001
error: Error at generating documents from links: Invalid URL
yarn run v1.22.22
$ npm run db:push && node dist/app.js

> perplexica-backend@1.10.0-rc2 db:push
> drizzle-kit push sqlite

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...

[i] No changes detected
info: WebSocket server started on port 3001
info: Server is running on port 3001
error: Error at generating documents from links: Invalid URL

There is no response obtaining in the API testing applications (APIdog). Are there any solution to this issue or is it being occurred from my end due to any wrong configuration that I have provided ?

What LLM are you using?

I am currently using llama3:latest model in Ollama on my local machine

authors: ItzCrazyKns sreehariv-code

repo: ItzCrazyKns/Perplexica


text:
Distribute via krew?

:wave: Hello, maintainer of the kubectl plugin manager krew here.
What do you think about making your plugin available via krew? You would benefit from

Greater visibility due krew's large user basis.
Easier installs.
Seamless upgrades for new plugin versions.

Krew already has over 60 plugins and more are coming in. See our development guide if you're interested. Please also consult our naming guide to see if your plugin already fulfills our naming requirements.

yes please!

https://github.com/kubernetes-sigs/krew-index

authors: corneliusweig glensc

repo: IuryAlves/kubectl-ssh


text:
Update README.md

another update

hello bro whow are you there

repo: IvanMendozaMendoza/movieck


text:
Energy conversion factors in cars

Additional energy conversion factors could be added to the cars model - carbon_car.py.
See https://www.nexxtlab.lu/co2-emissions-calculator/

Information also here on page 14:
https://static.ducky.eco/calculator_documentation.pdf

Hello @J0ANMM I would like to contribute to this project.
I am a first timer in Github but i have years of experience on carbon footprint as a certified verifier in Greece.
For this issue I could add other types not in the model like Hybrid, CNG, LPG and Plug-in Hybrid.
I could also update some of the emission factors used.
Hope to hear from you

Hi @KStafylidis, thanks for your offer to collaborate!
I am no longer working on this and have my priorities currently set in other things. Feel free to clone the repository and modify it as you see fit.


text:
Termux

I can run this tool in termux mobile terminal?

U can

authors: Kyarw LucasDiscordCzech


text:
Option to print new progressbar only when progress is actually achieved

Hi,
I have the use case for a progressbar where I want the progressbar to be updated only when a new iteration was finished. What I do NOT want is a fixed updaterate, since this will print a lot of empty lines into my logfile. How can I achieve that with the current implementation? And if not, could you add this to the wishlist? 😄

Hi! :wave:
So, from what I understand, something like this would be desired, right?
You are fetching continuously something in a loop but only now and then, a concrete job ends or a result is returned.
Usually, everything which is not handled in the shortcut via the progress() function is handled via concrete calls to the bar object. Could this already help you?
bar = ProgressBar(10, ...);
while thingsAreRunning
    if interestingThingHasHappend
        bar.step([], [], []);
    end
end
bar.release();

Hi @GenosseFlosse,
could I answer your question and can this issue be closed?

authors: GenosseFlosse JAAdrian

repo: JAAdrian/MatlabProgressBar


text:
Author details

Should be all pre-emptively write out a section on our pages for our author details to be written within? I've put one at the bottom of my page under a basic heading for the moment, but can change this if needed. Then, we can just write author details for other people if we find them blank. Can just put full name, Durham uni, link to github account for now probably and should be good.

Yeah I think this will be fine for author details, we shouldn't need anything more. Will mark this issue as resolved.

authors: JBourton JamesS-D

repo: JBourton/progblack-formative-groupwork


text:
Update ECMWF libraries to latest versions

Is your feature request related to a problem? Please describe.
New release: https://github.com/ecmwf-ifs/ectrans/releases/tag/1.5.0
Describe the solution you'd like
JCSDA, please check if you want that in spack-stack-1.9.0.
Additional context
n/a

@climbfuji, I have confirmed that JCSDA does want ectrans@1.5.0 to be included in spack-stack-1.9.0.

I can start by adding the new version to the ectrans package.py formula in the authoritative repo.

I think it will be more useful to make this issue about the ECMWF library set (which includes ectrans) that JCSDA is interested in upgrading, since we have to select a set of libraries that are compatible with each other. I have modified this issue to track this.

I have tested the following tags as a set:

eckit/1.28.3
fckit/0.13.2
fiat/1.4.1
ectrans/1.5.0
atlas/0.39.0

The JEDI bundle builds with these tags, and nearly all expected ctests pass (*).
Notes

When using the intel compiler, it is still necessary to build fckit with ENABLE_FINAL set to off — no change from current spack-stack behavior
(*) When using the intel compiler, some ctests fail on develop, and they still fail with these tags
I needed to build my own odc because spack-stack's odc depends on spack-stack's eckit. I think I must have configured odc incorrectly, because several odc ctests and a few ioda foo_odc ctests failed as well
There's a possibility of an even more recent atlas tag 0.40.0 coming out shortly, in which case I might recommend moving to atlas to this newest version. I'll update on this by early Dec.

@fmahebert thanks for testing the latest versions of the ecmwf libraries! I think the results are very encouraging.
spack-stack-1.8.0 and the spack-stack develop branch both are using odc 1.5.2 which is the latest version.  The spack-stack formula for odc restricts optimization levels to 1 in the release related build types (Release, RelWithDebInfo). Perhaps that is the difference.
I think it's pretty safe to target the versions you tested so I will update the checklist.

spack-stack-1.8.0 and the spack-stack develop branch both are using odc 1.5.2 which is the latest version. The spack-stack formula for odc restricts optimization levels to 1 in the release related build types (Release, RelWithDebInfo). Perhaps that is the difference.

Yes, this is different from what I did. Do you know if it's easy to set odc-specific build options like this when building odc from the jedi-bundle? If I can easily test this with a more correctly-configured odc, I will do so.

I think you could edit the odc CMakeLists.txt file and add:
set (ENABLE_FORTRAN OFF)
set (CMAKE_C_FLAGS_RELWITHDEBINFO "-O1")
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O1")

This is what the spack formula for ODC is doing (via -D command line options). I just noticed that the two REWITHDEBINFO settings are only applied for macos (apple-clang version 14.0.3 specifically), so on an HPC platform only the ENABLE_FORTRAN setting is used.

@srherbener I tested again with odc 1.5.2 configured for ENABLE_FORTRAN OFF, and this didn't change anything. However, I realized also that the failing ioda ctests were trying to call the odc executable in the ioda_compare.sh script, and not finding the executable. Turns out my in-bundle setup didn't have the build/bin dir in the path, thus the odc exec could not be found. After updating my PATH variable, the ioda ctests pass.
Therefore, as far as I can tell, the tags listed above are working for JEDI.

And ECMWF has just tagged atlas version 0.40.0; I will run my tests again with this tag and report back here.

I tested again with atlas 0.40.0, and this works just as well as 0.39.0 did — all jedi-bundle ctests pass on GNU and most pass on intel (failures exist also with spack-stack 1.7 version of ecmwf repos, thus the failures are associated to the intel compiler rather than ecmwf updates).
So I would recommend updating to this set of tags:

eckit/1.28.3
fckit/0.13.2
fiat/1.4.1
ectrans/1.5.0
atlas/0.39.0

@srherbener would it be ok to bump the atlas version to the latest 0.40.0?

Just for tracking, this PR was merged in the JCSDA spack: https://github.com/JCSDA/spack/pull/489

authors: climbfuji fmahebert srherbener stiggy87

repo: JCSDA/spack-stack


text:
UNO - can't find python preprocess executable

Please use the template. Similar to train.sh.
/local/bin/train.sh /usr/local/bin/volint /usr/local/bin/wcslint /usr/local/bin/wheel
INFO:    Adding labels
INFO:    Adding environment to container
INFO:    Creating SIF file...
INFO:    Build complete: build/Uno.sif
wilke@lambda7:~/IMPROVE/Singularity$ singularity run build/Uno.sif preprocess.sh
python: can't open file 'uno_preprocess_improve.py': [Errno 2] No such file or directory

Fixed, added
export IMPROVE_MODEL_DIR


text:
希望有固定列功能

Is your feature request related to a problem? Please describe.
需要有固定列功能
Describe the solution you'd like
可以选择哪列固定

已完成，更新到最新版本即可。
https://drip-table.jd.com/drip-table/schema/columns/fixed

authors: raoenhui tinymins

repo: JDFED/drip-table


text:
Tool replacment

Broken tools are only replaced from the hot bar and not from the full inventory.
Using 1.20.1-1.1.0 mod version

works fine for me with a hoe, what tool did you use?

authors: CosmicsKosmos JaisDK

repo: JDKDigital/InvTweaksRefoxed


text:
CI check code style

Add check code style CI workflows.

if check fails, we should print error info.

Check failed, but shows successful.
/home/runner/work/RaftKeeper/RaftKeeper/src/Service/SocketReactor.cpp:291:	}
ErrorCode DECIMAL_OVERFLOW is defined but not used in file /home/runner/work/RaftKeeper/RaftKeeper/src/Common/Field.cpp

Check failed, but shows successful.

Fixed see https://github.com/JDRaftKeeper/RaftKeeper/actions/runs/4467329352/jobs/7846645660

authors: JackyWoo nicelulu

repo: JDRaftKeeper/RaftKeeper


text:
ci: don't skip test under macOS

Currently, there is one test being skipped under macOS. Since that does not seem to be necessary anymore, this PR re-enables the test for all platforms.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.63%. Comparing base (643eb35) to head (6548cf7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #105      +/-   ##
==========================================
- Coverage   82.76%   82.63%   -0.14%
==========================================
  Files          11       11
  Lines         737      737
==========================================
- Hits          610      609       -1
- Misses        127      128       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: JKRhb codecov-commenter


text:
An example

At the moment I'm building a Sonos web-controller and I'm looking for a method to use the Spotify API via HTML/JS. After hours of searching I found your web-api, but I can't figure out how to use it via javascript. Is it possible you give me an example of an web-app running with this api (including the HTML, JS files)?

You can have a look at this project. Also, all the projects listed on https://github.com/JMPerez/spotify-web-api-js/network/dependents have this library as a dependency.
It should be a good start.
If you feel like you need something easier, you can find a tutorial on Spotify's developer site that explains how to set up an application step by step.

authors: JMPerez dennisfrijlink

repo: JMPerez/spotify-web-api-js


text:
🛑 Badge API is down

In 5b9a26d, Badge API (https://api.jm26.net/badge/status.txt) was down:

HTTP code: 502
Response time: 112 ms

Resolved: Badge API is back up in 4a10ce5 after 10 minutes.


text:
🛑 Piwigo is down

In e08c7a4, Piwigo ($SERVER_BASE/piwigo/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Piwigo is back up in 89b1684.

repo: JSAnyone/upptime


text:
Failure when parsing sub objects with extra braces

Describe the bug
The parser fails to recognize extra braces when stepping into deeper objects using dots. I tried to simplify the SQL below as much as possible while getting the same error, in order to execute it on the database you'd probably need to introduce a subselect with an ST_DumpPoints call on a geometry column. For some reason postgresql actually needs these braces, when I tried to remove the 'extra' braces postgresql wouldn't parse my original SQL.
To Reproduce
Steps to reproduce the behavior:
Example SQL: SELECT lag((pt).geom) FROM test
Example code snippet:
            String sql = "SELECT lag((pt).geom) FROM test";
            CCJSqlParserUtil.parse(sql);

Exception produced:
Exception in thread "main" net.sf.jsqlparser.JSQLParserException: Encountered unexpected token: "(" "("
    at line 1, column 11.

Was expecting one of:

    "&"
    ","
    "::"
    ";"
    "<<"
    ">>"
    "ACTION"
    "ANY"
    "ARRAY"
    "AS"
    "BYTE"
    "CASCADE"
    "CASE"
    "CAST"
    "CHANGE"
    "CHAR"
    "CHARACTER"
    "COLLATE"
    "COLUMN"
    "COLUMNS"
    "COMMENT"
    "COMMIT"
    "CONNECT"
    "CYCLE"
    "DESC"
    "DESCRIBE"
    "DISABLE"
    "DIV"
    "DO"
    "DUPLICATE"
    "ENABLE"
    "END"
    "EXCLUDE"
    "EXTRACT"
    "FALSE"
    "FIRST"
    "FN"
    "FOLLOWING"
    "FOR"
    "FORMAT"
    "FROM"
    "GROUP"
    "HAVING"
    "INDEX"
    "INSERT"
    "INTERVAL"
    "INTO"
    "ISNULL"
    "KEY"
    "LAST"
    "LEADING"
    "MATERIALIZED"
    "NEXTVAL"
    "NO"
    "NOLOCK"
    "NULLS"
    "OF"
    "OPEN"
    "ORDER"
    "OVER"
    "PARTITION"
    "PATH"
    "PERCENT"
    "PRECISION"
    "PRIMARY"
    "PRIOR"
    "RANGE"
    "READ"
    "REPLACE"
    "ROW"
    "ROWS"
    "SCHEMA"
    "SEPARATOR"
    "SEQUENCE"
    "SESSION"
    "SIBLINGS"
    "SIGNED"
    "SIZE"
    "START"
    "TABLE"
    "TEMP"
    "TEMPORARY"
    "TO"
    "TOP"
    "TRUE"
    "TRUNCATE"
    "TYPE"
    "UNSIGNED"
    "VALIDATE"
    "VALUE"
    "VALUES"
    "VIEW"
    "WHERE"
    "WINDOW"
    "XML"
    "ZONE"
    "["
    "^"
    "|"
    <EOF>
    <K_DATETIMELITERAL>
    <K_DATE_LITERAL>
    <S_CHAR_LITERAL>
    <S_IDENTIFIER>
    <S_QUOTED_IDENTIFIER>

	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:165)
	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:59)
	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:37)
	at de.terrestris.geoserver.wps.DistinctValues$Companion.main(DistinctValues.kt:206)
	at de.terrestris.geoserver.wps.DistinctValues.main(DistinctValues.kt)
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "(" "("
    at line 1, column 11.

Was expecting one of:

    "&"
    ","
    "::"
    ";"
    "<<"
    ">>"
    "ACTION"
    "ANY"
    "ARRAY"
    "AS"
    "BYTE"
    "CASCADE"
    "CASE"
    "CAST"
    "CHANGE"
    "CHAR"
    "CHARACTER"
    "COLLATE"
    "COLUMN"
    "COLUMNS"
    "COMMENT"
    "COMMIT"
    "CONNECT"
    "CYCLE"
    "DESC"
    "DESCRIBE"
    "DISABLE"
    "DIV"
    "DO"
    "DUPLICATE"
    "ENABLE"
    "END"
    "EXCLUDE"
    "EXTRACT"
    "FALSE"
    "FIRST"
    "FN"
    "FOLLOWING"
    "FOR"
    "FORMAT"
    "FROM"
    "GROUP"
    "HAVING"
    "INDEX"
    "INSERT"
    "INTERVAL"
    "INTO"
    "ISNULL"
    "KEY"
    "LAST"
    "LEADING"
    "MATERIALIZED"
    "NEXTVAL"
    "NO"
    "NOLOCK"
    "NULLS"
    "OF"
    "OPEN"
    "ORDER"
    "OVER"
    "PARTITION"
    "PATH"
    "PERCENT"
    "PRECISION"
    "PRIMARY"
    "PRIOR"
    "RANGE"
    "READ"
    "REPLACE"
    "ROW"
    "ROWS"
    "SCHEMA"
    "SEPARATOR"
    "SEQUENCE"
    "SESSION"
    "SIBLINGS"
    "SIGNED"
    "SIZE"
    "START"
    "TABLE"
    "TEMP"
    "TEMPORARY"
    "TO"
    "TOP"
    "TRUE"
    "TRUNCATE"
    "TYPE"
    "UNSIGNED"
    "VALIDATE"
    "VALUE"
    "VALUES"
    "VIEW"
    "WHERE"
    "WINDOW"
    "XML"
    "ZONE"
    "["
    "^"
    "|"
    <EOF>
    <K_DATETIMELITERAL>
    <K_DATE_LITERAL>
    <S_CHAR_LITERAL>
    <S_IDENTIFIER>
    <S_QUOTED_IDENTIFIER>

	at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:27936)
	at net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:27775)
	at net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:91)
	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:163)
	... 4 more

Expected behavior
It is expected that parsing succeeds.
System

DB used is postgresql with the postgis extension
Java Version is OpenJDK 11.0.9.1
JSqlParser version: 4.0 and 4.1-SNAPSHOT were tested (the stack trace uses 4.1-SNAPSHOT, master from today)

already corrected in another PR

authors: hwbllmnn wumpz

repo: JSQLParser/JSqlParser


text:
Removing discontinued library

Removing discontinued library (Emojicon) and placing an equivalent (EmojiCompat).

Thanks!

authors: JStumpp lucalves

repo: JStumpp/awesome-android


text:
🛑 Glitch is down

In 96b4fbe, Glitch ($GLITCH) was down:

HTTP code: 503
Response time: 149 ms

Resolved: Glitch is back up in c551b3a after 55 minutes.

repo: JYFUX/upptime


text:
🛑 Glitch is down

In 3491006, Glitch ($GLITCH) was down:

HTTP code: 503
Response time: 255 ms

Resolved: Glitch is back up in 0a3b4be after 66 days, 23 hours.


text:
Compatibility with Platforms other than Windows

Latest Delphi versions added the possibility to compile also for other platforms, including Android, iOS/OSX and Linux64.
The code is not compatible because of the following issues:

It uses Windows, ComObj and ActiveX which are Windows exclusives.

I am not a Crypto expert but as far as I have been able to investigate, the incompatibilities are relative to some Memory Management, the Hash Generation and the Password robustness check and, in particular:

CryptAcquireContextW
CryptReleaseContext
CryptGenRandom
CryptAcquireContext
CryptCreateHash
CryptHashData
CryptGetHashParam
CryptDestroyHash
who use advapi32 which is not present in other platforms.

OleCheck/CoCreateGUID
which doesn't work outside Windows

ZeroMemory
HResultFromWin32
which doesn't work outside Windows too

AnsiString
PAnsiChar
FoldStringW
WideCharToMultiByte
which is not present in Linux64, Android and iOS

QueryPerformanceFrequency
QueryPerformanceCounter
which works only with Windows
I have investigated a bit and discovered that the 2 point is easily solvable since Delphi provides a CreateGuid function which is platform independent.
As for point 5, there should be TStopWatch (which, on Windows, queries QueryPerformanceCounter), but I don't know if it works also for QueryPerformanceFrequency.
As for point 4, the matter is tricky since strings are all UTF-16 encoded and the type AnsiString is not present.
As for point 3, Zeromemory seems to be replaceable with FillByte but don't know if you achieve the same results, while HResultFromWin32 maybe is useless and GetLastError is sufficient enough?
Point 1 could be solved using System.Hash functions, although I don't know when this was added (no more than 10 years ago) so there should be some conditionals telling the code to use System.Hash on non windows systems.
I believe that since this unit is gold for developers, since it allows to write cross platform apache modules and CGIs, it would be a good thing to add the compatibility to all of the platforms delphi supports.
Thankyou

I'm also interested in using this library on Android platform.

At the very least the code in BCrypt.pas has to run on Delphi 5. So if you want to take advantage of anything only available in newer versions of Delphi, you have to re-implement those features.

@GabryJ84 try this: https://github.com/viniciussanchez/bcrypt

authors: GabryJ84 JackTrapper dominikkv kazuser

repo: JackTrapper/bcrypt-for-delphi

license: Unlicense


text:
Merge Use Cases to Single Use Case for GlassBR

This issue stems from issue #257.
As stated by @smiths, "we should only have one use case. What is currently Use Case 1 is the inputs and what is Use Case 2 is the outputs. The single use case should be something like: 'read in the inputs and output the results.'"

This issue is a duplicate of #257, as #257 is keeping track of changes made to section 5.2.


text:
subserver support

code gwe berantakan cok 😂
tolong dirapihin ya

okeh

authors: GuckTubeYT JadlionHD

repo: JadlionHD/GrowProxy


text:
How can we upload image with "NeatUpload" upload module from react app.

Hi All,
Below is my code -
Inside App -
      <ImageUploader
        name={"UploadFile"}
        hiddenName={"UploadFile"}
        withIcon={false}
        onChange={this.onDrop}
        imgExtension={['.jpg','.jpeg', '.gif', '.png','.mp4', '.mov', '.m4v', '.pdf']}
        singleImage={true}
        buttonText={"Attachment"}
        buttonClassName={"hidden"}
        withLabel={false}
        fullWidth={true}
        accept={".jpg,.jpeg',.gif,.png,.mp4,.mov,.m4v"}
        maxFileSize={10485760000}
        style={{ float: 'left' }}/>

Server side (where i am not getting attached image )-
        using Brettle.Web.NeatUpload;

        if (UploadModule.Files != null && UploadModule.Files.Count > 0)
        {
            logger.Debug("Files found");
            // get the uploaded file
            UploadedFile uploadedFile = UploadModule.Files[0];
        }

+1

authors: ikosar umeshShindepatil

repo: JakeHartnell/react-images-upload


text:
Fix superclass injection.

Closes #19. Closes #24. Closes #25.

So, how could I fix this kind of bug with the simplest way if I don't update?

authors: HiWong JakeWharton

repo: JakeWharton/butterknife


text:
GSAP Effects setup

Initial setup of our custom GSAP effects, including:

TypeScript definitions
ScrollTrigger scrubbing support (see effect-timeline.ts)
SafeSplitText class that extend SplitText to make it safer by:

Prevents text elements from being splitted twice.
Resets splitted text on screen resize
Adds aria-hidden to split text elements.

[AUTOMATED] Latest version has been pushed to preview.
Preview deployed at https://preview-a5a8433.dev.nextjs-boilerplate.jam3.cloud.jam3.net


text:
JSON.NET serialisation of nullable structs and TypeNameHandling.Auto

The following program:
using System;
using Newtonsoft.Json;

namespace JsonPlayground
{
    public class Program
    {
        private struct Message
        {
            public string Value { get; }

            [JsonConstructor]
            public Message(string value)
            {
                if (value == null) throw new ArgumentNullException(nameof(value));

                Value = value;
            }
        }

        private class ObjectWithOptionalMessage
        {
            public Message? Message { get; }

            public ObjectWithOptionalMessage(Message? message)
            {
                Message = message;
            }
        }

        public static void Main(string[] args)
        {
            var objWithMessage = new ObjectWithOptionalMessage(new Message("Hello!"));

            var serializerSettings = new JsonSerializerSettings
            {
                TypeNameHandling = TypeNameHandling.Auto,
                Formatting = Formatting.Indented
            };

            Console.WriteLine(JsonConvert.SerializeObject(objWithMessage, serializerSettings));
        }
    }
}

Gives me the following output:
{
  "Message": {
    "$type": "System.Nullable`1[[JsonPlayground.Program+Message, JsonPlayground]], System.Private.CoreLib",
    "Value": "Hello!"
  }
}

And I can't think of a reason why $type should be included for what is clearly a well declared property. If I declare the Message property to not be nullable, the $type property is not included.
Why is that?

Worth noting that adding this to the Message property fixes the issue, but it doesn't explain the reason why it happens:
[JsonProperty(TypeNameHandling = TypeNameHandling.None)]

Fixed by @TylerBrinkley
It will be in the next release.

authors: DaveVdE JamesNK WiredUK


text:
Questions about default run settings

Hi, I have been running on the basic celebs dataset you guys include in this repo. I have a few related questions:

The ffhq_64_512 training dataset appears to only contain four images. Why are there so few images being trained on?
I completed a run in about 8 hours on these four images. Why did it take so long to train on them? Does the noising/denoising process really add that much extra time to training?
I got good results when testing on the validation set. How is this possible, given that there were only four images in the training set? I had assumed that the model would have severely overfit.

Four images are just for formatting reference, and if you don't have your own training data, you can refer to the guidelines.
What do you mean a run? I think it will not take so long in a epoch.
I think so....

Four images are just for formatting reference, and if you don't have your own training data, you can refer to the guidelines.
What do you mean a run? I think it will not take so long in a epoch.
I think so....

Thanks, didn't see that! Here are results from the validation set when I trained with just those four images. I was confused as to why the results were so good.

by "a run", I meant running sr.py with the command %run sr.py -p train -c config/sr_sr4_64_512.json -enable_wandb -log_wandb_ckpt -log_eval until the script stopped (I am assuming when the loss converged).

Meaning, you think it overfit?

I see,  and this is indeed a very interesting phenomenon, have you tested the other images of the validation set? Because of the random noise, I don't think the training will overfit, but the diversity of the generation will be limited.

authors: Janspiry loftusa


text:
The proxy service how to configure the server????

I, according to the cas protocol custom single sign-on access to the site WebA, WebA repositioned to cas certification, verification after a successful return to WebA, WebA request cas by address
http://www.cas.com/serviceValidate?Ticket=ST-956-Lyg0BdLkgdrBO9W17bXS&service=http://WebA&pgtUrl=http://WebA/pgtCallback to obtain PGT
, cas back to http://WebA/pgtCallback, I can't get at http://WebA/pgtCallback
String pgtIou = Request. The QueryString [" pgtIou "];
String pgtId = Request. The QueryString [" pgtId "];

Cas didn't give me pgtIou pgtId
<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
	<cas:authenticationFailure code='INVALID_PROXY_CALLBACK'>
		The supplied proxy callback url 'http://localhost:21593/MyWebSite/ProxyService.aspx' could not be authenticated.
	</cas:authenticationFailure>
</cas:serviceResponse>

If the cas server to configure this, this configuration is added to the where?
<property name="attributeReleasePolicy">
    <bean class="org.jasig.cas.services.ReturnAllowedAttributeReleasePolicy"
            p:authorizedToReleaseProxyGrantingTicket="true" />
</property>

from http://jasig.github.io/cas/4.1.x/installation/Configuring-Proxy-Authentication.html#cas20proxyhandler

You need to authorize proxy for the application:
http://jasig.github.io/cas/4.1.x/installation/Service-Management.html#configure-proxy-authentication-policy
If you need the PGT in the response directly:
http://jasig.github.io/cas/4.1.x/installation/Configuring-Proxy-Authentication.html
Please use the CAS mailing list for questions. This area is reserved for bug reports and issue tracking.

deployerConfigContext.xml
add
<bean class="org.jasig.cas.services.RegexRegisteredService"
         p:id="10000001" p:name="HTTP and IMAP"
         p:description="Allows HTTP(S) and IMAP(S) protocols"
         p:serviceId="^(https?|imaps?)://.*" p:evaluationOrder="10000001">
    <property name="proxyPolicy">
        <bean class="org.jasig.cas.services.RegexMatchingRegisteredServiceProxyPolicy"
            c:pgtUrlPattern="^https?://.*" />
    </property>
</bean>

Tomcat is unable to start.

remove
<property name="proxyPolicy">
        <bean class="org.jasig.cas.services.RegexMatchingRegisteredServiceProxyPolicy"
            c:pgtUrlPattern="^https?://.*" />
    </property>

Tomcat to normal boot

Please use the CAS mailing list for questions.

I'm sorry
I don't know where is the feedback, only know a lot.

See the "Mailing Lists" at the top of the documentation page.
Or:
http://jasig.github.io/cas/Mailing-Lists.html

And I don't know this configuration which is added to what part of the documents and files.

1.authorize proxy for the application
2.PGT in the response directly
This is the demo?

authors: MetSystem mmoayyed

repo: Jasig/cas


text:
OAuth2 Refresh Token Support

Closes #1498

Looks good. Thanks!

Updated documentation and names.

:+1:

authors: leleuj mmoayyed


text:
"list your deployment of uPortal alongside  the many others already registered" link is broken

In the Please Register portlet the "list your deployment of uPortal alongside  the many others already registered" link is broken

Question @apetro and @drewwills, Who for uPortal, or in general, has access to update the Apereo website?

It bugs me how much effort it takes to get small changes into the Apereo site.
I'm starting a GitHub pages based redesign that can (hopefully) replace the existing site.
Pull requests are welcome at https://github.com/ChristianMurphy/apereo.foundation

authors: ChristianMurphy jonathanmtran

repo: Jasig/uPortal-start


text:
Branches with "/" 404

If the branch has a '/' in it the action fails with a 404. Branch is 'feat/addMyProfile:
https://api.github.com/repos/AllanRegush/hacktoberfest-practice/readme?ref=feat%2FaddMyProfile works. Changing the / to url encoding solves the issue.
Error received.
Error: {"name":"HttpError","status":404,"headers":{"access-control-allow-origin":"*","access-control-expose-headers":"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset","connection":"close","content-encoding":"gzip","content-security-policy":"default-src 'none'","content-type":"application/json; charset=utf-8","date":"Wed, 23 Sep 2020 22:41:54 GMT","referrer-policy":"origin-when-cross-origin, strict-origin-when-cross-origin","server":"GitHub.com","status":"404 Not Found","strict-transport-security":"max-age=31536000; includeSubdomains; preload","transfer-encoding":"chunked","vary":"Accept-Encoding, Accept, X-Requested-With","x-content-type-options":"nosniff","x-frame-options":"deny","x-github-media-type":"github.v3; format=json","x-github-request-id":"07C2:0F2D:EC8911:274E6DD:5F6BCF32","x-ratelimit-limit":"1000","x-ratelimit-remaining":"999","x-ratelimit-reset":"1600904514","x-ratelimit-used":"1","x-xss-protection":"1; mode=block"},"request":{"method":"GET","url":"https://api.github.com/repos/AllanRegush/hacktoberfest-practice/readme?ref=feat","headers":{"accept":"application/vnd.github.v3+json","user-agent":"octokit-request.js/5.4.9 Node.js/12.13.1 (linux; x64)","authorization":"token [REDACTED]"}},"documentation_url":"https://docs.github.com/v3/repos/contents/"}

Changing the / to url encoding solves the issue.

I thought the bug caused by splitting githubRef by / in index.ts#L99 and retrieved 3rd item(index 2) only as the url in your error was containing feat only https://api.github.com/repos/AllanRegush/hacktoberfest-practice/readme?ref=feat

it is. i just realized that and was going to close.

authors: AllanRegush alrifay

repo: JasonEtco/readme-box


text:
#if issue

I can't see what I'm doing differently than the docs example, the loop runs properly because there are the right number of items, but each item is empty.
Reproducible test case:
https://jasonbase.com/things/dmmb.json
I really wanted each letter (A, B, C ..) to go in their own section but since the (and only the) first section has additional "items" besides loop expansion markup I don't see how the template engine can handle that unless it's possible to repeat the "sections" markup? (then sections[0] would be the preample markup, sections 1.. would be from an #each over the "data".  If the template engine has the equivalent of "loop.first" (jinja2 http://jinja.pocoo.org/docs/2.10/templates/) that would be super helpful

thanks - I guess the array disappears once the condition is evaluated, just there to get around ordering of #elseif blocks.
To catch these sort of gotchas it would be great to have a CLI too that evaluates templates and dumps onto stdout the resulting markup, for exaple:
jason foo/bar/baz.json
{
"$jason": {
"head": {
....
The other parts were really about supporting more constructs in loops, like jinja2 has loop.first, loop.last etc which would allow more powerful templating. What I've arrived at now is use jinja2 to do the power template work and emit jasonette templates to minimize data transfer.

repo: Jasonette/JASONETTE-iOS


text:
Alpha11, UpsertProblems

Hi, recently i tried an upgrade to version: Alpha 11 (also r1 and r2).
I have following issue in upsert:
Basically it tells:
There isnt contraint: pk_mt_doc_transit for table: mt_doc_transit
But its not really true, constraint exists but its named in following syntax: mt_doc_transit_pkey

 2021-07-06 16:41:49.6762|ERROR|LibRtDb.Services.TransitsService|Marten.Exceptions.MartenCommandException: Marten Command Failure:$ select parko_rts.mt_upsert_transit(:p0, :p1, :p2, :p3);$ $ 42704: il vincolo "pk_mt_doc_transit" per la tabella "mt_doc_transit" non esiste  ---> Npgsql.PostgresException (0x80004005): 42704: il vincolo "pk_mt_doc_transit" per la tabella "mt_doc_transit" non esiste    at Npgsql.NpgsqlConnector.<ReadMessage>g__ReadMessageLong|194_0(NpgsqlConnector connector, Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)    at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)    at Npgsql.NpgsqlDataReader.NextResult()    at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken)    at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken)    at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior)    at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)    at System.Data.Common.DbCommand.ExecuteReader()    at Marten.NulloRetryPolicy.Execute[TResult](Func1 operation)
at Marten.Services.ManagedConnection.ExecuteReader(NpgsqlCommand command)
Exception data:
Severity: ERRORE
SqlState: 42704
MessageText: il vincolo "pk_mt_doc_transit" per la tabella "mt_doc_transit" non esiste
Where: istruzione SQL "INSERT INTO parko_rts.mt_doc_transit ("data", "mt_dotnet_type", "id", "mt_version", mt_last_modified) VALUES (doc, docDotNetType, docId, docVersion, transaction_timestamp())
ON CONFLICT ON CONSTRAINT pk_mt_doc_transit
DO UPDATE SET "data" = doc, "mt_dotnet_type" = docDotNetType, "mt_version" = docVersion, mt_last_modified = transaction_timestamp()"
funzione PL/pgSQL parko_rts.mt_upsert_transit(jsonb,character varying,bigint,uuid) riga 5 a istruzione SQL
File: d:\pginstaller_13.auto\postgres.windows-x64\src\backend\catalog\pg_constraint.c
Line: 968
Routine: get_relation_constraint_attnos
--- End of inner exception stack trace ---
at Baseline.Exceptions.ExceptionTransformExtensions.TransformAndThrow(IEnumerable1 transforms, Exception ex)    at Baseline.Exceptions.ExceptionTransforms.TransformAndThrow(Exception ex)    at Marten.Exceptions.MartenExceptionTransformer.WrapAndThrow(NpgsqlCommand command, Exception exception)    at Marten.Services.ManagedConnection.handleCommandException(NpgsqlCommand cmd, Exception e)    at Marten.Services.ManagedConnection.ExecuteReader(NpgsqlCommand command)    at Marten.Internal.UpdateBatch.ApplyChanges(IMartenSession session) --- End of stack trace from previous location ---    at Baseline.Exceptions.ExceptionTransformExtensions.TransformAndThrow(IEnumerable1 transforms, Exception ex)
at Marten.Internal.UpdateBatch.ApplyChanges(IMartenSession session)
at Marten.Internal.Sessions.DocumentSessionBase.ExecuteBatch(IUpdateBatch batch)
at Marten.Internal.Sessions.DocumentSessionBase.SaveChanges()
at LibRtDb.Services.TransitsService.UpdateTransit(Transit NewTransit) in C:\Users\maxym.oboyshev\source\repos\ParkO_V3\ADVANCED_RTS\RT_DB\LibRtDb\Services\TransitsService.cs:line 392
Marten Command Failure:$
select parko_rts.mt_upsert_transit(:p0, :p1, :p2, :p3);$
$
42704: il vincolo "pk_mt_doc_transit" per la tabella "mt_doc_transit" non esiste
`

@xevilmaxx Did you try to upgrade a Marten 3 database to Marten 4 when this occurs? This wouldn't happen from a fresh v4. We've had some periodic reports about this.

Actually for some time I've used:
v4 alpha 9
After upgrade problems started.
For now i downgraded to V3 and all works fine.
When I had problems with latest v4 i even tried to drop whole db and let system recreate it, but it hasn't produced any noticeable change.

@xevilmaxx Can you give us anything that would help us reproduce this? I think @oskardudycz hit something similar converting an existing database from v3 to v4 quite awhile back, but otherwise, this isn't something other people are reporting and all our existing tests pass of course.

Hi,
Here is the code that is executed on strtup to create new DB if there is nothing, or insert missing tables:
public static DocumentStore GetContext()
        {
            try
            {

                if(Context == null)
                {

                    //var cfg = GetConfigs();
                    var connectionString = GetConnectionString();

                    log.Debug($"Connection String: {connectionString}");

                    Context = DocumentStore.For(_ =>
                    {

                        //Custom connection string
                        _.Connection(connectionString);

                        _.NameDataLength = 250;

                        //Custom Schema Name
                        _.DatabaseSchemaName = "ParkO_RTS";

                        //add json indexes also
                        // Add a gin index to Company's json data storage
                        //may be commented if performance is poor and you dont need do much readings
                        _.Schema.For<Transit>().GinIndexJsonData();
                        _.Schema.For<User>().GinIndexJsonData();
                        _.Schema.For<JsonDeviceConfigs>().GinIndexJsonData();
                        _.Schema.For<DynamicKey>().GinIndexJsonData();
                        _.Schema.For<Event>().GinIndexJsonData();
                        _.Schema.For<LanguageResource>().GinIndexJsonData();
                        _.Schema.For<SerialNumber>().GinIndexJsonData();

                        //My custom override for comparing objects not supported by Marten natively (for now alpha-8)
                        //Doable only in Marten >= v4
                        //_.Linq.MethodCallParsers.Add(new LinqEqualsExt());

                    });

                }
                return Context;

            }
            catch(Exception ex)
            {
                log.Error(ex);
                return null;
            }
        }

When error happened i tried following things:

Export main tables data in CSV
Drop Existing DB
Re-compile my program
Re-run my program
It re-created DB anew (checked generated functions but they were wrong as noted in first comment of issue)
I imported data back from CSV file
Re-run software again, so i can work with correct data, but errors still persisted
Rolled back to v3, and all worked

Sorry, maybe i dont really understand what means migrate from v3 to v4.
And in case of v4, how to re-create DB anew correctly.
By the way, i'm using DocumentStore feature only.
Thanks in advance.

I have the same issue as well, upsert functions use new constraint names but the constraint names themselves haven't changed.

@tonykaralis @amferguson, would you be so kind as to provide:

document store configurations (old and new) - at least with the document type that's failing,
create a statement for the failing table?

That'd help us to tackle that case. Thank you in advance!

@amferguson the Document store config is usually just the c# code where you register all the documents etc with marten. If you use something like pgAdmin to administer your db then you can just right click on the table and select CreateScript which should show you the script used to create the table. I would assume that should suffice.

Oh, gotcha. Related to a conversation @jeremydmiller and I had on gitter (and #1931), I was also making some changes to the duplicated columns, so perhaps too much all at once?
Old config:
var serializer = new JsonNetSerializer();
serializer.Customize(config =>
{
   config.SerializationBinder = new CustomJsonSerializationBinder(); //Moved a type at some point, so this overrides BindToType to tell it to check both assemblies
});
var store = DocumentStore.For(config =>
    {
        config.Connection(connectionString);
        config.AutoCreateSchemaObjects = AutoCreate.None;
        config.Schema.Include<ApplicationRegistry>();
        config.Serializer(serializer);
    });

Old ApplicationRegistry
For<Application>()
    Duplicate(a => a.ApplicationNumber)
    Duplicate(a => a.VinOrSectionNumbers)
    Duplicate(a => a.ApplicationCategory)
    Duplicate(a => a.ApplicationType)
    Duplicate(a => a.TrustedPartyId)
    Duplicate(a => a.LastUpdatedDate)
    Duplicate(a => a.Status.StatusType); //source of my issue in #1931

    this.For<Application>().Index(a => a.Owner.FullPartyName);
    this.For<Application>().Index(a => a.IsCurrentTitle);
    this.For<Application>().Index(a => a.IssuedDate); //Apparently this never actually worked based on the docs?

New Config
var store = DocumentStore.For(config =>
    {
        config.Connection(connectionString);
        config.Schema.Include<ApplicationRegistry>();
        config.Serializer(serializer); //same serializer as above

        //Needed to maintain compatibility for 2.x => 4.x
        config.Advanced.DuplicatedFieldEnumStorage = EnumStorage.AsString;
        config.Advanced.DuplicatedFieldUseTimestampWithoutTimeZoneForDateTime = false;
    });

New ApplicationRegistry
this.For<Application>()
      .Duplicate(a => a.LastUpdatedDate);

this.For<Application>().Index(a => a.ApplicationNumber,     indexConfig => { indexConfig.IsConcurrent = true; } );
this.For<Application>().Index(a => a.VinOrSectionNumbers,   indexConfig => { indexConfig.IsConcurrent = true; } );
this.For<Application>().Index(a => a.ApplicationType,       indexConfig => { indexConfig.IsConcurrent = true; } );
this.For<Application>().Index(a => a.ApplicationCategory,   indexConfig => { indexConfig.IsConcurrent = true; } );
this.For<Application>().Index(a => a.TrustedPartyId,        indexConfig => { indexConfig.IsConcurrent = true; } );
this.For<Application>().Index(a => a.Owner.FullPartyName,   indexConfig => { indexConfig.IsConcurrent = true; } );
this.For<Application>().Index(a => a.Status.StatusType,     indexConfig => { indexConfig.IsConcurrent = true; } );
this.For<Application>().Index(a => a.IsCurrentTitle,        indexConfig => { indexConfig.IsConcurrent = true; } );
this.For<Application>().Index(a => a.IssuedDate,            indexConfig => { indexConfig.IsConcurrent = true; } );

Exception:
Exception in UpdateStatus in $....
Marten.Exceptions.MartenCommandException: Marten Command Failure:$
select public.mt_upsert_application(:p0, :p1, :p2, :p3, :p4, :p5);$
$
42704: constraint "pkey_mt_doc_application_id" for table "mt_doc_application" does not exist
 ---> Npgsql.PostgresException (0x80004005): 42704: constraint "pkey_mt_doc_application_id" for table "mt_doc_application" does not exist
   at Npgsql.NpgsqlConnector.<ReadMessage>g__ReadMessageLong|194_0(NpgsqlConnector connector, Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
   at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken)
   at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken)
   at Marten.Services.ManagedConnection.ExecuteReaderAsync(NpgsqlCommand command, CancellationToken token)
  Exception data:
    Severity: ERROR
    SqlState: 42704
    MessageText: constraint "pkey_mt_doc_application_id" for table "mt_doc_application" does not exist
    Where: SQL statement "INSERT INTO public.mt_doc_application ("last_updated_date", "data", "mt_dotnet_type", "id", "mt_doc_type", "mt_version", mt_last_modified) VALUES (arg_last_updated_date, doc, docDotNetType, docId, docType, docVersion, transaction_timestamp())
  ON CONFLICT ON CONSTRAINT pkey_mt_doc_application_id
  DO UPDATE SET "last_updated_date" = arg_last_updated_date, "data" = doc, "mt_dotnet_type" = docDotNetType, "mt_doc_type" = docType, "mt_version" = docVersion, mt_last_modified = transaction_timestamp()"
PL/pgSQL function mt_upsert_application(timestamp with time zone,jsonb,character varying,bigint,character varying,uuid) line 5 at SQL statement
    File: pg_constraint.c
    Line: 810
    Routine: get_relation_constraint_oid
   --- End of inner exception stack trace ---

existing_table.txt

authors: amferguson jeremydmiller oskardudycz tonykaralis xevilmaxx

repo: JasperFx/marten


text:
AnyTenant not working on QueryRawEventDataOnly<>

Tenant id is still taken into account when querying only by raw event data
Example: querySession.Events.QueryRawEventDataOnly<ProductCreatedEvent>().Where(e => e.AnyTenant());
Result: select data from catalog.mt_events as d where (((d.type = 'product_created_event' and  d.is_archived = FALSE) and  d.tenant_id = :tenantid)  and  d.is_archived = FALSE  and  1=1)
Querying by querySession.Events.QueryAllRawEvents().Where(e => e.AnyTenant()) works as expected.
I don't know tho if this is supposed not to be supported?
Taking a very quick look at the source code, I think it's something caused by  FilterDocuments method in EventDocumentStorage?
        public ISqlFragment FilterDocuments(QueryModel model, ISqlFragment query)
        {
            var shouldBeTenanted = Events.TenancyStyle == TenancyStyle.Conjoined && !query.SpecifiesTenant();
            if (shouldBeTenanted)
            {
                query = query.CombineAnd(CurrentTenantFilter.Instance);
            }

            return query.SpecifiesEventArchivalStatus()
                ? query
                : query.CombineAnd(IsNotArchivedFilter.Instance);
        }

I can provide a small repro if needed.

@radeanurazvan, it'd be great if you could provide a reproduce steps. Having the PR with a failing test would be much appreciated.

I'm closing this issue because of the inactivity. @radeanurazvan feel free to comment if the issue still exists in the v6 and I'll reopen it after getting reproduce steps.

authors: oskardudycz radeanurazvan


text:
Option to change actress name order to last name then first name

Would be nice for actress view and auto move just because it's what I'm used to

Agreed.  I've been putting this off until someone requested it though.

I'd love that option too. I see it's been a while since anyone mentioned it. I just began using JavLuv and I... luv it. With that option, it would be close to perfection.  With an added option to state on what disk we stored this or that film, it would get even closer :D

Added this features in v1.2.3

repo: JavLuv/JavLuv


text:
Application is not authorized to perform this operation

When starting this tool as a Global Admin in our Tenant (and have all the rights in Intune/365/AAD) the toolbox says the application is not authorized to perform this operation, although we did authorize using a Global Admin account and Accepted all the required permissions for the app. Tried it with Visual Studio Code, Powershell ISE etc
The errors are
Get-MgUserPhotoContent : Accessing service failed.
At C:\Tools\IntuneToolBox-main\modules\utility.psm1:232 char:7

  Get-MgUserPhotoContent -UserId $upn -OutFile $path

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: ({ UserId = ************* }:<>f__AnonymousType51) [Get-MgUserPhotoContent_Get], RestException1
FullyQualifiedErrorId : ErrorWrongServer,Microsoft.Graph.PowerShell.Cmdlets.GetMgUserPhotoContent_Get
get-content : Cannot find path 'C:\Tools\IntuneToolBox-main.tmp*************.png' because it does not exist.
At C:\Tools\IntuneToolBox-main\modules\utility.psm1:234 char:49

... LogIn = [convert]::ToBase64String((get-content $path -encoding byte))

                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : ObjectNotFound: (C:\Tools\Intune...dmin@***.png:String) [Get-Content], ItemNotFoundException
FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Exception calling "ToBase64String" with "1" argument(s): "Value cannot be null.
Parameter name: inArray"
At C:\Tools\IntuneToolBox-main\modules\utility.psm1:234 char:3

$iconButtonLogIn = [convert]::ToBase64String((get-content $path -en ...

+ CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentNullException

Get-DecodeBase64Image : Cannot bind argument to parameter 'imageBase64' because it is an empty string.
At C:\Tools\IntuneToolBox-main\modules\utility.psm1:235 char:66

... tonLogIn.source = Get-DecodeBase64Image -ImageBase64 $iconButtonLogIn

                                                     ~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidData: (:) [Get-DecodeBase64Image], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Get-DecodeBase64Image

Get-MgDeviceManagementManagedDeviceOverview : {
"_version": 3,
"Message": "Application is not authorized to perform this operation. Application must have one of the following scopes: DeviceManagementManagedDevices.Read.All, DeviceManagementManagedDevices.ReadWrite.All - Operation ID (
for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 2d354ac3-cffe-4ae6-b842-2e5695b1ff3d - Url: https://fef.amsub0102.manage.microsoft.com/DeviceFE/StatelessDeviceFEService/deviceManagement/managedDevi
ceOverview?api-version=5022-05-24",
"CustomApiErrorPhrase": "",
"RetryAfter": null,
"ErrorSourceService": "",
"HttpHeaders": "{}"
}
At C:\Tools\IntuneToolBox-main\modules\pageMain.psm1:19 char:5

$deviceManagementOverview = Get-MgDeviceManagementManagedDeviceOv ...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: ({ Property = , ExpandProperty =  }:<>f__AnonymousType12) [Get-MgDeviceMan...iceOverview_Get], RestException1
FullyQualifiedErrorId : Forbidden,Microsoft.Graph.PowerShell.Cmdlets.GetMgDeviceManagementManagedDeviceOverview_Get
Get-MgDeviceManagementDeviceCompliancePolicyDeviceStateSummary : {
"_version": 3,
"Message": "Application is not authorized to perform this operation. Application must have one of the following scopes: DeviceManagementConfiguration.Read.All, DeviceManagementConfiguration.ReadWrite.All - Operation ID (fo
r customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 2979630c-11ee-4251-978d-9a785e2e83b4 - Url: https://fef.amsub0102.manage.microsoft.com/DeviceConfiguration_2206/StatelessDeviceConfigurationFEService/d
eviceManagement/deviceCompliancePolicyDeviceStateSummary?api-version=5022-04-13",
"CustomApiErrorPhrase": "",
"RetryAfter": null,
"ErrorSourceService": "",
"HttpHeaders": "{}"
}
At C:\Tools\IntuneToolBox-main\modules\pageMain.psm1:20 char:5

$complianceOverview = Get-MgDeviceManagementDeviceCompliancePolic ...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: ({ Property = , ExpandProperty =  }:<>f__AnonymousType12) [Get-MgDeviceMan...tateSummary_Get], RestException1
FullyQualifiedErrorId : Forbidden,Microsoft.Graph.PowerShell.Cmdlets.GetMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary_Get
Get-MgDeviceManagementDeviceConfiguration : {
"_version": 3,
"Message": "Application is not authorized to perform this operation. Application must have one of the following scopes: DeviceManagementConfiguration.Read.All, DeviceManagementConfiguration.ReadWrite.All - Operation ID (fo
r customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: aa6d224d-f49e-451d-8b81-55fc2e7ad37e - Url: https://fef.amsub0102.manage.microsoft.com/DeviceConfiguration_2206/StatelessDeviceConfigurationFEService/d
eviceManagement/deviceConfigurations?api-version=5022-04-13&$top=100",
"CustomApiErrorPhrase": "",
"RetryAfter": null,
"ErrorSourceService": "",
"HttpHeaders": "{}"
}
At C:\Tools\IntuneToolBox-main\modules\pageGroupMgmt.psm1:444 char:5

Get-MgDeviceManagementDeviceConfiguration -All | ForEach-Object{

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: ({ Top = 100, Sk...ndProperty =  }:<>f__AnonymousType28) [Get-MgDeviceMan...figuration_List], RestException1
FullyQualifiedErrorId : Forbidden,Microsoft.Graph.PowerShell.Cmdlets.GetMgDeviceManagementDeviceConfiguration_List
Get-MgDeviceManagementDeviceCompliancePolicy : {
"_version": 3,
"Message": "Application is not authorized to perform this operation. Application must have one of the following scopes: DeviceManagementConfiguration.Read.All, DeviceManagementConfiguration.ReadWrite.All - Operation ID (fo
r customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 2f1e6f32-8f7b-41f3-8bd3-055440cf172b - Url: https://fef.amsub0102.manage.microsoft.com/DeviceConfiguration_2206/StatelessDeviceConfigurationFEService/d
eviceManagement/deviceCompliancePolicies?api-version=5022-04-13&$top=100",
"CustomApiErrorPhrase": "",
"RetryAfter": null,
"ErrorSourceService": "",
"HttpHeaders": "{}"
}
At C:\Tools\IntuneToolBox-main\modules\pageGroupMgmt.psm1:557 char:5

Get-MgDeviceManagementDeviceCompliancePolicy -All | ForEach-Objec ...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: ({ Top = 100, Sk...ndProperty =  }:<>f__AnonymousType28) [Get-MgDeviceMan...ancePolicy_List], RestException1
FullyQualifiedErrorId : Forbidden,Microsoft.Graph.PowerShell.Cmdlets.GetMgDeviceManagementDeviceCompliancePolicy_List

I missed to add some permissions. Can you try if it works now?

Had two prompts for permissions this time, one where we could also give permission for the whole organization in our tenant.
Seems to work now although we cannot click on anything on the Home screen

In the Group MGMT section we can do some more. The view area size however is too small so we have to scroll left and right or resize some columns since we cannot resize the whole Intune Tool Box screen.
Tiny other issue. When there is no profile picture associated with the account you use to manage the toolbox, you receive an error
Get-MgUserPhotoContent : Accessing service failed.
At C:\Tools\IntuneToolBox-main\modules\utility.psm1:232 char:7

  Get-MgUserPhotoContent -UserId $upn -OutFile $path

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: ({ UserId = ******* }:<>f__AnonymousType51) [Get-MgUserPhotoContent_Get], RestException1
FullyQualifiedErrorId : ErrorWrongServer,Microsoft.Graph.PowerShell.Cmdlets.GetMgUserPhotoContent_Get
get-content : Cannot find path 'C:\Tools\IntuneToolBox-main.tmp*******.png' because it does not exist.
At C:\Tools\IntuneToolBox-main\modules\utility.psm1:234 char:49

... LogIn = [convert]::ToBase64String((get-content $path -encoding byte))

                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : ObjectNotFound: (C:\Tools\Intune...dmin*******.png:String) [Get-Content], ItemNotFoundException
FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Exception calling "ToBase64String" with "1" argument(s): "Value cannot be null.
Parameter name: inArray"
At C:\Tools\IntuneToolBox-main\modules\utility.psm1:234 char:3

$iconButtonLogIn = [convert]::ToBase64String((get-content $path -en ...

+ CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentNullException

Get-DecodeBase64Image : Cannot bind argument to parameter 'imageBase64' because it is an empty string.
At C:\Tools\IntuneToolBox-main\modules\utility.psm1:235 char:66

... tonLogIn.source = Get-DecodeBase64Image -ImageBase64 $iconButtonLogIn

                                                     ~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidData: (:) [Get-DecodeBase64Image], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Get-DecodeBase64Image

Thanks for the quick response and all the efforts you make for the community.

Thank you for your feedback. I try to include this in the next version to give more possibilities to resize the screen. The bug with no profile picture I will fix until tomorrow.

Can you check the new version the bug is fixed an as already mention I will consider your feedback for the next version

Bug indeed fixed, can connect to our tenant, but the other issues remain (no resizing, cannot click on anything in home view)

authors: JayRHa hotzenwalder

repo: JayRHa/IntuneToolBox


text:
JaylyDB - functions stopped working

Describe the bug
The both functions get(key) and has(key) is not working.

can you provide more information about your problem?

this is the db created with my value
and this is the script to return that value

and it is returning undefined:

just noticed that the delete() is also not working.

just noticed that the delete() is also not working.

delete works well but its not synced with client so you cen look at that UI, also i thing you are not setting the value maybe thats why its undefined,
can you provide whole code where you use that database?

well it was working before the update, now the delete is doing nothing and no error at all. the code is below:
`import { world, system, ItemStack } from "@minecraft/server";
import { radiusCheck, addQuestItem } from "../../system/functions";
import { JaylyDB } from "../../system/jaylydb";
let prize_table = [
// loc.x/loc.y/loc.z / questname / isquestItem / prizeitem / quantityitem / loreMSG / keepOnDeath TRUE OR FALSE / isprizeMoney / quantityMoney / requiredLVL / custommsgFeedback /
[2168, 110, -1694, "enchantedbook", 1, "minecraft:enchanted_book", 1, "0", false, 0, 0, 0, "Você acaba de encontrar um §l§6Livro Encantado§r!"],
[1966, 42, -381, "desertquest1", 0, "0", 0, "0", false, 1, 200, 20, "0"],
[1966, 42, -374, "desertquest2", 1, "awp:iron_shield", 1, "\nEste escudo já pertenceu\na um grande §l§6Herói!§r§f", false, 0, 0, 20, "§6Você acaba de encontrar um §l§6Iron Shield§r!"],
[2321, 76, -1422, "spell_scrolls2", 1, "awp:spell_parchment", 1, "\nEsse pergaminho contém:\n§l§6> Inquebrável III >§r§f", false, 0, 0, 0, "Você encontrou um §l§6Pergaminho de Encantamento§r!"],
[0, 0, 0, "questname", 0, "xxx", 0, "\nxxxxx\nxxxx §l§6xxxxx§r§f", false, 0, 0, 0, "xxxxxx §l§6xxxxxx§r!"],
[0, 0, 0, "questname", 0, "xxx", 0, "\nxxxxx\nxxxx §l§6xxxxx§r§f", false, 0, 0, 0, "xxxxxx §l§6xxxxxx§r!"],
[0, 0, 0, "questname", 0, "xxx", 0, "\nxxxxx\nxxxx §l§6xxxxx§r§f", false, 0, 0, 0, "xxxxxx §l§6xxxxxx§r!"],
[0, 0, 0, "questname", 0, "xxx", 0, "\nxxxxx\nxxxx §l§6xxxxx§r§f", false, 0, 0, 0, "xxxxxx §l§6xxxxxx§r!"]
]
export function prizeChest(player) {
for (let i = 0; i < prize_table.length; i++) {
if (radiusCheck(player,prize_table[i][0],prize_table[i][1],prize_table[i][2],2)) {
const chestdb = new JaylyDB(prize_table[i][3], false);
const hasQuest = chestdb.get(player.id);
let value = chestdb.get(player.id);
player.sendMessage(chest value ${value})
//chestdb.delete(player.id);
  if (!hasQuest) {
    if (player.level >= prize_table[i][11]) { // check if player have enought level

      if (prize_table[i][4] === 1) { // check if has item as prize
        addQuestItem(player, prize_table[i][5], prize_table[i][6], prize_table[i][7], prize_table[i][8])
        player.sendMessage(`${prize_table[i][12]}`);
      }

      if (prize_table[i][9] === 1) { // check if has money as prize
        Number.prototype.format = function(){
          return this.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");
        };
        addQuestItem(player, "awp:crystal_coin", prize_table[i][10], "0", false)
        player.sendMessage(`§6Você encontrou §l§2B$ ${(prize_table[i][10]*100).format()}§r!`);
      }
      chestdb.set(player.id, player.name);  // Comment for tests

    } else {
      player.sendMessage(`§lÉ necessário §6level ${prize_table[i][11]}§r§l para abrir esse baú.`);
    }
  } else {
    player.sendMessage(`§l§cVocê já completou essa quest.`);
  }
  break;
}

}
};`

it works to add the db entry, the only problem is when it comes to manage an existing entry (has, get and delete).

I am not JaylyDB specialist but i am sure you not using JaylyDB in way how you should, JaylyDB shouln't create new instances so every time, i am not sure if i can help you at this moment

so using the new version it works just fine if I create a new db, so I m able to manage this new db recently created. But I cannot manage the old DBs, it returns the following error:
`Salt: undefined
Error: expecting property name
at :1
at parse (native)
at parse (world/system/jaylydb.js:68)
at updateParticipants (world/system/jaylydb.js:98)
at JaylyDB (world/system/jaylydb.js:123)
at prizeChest (world/events/quests/quest_prize.js:21)
at  (world/scriptevents.js:136)
[2023-07-12 23:33:16:074 ERROR] [Scripting] Error: Failed to load data. Please check content log file for more info.
at CreateCrashReport (world/system/jaylydb.js:58)
at parse (world/system/jaylydb.js:71)
at updateParticipants (world/system/jaylydb.js:98)
at JaylyDB (world/system/jaylydb.js:123)
at prizeChest (world/events/quests/quest_prize.js:21)
at  (world/scriptevents.js:136)`
So my question is, what is the correct procedure to update the db when there is a minecraft update? Because the old script 1.20.0 just doenst work anymore, the new script works fine but I completely lose the access to manage the old DBs created.

Judging from content log it seems like you’re using a relatively old jaylydb, AFAIK there isn’t a way to migrate directly from a really old version of jaylydb to current. I’ll try to make a script that migrates it.

is version version = "1.0.7" to "1.1.0" that old?
it was just one version before (1.20.0 to 1.20.10). but definitely a script to migrate would be awesome for sure. Luckily my DB was not that big already but I imagine in a future update if this issue happens again we need to manage a way to migrate it.

I was able to replicate this issue, I'll make a migration script and hope to push th to jaylydb v1.1.2

authors: ConsoleTerm JaylyDev sircurse

repo: JaylyDev/ScriptAPI


text:
Fixed typo in DS4Device.cs

Changed "ligtBarColor" to "lightBarColor".
It isn't much but when you would search for "lightBarColor", you would miss on 6 instances where one letter is missing.

I learned this repo is inactive, and there is a more up-to-date version.


text:
Color Detection in an image

To detect the color within an image . The approach was to train the model with color names and its RGB code .
opencv was used to open image and detect the color in an image.
Fixes issue no #265

delete everything fork latest one and send another or. this Is having conflicts with main project


text:
[Feature Request] VPN Support for Wireguard and Zerotier

First of all, thank you for a lovely project! I had my own powerline widgets, but with Big Sur a lot broke. Your style is much better.
Would it be possible to extend the VPN widget to support wireguard and zerotier? Both are becoming more popular these days.
Alternatively, some pointers would be welcome. Perhaps I may find time to contribute those widgets if you have a few tips.
Thanks in advance!

If anything is possible with command line you should be able to do it in the new "User widget" module in settings. I'm closing this for now, feel free to re open it if necessary!
See #176 for more information.

authors: Jean-Tinland issmirnov

repo: Jean-Tinland/simple-bar


text:
[DEV] Information réseau

Un petit aperçu ...

PR : https://github.com/Jeedom-Zigate/jeedom-plugin-zigate/pull/168

bonjour,
j'ai le plugin 1.3.5 sous jeedom.
comment peut on afficher le reseau zigbee s'il vous plait ?
j'ai des problèmes de maillage et j'aimerais bien pourvoir améliorer mon installation.
merci pour votre aide,
jérôme

Bonjour
Pouvez vous svp nous dire comment acceder a cette fonctionnalité importante.
Merci
Didier

repo: Jeedom-Zigate/jeedom-plugin-zigate


text:
Update Global.asax.cs

配置Memcached缓存时，RedisObjectCacheStrategy改为 MemcachedObjectCacheStrategy。

欢迎成为我们的新Contributor！

repo: JeffreySu/WeiXinMPSDK


text:
How to add custom rules?

Laravel Mix Version: #.#.# (npm list --depth=0) latest
Node Version (node -v): v8.1.4
NPM Version (npm -v): 5.3.0
OS: Windows 10

Description:
Some scripts do not have the correct preparation for modular assembly. It is necessary to introduce here such fix, for the pace-progress package, how i can to do?
{
    test: require.resolve("pace-progress"),
    loader: "imports?define=>false"
}

I tried to do so, but got an error
mix
    .js  ('resources/assets/js/app.js',              'public/js')
    .sass('resources/assets/sass/app.scss',          'public/css')

    .webpackConfig({
        module: {
            rules: [
                {
                    test: require.resolve("pace-progress"),
                    loader: "imports?define=>false"
                }
            ]
        }
    })

Hi, @fearrr ! Try use null-loader

did it work?

authors: fearrr nonamez webmarkelov

repo: JeffreyWay/laravel-mix


text:
Cannot find module 'lru-cache'

Laravel Mix Version: 6.0.16
Node Version : v14.16.1
Yarn Version: 1.22.10
OS: Linux homestead 4.15.0-124-generic #127-Ubuntu SMP Fri Nov 6 10:54:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Description:
Intrying to run the yarn dev (mix watch) I get the following stack error

internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'lru-cache'
Require stack:

/home/vagrant/modules/xxx/laravel-mix/node_modules/semver/classes/range.js
/home/vagrant/modules/xxx/laravel-mix/node_modules/semver/classes/comparator.js
/home/vagrant/modules/xxx/laravel-mix/node_modules/semver/index.js
/home/vagrant/modules/xxx/laravel-mix/src/Engine.js
/home/vagrant/modules/xxx/laravel-mix/bin/cli.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/home/vagrant/modules/xxx/laravel-mix/node_modules/semver/classes/range.js:187:13)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/vagrant/modules/xxx/laravel-mix/node_modules/semver/classes/range.js',
'/home/vagrant/modules/xxx/llaravel-mix/node_modules/semver/classes/comparator.js',
'/home/vagrant/modules/xxx/laravel-mix/node_modules/semver/index.js',
'/home/vagrant/modules/xxx/laravel-mix/src/Engine.js',
'/home/vagrant/modules/xxx/laravel-mix/bin/cli.js'
]
}
error Command failed with exit code 1.

Steps To Reproduce:
Install from package.json
{
  "private": true,
  "scripts": {
    "prod": "mix --production",
    "dev": "mix watch"
  },
  "devDependencies": {
    "bootstrap-sass": "^3.3.7",
    "buble": "^0.12.5",
    "jquery": "^3.1.0",
    "laravel-mix": "*",
    "lodash": "^4.16.2",
    "vue-resource": "^1.0.3",
    "vue-router": "^2.0.0",
    "vue-stash": "^2.0.1-beta",
    "vue-template-compiler": "^2.1.10"
  },
  "dependencies": {
    "bootstrap-datepicker": "^1.6.4",
    "jquery-simple-upload": "^1.0.0",
    "json-loader": "^0.5.4",
    "moment": "*",
    "vuejs-datepicker": "^0.9.24"
  }
}

Then run yarn dev

I can confirm that the module lru-cache is infact install yarn list yields ─ lru-cache@6.0.0 as a package installed

tried downgrading to laravel-mix@6.0.6 with no success


text:
No map at the beginning

Description:
No map at the beginning
Build:
0.2.9.0
Type:
IMPORTANT
Steps to reproduce:
._.
Frequency:
always

Present on recent Design scene

authors: DatBeQuiet juliamauri

repo: JellyBitStudios/JellyBitEngine


text:
ShouldHaveChildValidator: Add any found child validators to the ValidationTestException

I have made a minor change to the ShouldHaveChildValidator method. If any child validators are found, then the names of those are output to the ValidationTestException.

Looks good, thanks

authors: JeremySkinner mattfrear

repo: JeremySkinner/FluentValidation


authors: Jermmy PQ-girl

repo: Jermmy/pytorch-quantization-demo


text:
adding assingment_2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
What did you learn from the changes you have made?
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
A reference to a related issue in your repository (if applicable)
Checklist

[ ] I can confirm that my changes are working as intended

A2 marked as complete!


text:
Implement TextFieldScrollState and TextFieldScrollbarAdapter

Proposed Changes
In order to support scrollbars for text fields, we need to expose their scroll state and implement a ScrollbarAdapter for it.

Implement TextFieldScrollState which wraps the actual (internal) text field scroll state object: TextFieldScrollerPosition, in order to allow hoisting.
Add BasicTextField overloads that accept the new TextFieldScrollState. Unfortunately this means copy-pasting them from the upstream source. We will need to remember to update them whenever the upstream changes.
Add a TextFieldScrollerPosition parameter to CoreTextField so that our new BasicTextFields can unwrap and pass the wrapper scroller position to it.
Add a viewportSize property to TextFieldScrollerPosition.

Testing
Test: Unit and manual tests
Issues Fixed
Fixes: https://github.com/JetBrains/compose-jb/issues/1575

@igordmn Ready for CR

repo: JetBrains/androidx


text:
AsyncImage not update on recompose

I'm relatively new to Compose, so maybe the problem is my lack of fundamental knowledge of how it works. I'm using AsyncImage to show different images by choice, but the problem is that the image is updated once, after that it stops updating despite the new url
Sample code:
fun asyncImages() = application {
    Window(
        onCloseRequest = ::exitApplication,
        state = WindowState(size = DpSize(500.dp, 500.dp))
    ) {
        val images = listOf(
            "https://img.freepik.com/free-vector/cute-cat-gaming-cartoon_138676-2969.jpg?w=740&t=st=1666244997~exp=1666245597~hmac=945f80054981a1990a36c3e6144f699332ac437a48bf5d82fb4e0104a9e934fb",
            "https://img.freepik.com/free-vector/mysterious-mafia-man-smoking-cigarette_52683-34828.jpg?w=740&t=st=1666244997~exp=1666245597~hmac=8dd29f6fa84dad33ae855ef0fda60bedb2c7e4d88cac4a31a38ce2b20ebc699f",
            "https://img.freepik.com/free-vector/cute-girl-gaming-holding-joystick-cartoon-icon-illustration-people-technology-icon-concept-isolated-flat-cartoon-style_138676-2169.jpg?w=740&t=st=1666244997~exp=1666245597~hmac=85d2beae496ae5eb95f9901a4144ebfc444a2a42f512d907fdd6584be4a635e5"
        )

        var currentImageUrl by remember { mutableStateOf<String?>(null) }

        Column {
            Row {
                Button(onClick = { currentImageUrl = images[0] }) { Text("0") }
                Button(onClick = { currentImageUrl = images[1] }) { Text("1") }
                Button(onClick = { currentImageUrl = images[2] }) { Text("2") }
                Text("current image: $currentImageUrl")
            }
            currentImageUrl?.let { url ->
                AsyncImage(
                    load = { loadImageBitmap(url) },
                    painterFor = { remember { BitmapPainter(it) } },
                    ""
                )
            }
        }
    }
}

AsyncImage:
@Composable
fun <T> AsyncImage(
    load: suspend () -> T,
    painterFor: @Composable (T) -> Painter,
    contentDescription: String,
    modifier: Modifier = Modifier,
    contentScale: ContentScale = ContentScale.Fit,
) {
    val image: T? by produceState<T?>(null) {
        value = withContext(Dispatchers.IO) {
            try {
                load()
            } catch (e: IOException) {
                // instead of printing to console, you can also write this to log,
                // or show some error placeholder
                e.printStackTrace()
                null
            }
        }
    }

    if (image != null) {
        Image(
            painter = painterFor(image!!),
            contentDescription = contentDescription,
            contentScale = contentScale,
            modifier = modifier
        )
    }
}

fun loadImageBitmap(url: String): ImageBitmap =
    URL(url).openStream().buffered().use(::loadImageBitmap)

I was able to resolve the issue. In order for productState to respond to a new image, a key must be passed to it, this can be, for example, a url. And don't use Remember inside the 'painterFor' lambda, otherwise there will be no more updates.
AsyncImage:
@Composable
fun <T> AsyncImage(
    load: suspend () -> T,
    painterFor: @Composable (T) -> Painter,
    key: Any?,
    contentDescription: String,
    modifier: Modifier = Modifier,
    contentScale: ContentScale = ContentScale.Fit,
) {
    val image: T? by produceState<T?>(null, key) {
        value = withContext(Dispatchers.IO) {
            try {
                load()
            } catch (e: IOException) {
                // instead of printing to console, you can also write this to log,
                // or show some error placeholder
                e.printStackTrace()
                null
            }
        }
    }

    if (image != null) {
        Image(
            painter = painterFor(image!!),
            contentDescription = contentDescription,
            contentScale = contentScale,
            modifier = modifier
        )
    }
}

fun loadImageBitmap(url: String): ImageBitmap =
    URL(url).openStream().buffered().use { loadImageBitmap(it) }

Using:
                        AsyncImageOriginal(
                            key = url,
                            load = { loadImageBitmap(url) },
                            painterFor = { BitmapPainter(it) },
                            contentDescription = ""
                        )

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

repo: JetBrains/compose-multiplatform


text:
Compose-Multiplatform Resources for ios doesn't work with Moko-Resources

Describe the bug
Moko-Resources plugin in incompitable list of plugins inside Compose-Multiplatform plugin:
https://github.com/JetBrains/compose-multiplatform/blob/master/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ios/configureSyncIosResources.kt#L29
What should we change in our plugin to remove it from the incompatible list? Or you need check latest version (0.24.0 work in  progress) with your developments?
Affected platforms

iOS

Versions

Compose Multiplatform version*: 1.5.11, 1.6.1

Expected behavior
Compose-Multiplatform Resources plugin work with Moko-Resources inside project without disable resource-manager for IOS platform

Duplicate to https://github.com/JetBrains/compose-multiplatform/issues/4499.
@AlexeyTsvetkov please remind the context of the issue.

I'd add to this as well..
Please don't make the resources breaking other implementations.
I've done my own implementation one as well to have all the useful features like locale/display qualifiers/plurals etc, and it'd be just the best if the resources became a simple opt-in extension and not something what is breaking other libs, or something what is forcibly disabling other libs for the usage...

The compose gradle plugin does a resource packaging for iOS targets as part of its final artifacts build. The plugin has a logic how to get target resources and to copy them to a resource's bundle.
Sorry, we don't provide a public API here and don't give guaranies for other plugins (like a bundle name, an inner structure or tasks names). So, if you create 3d party plugin for resources you are suppose to implement its own resource bundle packaging logic and to copy the custom bundle to the final application.
We plan to delete the restrictions for other plugins on our side but it doesn't mean we supported them. It is responsibility the plugins authors.
P.S.: there is a drawback, the compose gradle plugin packs all target's resources to the compose resources bundle (not only from composeResources directory). We may change it in a future. No guaranties here. That is why you are suppose to implement own bundle here.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

authors: ExNDY jbruchanov okushnikov pjBooms terrakok


text:
Can't set icon in the new Window APIs

fun main() = application {
    val state = rememberWindowState(
        placement = WindowPlacement.Floating,
        position = WindowPosition.Aligned(Alignment.Center),
        size = WindowSize(300.dp, 200.dp)
    )

    Window(
        title = "Demo",
        icon = ColorPainter(Color.Red),
        state = state,
        onCloseRequest = ::exitApplication,
    ) {
        Box(modifier = Modifier.background(Color.Blue).fillMaxSize())
    }
}

This crashes under build 270 with:
Exception in thread "main" java.lang.IllegalArgumentException: Cannot convert Painter with unspecified size. Please set size explicitly.
	at androidx.compose.ui.graphics.DesktopImageConverters_desktopKt.asAwtImage-Ug5Nnss(DesktopImageConverters.desktop.kt:78)
	at androidx.compose.ui.graphics.DesktopImageConverters_desktopKt.asAwtImage-Ug5Nnss$default(DesktopImageConverters.desktop.kt:73)
	at androidx.compose.ui.util.Windows_desktopKt.setIcon(Windows.desktop.kt:149)
	at androidx.compose.ui.window.Window_desktopKt$Window$5$1$2.invoke(Window.desktop.kt:171)
	at androidx.compose.ui.window.Window_desktopKt$Window$5$1$2.invoke(Window.desktop.kt:171)
	at androidx.compose.ui.util.ComponentUpdater$UpdateScope.set(ComponentUpdater.kt:45)
	at androidx.compose.ui.window.Window_desktopKt$Window$5$1.invoke(Window.desktop.kt:171)
	at androidx.compose.ui.window.Window_desktopKt$Window$5$1.invoke(Window.desktop.kt:169)
	at androidx.compose.ui.util.ComponentUpdater.update(ComponentUpdater.kt:27)
	at androidx.compose.ui.window.Window_desktopKt$Window$5.invoke(Window.desktop.kt:169)
	at androidx.compose.ui.window.Window_desktopKt$Window$5.invoke(Window.desktop.kt:168)
	at androidx.compose.ui.window.AwtWindow_desktopKt$AwtWindow$3.invoke(AwtWindow.desktop.kt:88)
	at androidx.compose.ui.window.AwtWindow_desktopKt$AwtWindow$3.invoke(AwtWindow.desktop.kt:87)
	at androidx.compose.ui.util.UpdateEffect_desktopKt$UpdateEffect$2$performUpdate$2.invoke(UpdateEffect.desktop.kt:58)
	at androidx.compose.ui.util.UpdateEffect_desktopKt$UpdateEffect$2$performUpdate$2.invoke(UpdateEffect.desktop.kt:57)
	at androidx.compose.runtime.snapshots.Snapshot$Companion.observe(Snapshot.kt:1776)
	at androidx.compose.runtime.snapshots.SnapshotStateObserver.observeReads(SnapshotStateObserver.kt:123)
	at androidx.compose.ui.util.UpdateEffect_desktopKt$UpdateEffect$2.invoke$performUpdate(UpdateEffect.desktop.kt:54)
	at androidx.compose.ui.util.UpdateEffect_desktopKt$UpdateEffect$2.invoke(UpdateEffect.desktop.kt:62)
	at androidx.compose.ui.util.UpdateEffect_desktopKt$UpdateEffect$2.invoke(UpdateEffect.desktop.kt:47)
	at androidx.compose.runtime.DisposableEffectImpl.onRemembered(Effects.kt:81)
	at androidx.compose.runtime.CompositionImpl$RememberEventDispatcher.dispatchRememberObservers(Composition.kt:780)
	at androidx.compose.runtime.CompositionImpl.applyChanges(Composition.kt:638)
	at androidx.compose.runtime.Recomposer.composeInitial$runtime(Recomposer.kt:733)
	at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:432)
	at androidx.compose.ui.window.Application_desktopKt$awaitApplication$2$1$2.invokeSuspend(Application.desktop.kt:176)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Under the hood:
internal fun Window.setIcon(painter: Painter?) {
    setIconImage(painter?.asAwtImage(density, layoutDirection))
}

This calls java.awt.Window.setIconImage with the result of the conversion from Compose's Painter to AWT's Image. Except that:
fun Painter.asAwtImage(
    density: Density,
    layoutDirection: LayoutDirection,
    size: Size = intrinsicSize
): Image {
    require(size.isSpecified) {
        "Cannot convert Painter with unspecified size. Please set size explicitly."
    }
    ...

It expects the size to be specified

Thanks!
Fixed in 1.0.0-alpha1-rc1

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

authors: igordmn kirill-grouchnikov okushnikov


text:
Hot update failure

Hello, every time I modify the code, and then execute the runide command, the UI interface does not change, I don't know what is wrong, the community can't find similar problems
--
Later I tried to use Tasks->build->clean before executing runIde, it works and the ui interface will also change. However, it will start from scratch, I don't want to be so troublesome, what is the solution method?

Please specify

what is "the UI interface"
version of gradle-intellij-plugin
ideally, link to your plugin sources to reproduce

I think it has something to with this problem.    https://github.com/JetBrains/gradle-intellij-plugin/issues/959

thanks, please reopen this issue in other case

authors: YannCebron mdddj

repo: JetBrains/gradle-intellij-plugin