Removing duplicate source data criteria from a converted CQM measure

Pull requests into cqm-converter require the following. Submitter and reviewer should :white_check_mark: when done. For items that are not-applicable, note it's not-applicable ("N/A") and :white_check_mark:.
Submitter:

[ ] This pull request describes why these changes were made.
[ ] Internal ticket for this PR:
[ ] Internal ticket links to this PR
[ ] Code diff has been done and been reviewed
[ ] Tests are included and test edge cases
[ ] Tests have been run locally and pass
[ ] If applicable, the library version number in cqm-converter.gemspec has been updated
[ ] Update cqm-execution test fixtures using update_cqm_execution_fixtures.sh script from server-scripts repo

Bonnie Reviewer:
Name:

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code

Cypress Reviewer:
Name:

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code

Codecov Report

Merging #40 into master will increase coverage by 0.08%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #40      +/-   ##
==========================================
+ Coverage   57.34%   57.43%   +0.08%
==========================================
  Files           7        7
  Lines         483      484       +1
==========================================
+ Hits          277      278       +1
  Misses        206      206

Impacted Files
Coverage Δ

lib/cqm/converter/bonnie_measure.rb
96.84% <100%> (+0.03%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 143cc16...08d5a47. Read the comment docs.


sumCW computed twice?

@jerellejesse found this.
It looks like sumCW is computed twice.  First, runSim calls get_J1updates()
https://github.com/lkerr/groundfish-MSE/blob/ea59c71d82db906bd7f280c4390809ba0b5c8c86/processes/runSim.R#L74-L76
which in turn does:
https://github.com/lkerr/groundfish-MSE/blob/ea59c71d82db906bd7f280c4390809ba0b5c8c86/functions/popdy/get_J1Updates.R#L74-L78
I'm a little surprise this part runs, because it looks like it takes at least 1 argument F_full[y] that may be Na or NaN.  F_full[y] is set in get_advice()
Later on, runSim calls get_mortaility()
https://github.com/lkerr/groundfish-MSE/blob/ea59c71d82db906bd7f280c4390809ba0b5c8c86/processes/runSim.R#L128-L131
which does:
https://github.com/lkerr/groundfish-MSE/blob/ea59c71d82db906bd7f280c4390809ba0b5c8c86/functions/popdy/get_mortality.R#L13-L18
I don't believe this affects anything and i suspect it's a holdover from when @samtruesdell hacked things apart to accommodate the economic model.

As far as I can tell this is a repeat ... I probably meant to include get_mortality in the get_J1Updates or something. I don't think your pull request will present an issue; I think you're right that it just overwrites with the same information. I would definitely would be good with merging this pull request if a couple tests don't flag any issues.


Installation in a python virtual environment

README
Installation with python virtual environment
Installation of python packages dependencies
(replace $path by your own installation path with default python distribution)
$ python -m venv $path/nuclear
$bash source $path/nuclear/bin/activate # or $csh source $path/nuclear/bin/activate.csh
$ pip install ProDy
$ pip install numpy
$ pip install scikit-learn
$ pip install parmed
$ pip install bitarray
$ pip install pandas
$ pip install line_profiler
$ pip install numba
$ pip install networkx
$ pip install plotly
or, if you have virtualenv installed:
(replace $PATH by your own python path)
$ virtualenv -p $PATH/python3.x $pvenv/nuclear
$ source $pvenv/nuclear/bin/activate
$ pip install ProDy
...
or, if you have virtualenv/virtualenvwrapper installed:
$ mkdirvirtualenv nuclear
$ workon nuclear
$ pip install ProDy
...
Get NUCLEAR package
see instructions at: https://github.com/rglez/nuclear
cd $path
git clone git@github.com:rglez/nuclear.git # or git clone https://github.com/rglez/nuclear.git
Running nuclear
Test example (replace $path by your own nuclear repository path):
$ cd $path/nuclear/tests
$ python $path/nuclear constrained_local_minfalse.cfg

YES, it would be cleaner ...

actually I was then installing the nuclear classes into the python environment to have everything in the same place

Ok. I will try to publish nuclear in PyPI and after testing, will close this issue.

Ok. I will try to publish nuclear in PyPI and after testing, will close this issue.

Done. Please test it from your side and feel free to close this issue if everything works.


Pack UI: Update after install

After installing a pack, I have to refresh to be able to configure it. Since the pack installation is updated live, would be nice if the sidebar options to then configure the pack were updated live as well.

Agreed. Current status (with 2.8dev) is that the pack moves to "Installing" as soon as I click Install, but it never moves to "Installed" when the action has completed.


Specifying read endpoint for clustered mode

We are using elastic cache AWS clustered mode and we provide the config endpoint which AWS prodvides which allows for topology discovery.
Main question, if we use the multi az read replica for elastic cluster and we have separate deployments of the service using redisson in two AZs can we provide redisson config read endpoint url so that we can control which endpoint that redisson client directs its reads alone ? (No writes)

You can use Multi cluster mode

@mrniko we use a single elastic cache cluster for our use case but share between two az deployments but AWS elastic cache for a single cluster provides read replicas with two az. So we want to configure read endpoint specific to app's az to talk to the read endpoint of the cluster in the specific az. So not multi cluster.

Does cluster info

Can you clarify if cluster nodes command reports read replicas with two az ?

Sounds good. @mrniko . Is there way to debug log? How to observe? thanks

You need to set trace logging level for org.redisson package in your application.

You need to set trace logging level for org.redisson package in your application.

You can use org.redisson.connection.balancer.WeightedRoundRobinBalancer defining weights per hostname. Hostnames will be supported in 3.23.5+ version.


Add support for parse stack limiting

Currently. jsonhpp doesn't support stack limiting for parsing. If you try to parse a string that starts with 100 000 '[' characters, it will most likely overflow stack and crash the whole thread. That makes it unsuitable for parsing untrusted json inputs without separating parser to separate binary, potentially with sandboxing.
Jsonhpp should keep track of the parse stack level, allow for configurable maximum level, and return runtime parsing error whenever stack limit io reached.

@xyzzyz I'm also interested in that feature.
Any ideas how to implement that?
The output routine has the same issue, for that I would just add a maximum_depth parameter to serializer::dump.

There are quite some options for dump already. It seems that it is time to create some struct serializer_options and put all the options in there. Does anyone has an idea how to achieve this without breaking code in newer versions if an option is added?
Say I have this struct:
struct serializer_options
{
    bool pretty_print {false};
    std::size_t indentation_step {4};
    char indentation_char {' '};
    bool ensure_ascii {false};
    error_handler_t error_handler {error_handler_t::strict};
};

for the current options and their default values and client code with
serializer_options options;
options.pretty_print = true;
std::cout << j.dump(options) << std::endl;

What would I need to do to avoid breaking this code if I wanted to add
std::size stack_limit {0};

to serializer_options?

(The described approach https://github.com/nlohmann/json/issues/1788#issuecomment-545565067 could also fix the issues with floating-point precision #1519, #1421, #1384, #1191.)

Shouldn't it rather be, de-serializer options? This is an issue on parsing side, not on printing side.

Ooops. Yes. Sorry for the confusion. In any case, the same question also applies for serialization.

Related #1599

With the merge of #1436 and thanks to the non-recursive parser, the code will not crash for deeply-nested JSON values anymore. Now the parsing is only bounded by the available memory.
Even so, a max-depth parameter for parsing will probably be handy for the user to easily reject a subset of invalid JSONs.

This is not possible. The value of sizeof $somestruct is part of interface and therefore any change of it, will break the compatiblity.

That's technically true. Though I wonder how users will be affected. For the most part, I think we can manage to add new members to serializer_options without breaking the user code. A disclaimer about the size of this struct can also be helpful. Therefore as long as they don't directly depend on the size of this struct, which is an implementation detail in a sense, we promise the future changes doesn't change the behavior.
We can also implement from_json/to_json for the users who want to store/load serializer_options.
One last solution would be to use pimpl trick to keep the struct size constant from the user point of view.

@nlohmann

Then maybe one could use json as type of the options to allow to add more options down the road.

So we would pass a json document with the options to dump? That sounds actually like a nice eat-your-own-dog-food approach.


[quick_actions] Implementing sharedpreferences approach for killed apps

Description
This PR addresses this issue. The issue is that Quick actions crash when the app is killed.
The problem for Android is located here, in QuickActionsPlugin.java.
When the user clicks on the quick actions item, the plugin opens ShortcutHandlerActivity, and it is a simple one:

    @Override
    protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      // Get the Intent that started this activity and extract the string
      Intent intent = getIntent();
      String type = intent.getStringExtra("type");
      if (channel != null) {
        channel.invokeMethod("launch", type);
      }
      finish();
    }
  }

So, as you can see, it just opens the activity, sends the message to the channel, and finishes the activity. If this approach is fine if the app is already launched, — you will just see the activity behind ShortcutHandlerActivity, — it doesn't work if the app is killed. Just because after closing the helper ShortcutHandlerActivity you don't have any open activities left. One thing which could help is to open the main launcher activity if it is not open yet.

And one more thing to notice is in quick_actions.dart. As you can see, the call channel.invokeMethod is executed onCreate() of the very first activity, ShortcutHandlerActivity, and the method handler in quick_actions.dart is set in initialize(), so, in this case with opening the killed app, handler is not set at the time when invokeMethod is executed. You have to save the intention to call the quick action somewhere, for example, in shared preferences and check later.

That's exactly what was implemented in this PR.
Related Issues
issue 31235
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See [Contributor Guide]).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the [Flutter Style Guide].
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy].
[x] I updated CHANGELOG.md to add a description of the change.
[x] I signed the [CLA].
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

Why not just open the default flutter app and set it to singleTask in the manifest? I bet you could use some deeplink routing from there.

@collinjackson Thank you for your review and especially thanks for your suggestion!
I was also thinking that adding an extra dependency isn't the best option, but unfortunately, I didn't know that it is possible to retrieve the activity from registrar.activity().
So, I replaced it with the option you suggested, tested and it works perfectly fine as it was with SharedPreferences.
Please, review the updated version.

@collinjackson Can't we just launch the launcher Activity and forward the bundle arguments to the router in the dart side? No need to shared preferences.

@BugsBunnyBR one issue I can see with your approach is that it's breaking the current behavior of the plugin on the Android side. Right now, when you click on a quick actions shortcut, and the app was already open, it just reopens it and delivers the action to the app. But with your routes approach, it doesn't matter if the app was open or not — when you click on the shortcut, it will recreate the page completely, even if it was already open. Notice the black screen each time you click on the shortcut, even if the app is already running.
I don't know if this is acceptable or not, but in my other project, this approach would not work.
Also, as you said, it is a breaking change, and I doubt if it is Okay to use routes for this, as it was designed mainly for navigation.
And by the way, I got rid of SharedPreferences dependency, thanks to @collinjackson 's hint.

@diesersamat , Yeah, it is a breaking change, since the current behavior is not the intent behavior, at least in the Android platform.

App shortcuts are used for navigation, aka, routing. That can be been in the API by the need to give an Intent to be executed when the shortcut is used. From what I understand the current handler for quick actions will do the same thing as route matching and flutter already provide a named routing system.
The app is not supposed to preserve the current stack when using app shortcuts.

I am not saying not to merge your PR, it seems to fix a problem that exist in the current implementation, but I felt I should point that there is a design problem in the plugin.
I opened an issue https://github.com/flutter/flutter/issues/36148 so we can talk about it there if you want.

Thanks for the contribution. @BugsBunnyBR looking forward to your follow-on PR for the back button issue.

@diesersamat, if you may, please try this https://github.com/flutter/plugins/pull/1856 .


Use sphere-sunrise as template module / dependency

It would be great if one could use sunrise as play dependency/module so that most of functionality (routes, controllers, models, views, even some javascript/coffee implementation) would come out from sunrise. New project would then overwrite extend required views/controllers for custom solutions.

This is the framework idea, currently not planned for the short-term, since we need to focus first on the demo aspect. But definitely the next step for Sunrise.


Feature Request: Short syntax in long syntax.

The short syntax is very useful, however sometimes I would like to set options.
An example:
CPMAddPackage(
	GITHUB_REPOSITORY gabime/spdlog
	VERSION 1.13.0
	EXCLUDE_FROM_ALL YES
	SYSTEM YES
	OPTIONS "SPDLOG_FMT_EXTERNAL ON"
)

Would it be possible to have this be equivalent to either something like this:
CPMAddPackage("gh:gabime/spdlog#v1.13.0" OPTIONS "SPDLOG_FMT_EXTERNAL ON")

or like this:
CPMAddPackage(URI "gh:gabime/spdlog#v1.13.0" OPTIONS "SPDLOG_FMT_EXTERNAL ON")

? (URI is a placeholder here, feel free to pick whatever)
If I understand your script this could be done by invoking the short syntax parser for a certain argument if more than 1 is given. This would be advantageous in the use case: I just want to add an option.

Thanks for the issue! We feel the same way and have an in progress PR for it: #546.


Add USDN stablecoin

https://neutrino.at

Some additional links:
ERC-20 USDN on Curve: https://www.curve.fi/usdn
ERC-20 USDN on Uniswap: https://info.uniswap.org/pair/0x73fb253681c2a2f11c9d5c8e731be44a3f46b353
ERC-20 USDN on Mooniswap: https://mooniswap.info/pair/0x10e67cf3265401a6366d484d2c1cb7fead21fae5
Media publications verifying that the token address is authentic:
https://medium.com/neutrinoteam/neutrino-ports-into-ethereum-26d9d5750669
https://medium.com/wavesprotocol/waves-issues-erc-20-for-collaboration-with-ethereum-network-122a968e6a09
https://twitter.com/neutrino_proto/status/1311742642368253952
https://twitter.com/wavesprotocol/status/1319308791935062020
https://ca.finance.yahoo.com/news/waves-issues-erc-20-collaboration-160000922.html
https://www.businesswire.com/news/home/20201022005325/en/Waves-Issues-ERC-20-for-Collaboration-with-Ethereum-Network

Hey @xrn! What does the "pending community activity" tag mean?

I think having USDN native support in metamask would be a great addition!

@xrn hey Marcin! quick update about USDN: it is already top-11 stablecoin in the market! could it be verified by Metamask?


[Filter panel] Prod QA testing of the web components version

User Story

As a [user role below]:
developer using the ibm.com Library Filter panel

I need to:
have a version of the pattern or component that has been tested for accessibility compliance as well as on multiple browsers and platforms

so that I can:
be confident that my ibm.com web site users will have a good experience

Additional information

Browser Stack link
Browser Standard
Browser versions to be tested:  Tier 1 browsers will be tested with defects created as Sev 1 or Sev 2.  Tier 2 browser defects will be created as Sev 3 defects.
Platforms to be tested, by priority:  1)  Desktop  2)  Mobile
Mobile iOS versions: 13.1, 13.3 and 14
Mobile Android versions: 9.0 and 10
Browsers to be tested:  Desktop: Chrome, Firefox, Safari, Edge, Mobile: Chrome, Safari, Samsung Internet, UC Browser, QQ Browser
Accessibility testing guidance
Accessibility Checklist
Creating a QA bug
See the Epic for the Design and Functional specs information
Web Components Dev issue (#6034 )
** Once development is finished the updated code is available on the 1) WC Wrapper test env URL or the React canary environment for testing.**

Acceptance criteria

[ ] Accessibility testing is complete.  Component is compliant.
[ ] All browser versions are tested
[ ] All operating systems are tested
[ ] All devices are tested
[ ] Defects are recorded

@Praveen-sr The code has been merged.
cc:  @andysherman2121

Closing.  Prod QA testing finished.  Bugs reviewed and created.


generate simple round trip tests for structs, tables and unions

generate simple tests which do a serialize/deserialize/serialize cycle and compare the resulting bytes
this makes running scripts/test-all.sh useful for catching compile errors in generated code

addressed in https://github.com/travisstaloch/flatbufferz/commit/0a7d9d4fc774b998433b587a39f434b08d55e387
this works now. i've been using it today.

these can be run with:
zig test gen/B.fb.zig --mod flatbufferz:flatbufferz:src/lib.zig --deps flatbufferz -freference-trace --main-pkg-path gen


Teensy not found on Ubuntu 21.10, Raspberry Pi 4

Hello!
I have a Teensy 4.1 connected via USB to a Raspberry Pi 4 which is running Ubuntu Desktop 21.10. The system can see the Teensy at the USB level - running lsusb returns the following entry for the Teensy:

Bus 001 Device 013: ID 16c0:0483 Van Ooijen Technische Informatica Teensyduino Serial

tycmd however cannot see the Teensy. Running tycmd list returns an empty result. I have built tytools v0.9.4 per the instructions, and it builds cleanly with no errors showing. The tycommander GUI runs on this system without errors but also shows no boards connected.
For reference, I can see the same Teensy using tycmd and tycommander when connected to my macOS machine, using the same v0.9.4 release, the same running Teensy sketch and the same USB cables.
I'm wondering if you have ever successfully used tycmd on Raspberry Pi 4? Or are there any special considerations to get it to be able to see the attached device(s)?
Thanks!
Josh

Ok I've got a working install of Ubuntu 21.10 on my Raspberry Pi 400, which took longer than because of this painful bug: https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/1946368...
I can confirm that it does not work correctly.
I will work on it in the newxt few days and report to you.

Okay found the problem, and it does not come from TyTools.
Some drivers (such as drivers/usb/class/cdc-acm which is needed to handle USB serial with Teensy) have been moved to an extra package: linux-modules-extra-raspi
I'll try to add some kind of warning in TyCommander to help users. In the mean time, just install this package, unplug and replug your Teensy, and it should solve your problem :)

You can find more information about this change here: https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/1947723

Many thanks!!!


Add prettier check to format non-python code

Overview

Follow https://github.com/pyvista/pyvista/pull/5503.

Details

None

LGTM


help with Kullback–Leibler divergence loss

I'm training a network on survival curves. The curves cover 20 years, and I'm generating data at 6 month intervals, so my targets are 40 element vectors with each value representing the probability of survival at that time period.
I'd like to minimize the Kullback–Leibler divergence between the final output layer (40 units) and the target survival curve. My data is gene expression data for 87 genes, and I have 1088 cases, so my input shape is (1088, 87) and my target shape is (1088, 40). Here is my model:
model = Sequential()
model.add(Dense(64, activation='relu', input_dim=input_dim))
model.add(Dropout(0.5))
model.add(Dense(64, activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(40, activation='sigmoid'))
sgd = SGD(lr=0.01, decay=1e-6, momentum=0.9, nesterov=True)
model.compile(loss='kld', optimizer=sgd, metrics=['accuracy'])
model.fit(X, Y, validation_split=0.33, epochs=200, [batch_size=64)]
And here's what the accuracy and loss look like:

Val accuracy approaching 100%, but train accuracy less?

Negative loss?
If I try predicting from new input data with
model.predict(X_new)
I get all 1's, or values like 0.99999988.
Any suggestions would be appreciated.

@schmolze Fast guess, since you're activating with sigmoid for your predictions each one of the nodes will be outputting a value between 0 and 1. This kind of sounds like what you want, however you run into a problem when you use KL divergence as your loss function since it expects to compare two proper distributions. If you want to propagate loss per time period then I think the right way to do it is with binary crossentropy, if you in fact want a proper distribution to use with KL divergence then the you should activate with softmax on the last layer.
Final thought, how many total observations are you training vs testing with after data augmentation, you might simply be seeing the result of a poor train test split in those graphs if your data are small. Just some food for thought.

What are the target values? Are they probabilities or alive/dead states? If alive/dead then @Ultramann is right and you want binary crossentropy.
The output predictions are not independent. I assume if someone is dead at one state they are likely to be dead in the next state. You may want to make predictions with some sort of recurrency.

Thanks for the input guys. I've given the problem more thought, and I think I have a working solution now. First, a bit more on the survival curves, which are based on a 1999 paper by Street entitled "A Neural Network Model for Prognostic Prediction". If a patient is known to be alive at a given time point, that index gets a 1, if they are known to be dead a 0. If they are censored (e.g. lost to followup), the probability of survival is estimated with the Kaplan-Meier estimator. So, example target vectors might look like:
[1,1,1,0,0,0,.....,0]
[1,1,0.98,0.95,0.94,....0.25]
Since as pointed out, these aren't actual probability distributions, I don't think K-L is the right loss function. Instead, I ended up just treating this as a standard regression problem, and used MSE loss. After some tweaks to the architecture, it seems to be working pretty well:


refactor: 💡 Remove LabellingManager and Cleanup LabellingFlow #1267

Closes #1267
PR Checklist

[ ] Brief description of changes
[x] Links to any relevant issues
[ ] Required status checks are passing
[ ] User cases if changes impact the user's experience
[x] @mention a maintainer to request a review

Merging to a trusted branch


[WIP] Filters in Automatic Endpoints

This is a work in progress, but it will close #15. This PR adds optional filters to automatic endpoints.

[x] Create a class to validate passed filters
[x] Validate that filters are indeed columns of the db
[x] Create function to dynamically add filters to endpoints
[x] Accept filter_config in both EndpointCreator and crud_router, dynamically add filters as query parameters
[x] Decide whether get_multi and get_paginated only are changed by filter_config
[x] Get the type of the query parameters and pass it to FastAPI
[x] Tests covering changes
[x] Documentation updates

The usage idea after it is merged is something like:
Passing Filters as a Dict to crud_router
from fastapi import FastAPI
from fastcrud import crud_router, FilterConfig
from myapp.models import MyModel
from myapp.schemas import CreateMyModel, UpdateMyModel
from myapp.database import async_session

app = FastAPI()

router = crud_router(
    session=async_session,
    model=MyModel,
    create_schema=CreateMyModel,
    update_schema=UpdateMyModel,
    filter_config=FilterConfig(filters={"id": None, "name": "default"})
)
# Adds CRUD routes with filtering capabilities
app.include_router(router, prefix="/mymodel")

Explanation:

The FilterConfig specifies that 'id' should be a query parameter with no default value and 'name' should be a query parameter with a default value of 'default'.
When fetching multiple items, you can filter by these parameters.
Example GET request: /mymodel/get_multi?id=1&name=example

Passing Filters as Keyword Arguments to EndpointCreator
It's also possible to use FilterConfig with keyword arguments or with EndpointCreator instead of crud_router:
from fastapi import FastAPI
from fastcrud import EndpointCreator, FilterConfig
from myapp.models import MyModel
from myapp.schemas import CreateMyModel, UpdateMyModel
from myapp.database import async_session

app = FastAPI()

# Using FilterConfig with keyword arguments
endpoint_creator_kw = EndpointCreator(
    session=async_session,
    model=MyModel,
    create_schema=CreateMyModel,
    update_schema=UpdateMyModel,
    filter_config=FilterConfig(id=None, name="default")
)
# Adds CRUD routes with filtering capabilities
endpoint_creator_kw.add_routes_to_router()
# Include the internal router into the FastAPI app
app.include_router(endpoint_creator_kw.router, prefix="/mymodel")

Of course one could also pass as keyword arguments to crud_router or as a dict to EndpointCreator.
Notes:

for this first version, get_multi and get_paginated only are getting filters. If people request, we may rethink this
for now, we're also accepting a dict being passed instead of a FilterConfig

Btw @AndreGuerra123 @samuel-favarin-dbc you guys might be interested in taking a look at this

@JakNowy not for this iteration, but for the next one we should get supported_filters list somewhere easy to access outside FastCRUD so we can also use advanced filters in the automatic endpoints.

The filter is wonderful! But can it be applied on joined models?
For example, filter user by user.company.name == 'A' ? Or filter company by user's name, company.users.any(User.name == 'B')


Q: Add a styled text with OpenXML (Word Web Add-in)

Question
I would talk about a sample below:

https://github.com/OfficeDev/PnP-OfficeAddins/tree/main/Samples/word-add-in-load-and-write-open-xml

I want to add styled text to a document by clicking a button on taskpane.
However it doesn't seems to work as I expected.
I assume the sample of the code for the button 'Set Styled Text' is what I expected.
However I don't think the code would work as it is explained.
Added text is not styled well. When I selected the added text, the 'Normal' style is selected in style window. I has expected that the text is styled and a style 'Heading 1' is added in the style window. But the both is not being as I expected. Then I save the document, and unzip it, and I checked style.xml also, but I could not find the style I added out. I believed the added xml elements should be saved in the style.xml and document.xml.
I cannot identify whether the code defect or my environment issue. My environment in Japanese may be being affect it.
I wondered it would work the open xml with a style referencing the existing styles, and I modified the code as extract current xml by 'getSelectedDataAsync', and editing xml on the fly (The description in the ms site does not recommend it though). But it didn't work well.

Thanks for reaching out. @davidchesnut , could you help to take a look?

@RuoyingLiang @davidchesnut
Thank you for replying and a person assigned.
I am investigating with my code, but I couldn't find any new things out.
I wondered it would change something if I rebuild environment with Office refreshed up, and I did it.
However, it didn't changed anything.
I got xml by getSelectedDataAsync after I added styled text by setSelectedDataAsync, then the xml didn't include styles I added.
I don't know why the added styles are ignored.
I would share my environment information.

Windows10

Host Name:                 XXXXXXXXX
OS Name:                   Microsoft Windows 10 Enterprise
OS Version:                10.0.18362 N/A Build 18362
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:
Registered Organization:   XXXXXXXXX
Product ID:                00329-20000-00001-AA824
Original Install Date:     2021/11/20, 22:51:22
System Boot Time:          2021/12/14, 6:08:46
System Manufacturer:       Microsoft Corporation
System Model:              Virtual Machine
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 142 Stepping 10 GenuineIntel ~2112 Mhz
BIOS Version:              American Megatrends Inc. 090008 , 2018/12/07
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             ja;Japanese
Input Locale:              ja;Japanese
Time Zone:                 (UTC+09:00) Osaka, Sapporo, Tokyo
Total Physical Memory:     6,144 MB
Available Physical Memory: 3,910 MB
Virtual Memory: Max Size:  7,808 MB
Virtual Memory: Available: 5,608 MB
Virtual Memory: In Use:    2,200 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\XXXXXXXXX
Hotfix(s):                 4 Hotfix(s) Installed.
                           [01]: KB4586878
                           [02]: KB4497727
                           [03]: KB4586863
                           [04]: KB4592449
Network Card(s):           1 NIC(s) Installed.
                           [01]: Microsoft Hyper-V Network Adapter
                                 Connection Name: イーサネット
                                 DHCP Enabled:    Yes
                                 DHCP Server:     <IP_ADDRESS>
                                 IP address(es)
                                 [01]: <IP_ADDRESS>
                                 [02]: fe80::4052:a95c:4298:77f
Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Office365
> wmic product where "Name like '%%Office%%'" get name,version,language

Language  Name                                                                             Version
0         Office 16 Click-to-Run Extensibility Component                                   16.0.14701.20226
1041      Office 16 Click-to-Run Localization Component                                    16.0.14701.20226
0         Office 16 Click-to-Run Licensing Component                                       16.0.14701.20226
1041      Microsoft Visual Studio 2010 Tools for Office Runtime (x64) Language Pack - JPN  10.0.50903
0         Open XML SDK 2.5 for Microsoft Office                                            2.5.5631
0         Microsoft Visual Studio 2010 Tools for Office Runtime (x64)                      10.0.50908
1033      sptools_Microsoft.VisualStudio.OfficeDeveloperTools.Msi                          16.0.29931

Hi @yusukemasuda,
Thanks for noticing this. I've also reproduced this behavior so I'm tagging this as a bug in the sample and investigating. Hope to follow up soon.
Thanks!
David

Hello @davidchesnut
Thank you for the effort to reproduce.
I hope this issue would be solved.
I wondered the target 'style.xml' on below line is a mistake of 'word/style.xml', I changed it, but it was not solved.
https://github.com/OfficeDev/Office-Add-in-samples/blob/5659bf5ef884c2ba239155f711dd4928050c8203/Samples/word-add-in-load-and-write-open-xml/C%23/LoadingAndWritingOOXMLWeb/OOXMLSamples/TextWithStyle.xml#L12
I will inform you what I wonder something, if I have.
Best,
Yusuke

Hi @yusukemasuda
Just for more information, you can also add styles with the Word API. Here's a script lab sample that shows how to add heading 2. You may find this easier to work with.
async function run() {
  await Word.run(async (context) => {
    let sentence = context.document.body.insertParagraph("To be or not to be", "End");

    // Use styleBuiltIn to use an enumeration of existing styles. If your style is custom make sure to use: range.style = "name of your style";
    sentence.styleBuiltIn = Word.Style.heading2;

    await context.sync();
  });
}

However this won't work with Word.Style.heading1. the text will get formatted that way, but it won't reflect in the ribbon (or OOXML on save.) so there seems to be something about the heading 1 style. I'm still following up with the team and hope to post more information soon.
Thanks,
David

Hi @yusukemasuda,
This code workaround will work if you set the style directly using a text string.
async function run() {
  await Word.run(async (context) => {
    let sentence = context.document.body.insertParagraph("To be or not to be", "End");

  sentence.style = "Heading 1";
    await context.sync();
  });
}

@davidchesnut
Thank you for the information and sample codes.
I will try it with my code.
However, I want to add my style to a document also.
This way and to use 'style' property in paragraph are utilize existing styles.
Could you tell me how I add style with some javascript api, if you can?

Hi @yusukemasuda,
You should be able to set any customer styles by using the Paragraph style property. Set it to the string name of the style you want.
BTW: I also found Heading 1 does work. Sometimes you have to save the document and reload for it to reflect in the style pane in the ribbon. Not sure why but at least the OOXML is correct.
Hope this helps,
David

Hi @davidchesnut,
Thank you for investigating about my issue.

BTW: I also found Heading 1 does work. Sometimes you have to save the document and reload for it to reflect in the style pane in the ribbon. Not sure why but at least the OOXML is correct.

Do you mean that the sample may sometimes work?
As you replied, I tried to run the sample again, but it didn't work as well as I had tried before I asked.
I also tried changed the display language and system locale from ja-JP to en-US, and reinstall the office for en-US instead of ja-JP, but it didn't change the result.
The procedures I performed is:

Run the sample with the code cloned as it is.
Pressed the button 'Text With Style'.
A text was inserted, and it seemed to be without style.

I saved it, and unzip it, I checked a XML file 'word/style.xml' in the doc file, I couldn't find the style inserted out anywhere. Also the text in the XML 'word/document.xml' was not specified the style.
The style should decorate has gone somewhere. I don't know why. I don't figure the differenct between you and me out.
I cannot imagine what has been affecting it.
Do you have any findings for it?
And now, I wanted to decorate a text I insert.
Any other way to accomplish that, would help me.
Best,
Yusuke

@davidchesnut
I tried setting style with the style property in paragraph as you told, and I could decorate my paragraphs I added by existing styles.
I could not add a new style to my document, though.
If you can add a new style with JavaScript API to the doc, let me know that, please.
Thanks,
Yusuke

Hi @yusukemasuda,
If you are creating a completely new, custom style, there's a bit of a workaround where you have to import a document with the style you want using insertFileFromBase64. Juan put together a great answer with lots of details and a Script Lab snippet here: https://stackoverflow.com/questions/68892700/not-able-to-add-styled-text-with-ooxml.
Hope this helps,
David

Hello @davidchesnut
Thank you for providing information.
I want to try the workaround described in stackoverflow though, I cannot take a time to do it now.
I will do when I am free, maybe the end of January.

Hi @yusukemasuda,
Sounds good, so I'll close this issue for now. But if you still run into any issues, please reopen this issue.
Thanks!
David

Actually, I'll reopen the issue. Forgot the sample bug. :-) The sample still needs to be updated to use the rich APIs.

@davidchesnut
Thank you for supporting me very well.
I have been tried to add new styles by inserting a document including styles.
However, It hasn't worked well, yet. I am struggling it and I will ask Juan on the stackoverflow topic.

The sample is about OOXML so it doesn't seem to make sense to update to use rich APIs. Maybe an option would be to create a sample that showcases equivalent/similar behavior/functionality using rich APIs.
I'll go ahead and close this as we'll need to create a new sample instead of updating this one.


Slight left side shift when navigating between pages

Shifting was caused by the scrollbar appearing and disappearing.  Added style rule to always show scrollbar.  Resolves the issue.


Elements can't modify their children from on created element event.

fixes #6068

Hi @neTp9c, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, DNFBOT;

@sfmskywalker please review and pull if you agree

I'm sorry, it's not enough to solve this problem. Can you please close the pull request?


fix gpt-4-vision-preview

Fixes the token bug that would cause smaller models (like gpt-3.5.turbo) to return an error as well as fixing the response format bug with gpt-4-vision-preview.

I know we're going to make some user who puts 126k tokens into context and gets an error mad. But it's good enough.

think they've fixed this yet?


Fix flaky test TestCAAndCertificateCreationInAHttpsServer

fixes kubewarden/kubewarden-controller#89

I requested a review here because I wanted to comment two things:
I don't understand the purpose of the test, or what we are testing. I think it's safe to assume that something as core as this is already tested extensively in the go stdlib itself. Please, let me know if I'm missing something.
The other thing that caught my eye was the use of sleeping and retries. I think it would be good to switch to a Listener + ServeTLS combo if we want to do it, but I would question the need for this test at all.

@ereslibre This is an integration test. We are testing that we create a secret that contains a valid certificate and a valid CA. In order to verify the certificate and CA is valid, we create an https server with the certificate we created and then do a tls dial with the CA. So we are testing the creation of the secret, ca and cert which is something we do in our code. Do you know a better way of testing this without creating a https server?
I think we would still have the same problem with Listener + ServeTLS as the problem is that sometimes (very rarely) we tried to do the tls dial before the server is ready

Do you know a better way of testing this without creating a https server?

I don't have a really good answer without really reproducing what we do on the implementation but on a different way. All in all, the test also depends on the implementation of the golang HTTP server being able to interpret the certificate we create. That does not say anything about how the Rust crates that will use will be able to use them or not.
In any case, is fine, I guess is a matter of having different opinions about the test itself, let's keep it as is. Sorry for the noise.


Fail to reach global gateway

Describe the bug
Not able to connect to cosmos db from wildfly application server , for development I have used azure-sosmos-4.30.0 sdk.
Expected behavior
Should create CosmosAsyncClient
Actual behavior
I see this error when trying to create CosmosAsyncClient .

2022-06-13 08:21:51,976 INFO  [stdout] (reactor-http-epoll-1) 08:21:51.976 [reactor-http-epoll-1] ERROR com.azure.cosmos.implementation.RxGatewayStoreModel - Network failure
2022-06-13 08:21:51,976 INFO  [stdout] (reactor-http-epoll-1) io.netty.channel.StacklessClosedChannelException: null
2022-06-13 08:21:51,976 INFO  [stdout] (reactor-http-epoll-1)   at io.netty.channel.AbstractChannel$AbstractUnsafe.ensureOpen(ChannelPromise)(Unknown Source) ~[netty-transport-4.1.65.Final.jar:4.1.65.Final]
2022-06-13 08:21:51,978 INFO  [stdout] (reactor-http-epoll-1) 08:21:51.977 [reactor-http-epoll-1] ERROR com.azure.cosmos.implementation.GlobalEndpointManager - Fail to reach location any of locations West US {"innerErrorMessage":null,"cosmosDiagnostics":{"userAgent":"azsdk-java-cosmos/4.30.0 Linux/4.18.0-193.75.1.el8_2.x86_64 JRE/1.8.0_332","activityId":null,"requestLatencyInMs":5,"requestStartTimeUTC":"2022-06-13T08:21:51.972Z","requestEndTimeUTC":"2022-06-13T08:21:51.977Z","responseStatisticsList":[],"supplementalResponseStatisticsList":[],"addressResolutionStatistics":{},"regionsContacted":[],"retryContext":{"statusAndSubStatusCodes":null,"retryLatency":0,"retryCount":0},"metadataDiagnosticsContext":{"metadataDiagnosticList":null},"serializationDiagnosticsContext":{"serializationDiagnosticsList":null},"gatewayStatistics":{"sessionToken":null,"operationType":"Read","resourceType":"DatabaseAccount","statusCode":503,"subStatusCode":10001,"requestCharge":0.0,"requestTimeline":[{"eventName":"connectionAcquired","startTimeUTC":"2022-06-13T08:21:51.972Z","durationInMicroSec":5000},{"eventName":"connectionConfigured","startTimeUTC":null,"durationInMicroSec":0},{"eventName":"requestSent","startTimeUTC":null,"durationInMicroSec":0},{"eventName":"transitTime","startTimeUTC":null,"durationInMicroSec":0},{"eventName":"received","startTimeUTC":null,"durationInMicroSec":0}],"partitionKeyRangeId":null,"exceptionMessage":null,"exceptionResponseHeaders":"{x-ms-substatus=10001}"},"systemInformation":{"usedMemory":"109745 KB","availableMemory":"356687 KB","systemCpuLoad":"empty","availableProcessors":4},"clientCfgs":{"id":1,"machineId":"uuid:bd7df75e-a13d-48f4-9a71-2751a22ec152","connectionMode":"DIRECT","numberOfClients":1,"connCfg":{"rntbd":null,"gw":"(cps:1000, nrto:PT1M, icto:PT1M, p:false)","other":"(ed: true, cs: false)"},"consistencyCfg":"(consistency: null, mm: true, prgns: [westus])"}}}

Environment summary
SDK Version:4.30.0
Java JDK version:8
OS Version (e.g. Windows, Linux, MacOSX) : Linux
Additional context
If I run simple java problem , it works but within wildfly it is not . Please help me to resolve this issue.
TokenCredential tokenCredential = new DefaultAzureCredentialBuilder().build();
		CosmosAsyncClient client = new CosmosClientBuilder()
				.endpoint("https://xxxxx.documents.azure.com:443/")
				.credential(tokenCredential)
				.preferredRegions(Arrays.asList("West US"))
				.buildAsyncClient();

Code snippet I have used to create:

There was a mismatch in the netty version . I updated and issue is resolved.
Thank you , I am closing this issue.


Crash when pressing special remapped keys

Describe the bug
On my system I have mapped multiple special keys. Whenever I press them Chatterino crashes. But only once per boot / key combination.
To reproduce

start chatterino
press a 'special' key
chatterino crashes
chatterino automatically restarts
press the same 'special' key
chatterino does not crash

I noticed if I wait for a while pressing the same 'special' key makes Chatterino crash again, but it won't restart.
Rebooting also resets this behavior.
I mapped F14 aka XF86Launch5 to one of my mouse buttons and XF86AudioPlay to the media play button on my keyboard. Both produce this behavior.
All of the X11 vendor specific keys seem to reproduce this.
After a crash of chatterino I remapped the physical button I used before to F15 and pressing it did not make chatterino crash. But mapping a different physical button on my mouse to F14 crashed chatterino again.
Chatterino version
Chatterino 2.2.3-beta2 (commit 05aab8684)
Operating system
Arch Linux

Unable to reproduce with media keys, Calculator key nor Scroll (which seems to be mapped to F15, according to Discord). I am using Ubuntu 20.04.

Investigating further I found that a segmentation fault occurs in libxkbcommon-x11.so

Backtrace
#0  0x00007ffff186f150 in  () at /usr/lib/libxkbcommon-x11.so.0
#1  0x00007ffff18702b4 in xkb_x11_keymap_new_from_device () at /usr/lib/libxkbcommon-x11.so.0
#2  0x00007ffff19cdb89 in  () at /usr/lib/libQt5XcbQpa.so.5
#3  0x00007ffff19c73cf in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007ffff19c7c69 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5XcbQpa.so.5
#5  0x00007ffff19eb164 in  () at /usr/lib/libQt5XcbQpa.so.5
#6  0x00007ffff7bf1914 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#7  0x00007ffff7c457d1 in  () at /usr/lib/libglib-2.0.so.0
#8  0x00007ffff7bf0121 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#9  0x00007ffff65106e1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#10 0x00007ffff64b63fc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#11 0x00007ffff64be894 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#12 0x000055555581dff7 in chatterino::runGui(QApplication&, chatterino::Paths&, chatterino::Settings&) ()
#13 0x0000555555611996 in main ()
#14 0x00007ffff5c7a152 in __libc_start_main () at /usr/lib/libc.so.6
#15 0x0000555555635f3e in _start ()

Investigating further I found that a segmentation fault occurs in libxkbcommon-x11.so

Have this keys worked for you in the past and only started causing problems recently?
Maybe it could be related to libxkbcommon-x11 as well? The Arch packages were somewhat recently updated on November 21 and November 24.

I'm not really sure when this started occurring, since I ignored it at first. But it should have started around one or two weeks ago when I compiled an up to date version of chatterino.

When looking at recent libxkbcommoncommits, I see some commits that "look" relevant to me as an outsider. Maybe you could try reverting your libxkbcommon-x11 package to an older version and see if the problem persists?

Could this be a bug in Qt or libxkbcommon?

The stacktrace from xkbcommon/libxkbcommon#202 looks really similar to mine.
I'll recompile chatterino with the new version of libxkbcommon and see if it crashes again.

Most likely qt issue that we can do nothing about.


ng build changes the modified date on files it doesn't modify

🐞 Bug report
Command (mark with an x)

- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

 Yes, the previous version in which this bug was not present was: ....
No
Description
 A clear and concise description of the problem...
"ng build" changes the modified date on every file that ends up in the dist folder including files it just copies into place without modifying, such as font files and images.   This makes it difficult to copy just things that have changed using robocopy.  Please retain the timestamps on unaltered files.
🔬 Minimal Reproduction

Please include: commands run (including args), packages added, related code changes.

Create an angular project using that includes images or font files.
Notice the modified date timestamp on those files.
ng build
Check the time stamps of the files from step 1 that now appear in the "dist" build destination directory.  Notice that the modified dates on those files in the dist folder are changed even though the files do not differ from the originals.

🔥 Exception or Error

🌍 Your Environment

Angular CLI: 6.2.9
Node: 10.15.3
OS: win32 x64
Angular: 6.1.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.8.9
@angular-devkit/build-angular     0.8.9
@angular-devkit/build-optimizer   0.8.9
@angular-devkit/build-webpack     0.8.9
@angular-devkit/core              0.8.9
@angular-devkit/schematics        0.8.9
@angular/cli                      6.2.9
@ngtools/webpack                  6.2.9
@schematics/angular               0.8.9
@schematics/update                0.8.9
rxjs                              6.4.0
typescript                        2.9.2
webpack                           4.16.4

Anything else relevant?

Hi @BenROhio, thanks for filling this.
This seems quite a specific request and at the moment this doesn't fall in the CLI roadmap and we are cautions in increasing the CLI scope.
Most likely this can be down with ngx-build-plus and a a custom webpack plugin.
Let's re-open this if this becomes a popular request.
Thanks for your understanding.

Also of note is that https://github.com/webpack-contrib/copy-webpack-plugin performs that actual asset copying and it may be useful to raise an issue at that repository.


#19 Enter the wrong URL and return to the homepage.

The current situation is that after entering the wrong URL address, a black screen is displayed. Enter the wrong URL and return to the homepage.
enter wrong url：

back to home：

This pull request doesn't works.

This pull request doesn't works.

🤔 it works at my local..


Fix drag and dropping of editors for webviews

Fixes #25854
This change does the following:

Have the webview editor create an EditorDropTarget. This is required because the webview itself is not part of the normal editor dom (it exists as a top level node in the workbench so that we never reparent it). This means that the standard EditorDropTarget does not work.

Make webviews set pointer-events: none while a drag is happening. When a drag happens on Electron's webviews or a normal iframe, no  drag and drop events seem to get generated. The fix is to set pointer-events: none while the drag is happening. But it's also difficult to detect when the drag is happening because the  EditorDropTargets class eats the drop event itself. The only reliable seeming way I could find to determine when a drag starts and ends is looking at global events on the window.

This workaround is pretty ugly. Unfortunately I haven't been able to find a better way to do this

@bpasero Thanks for the feedback and good suggestion. I had to add the new method on the EditorPart class instead of on on the IEditorGroupsService interface since we use the HTMLElement type


Error in output: 'static' mode

Steps to reproduce

Open astro.config.mjs file
Change output mode to static: output: 'static'
Run npm run build

Expected result
Build should provide completely static output
Actual result
Build fails with error
10:57:05   └─ /api/editing/page/index.htmlSyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at parseJSONFromBytes (node:internal/deps/undici/undici:5329:19)
    at successSteps (node:internal/deps/undici/undici:5300:27)
    at specConsumeBody (node:internal/deps/undici/undici:5306:9)
    at _Request.json (node:internal/deps/undici/undici:5196:18)
    at file:///C:/source/jss-astro-public/astro-sitecore-jss/packages/astro-sitecore-jss-sample/dist/server/pages/api/editing/page.astro.mjs?time=1730883423677:10:37
    at page (file:///C:/source/jss-astro-public/astro-sitecore-jss/packages/astro-sitecore-jss-sample/dist/server/chunks/astro/server_D0jJqQcg.mjs:402:12)
    at callComponentAsTemplateResultOrResponse (file:///C:/source/jss-astro-public/astro-sitecore-jss/packages/astro-sitecore-jss-sample/node_modules/astro/dist/runtime/server/render/astro/render.js:90:31)
    at renderToAsyncIterable (file:///C:/source/jss-astro-public/astro-sitecore-jss/packages/astro-sitecore-jss-sample/node_modules/astro/dist/runtime/server/render/astro/render.js:132:32)
    at renderPage (file:///C:/source/jss-astro-public/astro-sitecore-jss/packages/astro-sitecore-jss-sample/node_modules/astro/dist/runtime/server/render/page.js:31:30)
    at lastNext (file:///C:/source/jss-astro-public/astro-sitecore-jss/packages/astro-sitecore-jss-sample/node_modules/astro/dist/core/render-context.js:151:31)
Unexpected end of JSON input
  Stack trace:
    at JSON.parse (<anonymous>)
    at successSteps (node:internal/deps/undici/undici:5300:27)
    at _Request.json (node:internal/deps/undici/undici:5196:18)
    at page (file:///C:/source/jss-astro-public/astro-sitecore-jss/packages/astro-sitecore-jss-sample/dist/server/chunks/astro/server_D0jJqQcg.mjs:402:12)
    at renderToAsyncIterable (file:///C:/source/jss-astro-public/astro-sitecore-jss/packages/astro-sitecore-jss-sample/node_modules/astro/dist/runtime/server/render/astro/render.js:132:32)
    at lastNext (file:///C:/source/jss-astro-public/astro-sitecore-jss/packages/astro-sitecore-jss-sample/node_modules/astro/dist/core/render-context.js:151:31)
ERROR: "astro:build" exited with 1.

Temporarily workaround:

Rename page.astro to page.astro_
Rename render.astro to render.astro_


Feature/int 6 update to use v2 api

Could you please change the version to 3.0.0 here? https://github.com/storyblok/storyblok-ruby/blob/master/lib/storyblok/version.rb


ScriptCS example error

Trying to do scriptcs example, getting this in console when running:
    ERROR: Script compilation failed. [CompilationErrorException] ...test.csx(1,12):
    error CS0411: The type arguments for method 'ScriptCs.ScriptHost.Require<T>()'
    cannot be inferred from the usage. Try specifying the type arguments explicitly.

What version of scriptcs are you using? Its been awhile since I've looked at that integration.

Latest one 0.15.0

The example shown here is out of date and needs to be updated to match the example here:

var Test = Require<F14N>()
    .Init<FluentAutomation.SeleniumWebDriver>()
    .Bootstrap("Chrome")
    .Config(settings => {
        // Easy access to FluentAutomation.Settings values
        settings.DefaultWaitUntilTimeout = TimeSpan.FromSeconds(1);
    });


Duplicate Events

Some events are being duplicated:

KDB Project call
FINOS Diversity, Equity and Inclusion SIG - Monthly Meeting
CDM Steering Working group
and others

Some are duplicated on https://calendar.google.com/calendar/embed?src=finos.org_fac8mo1rfc6ehscg0d80fi8jig%40group.calendar.google.com&ctz=Europe%2FMadrid (like CDM Collateral Working Group) which leads to the duplication. Others are not. Some are duplicated only on some occurrences and some are duplicated on every instance. Not sure why. Need to investigate.

The KDB project call is duplicated in the ics file of the Community Calendar which is leading to the duplication on calendar.finos.org. However, the other events that are duplicated (such as  FINOS Morphir Team Meeting on October 19th) are not duplicated in the ics file but are being duplicated on calendar.finos.org. However,  it is duplicated only on October 19th. The same is true for other events that are being duplicated, they only get duplicated sometimes. Past January 2024 there seem to be no more duplications (other than the KDB call coming from the ics file).

Is it related to the change in DST in the US vs UK happening at a different date?

Hi Peter I've been looking around but haven't found anyone facing similar issues so I've come up a bit short so far.

So can we just do a little processing in the part where we grab the file?

Fixed by https://github.com/finos/calendar/pull/53.


Bad URL detection in Description field

Gitea version (or commit ref): fa3ceb6 (try.gitea.io)
Git version: (not relevant)
Operating system: (unknown)
Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[x] Yes - https://try.gitea.io/netvor/slop-copr-build
[ ] No
[ ] Not relevant

Log gist:

Description
If I include URL inside parentheses in Description of a git repo, gitea web UI will linkify it, but the closing bracket will be detected as  art of the URL, resulting in HTTP-404 errors.
Screenshots
http://file.vornet.cz/tmp/rbrack.png

I don't know if this is an issue that needs to be resolved, because there is already a URL field for URLs to go into.

@techknowlogick if this usage is not intended, maybe don't detect URLs in this text at all?

It could still make sense to include another URL in this field.

I like @davidak 's idea.

I can still reproduce it on 28fcbf3: https://try.gitea.io/davidak/test4

This is fixed as of 71b734b (link in previous comment now works as expected)


Sticky Webs doesn't boost Speed if a Contrary Pokemon is phazed in.

http://replay.pokemonshowdown.com/gen7balancedhackmonssuspecttest-785156451
Very last turn. Sticky Webs did not boost my Mega Mewtwo Y's Speed like it should have. Whether this is intentional or a bug, I'm uncertain.

@Marty-D?

When you used Entrainment to give the opponent Mold Breaker, that of course means they now have Mold Breaker. If a Mold Breaker Pokemon uses a phasing move to bring the opponent in on hazards, regardless of what ability the hazard-setter had back when it set those hazards, those hazards will ignore the opponent's ability, such as Levitate, Magic Guard, or (for the purses of Sticky Web) Contrary. This isn't a bug.

This isn't a bug; you gave the Mega Aggron Mold Breaker, and then it used Dragon Tail to drag out your Mega Mewtwo Y. Mold Breaker continues ignoring Abilities while the new Pokemon is being dragged out.

Sorry then.


Change combo boxes width on the settings page to auto

Is your feature request related to a problem?
Currently the three boxes are different sizes with look odd.
Describe the solution
The boxes should be the same size (would also fix Windows terminal text being cut off)

Also "edit terminal actions" should be in a related links bar like in windows 11 settings have on some options.
System Information

App Version: <IP_ADDRESS>
OS Version: 10.0.19043.1110

The combo boxes are meant to have different sizes but it's probably a good idea to remove the hardcoded sizes to account for different languages.

It would be better if the combo box on the right of the card instead to be consistent with the Settings app.

There wouldn't be room with the current width of the settings pop out if they make it auto/bigger size. Since the options text would be bigger than the room available at least for the first 2.


[BEAM-844] Example for ApexRunner README

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[ ] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[ ] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

R @kennknowles

This depends on #1227
The example for README to show how to use the runner in embedded mode. The example isn't fully functional yet, I will expand the test to verify the output that was written to the file and add the README.

Will reopen this when the README is ready.


Add functionality to Today Button

Hi! I'm showing and hiding the date picker with a v-if="showCalendar" I'm also using @cell-click="dateChanged($event)" to update the selected date and change showCalendar=false;
I would like to do something similar with the Today button, to set showCalendar=false when the user clicks the button. Is there a way to do it?
Thanks!

Thanks for reply @besart-rr.
Closing the issue now.


Rework round time

The "PASS" functionality have no sense in current implementation - the player will use whole time to guess the word without any consequences. Rework it, so that time is shared across questions (like max 15 questions in 60 seconds overall).

Fixed


Add database migration script

We've had the issue a couple of times where a new release breaks compatibility with the database format while not really changing much. The way this is handled in other libraries is by providing a migration script that works like this:
$ terracotta migrate mysql://example.com
Found Terracotta database v0.7.3 (this is v0.8.0)
Bump database to v0.8.0? (y/N)
Performing database migration ...
Done!

$ terracotta migrate mysql://example2.com
Found Terracotta database v0.0.1 (this is v0.8.0)
Error: cannot auto-migrate. Please re-create database.

$ terracotta migrate mysql://example3.com
Found Terracotta database v0.8.1 (this is v0.8.0)
Nothing to do

This requires some sort of incremental changelog that specifies the necessary transformations between versions.

That would be sweet. I had this case a few dozen times when upgrading deployments. I usually just bump the version in the DB manually when In know that the schema did not change. This would be a nice tool for that.

Since we are using SQLAlchemy, I would suggest using Alembic https://alembic.sqlalchemy.org/en/latest/
Alembic is a CLI tool, but they also have a python API, so you can call their migration commands from within your own tool.

Sounds good to me. Let's just make it an optional dependency that we check for inside the migration script.

Okay so I played around with alembic and ... didn't love it.
The biggest problem (apart from the steep learning curve) is that modifying SQLite is not fully supported (for example re-naming tables which just ends in NotImplementedError).
I'm hesitant whether we need a migration library at all. Some simple ALTER TABLE statements should do it. I suggest we use SQLalchemy to connect to the DB, then run the migration via engine.execute and raw SQL.
@nickeopti could you perhaps imagine writing the SQLalchemy boilerplate for this? :grimacing: Then I can finish up the actual migrations and CLI and such.

I hope to get time to help at some point. Until then, this can probably get you started:
We can actually use the driver logic, just set verify=False to disable all checks:
import sqlalchemy as sqla
from terracotta import drivers

driver = drivers.get_driver('<driver_path>')
with driver.connect(verify=False):
    driver.meta_store.connection.execute(sqla.text('<raw sql statement>'))


Stack trace links cannot be opened with remote VSCode

Applies To

[X] Notebooks (.ipynb files)
[ ] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
Problem: When errors happen in files imported from a remote notebook, the links found in stack trace are correct but fail to open, giving an error Unable to open 'file_name.py' The editor could not be opened because the file was not found.
Additional info:

I have verified that the same works with a) local execution of .ipynb files b) remote execution of .py files. Similarly stepping through the imported code with debugger works as well.
The problem appears similar to this SO post, but the python/jupyter extension does not seem to use tasks.json so the solution is not applicable.
The Jupyter logs below describe the execution up and until the stack trace is created, clicking the link does not produce any new entries.
The log line debug 18:32:18.013: Get Custom Env Variables, Class name = ql, completed in 1ms, has a truthy return value, Arg 1: "~/PhD/diflat", Arg 2: "RunPythonCode" seems to possibly indicate an issue with working dir path: even though /cvlabdata2/home/tyszkiew looks like a unix home directory, ~ does not expand to that in any relevant  file system - this path is due to historical reasons.
Clicking "Create file" in the error window leads to another error Unable to write file '/cvlabdata2/home/tyszkiew/PhD/diflat/src/diflat/data/taskonomy.py' (Unknown (FileSystemError): Error: EROFS: read-only file system, mkdir '/cvlabdata2') which looks reasonable to me - /cvlabdata2 is indeed a read-only mount point. At the same time, /cvlabdata2/home/tyszkiew/PhD/diflat/src/diflat/data/taskonomy.py is a correct path of the already exisiting file I would like to open in the first place.

VS Code Version
Version: 1.76.2 Commit: ee2b180d582a7f601fa6ecfdad8d9fd269ab1884 Date: 2023-03-14T17:53:46.528Z Electron: 19.1.11 Chromium: 102.0.5005.196 Node.js: 16.14.2 V8: <IP_ADDRESS>-electron.0 OS: Darwin arm64 22.3.0 Sandboxed: No
Jupyter Extension Version
v2023.2.1200692131
Jupyter logs
debug 18:32:17.999: Initialize notebook communications for editor /cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb
debug 18:32:17.999: Resolving notebook UI Comms (resolve) for /cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb
debug 18:32:17.999: initialize CommonMessageCoordinator
debug 18:32:18.001: IPyWidgetMessageDispatcher.initialize
debug 18:32:18.001: Attempting to determine version of IPyWidgets
debug 18:32:18.004: KernelProvider switched kernel to id = .jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher
debug 18:32:18.006: start the kernel, options.disableUI=true for /cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb
debug 18:32:18.007: Preferred Remote kernel for /cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb is undefined
debug 18:32:18.007: Waiting for IPyWidgets version
debug 18:32:18.007: Waiting for IPyWidgets version promise
debug 18:32:18.007: Start Jupyter Session in kernel.ts with disableUI = true
debug 18:32:18.009: Initialize notebook communications for editor /cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb
debug 18:32:18.009: Resolving notebook UI Comms (resolve) for /cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb
debug 18:32:18.009: initialize CommonMessageCoordinator
debug 18:32:18.009: Registering commtarget jupyter.widget
debug 18:32:18.009: IPyWidgetMessageDispatcher.initialize
debug 18:32:18.009: Attempting to determine version of IPyWidgets
debug 18:32:18.010: Controller selection change completed
debug 18:32:18.010: Waiting for IPyWidgets version
debug 18:32:18.010: Waiting for IPyWidgets version promise
debug 18:32:18.010: Storing Preferred remote kernel for /cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb is undefined
info 18:32:18.011: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher (Python Path: , EnvType: Unknown, EnvName: '', Version: 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]) for '/cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb' (disableUI=true)
debug 18:32:18.011: Creating raw notebook for resource '/cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb'
debug 18:32:18.011: Computing working directory for resource '/cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb'
debug 18:32:18.012: interpreterPackages getPackageInformation, Class name = Zd (started execution), Arg 1: {"interpreter":{"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"fsPath":"/usr/bin/python3","path":"/usr/bin/python3","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]"},"uri":{"$mid":1,"fsPath":"/usr/bin/python3","external":"file:///usr/bin/python3","path":"/usr/bin/python3","scheme":"file"}}}
debug 18:32:18.012: Create activated Env, Class name = El (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"fsPath":"/usr/bin/python3","path":"/usr/bin/python3","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]"},"uri":{"$mid":1,"fsPath":"/usr/bin/python3","external":"file:///usr/bin/python3","path":"/usr/bin/python3","scheme":"file"}}}
debug 18:32:18.012: Getting activated env variables, Class name = ac (started execution), Arg 1: "~/PhD/diflat", Arg 2: <Uri:/usr/bin/python3>, Arg 3: true
debug 18:32:18.012: Getting activated env variables impl, Class name = ac (started execution), Arg 1: "~/PhD/diflat", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.012: Getting activated env variables from Python, Class name = ac (started execution), Arg 1: "~/PhD/diflat", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.012: Get Custom Env Variables, Class name = ql (started execution), Arg 1: "~/PhD/diflat", Arg 2: "RunPythonCode"
debug 18:32:18.013: Get Custom Env Variables, Class name = ql, completed in 1ms, has a truthy return value, Arg 1: "~/PhD/diflat", Arg 2: "RunPythonCode"
debug 18:32:18.016: _jupyterPythonPathFunction: Giving Pylance "/usr/bin/python3" as python path for "file:///cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb"
debug 18:32:18.020: Kernel Launcher. launch, Class name = Vp (started execution), Arg 1: {"id":".jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher","kernelSpec":{"specFile":"/home/tyszkiew/.vscode-server/extensions/ms-toolsai.jupyter-2023.2.1200692131/temp/jupyter/kernels/pythonjvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6/kernel.json","interpreterPath":"/usr/bin/python3","isRegisteredByVSC":"registeredByNewVersionOfExt","name":"pythonjvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","executable":"python","display_name":"Python 3","metadata":{"interpreter":{"path":"/usr/bin/python3"}},"env":{}},"interpreter":{"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":"/usr/bin/python3","envName":"","displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]"},"path":"/usr/bin/python3"},"kind":"startUsingPythonInterpreter"}, Arg 2: 60000, Arg 3: "~/PhD/diflat/vae.ipynb", Arg 4: "~/PhD/diflat", Arg 5: {"a":false,"b":null}
debug 18:32:18.020: Create activated Env, Class name = El (started execution), Arg 1: {"interpreter":{"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"fsPath":"/usr/bin/python3","path":"/usr/bin/python3","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]"},"uri":{"$mid":1,"fsPath":"/usr/bin/python3","external":"file:///usr/bin/python3","path":"/usr/bin/python3","scheme":"file"}},"resource":{"$mid":1,"fsPath":"/cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb","external":"file:///cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb","path":"/cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb","scheme":"file"}}
debug 18:32:18.020: Getting activated env variables, Class name = ac (started execution), Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>, Arg 3: undefined
debug 18:32:18.020: Getting activated env variables impl, Class name = ac (started execution), Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.020: Getting activated env variables from Python, Class name = ac (started execution), Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.020: Get Custom Env Variables, Class name = ql (started execution), Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: "RunPythonCode"
debug 18:32:18.021: Get Custom Env Variables, Class name = ql, completed in 1ms, has a truthy return value, Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: "RunPythonCode"
debug 18:32:18.025: _jupyterPythonPathFunction: "file:///cvlabdata2/home/tyszkiew/PhD/diflat" is not a notebook
debug 18:32:18.027: Launching kernel in kernelProcess.ts, Class name = Fp (started execution), Arg 1: "~/PhD/diflat", Arg 2: ""
debug 18:32:18.027: Create activated Env, Class name = El (started execution), Arg 1: {"resource":{"$mid":1,"fsPath":"/cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb","external":"file:///cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb","path":"/cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb","scheme":"file"},"interpreter":{"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"fsPath":"/usr/bin/python3","path":"/usr/bin/python3","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]"},"uri":{"$mid":1,"fsPath":"/usr/bin/python3","external":"file:///usr/bin/python3","path":"/usr/bin/python3","scheme":"file"}}}
debug 18:32:18.027: Getting activated env variables, Class name = ac (started execution), Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>, Arg 3: undefined
debug 18:32:18.027: Getting activated env variables impl, Class name = ac (started execution), Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.027: Getting activated env variables from Python, Class name = ac (started execution), Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.027: Get Custom Env Variables, Class name = ql (started execution), Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: "RunPythonCode"
debug 18:32:18.027: Getting activated env variables, Class name = ac (started execution), Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>, Arg 3: false
debug 18:32:18.027: Getting activated env variables impl, Class name = ac (started execution), Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.027: Getting activated env variables from Python, Class name = ac (started execution), Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.027: Get Custom Env Variables, Class name = ql (started execution), Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: "RunPythonCode"
debug 18:32:18.028: Get Custom Env Variables, Class name = ql, completed in 1ms, has a truthy return value, Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: "RunPythonCode"
debug 18:32:18.029: Get Custom Env Variables, Class name = ql, completed in 1ms, has a truthy return value, Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: "RunPythonCode"
warn 18:32:18.310: Failed to get activated env vars with python /usr/bin/python3 in 298ms
warn 18:32:18.310: Failed to get activated env vars with python /usr/bin/python3 in 290ms
warn 18:32:18.310: Failed to get activated env vars with python /usr/bin/python3 in 283ms
warn 18:32:18.310: Failed to get activated env vars with python /usr/bin/python3 in 283ms
debug 18:32:18.313: Activated Env Variables, PATH value is /usr/bin:/home/tyszkiew/.local/bin:/home/tyszkiew/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/tyszkiew/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games and Path value is undefined
debug 18:32:18.313: Activated Env Variables, PATH value is /usr/bin:/home/tyszkiew/.local/bin:/home/tyszkiew/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/tyszkiew/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games and Path value is undefined
debug 18:32:18.313: Activated Env Variables, PATH value is /usr/bin:/home/tyszkiew/.local/bin:/home/tyszkiew/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/tyszkiew/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games and Path value is undefined
debug 18:32:18.313: Activated Env Variables, PATH value is /usr/bin:/home/tyszkiew/.local/bin:/home/tyszkiew/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/tyszkiew/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games and Path value is undefined
debug 18:32:18.314: Getting activated env variables from Python, Class name = ac, completed in 302ms, has a truthy return value, Arg 1: "~/PhD/diflat", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.314: Got env vars with python /usr/bin/python3 in 302ms with 27 variables
debug 18:32:18.314: Getting activated env variables from Python, Class name = ac, completed in 294ms, has a truthy return value, Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.314: Got env vars with python /usr/bin/python3 in 294ms with 27 variables
debug 18:32:18.314: Getting activated env variables from Python, Class name = ac, completed in 287ms, has a truthy return value, Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.314: Got env vars with python /usr/bin/python3 in 287ms with 27 variables
debug 18:32:18.314: Getting activated env variables from Python, Class name = ac, completed in 287ms, has a truthy return value, Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.314: Got env vars with python /usr/bin/python3 in 287ms with 27 variables
debug 18:32:18.314: Getting activated env variables impl, Class name = ac, completed in 302ms, has a truthy return value, Arg 1: "~/PhD/diflat", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.314: Getting activated env variables impl, Class name = ac, completed in 294ms, has a truthy return value, Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.314: Getting activated env variables impl, Class name = ac, completed in 287ms, has a truthy return value, Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.314: Getting activated env variables impl, Class name = ac, completed in 287ms, has a truthy return value, Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>
debug 18:32:18.315: Getting activated env variables, Class name = ac, completed in 303ms, has a truthy return value, Arg 1: "~/PhD/diflat", Arg 2: <Uri:/usr/bin/python3>, Arg 3: true
debug 18:32:18.315: Getting activated env variables, Class name = ac, completed in 295ms, has a truthy return value, Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>, Arg 3: undefined
debug 18:32:18.315: Getting activated env variables, Class name = ac, completed in 288ms, has a truthy return value, Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>, Arg 3: undefined
debug 18:32:18.315: Getting activated env variables, Class name = ac, completed in 288ms, has a truthy return value, Arg 1: "~/PhD/diflat/vae.ipynb", Arg 2: <Uri:/usr/bin/python3>, Arg 3: false
debug 18:32:18.315: Create activated Env, Class name = El, completed in 303ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"fsPath":"/usr/bin/python3","path":"/usr/bin/python3","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]"},"uri":{"$mid":1,"fsPath":"/usr/bin/python3","external":"file:///usr/bin/python3","path":"/usr/bin/python3","scheme":"file"}},"resource":{"$mid":1,"fsPath":"/cvlabdata2/home/tyszkiew/PhD/diflat","external":"file:///cvlabdata2/home/tyszkiew/PhD/diflat","path":"/cvlabdata2/home/tyszkiew/PhD/diflat","scheme":"file"}}
info 18:32:18.341: Process Execution: > /usr/bin/python3 -m pip list
> /usr/bin/python3 -m pip list
debug 18:32:18.341: Create activated Env, Class name = El, completed in 321ms, has a truthy return value, Arg 1: {"interpreter":{"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"fsPath":"/usr/bin/python3","path":"/usr/bin/python3","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]"},"uri":{"$mid":1,"fsPath":"/usr/bin/python3","external":"file:///usr/bin/python3","path":"/usr/bin/python3","scheme":"file"}},"resource":{"$mid":1,"fsPath":"/cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb","external":"file:///cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb","path":"/cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb","scheme":"file"}}
info 18:32:18.368: Process Execution: > /usr/bin/python3 -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
> /usr/bin/python3 -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
debug 18:32:18.369: Create activated Env, Class name = El, completed in 342ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb","external":"file:///cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb","path":"/cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb","scheme":"file"},"interpreter":{"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"fsPath":"/usr/bin/python3","path":"/usr/bin/python3","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]"},"uri":{"$mid":1,"fsPath":"/usr/bin/python3","external":"file:///usr/bin/python3","path":"/usr/bin/python3","scheme":"file"}}}
info 18:32:18.395: Process Execution: > /usr/bin/python3 -m ipykernel_launcher --ip=<IP_ADDRESS> --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"53ca7ce6-3918-4092-a711-07189f5687a3" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/tyszkiew/.local/share/jupyter/runtime/kernel-v2-280RaoPMZYLftP8.json
> /usr/bin/python3 -m ipykernel_launcher --ip=<IP_ADDRESS> --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"53ca7ce6-3918-4092-a711-07189f5687a3" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/tyszkiew/.local/share/jupyter/runtime/kernel-v2-280RaoPMZYLftP8.json
info 18:32:18.395: Process Execution: cwd: /cvlabdata2/home/tyszkiew/PhD/diflat
cwd: /cvlabdata2/home/tyszkiew/PhD/diflat
debug 18:32:18.395: Launching kernel in kernelProcess.ts, Class name = Fp, completed in 368ms, has a truthy return value, Arg 1: "~/PhD/diflat", Arg 2: ""
info 18:32:18.686: ipykernel version & path 6.22.0, ~/.local/lib/python3.10/site-packages/ipykernel/__init__.py for /usr/bin/python3
debug 18:32:18.985: KernelProcess error: /home/tyszkiew/.local/lib/python3.10/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
  warn(

warn 18:32:18.985: StdErr from Kernel Process /home/tyszkiew/.local/lib/python3.10/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
  warn(

debug 18:32:18.986: KernelProcess error: /home/tyszkiew/.local/lib/python3.10/site-packages/traitlets/traitlets.py:2499: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '53ca7ce6-3918-4092-a711-07189f5687a3' instead of 'b"53ca7ce6-3918-4092-a711-07189f5687a3"'.
  warn(

warn 18:32:18.987: StdErr from Kernel Process /home/tyszkiew/.local/lib/python3.10/site-packages/traitlets/traitlets.py:2499: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '53ca7ce6-3918-4092-a711-07189f5687a3' instead of 'b"53ca7ce6-3918-4092-a711-07189f5687a3"'.
  warn(

debug 18:32:18.997: KernelProcess output: NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.

To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments.

To read more about this, see https://github.com/ipython/ipython/issues/2049

To connect another client to this kernel, use:
    --existing kernel-v2-280RaoPMZYLftP8.json

debug 18:32:18.998: Kernel Output: To connect another client to this kernel, use: --existing kernel-v2-280RaoPMZYLftP8.json

debug 18:32:19.002: Kernel Launcher. launch, Class name = Vp, completed in 982ms, has a truthy return value, Arg 1: {"id":".jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher","kernelSpec":{"specFile":"/home/tyszkiew/.vscode-server/extensions/ms-toolsai.jupyter-2023.2.1200692131/temp/jupyter/kernels/pythonjvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6/kernel.json","interpreterPath":"/usr/bin/python3","isRegisteredByVSC":"registeredByNewVersionOfExt","name":"pythonjvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","executable":"python","display_name":"Python 3","metadata":{"interpreter":{"path":"/usr/bin/python3"}},"env":{}},"interpreter":{"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":"/usr/bin/python3","envName":"","displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]"},"path":"/usr/bin/python3"},"kind":"startUsingPythonInterpreter"}, Arg 2: 60000, Arg 3: "~/PhD/diflat/vae.ipynb", Arg 4: "~/PhD/diflat", Arg 5: <argument cannot be serialized for logging>
debug 18:32:19.006: Waiting for Raw Session to be ready in postStartRawSession
debug 18:32:19.006: Waiting for Raw session to be ready, currently connected
debug 18:32:19.006: Raw session connected
debug 18:32:19.006: Waiting for Raw session to be ready for 30s
debug 18:32:19.006: Waited for Raw session to be ready & got connected
debug 18:32:19.006: Successfully waited for Raw Session to be ready in postStartRawSession
debug 18:32:19.007: Kernel status before requesting kernel info and after ready is unknown
debug 18:32:19.007: Sending request for kernelinfo
debug 18:32:19.044: Got response for requestKernelInfo
debug 18:32:19.044: Successfully compelted postStartRawSession
info 18:32:19.045: Started Kernel Python 3.10.6 (pid: 2745)
debug 18:32:19.048: Started running kernel initialization for /cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb
debug 18:32:19.049: Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
debug 18:32:19.060: Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 0 output(s)
debug 18:32:19.061: Determined IPyKernel Version []
debug 18:32:19.061: Determined IPyKernel Version and event fired undefined
debug 18:32:19.063: Executing silently Code (idle) = import os as _VSCODE_os\nimport sys as _VSCODE_sys\n%cd "//cvlabdata2/home/tyszkiew/PhD/diflat"\nif _VS
debug 18:32:19.078: Executing silently Code (completed) = import os as _VSCODE_os\nimport sys as _VSCODE_sys\n%cd "//cvlabdata2/home/tyszkiew/PhD/diflat"\nif _VS with 1 output(s)
debug 18:32:19.078: Not executing startup session: Object, code:
debug 18:32:19.078: Requesting Kernel info
debug 18:32:19.079: Got Kernel info
debug 18:32:19.079: End running kernel initialization, now waiting for idle
debug 18:32:19.079: Waiting for 60000ms idle on (kernel): 9bf0009b-8885-4771-b88b-b0869d94294d -> idle
debug 18:32:19.079: Finished waiting for idle on (kernel): 9bf0009b-8885-4771-b88b-b0869d94294d -> idle
debug 18:32:19.079: End running kernel initialization, session is idle
debug 18:32:19.081: IPyWidgetMessageDispatcher.initialize
debug 18:32:19.082: IPyWidgetScriptSource.initialize
debug 18:32:19.088: interpreterPackages getPackageInformation, Class name = Zd, completed in 1076ms, has a falsy return value, Arg 1: {"interpreter":{"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"fsPath":"/usr/bin/python3","path":"/usr/bin/python3","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]"},"uri":{"$mid":1,"fsPath":"/usr/bin/python3","external":"file:///usr/bin/python3","path":"/usr/bin/python3","scheme":"file"}}}
debug 18:32:19.167: Attempting to determine version of IPyWidgets
debug 18:32:19.167: Attempting to determine version of IPyWidgets
debug 18:32:19.167: Waiting for IPyWidgets version
debug 18:32:19.167: Waiting for IPyWidgets version promise
debug 18:32:19.167: Waiting for IPyWidgets version
debug 18:32:19.167: Waiting for IPyWidgets version promise
debug 18:32:28.743: VSCodeNotebookController::handleExecution, Class name = Kv (started execution)
debug 18:32:28.747: Execute Cell 0 /cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb
debug 18:32:28.747: start the kernel, options.disableUI=false for /cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb
debug 18:32:28.749: Start Jupyter Session in kernel.ts with disableUI = false
debug 18:32:28.753: Start cell 0 execution @<PHONE_NUMBER>753
debug 18:32:31.770: End cell 0 execution @<PHONE_NUMBER>769, started @<PHONE_NUMBER>753, elapsed time = 3.016s
debug 18:32:31.770: Cell 0 executed with state Success
debug 18:32:31.770: VSCodeNotebookController::handleExecution, Class name = Kv, completed in 3027ms, has a falsy return value
debug 18:32:32.926: VSCodeNotebookController::handleExecution, Class name = Kv (started execution)
debug 18:32:32.931: Execute Cell 1 /cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb
debug 18:32:32.931: start the kernel, options.disableUI=false for /cvlabdata2/home/tyszkiew/PhD/diflat/vae.ipynb
debug 18:32:32.932: Start Jupyter Session in kernel.ts with disableUI = false
debug 18:32:32.934: Start cell 1 execution @<PHONE_NUMBER>934
debug 18:32:33.562: End cell 1 execution @<PHONE_NUMBER>561, started @<PHONE_NUMBER>934, elapsed time = 0.627s
info 18:32:33.562: Cancel all remaining cells true || Error || undefined
debug 18:32:33.562: Cancel pending cells
debug 18:32:33.562: Cell 1 executed with state Error
debug 18:32:33.563: VSCodeNotebookController::handleExecution, Class name = Kv, completed in 637ms, has a falsy return value

Coding Language and Runtime Version
Python 3.10.6
Language Extension Version (if applicable)
v2023.4.1
Anaconda Version (if applicable)
None
Running Jupyter locally or remotely?
Remote

I found that this is those links are trying to open the file from the local than from the remote. If one has the same dir structure in the local computer, this could lead to an unexpected surprise, e.g., error on remote -> fix locally -> no change is in effect.

ah, sorry, I was thinking of a remote jupyter server, not full vscode remote.
yes, this is unexpected then.

I'm seeing the same issue - I'm running a Python notebook in a devcontainer and when I get a stack trace and click on one of the file links, I get that same message.
VS Code
Version: 1.80.0 (Universal)
Commit: 660393deaaa6d1996740ff4880f1bad43768c814
Date: 2023-07-04T13:39:33.766Z
Electron: 22.3.14
ElectronBuildId: 21893604
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.5.0
Jupyter extension
v2023.6.1101941928

verification steps:

open a remote connection to a linux machine
create a file named myLib.py with a function

def throwEx():
    raise Exception

run a cell that calls that funciton

import myLib
myLib.throwEx()

click the stack frame links for the file and ensure they open the file location correctly

Does not work for me

Opened Jupyter extension in docker container test-linux-x64-python
Created the files you suggested
Installed jupyter lab python -m pip install jupyterlab
Ran Jupyter lab on that machine

Copied the URL and ensure port forwarding ws working (this was all automatic)
Pasted URL in browser and verified it works

Run the above notebook in the docker container (using vscode remote and raw kernels)

The error message contains the full path to the myLib.py file and that link does not work

Now go to my desktop (mac) and connect to the above remote URL and run a cell with the code you provided

The error message contains the full path to the myLib.py file and that link does not work

Thus the link doesn't work in both cases,

Inside the vscode remote
Connecting to remote Jupyter server from local machine

Oops, noticed this was completed recently, will wait for the new insiders build.

open a remote connection to a linux machine

Did you mean connect to remote Jupyter Server running on a linux machine?
Or did you mean connect to remote linux macihne using VS Code remote container?

I have tested the latter and that works.

remote ssh, not remote kernel

open a remote connection to a linux machine

Did you mean connect to remote Jupyter Server running on a linux machine?
Or did you mean connect to remote linux macihne using VS Code remote container?

I have tested the latter and that works.

For me, the former case does not work.

@puppyapple https://github.com/microsoft/vscode-jupyter/issues/14562


Remove duplicate Predicate testing

This issue represents a major problem, which is that ActionBuilder is unneeded.
Validator only should be enough to have the DSL for validator hierarchy creation as a tree.

Validator class should require to be broken up in more components, avoid to have mutable properties except for adding leaves, maybe created as a builder. The broken up of predicates in slices and single arguments will help in conceptualize.


Deleting all existing Data Clean Room quickstarts

Deleting all existing Data Clean Room quickstarts due to new product release of Snowflake Data Clean Rooms March 2024

Remove pull request


add create_type_stmt and alter_type_stmt

Explicitly add fake extension points for dialects to implement
This is added to sql-psi core as needs to be referenced in sql-delight to use in Database schema generation
e.g create_type_stmt psi elements must be ordered before create_table_stmt elements
closes #533

i think you can accomplish this without fake rules by overriding the stmt type to include your new rules in a downstream dialect

i think you can accomplish this without fake rules by overriding the stmt type to include your new rules in a downstream dialect

I had tried it before without the Fake assignment and the PSI elements are not generated in core (That was why I assumed the fake declaration was needed for this purpose).
i.e. these are not generated without FAKE
com/alecstrong/sql/psi/core/psi/SqlAlterTypeStmt.java
com/alecstrong/sql/psi/core/psi/SqlCreateTypeStmt.java

The reason for adding into core is these need to be referenced in Database Generation - rather than having Postgres types.
I also didn't want to have to redeclare all the stmt elements in a dialect just to add a couple more.

But you can simple use extension_stmt, how is this different?

@hfhbd
Yes - the override extension_stmt method is how I am proceeding with other tickets 👍
However, CREATE TYPE stmts must be executed before CREATE TABLE stmt that use the new types,  the SqlDelight compiler outputs CREATE TABLE stmts first ( 🌳 TreeUtil?)  in the generated database source.
The above change was tested to with my branch https://github.com/cashapp/sqldelight/compare/master...griffio:sqldelight:add-postgres-enum-type
Where I had to add ordering for createtype in TreeUtil https://github.com/cashapp/sqldelight/compare/master...griffio:sqldelight:add-postgres-enum-type#diff-f77d27d75a872743e1e5330b54cbc046fbdebc09bb4a95c496b40ca9979b7281
Maybe this generated ordering is not an issue for migrations? - so am happy to go with extension_stmt
Thanks 🍔