Can't find that library

I couldn't find the "linerizer" library, but I did find the drop library and I don't know how to use it. Please help!

Hi, if you have Processing and the drop library ready, you can open the file [linerizer.pde](https://github.com/davekch/linerizer/blob/master/linerizer.pde (download it from this repository) in Processing and hit "Run".

How to run it on Mac ?

I make it work but get issue line 19 I comment  //size(500, 100); and it work but don't know how to export the result ?

Can you post the error message you got? I can't reproduce the issue.
As for exporting, the program does not provide any way to export the result. You can however make a screenshot.

Hello here the error message:
When not using the PDE, size() can only be used inside settings().
Remove the size() method from setup(), and add the following:
public void settings() {
IllegalStateException: size() cannot be used here, see https://processing.org/reference/size_.html
size(500, 100);
}

Thanks. It seems you have the issue described here. Make sure to use Processing version 3.5.1 or newer.


Error when trying to load asset into scene

System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.'
Two Inner Exceptions:

Exception: Error while compiling shader for pass 0
NullReferenceException: Object reference not set to an instance of an object.

It seems the shader is missing from the asset, blender materials consist only of Diffuse BSDF, did not work with only Principled BSDF either.
Trench1new.zip fus file
Trench1new.zip blend file

Just tested on my current working branch (blender_addon_animation):

Seems to work there. What FUSEE version are you working on? Are you using NUGET or a self-compiled version of FUSEE?

I'm on Version <IP_ADDRESS> using NuGet.
It worked in my player too but not as asset import in my scene.

Is reproducable in Fusee player in version 0.9.0. The crash occurs due to the Diffuse BSDF materials used in the blender file at FusSeneConverter.cs, line 397 . When changing all materials to Principled BSDF no crash happens.

Updating to 0.9.0 fixed the problem, thank you


soroban-rpc: enforce network limits during preflight

Not all limits are implemented right now.
This issue tracks both adding the missing ones enforced at validation/apply time, and enforcing them during preflight.

[ ] int64 txMaxSizeBytes; // maximum size an xdr encoded transaction can be (also enforced by the tx endpoint)
[ ] int64 txMaxGas; // maximum gas per transaction
[ ] uint32 txMaxReadLedgerEntries; // maximum number of ledger entry read operations per transaction (footprint)
[ ]  int64 txMaxReadBytes;  // maximum number of bytes that can be read per transaction
[ ]  uint32 txMaxWriteLedgerEntries; // maximum number of ledger entry write operations per transaction (footprint)
[ ]  int64 txMaxWriteBytes; // maximum number of bytes that can be written per transaction
[ ] uint32 txMaxExtendedDataSizeBytes; // maximum size of extended data produced by a transaction (this
[ ] int64 txMaxResultSizeBytes; // maximum size of a transaction result (gets folded into txMaxExtendedDataSizeBytes if we replace this by the hash in history archives)

I grabbed most of this list from https://github.com/stellar/stellar-protocol/blob/master/core/cap-0046-07.md but there could be more.

The limits have already been enforced in core, so I transferred the issue over here for the pending rpc work.


Reimplement gulp security task

See #40 for details.
In short, once the bugs in gulp-nsp are fixed, it should be used to reimplement the gulp security task.

Fixed in #42.


Enable spdk_tgt debug log if the global setting log-level

To make debugging process easier, enable spdk_tgt debug log if the global setting log-level is Debug.
Longhorn 7939
Which issue(s) this PR fixes:

Issue https://github.com/longhorn/longhorn/issues/7939
What this PR does / why we need it:
Special notes for your reviewer:
Additional documentation or context

Wait... I think I can close the PR. We can control the flag and level in runtime env by spdk's rpc.py


Add SQLite database to store which scripts have already run

This would mean we can store, for example, if we attempted to run the script, when was it last run, and if it succeeded.
Script name, script parent (where it is), last run, last run result, last successfull result
We can use this to color the scripts according to it's state, maybe block running of already finished scripts, etc

Closed by #31


[#340] WIP: proxy the jolokia api server

In order to get authenticated as a user using the jolokia api server, we need to set up proxies. The console will take care of adding the authorization bearer token on every requests for us.
This commit adds the configuration for running both in dev mode and production mode.

Suggestion: instead of using openshift template, consider using kustomize and put the resources under deploy dir


Is missing the new exercise from learning path 6.

Module: 6
Lab/Demo: 1
Description of issue
With the March 2024 update, the learning path 6 exercise was changed to 'Exercise: Implement Retrieval Augmented Generation (RAG) with Azure OpenAI Service', previously it was 'Exercise: Use your own data with Azure OpenAI Service'. The repository doesn't have the instructions for the update exercise.

fixed


[SPARK-40094][CORE] Send TaskEnd event when task failed with NotSerializableException or TaskOutputFileAlreadyExistException

What changes were proposed in this pull request?

If task failed with NotSerializableException or TaskOutputFileAlreadyExistException, send TaskEnd event.
Why are the changes needed?

In dynamic allocation, we depends on TaskEnd to release executor when no task running, if TaskEnd event missed will cause executor not release normally, especially for long running applicaiton.
Does this PR introduce any user-facing change?

NO
How was this patch tested?

Existing UT

Can one of the admins verify this patch?

Hi @Ngone51, could you please take a look when time free, thanks

cc @tgravescs @mridulm

Good catch! Could you add a test for the change?

Sure, I will add a UT later. I change the title to WIP.
Thanks a lot @Ngone51

Took a quick look - the basic idea looked good to me.
Review note: other uses of abort are not susceptible to the same issue because here we have marked the task as finished already here - and so as part of killAllTaskAttempts (due to abort), this task wont be cancelled/have failure event fired for it.

UT has been added and passed, i add new test for NotSerializableException, please take a look @Ngone51 @mridulm, thanks

Can you update the description @wangshengjie123 ? You did add UT to test the behavior.
I will merge once that is done. Thanks !

Can you update the description @wangshengjie123 ? You did add UT to test the behavior. I will merge once that is done. Thanks !

Done, thanks again @mridulm @Ngone51

Merged to master.
Thanks for fixing this @wangshengjie123 !
Thanks for the review @Ngone51 :-)


Error in the log: connect confirm: descriptor was not found

07-18 16:56:32.241 25056-26150/com.adguard.android D/Native.TCPIP.TCPMNGR: [VpnService-main] [LWIP id=29] new TCP connection <IP_ADDRESS>:43177 -> <IP_ADDRESS>:443
07-18 16:56:32.243 25056-26434/com.adguard.android D/com.adguard.android.filtering.vpn.FilteringVpnService: [pool-3-thread-7] TCP id=29 onTcpConnectRequest: protocol=TCP, local=/<IP_ADDRESS>:43177, remote=/<IP_ADDRESS>:443
07-18 16:56:32.453 25056-26434/com.adguard.android D/com.adguard.android.filtering.commons.LogUtils: [pool-3-thread-7] TCP id=29 com.amazon.dee.app /<IP_ADDRESS>:43177 /<IP_ADDRESS>:443 10218 redirect /<IP_ADDRESS>:443 to /<IP_ADDRESS>:1101
07-18 16:56:32.460 25056-26150/com.adguard.android D/Native.TCPIP.TCPMNGR: [VpnService-main] [LWIP id=29] connection has timed out
07-18 16:56:32.467 25056-26150/com.adguard.android D/Native.TCPIP.TCPMNGR: [VpnService-main] [LWIP id=29] TCP connection was closed
07-18 16:56:32.467 25056-26354/com.adguard.android D/com.adguard.android.filtering.vpn.FilteringVpnService: [pool-3-thread-2] TCP id=29 Connection statistic: sent=0, received=0
07-18 16:56:32.468 25056-26432/com.adguard.android D/com.adguard.android.filtering.vpn.FilteringVpnService: [pool-3-thread-6] TCP id=29 onTcpClosed: Connection closed
07-18 16:56:32.476 25056-26150/com.adguard.android E/Native.TCPIP.TCPMNGR: [VpnService-main] [LWIP id=29] connect confirm: descriptor was not found

Fixed in 1.0.12


#3166 Allow disable SMTP certificate verification

While I don't recommend using this, I can see some users needing this for testing. This relates to request # 3166

@ssddanbrown  I do share your concerns. Maybe it should be an undocumented feature?
From my initial findings, I do believe the same approach should work for Symfony mailer

Since there's been no follow-up on this I'll close this off but feel free to still comment and this can always be re-opened if needed.


ROX-25538: Implement Proto and scannerctl command

Description
As a first stage to migrating RPM Node Scanning to Scanner v4, the internal proto is introduced,
alongside a new command in scannerctl to test the service implementation (future work).
The latter also allows testing and verification of the feature on a running cluster or in customer environments.
User-facing documentation
Will be introduced when the RPM scanning is complete

[x] update is not needed
[x]  is not needed

Testing

[ ] inspected CI results

Automated testing
How I validated my change
No validation yet - for scannerctl, this requires the service counterpart to be introduced.

/test all

/retest


Terminology: reproducibility vs replicability

Hi there, thanks for creating this very nice workshop!
I have a small comment on the "Reproducibility" part of it:
In this section, I got a little confused because the terms "reproducibility" and "replicability" seem to be used as the opposite of what I knew/ was used to. Turns out there's seem to be two "competing" terminologies out there. Maybe it's worth noting this in a future version of the workshop, since there's scientific literature using either?
Literature on the terminology

Plesser (2018). Reproducibility vs. Replicability: A Brief History of a Confused Terminology: Short article about the confusion in the terminology
Claerbout and Karrenbach (1992) (this is the definition that is used here (?))

Replicability = "writing and then running new software based on the description of a computational model or method provided in the original publication, and obtaining results that are similar enough"
Reproducibility = "running the same software on the same input data and obtaining the same results"

Association for Computing Machinery (2020). Artifact Review and Badging Version 1.1 (definition based on what has been commonly used in the experimental sciences over the last decades)

Replicability = "use same code to generate (exactly) the same results"
Reproducibility = "use descriptions of algorithms to write own code to reproduce the core results of the study"

Goodman et al. (2016). What does research reproducibility mean? (new terminology, in attempt to avoid the confusion)

Methods reproducibility: provide sufficient detail about procedures and data so that the same procedures could be exactly repeated.
Results reproducibility: obtain the same results from an independent study with procedures as closely matched to the original study as possible.
Inferential reproducibility: draw the same conclusions from either an independent replication of a study or a reanalysis of the original study.

Claerbout and Karrenbach (1992) is the definition used here yes.


Getting back to 3.3.53

Hello !
Not reporting an issue, but I wanted to know how can I reverse towards the previous version of the norminette ?
I got a very usefull VS Code extension that relies on the 3.3.53 version, and the newest version kinda broke this extension.
Thanks for maintaining the code tho, and thanks for your time !

pip install norminette==version


Handling Streams as Body parameters

I have a Web API assembly with something like the following:
        /// <summary>
        /// Update a thing.
        /// </summary>
        /// <param name="id">
        /// The ID of the thing to update.
        /// </param>
        /// <param name="thing">
        /// A partial thing containing the desired changes.
        /// </param>
        [HttpPatch, Route("things/{id}", Name = "UpdateThing")]
        [RequestType(typeof(ThingDTO))]
        public HttpResponseMessage Update(string id, Stream thing)
        {
            Thing thingToUpdate = Restorer.RestoreByID<Thing>(id);
            thing.Deserialize(thingToUpdate);
            return ApiResponses.NoContent(this.Request);
        }

NSwag thinks this means we are passing in the properties of a Stream (canRead, canWrite, position, length, etc.). What we're actually doing is passing in partial properties of the ThingDTO, indicated by the RequestType attribute, as a Body parameter.
This may be too custom to be included in the master branch, but I've been able to make a tweak that allows this to work. In WebApiToSwaggerGenerator.LoadParameters, I check whether the parametertype is a Stream. If so, I check for a RequestType attribute, and get the Type off of it. I generate a JsonObjectTypeDescription using:
var typeDescription = JsonObjectTypeDescription.FromType(type, parameter.GetCustomAttributes(), Settings.DefaultEnumHandling);
I add the type from the RequestType attribute to the schema:
var schema = swaggerGenerator.GenerateAndAppendSchemaFromType(type, false, parameter.GetCustomAttributes());
Then I construct a custom SwaggerParameter (using the Body kind) and add it to the operation Parameters.
I can submit a PR if something like this might be included in NSwag, but figured I would ask first since it feels pretty custom.

I think we could do this the other way around: If there is a RequestType attribute, treat the body parameter as this type and ignore the actual type?

Yeah I was thinking the same thing just after posting - the reverse makes more sense. That'd work for me. Let me know if you're interested in a PR - it just comes down to grabbing the Type off the RequestType attribute and using that instead of the actual type.

Do you already have the code for a PR? Where does the RequestTypeAttribute come from? Is this a custom attribute? Maybe we should call it RequestBodyTypeAttribute?

It is a custom attribute. Actually, I don't have the ability to change its name, which makes me think it may be the wrong approach to really build in this functionality too specifically. I'm honestly not sure what the right approach would be. I was able to get this to work in Swashbuckle because it accepts a method to be called after each operation has been processed that allows you to modify the result using the Api Documentation, and I'm able to use that to change the type to the type on one of the attributes. I would imagine it would be a lot of work to duplicate that kind of setup in NSwag.

With NSwag, you can also define OperationProcessors: https://github.com/NSwag/NSwag/wiki/Middlewares#enable-authorization-in-generator-and-swagger-ui

Awesome! Well, honestly, that might be all I need. I'll look into it.


Fid-Loader for MP4

Hello Auris!
First of all, thank you for your work! Is there any chance, you could port this plugin to Maniaplanet?

Hello Auris! First of all, thank you for your work! Is there any chance, you could port this plugin to Maniaplanet?

Hey, I am planning on refactoring the plugin and trying to bring it to Maniaplanet soon. Dont know when yet, maybe later this month

Hey, sorry it took that long, I just pushed an update to support both MP4 and Turbo, it should now work whenever the update gets approved 👍


[MNT] - Update actions versions

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@5f90ec6). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #8   +/-   ##
=======================================
  Coverage        ?   92.79%
=======================================
  Files           ?       46
  Lines           ?     1207
  Branches        ?        0
=======================================
  Hits            ?     1120
  Misses          ?       87
  Partials        ?        0

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@5f90ec6). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #8   +/-   ##
=======================================
  Coverage        ?   92.79%
=======================================
  Files           ?       46
  Lines           ?     1207
  Branches        ?        0
=======================================
  Hits            ?     1120
  Misses          ?       87
  Partials        ?        0

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Stop the summarisation mechanism if the conversation consists of a single question:

The idea is that the summary should never include the question which has just been asked (so if there's only been an initial question, there is NO summary).
Note: this issue was initially discovered by @mwatkins1970

Branch with a possible fix from @watkins1970 for this issue: https://github.com/StampyAI/stampy-chat/compare/main...jrhender:stampy-chat:only-summarize-if-more-than-one-question . I think the relevant change is in the run_query function.


same touch for 2 players when they don't play in the same time

it's will be very much easy! thanks

当你使用任天堂游戏机玩游戏的时候，选择单人游戏，则副手柄也可以控制玩家。


Add support for setting active mount

Add mount action support and selection.
Should set the active mount, not summon it.
Nice to have: select random mount.

Fixed in e005b81 and improved by 7495731


🐞 Bug: The Llamalink capability of Gollama does not seem to work with LMStudio 0.2.28 (latest)

Description
Had a mixup with LMStudio 0.2.27 with the Ollama models directory, which I had relocated from the default Ollama location. So I removed LMS 0.2.27 AppImage and installed the LMS 0.2.28 AppImage.
Upon executing "gollama -L" I see the list of Ollama models which are installed in the new Ollama models directory. But when I open LMStudio, it does not show the models.
How to reproduce

Install LMStudio 0.2.28 AppImage.
Run "gollama -L" to link all existing Ollama models to LMStudio's models directory.
Load LMStudio, go to AI Chat, and look for models to load.

Screenshots / Logs
Environment

OS and version:  openSUSE Tumbleweed, latest as of 2024-07-24.

Nope, no skill.

Thanks for logging this, I suspect it's the same issue as https://github.com/sammcj/gollama/issues/82

Sorry I've been snowed under with work, will get to this at some point!

No huge hurry, it's just part of my testing several GUI front ends and I don't want to eliminate LMStudio from consideration as long as it might be capable of using Ollama models via your link. That's LMStudio's biggest defect - no direct support for Ollama, unlike AnythingLLM and MSTY.

LM studio is really nice in some ways, but in others ... not so much - closed source and their licensing prevents commercial use.

MSTY is closed source, too, but the features - especially being able to embed an Obsidian Vault in the vector database for RAG - makes it a winner regardless. AnythingLLM has decent RAG support as well. The main advantage of LMStudio is the ease of searching for and downloading the HuggingFace models. And it looks pretty - but then so does AnythingLLM. :-)

Msty is very visually pleasing, I like the concept of 'knowledge stacks' and as you say the obsidian DB use case is great.

LOL  Matt Smith said the same in one of his videos. I'm pretty oblivious to that sort of thing. To me, dull gray is not that bad, although it's a little dark. I pretty much hate "dark modes" and much prefer a bright background. Helps with old eyes. :-) LMStudio has the same gray, but at least they've got a lot of blue in there. MSTY is black on dull white, which is great - not too dark, not too bright. easy to read. In general, developers shouldn't design the look of an app, because 98% of them suck at it.  :-)

Hey @richardstevenhack can you try out v1.27.1 with your LM-Studio version?
I'm running the v0.3.0 beta 2 of LM studio and it's now fixed (as per https://github.com/sammcj/gollama/releases/tag/v1.27.1)

It's working fine now.  Just tested it, LMStudio sees all my Ollama models now and I can load and use them.
Good job!

Bazinga! Great :)


Tell Finder to empty trash instead of rm -rf

I had an issue on my machine with rm -rf for the Trash folder throwing a permission denied. Luckily, Finder can be told to empty the trash. I followed your osascript pattern to tell Finder to empty. Cheers!

Hello, thank you very much for your support, it means a lot to me. I have merged this into the master branch. cheers!

Sweet :+1: Thanks for making this btw!


MCS-112 Calculating goal rewards

Let the arrows fly!
Note: I added 'sympy' to the setup.py package list. You will have to get the sympy into your venv in your preferred method. Sympy is used to do polygon intersection, point in polygon, etc. I didn't want to do all of that from scratch given our timeline.
Created MCS_Reward utility class with static methods for calculating the various rewards (retrieval, transferral, traversal) and all the helper methods necessary to do that. Added fairly extensive unit tests as well.
Removed 'machine_common_sense' from all imports in the package because they weren't needed as far as I can tell. 'from machine_common_sense.mcs_thing' became a relative import ie 'from .mcs_thing'. If this breaks something I'm not aware of, let me know. I left the unit tests alone because they need that additional namespace because of their location.
Questions:

Should the goal be 'traversal' or 'goto'?
Should we have a constants.py module? I had to move two constants in ai2thor controller outside the class so I could import in MCS_Reward.
I notice we rely on dictionaries a lot. I tried to avoid key errors by using dict.get('attr', None) and checking for None when I could.
I used type hinting on the MCS_Rewards class because it helps me when coding. Curious what others think about it. Hinting won't hurt anything as it's just a suggestion.

In response to your overall questions:

This is just nitpicking, but my problem with "go to" is that it's a verb (for most of the population who aren't old-school programmers) and the other goals are nouns.  There are other nouns we can use if "traversal" is too similar to "transferral".

Adding a constraints.py module (maybe with the mcs_ prefix) sounds good to me.

That's good to note.

I personally like strong typing.  Didn't realize you could do it in Python.  Good to know!

It's already done as traversal so we'll leave it alone
Maybe we put in a ticket for later to have an mcs_constants.py module.
...
So funny thing is that it's type "hinting". You can actually pass whatever you want into a function with a type hint. It was Guido's desire to get python to strong typing eventually and hinting was the first step towards that goal.


add guzzle config array optional param in factory

Makes initializing a guzzle client much simpler, and eliminates the
requirement to make consecutive calls to set default options, and
provides a convenient way to set other options in the Guzzle HTTP
client.

Description
Please describe your pull request:

Why is it necessary? Convenience
What does it improve? Initialization of the Guzzle HTTP Client instance through the factory class
Does it have side effects? No

Questions
Answers

BC breaks?
no

Tests pass?
yes

Related tickets?
Not that I am aware of.

How to test?
Pass a config array to the ->createClient method as you would to the Client class of the Guzzle Library

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/SW-18088.
Please use this issue to track the state of your pull request.

Hi @slax0rr, thanks for your PR and helping to make Shopware better! 👍  Your change was merged with https://github.com/shopware/shopware/commit/2a244c12bf5fa90fb7207ebb2d4203a95cd9dbdd


Correctly compute noUncheckedIndexedAccess effects on compound/increment/decrement assignments

Fixes #58235

@typescript-bot test it


Implement task to check for sleeping

check if lights off and phone (RFID) is nearby
Finish issue https://github.com/JerryWuZiJie/go_to_bed/issues/59 first

done


fix: #8591 number input widget support space

Description

Added space support in Phone Number

Fixes #8591
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Tested locally.

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Test coverage results :test_tube:
:green_circle: Total coverage has increased
// Code coverage diff between base branch:release and head branch: fix/8591-number-input-widget-support-space

Status
File
% Stmts
% Branch
% Funcs
% Lines

:green_circle:
total
54.61 (0.03)
36.47 (0.02)
33.22 (0.01)
55.14 (0.04)

:red_circle:
app/client/src/utils/autocomplete/TernServer.ts
52.04 (-0.22)
40.42 (-0.83)
34.48 (0)
55.96 (-0.26)

:red_circle:
app/client/src/widgets/InputWidget/component/ISDCodeDropdown.tsx
53.33 (-3.81)
18.18 (-4.04)
22.22 (-6.35)
51.72 (-3.84)

:green_circle:
app/client/src/widgets/InputWidget/component/index.tsx
62.69 (3.91)
45.71 (1.33)
64.29 (2.39)
61.54 (4.06)

:green_circle:
app/client/src/widgets/InputWidget/widget/index.tsx
70.91 (8.77)
50.63 (8.96)
69.57 (0)
73.33 (9.04)

@vibhandikyash
As I hit backspace, the last digit does not get removed.
https://www.loom.com/share/1888671f53244e7cb7f2b4088eaf2131

Also, please resolve conflicts.

/ok-to-test sha=526d1a7

https://github.com/appsmithorg/appsmith/actions/runs/1452033040

/ok-to-test sha=26862ec

Noticed a couple of tiny issues here

https://www.loom.com/share/b350586cc2f04b419a13a31d483a8f89
When hovered over a line appears on the input's left and disappears.
In the disabled state there is a difference in the styling
In production -

In this PR

Notice the borders and the country selector.


Implement ascii codec in Rust

I started on this at the beginning of June, so I figured I should finish it and get it in. A large part of the refactoring is just deduplicating decoding logic between utf8 and ascii, since in both the valid subset can just be push_str()'d, and the rest passed to the error handler. The only difference is finding the invalid bytes, if any, and figuring out what the error is.

Also sorry @fanninpm, I know you have #3046; that can be merged first if it's ready and I can rebase and resolve conflicts from there.

Oh also @fanninpm - re: the ucs1 helper function in your PR, I think it makes more sense to abstract over utf8/ascii than ascii/latin1, since we use a utf8 str type (so we can just validate + extend_from_slice for utf8/ascii) whereas CPython has UCS1 as a buffer (so they can just validate + memcpy for ascii/latin1)

that can be merged first if it's ready and I can rebase and resolve conflicts from there.

Actually, I would like to make use of the error-handling code you have here. This can go first so I can rebase #3046 on top of your work.


Double tap likes bug resolved

Resolved issue no. #293
Added double tap like option for text posts too.

plz assign a level and gssoc label @narayan954

plz assign a level and gssoc label @narayan954

yes , apologies

Thanks


tar xzf openssl-1.0.2d

root@localhost:~# tar xzf openssl-1.0.2d.tar.gz
tar: A lone zero block at 52140
I am receiving this extracting openssl. I have looked into the issue and some suggest that this is an issue with the file from openssl. I have checked the files integrity with the checksums provided.

It is a spurious warning from GNU tar.  We are going to be using different tools to avoid this warning in the future.

Oh okay sir, thank you for the quick response!


net/http: HTTP/1.x transport connection broken: unsupported transfer encoding: "identity" on docker engine REST API

What version of Go are you using (go version)?

$ go version
go version go1.15 darwin/amd64

Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE="off"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/h8liu/Library/Caches/go-build"
GOENV="/Users/h8liu/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/h8liu/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/h8liu/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/vf/2lnfy_h578s0mc2911f90qc00000gn/T/go-build362761685=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Install docker on Mac OS app: https://docs.docker.com/docker-for-mac/install/
Create a container docker create --name test alpine sleep 1000
Start it in background docker start test
go run the following program:

package main

import (
	"bytes"
	"context"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"log"
	"net"
	"net/http"
	"net/url"
	"strings"
)

func main() {
	// Before running this needs to:
	// - Have docker 19.03.12 installed
	// - Run "docker create --name test alpine sleep 10000" to create the container
	// - Run "docker start test" to start it.
	if err := run(); err != nil {
		log.Fatal(err)
	}
}

func run() error {
	d := new(net.Dialer)
	x := &http.Transport{
		DialContext: func(ctx context.Context, net, addr string) (net.Conn, error) {
			return d.DialContext(ctx, "unix", "/var/run/docker.sock")
		},
	}

	c := &http.Client{Transport: x}

	u := &url.URL{
		Scheme: "http",
		Host:   "uds",
		Path:   "/v1.40/containers/test/exec",
	}
	var req = struct {
		Cmd          []string
		AttachStdout bool
		AttachStderr bool
	}{
		Cmd:          []string{"echo", "hello"},
		AttachStderr: true,
		AttachStdout: true,
	}
	body, err := json.Marshal(req)
	if err != nil {
		return err
	}
	header := make(http.Header)
	header.Add("Content-Type", "application/json")
	httpReq := &http.Request{
		Method: "POST",
		URL:    u,
		Header: header,
		Body:   ioutil.NopCloser(bytes.NewBuffer(body)),
	}
	resp, err := c.Do(httpReq)
	if err != nil {
		return err
	}
	defer resp.Body.Close()

	bodyBytes, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return err
	}
	var createResp struct {
		ID string `json:"Id"`
	}
	if err := json.Unmarshal(bodyBytes, &createResp); err != nil {
		return err
	}

	u2 := &url.URL{
		Scheme: "http",
		Host:   "uds",
		Path:   "/v1.40/exec/" + createResp.ID + "/start",
	}

	httpReq2 := &http.Request{
		Method: "POST",
		URL:    u2,
		Header: header,
		Body:   ioutil.NopCloser(strings.NewReader("{}")),
	}
	resp2, err := c.Do(httpReq2)
	if err != nil {
		return err
	}

	defer resp2.Body.Close()
	bodyBytes2, err := ioutil.ReadAll(resp2.Body)
	if err != nil {
		return err
	}
	fmt.Println(string(bodyBytes2))

	return nil
}

What did you expect to see?
See hello.
What did you see instead?
2020/08/12 10:37:28 Post "http://uds/v1.40/exec/bea64d1e75682a89d1e75d59da45fde21977aa8103b523a5b6e9d8a7eba85ab4/start": net/http: HTTP/1.x transport connection broken: unsupported transfer encoding: "identity"
exit status 1

Docker version
Client: Docker Engine - Community
 Version:           19.03.12
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        48a66213fe
 Built:             Mon Jun 22 15:41:33 2020
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.12
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       48a66213fe
  Built:            Mon Jun 22 15:49:27 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Some additional notes:

The issue does not reproduce on go1.14.7 run (because the transfer encoding enforcement was not there I think).
The issue (weirdly) does not reproduce on a Linux machine of mine. Maybe the docker server is on a different version, and handles requests differently?

after some learning, this seems to be expected behavior..

@h8liu how did you solve it? I'm having a similar issue.

I did not solve it. I mitigated it by running all stuff on a linux machine. The issue seems to be OSX only. I am guessing that the OSX docker desktop app has some kind of reverse proxy for the socket that is doing stuff incorrectly, but I don't know for sure.

I closed it because I don't think golang client library is doing anything wrong, although this seems like a regression.

It's worth mentioning - since I came here from the testcontainers-go issue - that the Docker daemon on macOS works perfectly well with the appropriate TestContainers libraries for Go 1.14.7, with Rust, with Node and with Java, as well as just the standard Docker tooling. It only doesn't work with Go 1.15.
I'm not sure if the Go libraries for communicating with Docker work differently than in all those other languages - given that Docker itself is written in Go, that is possible - but when something is broken in only one version of one language which has itself only just been released, it very much feels like a newly introduced bug.

I also stumbled upon this via testcontainers-go (https://github.com/testcontainers/testcontainers-go/issues/232). Having the exact same issue with Go 1.15 only.

@sazzer @iulian-gm as you have noted that In your opinion this issue is not fixed would you please raise a new issue, fill out the template and provide a way for someone to reproduce the issues you are experiencing. Thank you

I'm seeing the same thing - can this issue just be reopened? It follows the template and provides a way to reproduce

Thank you to those who have commented.
Re new issue vs continuing one that was closed without conclusion. It is my experience that the likelihood of an issue being closed successfully is inversely proportionate to its length.
Focused issues with clear instructions to reproduce the problem are often closed quickly.
To that end, please default to raising new issues. If there is a cost in terms of deduplicating issues that is one myself and the other issue gardeners are happy to invest in to see issues diagnosed and resolved quickly.

reopened per requests @tankbusta
the head of this thread has a working example program that can reproduce the issue on OSX, but it does not reproduce on Linux (with very close docker versions that are compiled with the same golang version).
So I think it is not that the docker API server socket is broken, but there is an adopter layer specifically used in OSX's docker app, that is forwarding the http requests between the http client and server incorrectly.
At the very least, I think golang's http clients in go1.15 works well with former golang http servers, which is why I think it is not golang's "fault", although it is certainly a regression (breaking change), but for a good security reason.
I am also filing an issue to docker/for-mac: https://github.com/docker/for-mac/issues

imho, I don't think golang team needs to do anything. I am just leaving this issue open so that people can more easily discover this. the root cause of this issue very likely lies in docker's macos app.

@h8liu i would prefer if this issue were closed and discussion happened elsewhere until it was determined that there was a bug in the net/http package.
To be clear, if its a bug in the http package, it'll be fixed. If its related to how another project is using the http package, then that discussion belongs elsewhere.

okay, you are the boss. :)


[DNM] Experiment with file rename for TBDGen refactor

@swift-ci please smoke test

@swift-ci please smoke test


set default for kpk in storage delegation

Description
Issue: https://github.com/terraform-ibm-modules/terraform-ibm-watsonx-saas-da/issues/153
Release required?

[ ] No release
[ ] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content

Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

@Aayush-Abhyarthi The upgrade test does not have KMS encryption enabled, so we won't be able to test this change in the upgrade test. This is a gap we probably wan't to plug before proceeding with this PR

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

@Aayush-Abhyarthi we can't proceed with this change - its a breaking change:
        	Messages:   	Resource(s) identified to be destroyed
        	            	Name: kms_key
        	            	Address: module.storage_delegation[0].ibm_kms_key.kms_key[0]
        	            	Actions: [create delete]

This is why I wanted to make sure we had a test to catch this. I think we cannot proceed with this change. Since we are breaking down this DA into individual DAs, its probably ok to just leave it as is

when updating, please also unskip the upgrade test (use a commit message with the text UNSKIP UPGRADE TEST)

/run pipeline

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

GitHub release
v1.9.1

Your semantic-release bot :package::rocket:


Bug Report: "There is no asset library with an ID of "songs"" when launching game from command line

i wanted to test something on the compiled version of the game, and i had an error so i wanted to see what the command line said but when i started it it just gave me this error

do you have a songs folder in ur directory

do you have a songs folder in ur directory

yeah

did you add it in ur project.xml?

did you add it in ur project.xml?

its the precompiled version that's downloadable, i didn't build it

did you add it in ur project.xml?

its the precompiled version that's downloadable, i didn't build it

i just realized what broke it
was my mistake lol


[zh-cn] pod-v1.md

update zh-cn content/zh-cn/docs/reference/kubernetes-api/workload-resources/pod-v1.md
Signed-off-by: Daniel Wan<EMAIL_ADDRESS>

A dup of #40111?

I missed the previous pr,  close it, thanks!


dynamodb-onetable/Dynamo is not exported

src/db.ts:3:20 - error TS2307: Cannot find module 'dynamodb-onetable/Dynamo' or its corresponding type declarations.

3 import Dynamo from 'dynamodb-onetable/Dynamo'
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~

TS: 1 error

Looks like TypeScript does not accept the package.json exports declaration required to resolve Dynamo.
Can you use the V2 SDK in the interim?
We are exploring exporting Dynamo as part of the index.js export symbols. Stay tuned.

Looks like we can export the Dynamo class from the index.js without breaking compatibility with the way existing non-typescript users are importing it. Yea!
The initialization sequence would then look like:
import {Dynamo, Table} from 'dynamodb-onetable'
import {DynamoDBClient} from '@aws-sdk/client-dynamodb'

const client = new Dynamo({client: new DynamoDBClient(params)})

If you want to try this in parallel with us, the index.js looks like:
import Dynamo from './Dynamo.js'
import { Expression } from './Expression.js'
import { Model } from './Model.js'
import { Table } from './Table.js'

export { Dynamo, Expression, Model, Table }

and index.d.ts:
import Dynamo from './Dynamo'
import { AnyEntity, AnyModel, Entity, Model, OneParams, OneProperties } from './Model'
import { Table } from './Table'

export { AnyEntity, AnyModel, Dynamo, Entity, Model, OneParams, OneProperties, Table }

yeah I think that would work! thanks!


Update blacklists.md

Description of the change:
Reason for the change:
Link to original source:

Closes #

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hello @dustinberg,Thanks again for the PR! We want to show our appreciation by sending                                              you some swag. Could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX


documented hashToEdwards and hashToCurve are not constant time

addressed comments in https://github.com/yahoo/end-to-end/pull/58

@diracdeltas , this requires only quick review. thanks.

merging this. as it involves only comment changes as advised by andres


change manuscripts to un-versioned url

Fixes #15113
Download URL has no version, so this will prevent silent breakages

Merged as 8c13824f962beb97ab53fc3291584b357a49ddcf.


javacomplete2 cannot work without sudo privileges?

I installed javacomplete2 as well as YouCompleteMe, but my javacomplete2 doesn't work unless i open gVim with sudo privileges:
$ sudo gvim
my .vimrc
autocmd FileType java set omnifunc=javacomplete#Complete
not problem with YCM, ive tried disabling YCM but still need sudo privileges...
why would this happen?
im a new vimer, many thx!!

please use vundle -or neobundle install JC2;

i used vim-plug to install JC2, isn't that available?

do you add this to ~/.vimrc or ~/.gvimrc

what do u mean "this"?
Plug 'artur-shaik/vim-javacomplete2'
simply add this and the previous one

please use these command
mv ~/.vimrc ~/.vimrc.backup
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

copy this to ~/.vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'artur-shaik/vim-javacomplete2'
call vundle#end()
filetype plugin indent on

still doesn't work :(

ive found that java kg.ash.javavi.Javavi has taken most of CPU when auto completing, even sometimes reach 100+%, do u have any method of improvement?

sorry for bothering ;D

you can look at my vimrc
https://github.com/wsdjeg/DotFiles/blob/master/vimrc_neobundle

thanks a lot, but i think it's not the problem with .vimrc, because we ve already tried with an empty .vimrc just now.
i'm wandering if JC2 needs permission to do with files that outside /home?

@rundisR, no, you don't need super user privileges. Not sure what can be a problem.

however i remember it says that JC2 need to write file to /lib?

vim-javacomplete2/lib

oh sorry... i thought it would be /lib

it's weird that i found that my JC2 partly work without sudo, but not all function!
it seems that only method completion is available without sudo
Comparison:
it says -- Omni completion (^O^N^P) Pattern not found for the non-sudo one (sorry im using the chinese version;D)
// import java|

// List list = new Li|

// list.|

你玩ubuntu 不用vim 用GVIM 我也是醉了

有gvim用为何不用。。。我有不需要编辑服务器的文件。。。
p.s.: 我觉得在github上还是用英文比较礼貌些？毕竟有外国人看不懂

sorry maybe you can try use vim whit the same vimrc

what do u mean "the same vimrc"?
i suppose that it can't be the problem with vimrc since we've tried a fresh vimrc

can you chow me the result of gvim and sudo gvim
:echo echo $MYVIMRC

both shows
/home/rundis/.vimrc
for
:echo $MYVIMRC

the comfig file of gvim is not ~/.gvimrc ?

javac -version
java -version

i used to use .gvimrc as my config file, soon i found it annoying to use separate file so i simply use one file

Result:
i installed oracle jdk instead of openjdk
i think thats not problem with jdk or it won't work even with sudo

rundis@TreeDiagram:~$ java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
rundis@TreeDiagram:~$ javac -version
javac 1.8.0_51

i am using openjdk oracle jdk will broken the dist-upgrade of ubuntu!
i think you can try to do these things!
rm -rf ~/.vim/bundle/vim-javacomplete2
cd
vim test
"then the vundle will install the uninstall plugin vim-javacomplete2
:w close the vim
re open vim by vim test
"the vim-javacomplete2 will autocompile on the first time
re open vim by vim Hello.java
then try with c-x c-o

oh i see, there're some problem will compiling JC2:
"Hello.java" 0L, 0C
:!javac -d /home/rundis/.vim/bundle/vim-javacomplete2/libs/javavi/target/classes
 -classpath /home/rundis/.vim/bundle/vim-javacomplete2/libs/javavi/target/classe
s:/home/rundis/.vim/bundle/vim-javacomplete2/libs/javaparser.jar: -sourcepath /h
ome/rundis/.vim/bundle/vim-javacomplete2/libs/javavi/src/main/java: -g -nowarn -
target 1.8 -source 1.8 -encoding UTF-8 /home/rundis/.vim/bundle/vim-javacomplete
2/libs/javavi/src/main/java/kg/ash/javavi/Javavi.java
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。

注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
it is just a warning

so do i have to recompile as it says with -Xlint:unchecked?

No, you don't need to recompile. It's ok for now.

Can you try to turn on logging, and put content here?

 "TypeName.|"
DoGetClassInfo: listy
Communicate: -E "listy" [FetchClassInfo in Batch]

Communicate: -E "java.lang.listy" [FetchClassInfo in Batch]

Communicate: -E "java.lang.Object" [FetchClassInfo in Batch]
java.lang.Object
finish completion  0.428111s
GetDeclaredClassName for "list"
F3. "list.|"  typename: "List"
DoGetClassInfo: List
Communicate: -E "java.util.List" [FetchClassInfo in Batch]
java.util.List
finish completion  0.180754s

java settings:
VM settings:
    Max. Heap Size (Estimated): 1.72G
    Ergonomics Machine Class: server
    Using VM: Java HotSpot(TM) 64-Bit Server VM

Property settings:
    awt.toolkit = sun.awt.X11.XToolkit
    file.encoding = UTF-8
    file.encoding.pkg = sun.io
    file.separator = /
    java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
    java.awt.printerjob = sun.print.PSPrinterJob
    java.class.path = /home/.java/jdk1.8.0_51/lib
        .
    java.class.version = 52.0
    java.endorsed.dirs = /home/rundis/.java/jdk1.8.0_51/jre/lib/endorsed
    java.ext.dirs = /home/rundis/.java/jdk1.8.0_51/jre/lib/ext
        /usr/java/packages/lib/ext
    java.home = /home/rundis/.java/jdk1.8.0_51/jre
    java.io.tmpdir = /tmp
    java.library.path = /usr/java/packages/lib/amd64
        /usr/lib64
        /lib64
        /lib
        /usr/lib
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.8.0_51-b16
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Oracle Corporation
    java.specification.version = 1.8
    java.vendor = Oracle Corporation
    java.vendor.url = http://java.oracle.com/
    java.vendor.url.bug = http://bugreport.sun.com/bugreport/
    java.version = 1.8.0_51
    java.vm.info = mixed mode
    java.vm.name = Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Oracle Corporation
    java.vm.specification.version = 1.8
    java.vm.vendor = Oracle Corporation
    java.vm.version = 25.51-b03
    line.separator = \n
    os.arch = amd64
    os.name = Linux
    os.version = 3.19.0-25-generic
    path.separator = :
    sun.arch.data.model = 64
    sun.boot.class.path = /home/rundis/.java/jdk1.8.0_51/jre/lib/resources.jar
        /home/rundis/.java/jdk1.8.0_51/jre/lib/rt.jar
        /home/rundis/.java/jdk1.8.0_51/jre/lib/sunrsasign.jar
        /home/rundis/.java/jdk1.8.0_51/jre/lib/jsse.jar
        /home/rundis/.java/jdk1.8.0_51/jre/lib/jce.jar
        /home/rundis/.java/jdk1.8.0_51/jre/lib/charsets.jar
        /home/rundis/.java/jdk1.8.0_51/jre/lib/jfr.jar
        /home/rundis/.java/jdk1.8.0_51/jre/classes
    sun.boot.library.path = /home/rundis/.java/jdk1.8.0_51/jre/lib/amd64
    sun.cpu.endian = little
    sun.cpu.isalist =
    sun.desktop = gnome
    sun.io.unicode.encoding = UnicodeLittle
    sun.java.launcher = SUN_STANDARD
    sun.jnu.encoding = UTF-8
    sun.management.compiler = HotSpot 64-Bit Tiered Compilers
    sun.os.patch.level = unknown
    user.country = CN
    user.dir = /home/rundis
    user.home = /home/rundis
    user.language = zh
    user.name = rundis
    user.timezone =

Locale settings:
    default locale = 中文                                      //Chinese
    default display locale = 中文 (中国)               //Chinese(China)
    default format locale = 中文 (中国)                //Chinese(China)
    available locales = , ar, ar_AE, ar_BH, ar_DZ, ar_EG, ar_IQ, ar_JO,
        ar_KW, ar_LB, ar_LY, ar_MA, ar_OM, ar_QA, ar_SA, ar_SD,
        ar_SY, ar_TN, ar_YE, be, be_BY, bg, bg_BG, ca,
        ca_ES, cs, cs_CZ, da, da_DK, de, de_AT, de_CH,
        de_DE, de_GR, de_LU, el, el_CY, el_GR, en, en_AU,
        en_CA, en_GB, en_IE, en_IN, en_MT, en_NZ, en_PH, en_SG,
        en_US, en_ZA, es, es_AR, es_BO, es_CL, es_CO, es_CR,
        es_CU, es_DO, es_EC, es_ES, es_GT, es_HN, es_MX, es_NI,
        es_PA, es_PE, es_PR, es_PY, es_SV, es_US, es_UY, es_VE,
        et, et_EE, fi, fi_FI, fr, fr_BE, fr_CA, fr_CH,
        fr_FR, fr_LU, ga, ga_IE, hi, hi_IN, hr, hr_HR,
        hu, hu_HU, in, in_ID, is, is_IS, it, it_CH,
        it_IT, iw, iw_IL, ja, ja_JP, ja_JP_JP_#u-ca-japanese, ko, ko_KR,
        lt, lt_LT, lv, lv_LV, mk, mk_MK, ms, ms_MY,
        mt, mt_MT, nl, nl_BE, nl_NL, no, no_NO, no_NO_NY,
        pl, pl_PL, pt, pt_BR, pt_PT, ro, ro_RO, ru,
        ru_RU, sk, sk_SK, sl, sl_SI, sq, sq_AL, sr,
        sr_BA, sr_BA_#Latn, sr_CS, sr_ME, sr_ME_#Latn, sr_RS, sr_RS_#Latn, sr__#Latn,
        sv, sv_SE, th, th_TH, th_TH_TH_#u-nu-thai, tr, tr_TR, uk,
        uk_UA, vi, vi_VN, zh, zh_CN, zh_HK, zh_SG, zh_TW

all in all, the non-sudo mode only work for method name completion

Can you check this directory /home/rundis/.java/jdk1.8.0_51/jre, can
you read it.
And also can you check your env variable JAVA_HOME, have you set it,
and if yes, what is there?

I think i know where the problem!
please don't install JDK manually
use this command
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

or
sudo apt-get install openjdk-8-jdk

and delete the JAVA_HOME in your ~/.profile or~/.bashrc

@artur-shaik

i can access to jre
$JAVA_HOME shows /home/rundis/.java/jdk1.8.0_51 which exactly my jdk locate

@wsdjeg why not manually install JDK?
actually i used jenv to install my jdk

By the way, can you check, is java process exist, after you run completion?

@artur-shaik yes, i get java kg.ash.javavi.Javavi after completion

Ok. Also, can you try run completion after dot in imports.
import java.|
Doesn't it work, too?

@artur-shaik
these are the situation ive tested:
DOESN'T WORK(needs sudo):
import java|
import java.|
List list = new Li|
they all shows -- Omni completion (^O^N^P) Pattern not found
WORK:
list.|

What java uses your root user? The same, or it some another?
It's really weird issue.

i think it is a problem of how does he install the JDK!

@rundisR can you try this commands
cd ~/.vim/bundle/vim-javacomplete2
mv -rf libs/javavi/target
cd libs/javavi/
mvn compile

@wsdjeg i reinstalled jdk with
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

but nothing changed
i will try this new one
@artur-shaik i'm not sure what u mean, but i only have two user: root and rundis(no sudo privileges)

@artur-shaik

Can you check this directory /home/rundis/.java/jdk1.8.0_51/jre, can you read it. And also can you check your env variable JAVA_HOME, have you set it, and if yes, what is there?
translate
检测这个文件夹你是否可读
检测JAVA_HOME环境变量是否设置，如果设置了，指向哪里？

I mean, can you login under root, and run java -XshowSettings, and
check your JAVA_HOME, under root.

sorry for misunderstanding...
something wrong on my ubuntu, ill try to reinstall it this afternoon and try it tomorrow

you can use ubuntu instade of ubuntu kylin

@wsdjeg im not using ubuntu kylin

does the plugin work?

yes, i fianlly finish reinstalling this morning...(the school's network is too slow especially with GFW)
@wsdjeg you are right, its the problem with my jdk
appreciate for your help!!
@wsdjeg @artur-shaik


Added Installed Check Type which queries WMI

Fixes #157

I think WmiUtil needs a unit test, otherwise LGTM!


Go to references doesn't not find references in other libs if not visited before

I have a Nx repository, with basically apps/* and libs/*. When I FindReferences it only shows references if I have previously visited the app or library that reference the expression.
LSP Info:
Client: typescript-tools (id: 3, bufnr: [6])
 	filetypes:       javascript, javascriptreact, javascript.jsx, typescript, typescriptreact, typescript.tsx
 	autostart:       true
 	root directory:  /home/romain/workspace/monorepo
 	cmd:             <function>

 Other clients that match the filetype: typescript

Setup
require("typescript-tools").setup {
  on_init = on_init,
  on_attach = on_attach,
  capabilities = capabilities,
  -- NOTE: i read somewhere that this could help
  root_dir = util.root_pattern ".git",
}

Is it out of the scope of this plugin to support such a monorepo setup? If yes, could you please, lead me to a potential solution based on your expertise? (I'm not familiar with this)
Related resources:

coc-nx workaround
official Nx VScode plugin that lazy load other projects?
the typescript server plugin Nx plugin uses to load projects?

@IzioDev I looked into resources you provided and they say you need this @monodon/typescript-nx-imports-plugin plugin loaded into service. We support tsserver plugins, you can try to:
npm i -g @monodon/typescript-nx-imports-plugin

Notice -g to install plugin globally.
Then:
require("typescript-tools").setup {
  on_init = on_init,
  on_attach = on_attach,
  capabilities = capabilities,
  -- NOTE: i read somewhere that this could help
  root_dir = util.root_pattern ".git",
  settings = {
    tsserver_plugins = {  "@monodon/typescript-nx-imports-plugin" },
  },
}

You probably need some configuration in your tsconfig.json.
If this won't help, so I think  it is out of scope of this plugin, vscode has also separate plugin to support nx monorepos.
I think here it should be similar.

Hey @pmizio, thanks for the quick answer.
Yes it should be one part of the issue here. To summarize what VSCode or coc (port of the VSCode one) extensions are doing:

on loads it verifies that typescript LSP is running
register 2 watchers
a. on text document opened: it call configurePlugin
b. on tsconfig base (monorepo global tsconfig): flush cache and configurePlugin
it calls configurePlugin (initiation)

configurePlugin, is does this thing:
api.configurePlugin('@monodon/typescript-nx-imports-plugin', {
  externalFiles,
});

that seems to loads all 'related' project so that LSP server knows about them in the future, hence making Goto:Reference and import cross-project working out-of-the box for monorepo configuration.
analysis based on the nx coc extension
So by 'only' registering the plugin, I'm afraid it's missing a key piece here.
What i have in mind currently, that would be re-usable by anyone:

create a neovim plugin, that listen to workspaces change and mimic what's coc-nx is doing

I just need one extra help from you, since I'm a newbie:

here they get an 'API' to the typescript plugin - is it typescript-tools that would be involved in this case? If that's so, is there an API that we (as plugin developer) could use as such?

@IzioDev Ok, so on typescript-tools side we should implement this request to mimic api.configurePlugin call. It will probably look very similar to this, then you can call vim.lsp.buf_request("typescriptTools/configurePlugin", {...params}). I probably can implement this request after monday, so if you in rush you can try to do it yourself, it isn't complicated. You probably won't need to setup custom watcher for document because we expose User autocommand which fire when nvim notify tsserver about open/change/close file. You probably will need to setup watcher for tsconfig.
Let me know if this explanation is helful. I think everything I described should let you implement nx support.

Awesome, yes I started writing the command. Thanks for all the explanation, will submit a PR soon if I succeed

There is something I do wrongly PR HERE
Using: :lua vim.lsp.buf_request(0, "typescriptTools/configurePlugin", { pluginName = "test", configuration = {}}) give me handler not found

@IzioDev And that's true, we don't have response handler for this request and I don't think we need it because this request has no response at least vscode don't use it. So to bypass this error you need to pass handler callback to buf_request. So I think it is last param so vim.lsp.buf_request(0, "...", {...}, function()end) should do the trick. But first verify where callback really is because I don't remember it - :help vim.lsp.buf_request.
And about pr, like I said this request don't have response or we can skip it just like vscode, so you don't need to coroutine.yield() and response it.

After some tests, it seems not to work when invoking directly via vim.lsp.bug_req*, I have an error request cannot be invoked, nil value which is weird, since it's a 'common' request handler, no?
I tried with client.request but it seems to do nothing:
local test = require("typescript-tools.protocol.text_document.configure_plugin")

local clients = vim.lsp.get_active_clients()

for _, client in ipairs(clients) do
  if client.name == "typescript-tools" then
    client.request("typescriptTools/configurePlugin", {
      pluginName = "@monodon/typescript-nx-imports-plugin",
      configuration = {
        externalFiles = {
          {
            mainFile = "/home/izio/workspace/angular/apps/frontend/src/main.ts",
            directory = "/home/izio/workspace/angular/apps/frontend",
          },
          {
            mainFile = "/home/izio/workspace/angular/libs/test1/src/index.ts",
            directory = "/home/izio/workspace/angular/libs/test1",
          },
          {
            mainFile = "/home/izio/workspace/angular/libs/test2/src/index.ts",
            directory = "/home/izio/workspace/angular/libs/test2",
          },
        },
      },
    }, test.handler, 0)
  end
end

-- vim.lsp.buf_request(0, "typescriptTools/configurePlugin", { pluginName = "test", configuration = {} }, test.handler)

You can set this value in config to verbose then in your os temp directory tsserver start dump it's logs. You can check tsserver_semantic|syntax.log to inspect is even this new method is send to tsserver.
About this error if you provide stacktrace, it will be easier for me to potentially hint something useful :) As last resort I just checkout your pr in Monday and maybe I find why this error occurr.

Ooooh I see it now... Sorry I write from phone and I cannot see everything.
But you pass server side handler to client side response, I know this is a bit confusing but you literally need to call:
vim.lsp.buf_request(0, "typescriptTools/configurePlugin", { pluginName = "test", configuration = {} }, function()end)

This handler in nvim lsp model should process and invoke client side things. But in here we can call if with empty function because configurePlugin has no response.
Your current implementation call "server side"/internal handler which operate on raw tsserver I/O. So you get nil because handler is called without context.

It's all crystal clear, thanks for the explanation! I take this back
Thanks again for your efforts

I made it work, it's raw currently, polishing that, and hopefully able to add this watcher thing etc... so that it's done on a per-project basis (no global static configuration needed)
Question: Is it possible to enable this flag on the tsserver : allowLocalPluginLoads, if I understand well, it adds the project directory to the list of seacheable plugin paths, which would allow two things:

plugin is always using workspace verison (not a global system installation)
no need to install a global system plugin
It may cause a breaking change, because it is not clear what priority folders have between them.

While researching this flag you mentioned I found this issue and based on it you can use currently supported flag --pluginProbeLocation, here you need to add second path. I think they are comma separated.

It seems like the autogroup is created in a 'lazy' way. Creating an auto-command from another plugin (even if setup after typescript-tools) gives the following output:
Failed to run `config` for typescript-tools-nx.nvim
...ypescript-tools-nx.nvim/lua/typescript-tools-nx/init.lua:6: Invalid 'group': 'TypescriptToolsGroup'
# stacktrace:
  - ~/projects/typescript-tools-nx.nvim/lua/typescript-tools-nx/init.lua:6 _in_ **setup**
  - ~/.config/nvim/lua/custom/configs/lspconfig.lua:88
  - ~/.config/nvim/lua/custom/plugins.lua:30 _in_ **config**
  - ~/.config/nvim/lua/core/utils.lua:104

Is there any way to 'wait' for the group to be created? Or should I register my autocmd anyhow else?
local constants = require("typescript-tools.protocol.constants")

function M.setup()
	vim.api.nvim_create_autocmd({ "TypescriptTools_" .. constants.LspMethods.DidOpen }, {
		pattern = { "*.ts" },
                -- ...
                group = "TypescriptToolsGroup",
        })
end

Here you have example how to setup callback to this autocommand correctly. Here is function which create autogroup.
Autogroups should be unique per plugin so you should make up your own.

Hello guys, I am the one that implemented the coc-nx port.
I am using nx and I want to get into neovim, but this simple (as far as I can understand) issue is holding me back for almost a year now!
I would be glad to see this implemented and I am watching this issue closely! Thanks!

As an almost total newbie to nvim editor and lua, I will wait for it to be ready and check someone elses nvim config! Thanks!

FYI: just merged(https://github.com/pmizio/typescript-tools.nvim/pull/167) configurePlugin request into master.

I made it work, it's raw currently, polishing that, and hopefully able to add this watcher thing etc... so that it's done on a per-project basis (no global static configuration needed)
Question: Is it possible to enable this flag on the tsserver : allowLocalPluginLoads, if I understand well, it adds the project directory to the list of seacheable plugin paths, which would allow two things:

plugin is always using workspace verison (not a global system installation)
no need to install a global system plugin
It may cause a breaking change, because it is not clear what priority folders have between them.

Any chance you can show how you got this working? This is my current attempt (not working)...
require('typescript-tools').setup(u.merge(defaults, {
  tsserver_plugins = {
    '@styled/typescript-styled-plugin',
    '@monodon/typescript-nx-imports-plugin',
  },
  on_attach = function(client, bufnr)
    defaults.on_attach(client, bufnr)

    vim.lsp.buf_request(bufnr, 'typescriptTools/configurePlugin', {
      pluginName = '@monodon/typescript-nx-imports-plugin',
      configuration = {
        externalFiles = {
          {
            mainFile = '/Users/{user}/dev/{path_to_lib}/src/index.ts',
            directory = '/Users/{user}/dev/{path_to_lib}',
          },
        },
      },
    }, function() end)
  end,
}))

@mattleong
I think I am getting close to a solution. For now I managed to make it somewhat work with the typescript-language-server plugin like so:
lspconfig.tsserver.setup {
  on_attach = function(client, bufnr)
    -- call the base on_attach
    on_attach(client, bufnr)

    -- configure plugin
    local method = "_typescript.configurePlugin"
    client.request("workspace/executeCommand", {
      command = method,
      arguments = {
        "@monodon/typescript-nx-imports-plugin",
        {
          externalFiles = {
            {
              mainFile = "C:/.../{repo}/apps/{app}/src/main.ts",
              directory = "C:/.../{repo}/apps/absint-app",
            },
          },
        },
      },
    })
  end,
  capabilities = capabilities,
  root_dir = lspconfig.util.root_pattern ".git",
  -- cmd = { "typescript-language-server", "--stdio", "--log-level", "4" },
  init_options = {
    hostInfo = "neovim",
    plugins = {
      {
        name = "@monodon/typescript-nx-imports-plugin",
        location = "C:\\Users\\{user}\\AppData\\Roaming\\nvm\\v18.10.0",
      },
    },
    tsserver = {
      logVerbosity = "verbose",
    },
  },
}

It loads it on a first try, then it disappears. Reopening the buffer makes it pop up and stay. See in action: https://streamable.com/af9ydy
I basically have very little idea what I am doing, I am new to neovim and lua all together... But I am sure it can be fixed and also make work with this beautiful plugin rather than the typescript-language-server one.
This PR helped me get moving

@mattleong
[...] not in the on_innit one. [...]

I'm sure you didn't actually code in Londoner but worth checking that you tried on_init! Your setup looks nice btw, thanks for the config so far.

I am now trying to make this work with this plugin, but I can't get the workspace/executeCommand to work. @pmizio do you have an idea what I might have done wrong?
require("typescript-tools").setup {
  on_attach = function(client, bufnr)
    on_attach(client, bufnr)
    print "typescript-tools on attach"

    local method = "typescriptTools/configurePlugin"

    local result = client.request("workspace/executeCommand", {
      command = method,
      arguments = {
        pluginName = "@monodon/typescript-nx-imports-plugin",
        configuration = {
          externalFiles = {
            {
              mainFile = "C:/Projects/datera/web-applications/apps/absint-app/src/main.ts",
              directory = "C:/Projects/datera/web-applications/apps/absint-app",
            },
          },
        },
      },
    }, function()
      print "EXECUTED WORKSPACE COMMAND"
    end, bufnr)
    print("exec cmd res", result)
  end,
  capabilities = capabilities,
  root_dir = lspconfig.util.root_pattern ".git",
  settings = {
    tsserver_plugins = {
      "@monodon/typescript-nx-imports-plugin",
    },
    tsserver_logs = "verbose",
  },
}

Using the typescript-language-server I get the response from tsserver (EXECUTED WORKSPACE COMMAND log appears). But with typescript-tools.nvim the handler is not called. The result of the client.request is true however.

@faileon I think workspace/executeCommand is typescript-language-server way of doing things. In this plugin it isn't even implemented. Here it is done with custom protocol extension typescriptTools/configurePlugin.
Something like below should do the trick:
...
local result = client.request("typescriptTools/configurePlugin", {
  pluginName = "@monodon/typescript-nx-imports-plugin",
  configuration = {
    externalFiles = {
      {
        mainFile = "C:/Projects/datera/web-applications/apps/absint-app/src/main.ts",
        directory = "C:/Projects/datera/web-applications/apps/absint-app",
      },
    },
  },
}, function()
  print "EXECUTED WORKSPACE COMMAND"
end, bufnr)
...

@pmizio I am now just calling it from the neovim command line and tracing where the configurePlugin gets lost and I arrived here:
https://github.com/pmizio/typescript-tools.nvim/blob/master/lua/typescript-tools/tsserver.lua#L129
which yields in module 'typescript-tools.protocol.text_document.configure_plugin' not found:

You right I also spotted this bug, fix here: https://github.com/pmizio/typescript-tools.nvim/pull/222

You right I also spotted this bug, fix here: #222, let me know if it helps if yes I'll merge it.

Yay! This has unclogged the pipes and my requests are now arriving in the TSServer:

Info 2109 [23:32:48.823] request:
{"seq":12,"type":"request","command":"configurePlugin","arguments":[]}

Alright, I have a solution... It's not a super polished one, but it works well for me now and I can let it rest.
Setup the lsp:
require("typescript-tools").setup {
  on_init = function(client, bufnr)
    vim.schedule(function()
      vim.cmd.NxInit()
    end)
  end,
  on_attach = on_attach,
  capabilities = capabilities,
  root_dir = lspconfig.util.root_pattern ".git",
  settings = {
    tsserver_plugins = {
      "@monodon/typescript-nx-imports-plugin",
    }
  },
}

In your init.lua create this command of a monstrosity
vim.api.nvim_create_user_command("NxInit", function()
  print "Running nx init..."
  -- call nx deamon with graph request
  local now = tostring(os.time())
  local fileName = string.format("%s_graph.json", now)
  local cmd = string.format("npx nx graph --file=%s", fileName)
  os.execute(cmd)

  -- read the file into memory
  local projectGraphFile = io.open(fileName, "r")
  if projectGraphFile then
    -- read project graph from file
    local projectGraph = vim.json.decode(projectGraphFile:read "*a")
    projectGraphFile:close()

    -- get typescript-tools lsp client
    local lspClients = vim.lsp.get_active_clients()
    local tsclient
    for _, client in ipairs(lspClients) do
      if client.name == "typescript-tools" then
        tsclient = client
      end
    end
    if not tsclient then
      print "typescript-tools.nvim not active"
      return
    end

    -- get workspace root
    -- always first? alternatives to get absolute workspace root?
    local workspacePath = tsclient.config.workspace_folders[1].name
    if not workspacePath then
      print "Could not figure out workspace path"
      return
    end

    -- create external files for monodon
    local externalFiles = {}
    for _, project in pairs(projectGraph.graph.nodes) do
      local sourceRoot = project.data.sourceRoot

      -- skip the root
      if sourceRoot ~= "." then
        -- localte the entry file. perhaps use tsconfig.[app|lib].json
        local mainFile
        if
          project.data
          and project.data.targets
          and project.data.targets.build
          and project.data.targets.build.options
          and project.data.targets.build.options.main
        then
          mainFile = workspacePath .. "/" .. project.data.targets.build.options.main
        else
          mainFile = workspacePath .. "/" .. sourceRoot .. "/index.ts"
        end

        -- insert to config
        table.insert(externalFiles, {
          mainFile = mainFile, -- this is not always index.ts!
          directory = workspacePath .. "/" .. sourceRoot,
        })
      end
    end

    -- send configuration request of monodon plugin to tsserver
    local constants = require "typescript-tools.protocol.constants"
    local method = constants.CustomMethods.ConfigurePlugin
    local args = {
      pluginName = "@monodon/typescript-nx-imports-plugin",
      configuration = {
        externalFiles = externalFiles,
      },
    }
    tsclient.request(method, args, function()
      print("tsserver handled configuration request", method)
    end)

    -- remove the graph file
    os.remove(fileName)
  end
end, {})

It will be called once on initialization of typescript-tools.nvim, or you can call it on demand with :NxInit. It does the following steps:

Asks nx daemon for project graph via npx nx graph - you must be in the correct directory (the git root) for this to work.
Creates a file with the project graph, reads it, parses it and creates the Monodon plugin configuration. There is some attempt to distinguish between index.ts and main.ts entry points, but you might need to adjust it based on your use case.
Sends the configuration to tsserver
deletes the project graph file so it doesnt polute your file system

Demonstration:
https://streamable.com/ivzwy1

@faileon Should tsclient.request recieve a buffer number? I'm getting a type error saying it needs a 4th parameter. It seems fine either way since eventually the nil value eventually gets handled but just double checking.
    tsclient.request(method, args, function()
      print("tsserver handled configuration request", method)
    end, vim.api.nvim_get_current_buf())

@faileon Should tsclient.request recieve a buffer number? I'm getting a type error saying it needs a 4th parameter. It seems fine either way since eventually the nil value eventually gets handled but just double checking.
    tsclient.request(method, args, function()
      print("tsserver handled configuration request", method)
    end, vim.api.nvim_get_current_buf())

Also, I'm still having trouble getting it working. The project graph file builds and everything but I'm not seeing any differences. I'll let you know if I can figure out what's missing on my end.

I have tried both with and without buffer, it didn't seem to make a difference. It is just configuring the tsserver plugin afterall.
I have updated the script a little bit, but the changes I made are just optimization to run in background. Some of my monorepos are quite big and it used to freeze my UI for up to 5-10s without it. You can find the updated code here https://github.com/faileon/nvchad/blob/0f94afac075b786970541aee85d4a7a1447a26b4/lua/custom/init.lua#L23
I think the first time you will hit GR it still takes some time for the references to load up, but otherwise it works OK on my side.

@faileon actually it was a config issue, I wasn't setting the plugins within the settings property properly.
Glad to say that it WORKS! My current monorepo is just over 100 libs/apps and it's working nice and quick :)
Thanks for all the work here! I had been waiting for this to be working for years now.

@faileon actually it was a config issue, I wasn't setting the plugins within the settings property properly.
Glad to say that it WORKS! My current monorepo is just over 100 libs/apps and it's working nice and quick :)
Thanks for all the work here! I had been waiting for this to be working for years now.

Nice! I'm glad you got it working. The script still could use a few minor improvements, such as not relying on a globally installed monodon plugin and more. If I ever have more time to tinker with it, I'll update it in my repo.

Sounds good! Would also be great to release as a standalone plugin, in the future, IMO.

@faileon Sounds good! Would also be great to release as a standalone plugin, in the future, IMO.

@faileon Sounds good! Would also be great to release as a standalone plugin, in the future, IMO.

It has crossed my mind but I am still not very fluent in the whole neovim/Lua ecosystem, I've only been using it for few weeks. Perhaps someone more experienced could pull it off.

@faileon actually it was a config issue, I wasn't setting the plugins within the settings property properly.
Glad to say that it WORKS! My current monorepo is just over 100 libs/apps and it's working nice and quick :)
Thanks for all the work here! I had been waiting for this to be working for years now.

Nice! I'm glad you got it working. The script still could use a few minor improvements, such as not relying on a globally installed monodon plugin and more. If I ever have more time to tinker with it, I'll update it in my repo.

This is a bit of a harder problem to solve for nix/os, however from just the encapsulation standpoint this same problem is solved in vscode through the nx plugin (which builds the project graph and itself relies on the globally installed monodon package). This neovim nx plugin probably should contain this logic and its compatibility with typescript-tools. Also new to nvim/lua, multiplied by the complexity of nix where there is no FHS and the store paths are read only makes it challenging to make progress here until I do some study and figure this out. I'm very happy that you could work out the actual LSP stuff @faileon because I don't even know where to start. I think there's a group of nvim+nx+ts people here slowly amassing around this issue though, maybe over time we could put something together that is nice holistically.

I'm very happy that you could work out the actual LSP stuff @faileon because I don't even know where to start. I think there's a group of nvim+nx+ts people here slowly amassing around this issue though, maybe over time we could put something together that is nice holistically.

Ahh yes, the open source dream where we all to come together and manage to build something useful for ourselves :D
FYI @faileon, the solution provided seemingly stopped working once I jumped to NX 18. 🤔

@mattleong i have just updated to nx18, I've noticed it's a bit more flaky now. I have to run :NxInnit manually every now and then. I'll investigate further soon.

We've stepped away from nx integrated style monorepos for now. Very happy to report that a pnpm/bun workspaces monorepo works not just a little bit, but significantly better at no apparent loss of features.
Will prepare a stripped down repository and link it here.
Syncpack is a great simple tool that ensures deduplicated external dependancies that replace the need for nx. Not having NX plugins wrapping every framework we use is also a lot better - we are no longer once removed from their releases and features. After wrapping my head round cjs/esm, converting our backends to esm, setting up the project tsconfigs "properly" and executing them / testing them using bun while being able to do monorepo-wide linting using tac has been absolutely fantastic. It's incredibly quick to use, and tsserver exhibits NO issues. Did I mention tsconfig paths work natively, isolated to every package with all of the above just working with no bandaids?

@faileon Ty. For my angular ns project it works with minor tweaks. Running NxInit on_init is buggy bc. go to reference works on second try. Running NxInit manually works great.


Tessel mDNS should advertise under "unconventional" mDNS

mDNS can be blocked by wifi networks.  Among the ones available at this $RANDOM_OFFICE_LOCATION:

_airplay._tcp
_raop._tcp (AirTunes)
_ipp._tcp (Internet Printing Protocol)
_printer._tcp

I don't know a comprehensive list, and I'd need a prohibitive WiFi network to ensure this, but I suggest googling around for some.
One idea is that we advertise under unconventional networks, just like how all IP is unfortunately routed through only UDP and TCP these days:
dns-sd -R "johnnyman" "_airplay._tcp" local 22 tessel=1
This works on this prohibitive network, as well as _printer._tcp. What do we think? 1) benefits the user 2) might hurt people on the network 3) but not by much?

Alternately, we could advertise in "promiscuous" mode by looking at what mDNS packets are being picked up on the network and then advertising Tessel on all of them. I'd recommend that approach, since it's most amenable to hackathons.

The long-term solution is a website registry for events, keyed by a unique ID, that saves the IP of devices on that network. mDNS-by-proxy

Looks like the wifi at fullstack blocks all mdns traffic. :(


Makefile: Fix 'gadget-container' target

#2094 renamed 'gadget-%-container' target to 'gadget-container' but we have a file named 'gadget-container' so the image is never built with make saying: make: 'gadget-container' is up to date.
Testing done
$ make gadget-container # or make minikube-deploy works fine
...
 => CACHED [stage-2  9/11] COPY gadget-container/hooks/nri/conf.json /opt/hooks/nri/                                                                                0.0s
 => CACHED [stage-2 10/11] COPY --from=bpftrace /usr/bin/bpftrace /usr/bin/bpftrace                                                                                0.0s
 => CACHED [stage-2 11/11] RUN rm -f /var/run                                                                                0.0s
 => exporting to image                                                                                0.0s
 => => exporting layers                                                                                0.0s
 => => writing image sha256:241753311ce99f8182fedecfa96493a20f72db6b72dd05dac483fcc566166813                                                                                0.0s
 => => naming to ghcr.io/inspektor-gadget/inspektor-gadget:latest

Regarding the CI, the issue is in the base image, so we cannot do anything except waiting for it to be fixed upstream.

The logs says there is a fixed version (2.31-13+deb11u6 -> 2.31-13+deb11u7) so perhaps if we go to bookworm it will be fixed?


Crash with ExtraSounds when opening Twigs tab on Creative Inventory

Minecraft: 1.19
Mod: twigs-fabric-2.0.0-beta.7+1.19.jar
Only mods installed are ExtraSounds alongside Twigs and its dependencies.
As the title suggests, when you open the creative inventory tab of Twigs with these two mods installed, the game immediately crashes
latest.log
crash-2022-07-06_00.23.07-client.txt

Try Frame v0.21.1 and see if it fixes the issue
https://modrinth.com/mod/frame-api/version/0.21.1+1.19

In my testing it seems to have been fixed, I'll wait for your confirmation though :)

It does indeed fix the issue! Thank you for your kindness.


Chrome v45: fetch API: URL scheme "chrome-extension" is not supported.

Fetch API cannot load chrome-extension://dgdnbknnbbacmakijmkdbhhopogfofkh/assets/definitions.json. URL scheme "chrome-extension" is not supported.

The same in version 44.

Changed because minimal supported version for the ARC is 45.

The same in 46.

The fix will be available in next update.

When should I hope to see the next update? Will the update allow a user (myself) to use Advanced Rest Client with Chrome version 35.0.1916.153 m? I was able to use your program just a few months back before the latest updates? If the update won't fix that issue is it possible for me add the old extension program you had before?
Unfortunately my hands are tied as to just upgrading to the latest versions of Chrome because my works security disables that feature. I maybe able to upgrade to version 42 but not sure if I'll be able to upgrade any higher.

Fetch API is enabled in Chrome 42.
Anyway the app itself should work anyway. It has couple of references to fetch API but only in less important function (like analytics, requests to app's server). You may see this error but it's not influence to main purpose of the app. If it is not working it is a different reason.


NoMethodError Exception: undefined method `to_money'

I get this when I call coinbase.balance or  coinbase.create_button. The error message contains the correct balance, so it seems my login credentials are correct.
Using Rails 4.2.0 and Ruby 2.2.0. I suspect something changed in the money gem recently.
Here's an example project where this fails: Bitcoin Passbook

Hmm I haven't heard of this happening for anyone else.
Can you post the entire stack trace for the error? As well as your Gemfile.lock?


changes to selection-screen position syntax

fixes #567
changed allowed argument from "source" to either the keywords or allowed integer values

nice, looks good, thanks 👍


FE2 API Updates

Added New Resources:

project_resource.py
project_invites_resource.py
model_resource.py
version_Resource.py
comment_resource.py - WON'T DO - I need blob support in order to integration test. Not super critical
subscription_resource.py

All of the above are implemented the same as in C# (I've tweaked the C# side also in https://github.com/specklesystems/speckle-sharp-sdk/pull/144 )
Notable improvements over previous aproach:

Object models have their nullability (Optional) aligned with the GraphQL schema
Simplified the response parsing, and everything is properly typed
Exceptions thrown rather than returned

Changes to existing resources:

active_user::Resource & other_user::Resource renamed to active_user_resource::ActiveUserResource and other_user_resource::OtherUserResource
Deprecated all FE1 queries and mutations

I should be non-breaking, except in a few places I've changed the type hinting to correctly respect the Optionality of things,
and the active_user and other_user resources will now raise rather than return exceptions
Tests
Added pytest equivalents for the C# integration tests for the same queries and mutations
Had to add pytest-asyncio as a dev dependency
Things to check with Gergo:

Q: Cursors...  str, datetime or Union[str, datetime]  - A: str
Q: Happy with the integration tests? they are the same as in C# A: more than happy
Q: Should I remove the unused stuff (file import, model tree, etc...)  Done anyway
Q: Project invites in with Project and Active user? or in separate place like in .NET SDK? align with sharp
Q: Keep models in new_models.py or move them all to models.py, I've had to suppress ruff is complaining about * imports
Q: User Update overloads
Q: Happy with the slight renaming of the resources classes
Q: old api.models <- this was only around for backwards compatibility right? I don't need to touch it

Test coverage


[api-digester] Force lazy attribute calculations as workaround

We were relying on attributes being propagated by the type-checker, for
example from a property to its accessors, but the goal is for these to
be caculated lazily by the request evaluator, so we should be checking
the AST predicates instead.  As a workaround, force calculating them to
cause the attributes to be added for now to fix a CI failure.
Patch by @slavapestov
rdar://50184238

@swift-ci please build toolchain macOS

@swift-ci please test

macOS Toolchain
Download Toolchain
Git Sha - 8fbd71c25e778c62a396522a111f02874878a0d4
Install command
tar -zxf  swift-PR-24285-302-osx.tar.gz --directory ~/

Build failed
Swift Test OS X Platform
Git Sha - 8fbd71c25e778c62a396522a111f02874878a0d4

@swift-ci please test macOS


Phone no field available in client  contact person should also accept  character as input

Describe the task
When new client is added the details realted to client contact person are added, which also includes Phone no.
In current implemntation Phone no field only accepts number as input, also phone only acccept 10 digit phone number only, but there are some client which have code number  such as (061) 707-2HG.
Steps to reach Client Phone no field

Go to CRM and click on clients
Click on Add client
Enter client name and click on Save button
Click on the client name, mentioned in above step
Click on Contact Persons Tab

Please refer screenshot for contact person tab

Expected behavior
Phone no field should also accept, alphabets and symbols like -  ( )  in addition the phone no can accept  input maximum  upto 20 aphalumeric character .

Provided input as 20 alphanumeric characters<PHONE_NUMBER>abcdefghij) in Phone no field, the error is displayed clicking save and an Exit button

Input number (616)-674-2HMG-12345 (20 alphanumeric character) accepted in Phone no field


Webhooks api and some other fixes

This is an assembly of differente changes I did since last year as I was stumbling upon different issues.

@etaroza we have implemented batches and webhooks in our separate branch including all your changes. You can update to 2.8.0.
Only difference is the language setter for events and issues requires you to set the full language 'de-DE' not only the short form.


there is no chapter5

Hi @derklauer -
I'm not sure what your issue is, there is no information, just the title "there is no chapter5"?    I am assuming that you might be looking for a directory in the repo for Chapter 5 exercises?   If this is correct, there are no exercises for Chapter 5 that required any code in the repo - Chapter 5 is a Bootcamp for Kubernetes objects and was designed as a refresher for anyone that may have been away from K8s for awhile, or a crash course for newer readers to become familiar with most of the base Kubernetes objects.
While we do have some example commands and code in the book, they aren't required for the other chapters and most are very short and can be typed manually.
Is there something in particular you were looking for?


Move ccdl-specific parameters to a profile

We may want to think about having some parameters, such as  run_metafile and outdir, set as blank by default, to prevent external users from getting cryptic errors if they do not set them and their run tries to access our files/locations for which they do not have permission.
We could then set these values within a ccdl profile block, such that we would invoke them with: -profile ccdl, or more likely with -profile ccdl,batch, as you can include multiple profiles, comma separated.
Not quite as easy as using them by default, but not bad, and could save external user confusion.
Originally posted by @jashapiro in https://github.com/AlexsLemonade/scpca-nf/issues/105#issuecomment-1059494399

Is Closes (temporarily) broken? 🧐  Closed by #136.


zinit wait for makes a empty plugin directory

Describe the bug
loading a snippet using For-Syntax with wait doesn't automatically detect it as a snippet, and clones into the url too (after setting up the snippet). As it is not a git repository, it ends with an error and makes a empty directory in .zinit/plugins.
To Reproduce
zinit wait for {any snippet} (OMZL::git, ... )
Expected behavior
not making empty directories in .zinit/plugins.
Versions:

$ZSH_VERSION == zsh 5.8 (x86_64-ubuntu-linux-gnu)
Operating system name and version (uname -a): Linux 4.19.104-microsoft-standard
and
$ZSH_VERSION == zsh 5.7.1 (x86_64-apple-darwin19.0)
Operating system name and version (uname -a): Darwin 19.5.0

Additional context
It was working fine 2 days ago.

I noticed a problem introduced with wait too, which also was working fine up until recently. I don't know if it's related or not: https://github.com/zdharma/zinit/issues/363

As @errantepiphany mentioned in #363, my problem is from commit ca6083a64dd28622ea112a9533592fe5a1bdd45e too.

The issue should be now resolved.
On Tue, 16 Jun 2020 at 13:27, rajyan<EMAIL_ADDRESS>wrote:

As @errantepiphany https://github.com/errantepiphany mentioned in #363
https://github.com/zdharma/zinit/issues/363, my problem is from commit
ca6083a64dd28622ea112a9533592fe5a1bdd45e too.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/zdharma/zinit/issues/362#issuecomment-644704428, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABOE4CALRLRBHZBA2THF3G3RW5JJ5ANCNFSM4N5JXC3A
.

--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zinit
Blog: http://zdharma.org

@psprint
I pulled the latest commits, but it seems that this issue is not solved yet.

Could you check now?

Unfortunately, this problem does not seem to have been solved.
Also, I confirmed that this issue doesn't occur with the revert commit 440d847aa5ef84687e383184754c779c05c12709.
I will look into this issue as well.

commented.
https://github.com/zdharma/zinit/commit/0729a2414a48241baf41cff9af2a1be5e584b7c0#r39987125
I haven't read all the source code, so I'm sorry if my understanding is wrong.

I think that you're right. I've fixed the condition, could you check now?

It's working as expected. Thank you !