Web-services

https://examples.javacodegeeks.com/enterprise-java/apache-camel/apache-camel-cxf-example/

http://joaodiogovicente.blogspot.ru/2015/04/rest-with-camel-215.html
restservice
This repository holds the complete code built as part of the REST with Camel 2.15 blog entry.
https://github.com/mxcheung/camel/tree/master/restservice

https://github.com/pdomkar/SCXML2VoiceXMLJ/blob/master/SCXML2VoiceXMLJ/src/main/java/cz/muni/fi/pb138/scxml2voicexmlj/MainCommandLine.java
https://github.com/svenmalvik/AvinorProvider/blob/master/src/de/malvik/StartAvinor.java
https://github.com/search?q=org.apache.commons.cli&ref=searchresults&type=Wikis&utf8=✓
https://commons.apache.org/proper/commons-cli/properties.html
http://commons.apache.org/proper/commons-cli/usage.html
http://stackoverflow.com/questions/367706/how-to-parse-command-line-arguments-in-java
https://commandlineparser.codeplex.com/

http://www.sql.ru/faq/faq_topic.aspx?fid=966

Java web services: The state of web service security
Learn the current state of security handling in the main open source Java web services stacks
Java Web services: Axis2 WS-Security basics
See how to install Rampart into Axis2 and implement UsernameToken handling
Understanding web services specifications, Part 4: WS-Security
WS-Security
http://localhost:8080/axis2/services/Version?wsdl
http://www.ibm.com/developerworks/ru/library/j-jws5/j-jws5-pdf.pdf

Soap UI
https://dzone.com/articles/how-web-service-mock-soapui

http://wiki.elca.ch/twiki/el4j/bin/view/EL4J/GettingStarted or docs/pdf/GettingStarted.pdf


Changes border link to #666

This PR changes the border of the selected option to gray (#666).

Non-selected, selected and hovered icons, respectively.

Frontend tests were OK :+1: (details)

@josecruz: can you review this, please?

:green_heart:

Arigato!

Frontend tests were OK :+1: (details)


Regression: TextEdit claims full width even with smaller desired_width

#5266 makes TextEdit have an "intrinsic" size, which I'm guessing makes containers expand to the size it reports as intrinsic size.
The problem is that it seems to claim the full width of the text, even when desired_width is smaller.
This causes things like side panels to expand way too far for long text, and possibly flicker a lot if the text width changes.
Here is an example of a SidePanel::right expanding way too far (due to very long floating point number displayed in the text edit)
desired_width is set to 100.0 in this example case.

If this is intended behavior, then there should be some kind of way to set a max "default width" for a SidePanel that it won't automatically expand beyond, unless the user explicitly resizes. Otherwise I don't know how to avoid the flickering without limiting the max width, which also prevents the user from being able to resize beyond the set limit, which I want to allow.

Egui currently does absolutely nothing with the intrinsic size, it's just set so it can be read e.g. in egui_flex, for advanced layouting. So this issue must be something else. Can you try to make a minimal reproduction?

I made a discussion about this thinking it was intended but after testing I figured I don't think it is.

Egui currently does absolutely nothing with the intrinsic size, it's just set so it can be read e.g. in egui_flex, for advanced layouting. So this issue must be something else. Can you try to make a minimal reproduction?

Here is my discussion it has a small example including a video.


[Bug]: Perplexity 400 Client Error: Bad Request for url

Bug Description
Perplexity chat and complete have issues. llama-index-llms-perplexity version 0.3.0.
This is due to formatting issues caused by this line in _chat, causing payload to not get formatted properly. Same happens in _complete:
payload = {
            "model": self.model,
            "messages": [
                message.dict(exclude={"additional_kwargs"}) for message in messages
            ],
            **self._get_all_kwargs(**kwargs),
        }

Version
0.12.1
Steps to Reproduce
from llama_index.core.llms import ChatMessage
from llama_index.llms.perplexity import Perplexity

pplx_api_key = '<key>'
pplx = Perplexity(api_key=pplx_api_key)

llm_pplx = Perplexity(
    api_key=pplx_api_key, model="mistral-7b-instruct", temperature=0.5
)

messages_dict = [
    {"role": "system", "content": "Be precise and concise."},
    {"role": "user", "content": "Tell me 5 sentences about Perplexity."},
]

messages = [ChatMessage(**msg) for msg in messages_dict]

pplx.chat(messages=messages)

Relevant Logs/Tracbacks
HTTPError: 400 Client Error: Bad Request for url: https://api.perplexity.ai/chat/completions

@dosubot seems like the issue is with the change in supported models instead - default model in init is invalid as a result
model: str = "mistral-7b-instruct",

See below for the updated supported models:

happy to work on a PR on thi s


求问切换游戏账号功能

Checklist

[X] I have already read docs/Tips.md, but my question is not solved.
[X] My question was not mentioned by others, and it is not a duplicate question.

Description
游戏账号切换保存后是不是可以不用重复输账号密码了，没用过这个功能才注意到，有时一退游戏下次启动又重新输账密非常繁琐。
Starward Version
0.12.0
Windows Version
22631.3880
Log
No response
Additional Context
No response

#290 #802

同求绝区零出账号切换保存功能


Fix mypy errors (transpiler)

Summary
Following discussion, I'm splitting https://github.com/Qiskit/qiskit-terra/pull/8187 by module.
Details and comments
There are some ignores added: part to assignment to non-existing attribute, and part to decorated properties. Both appear to be justified for me. There are also some common mistakes -- e.g., using np.array instead of np.ndarray in annotation.
The are ~90 errors left:

 All error list

qiskit/transpiler/instruction_durations.py:79: error: "Backend" has no attribute "properties"  [attr-defined]
qiskit/transpiler/instruction_durations.py:84: error: "Backend" has no attribute "properties"  [attr-defined]
qiskit/transpiler/instruction_durations.py:90: error: "Backend" has no attribute "configuration"  [attr-defined]
qiskit/transpiler/instruction_durations.py:128: error: Incompatible types in assignment (expression has type "Tuple[Union[float, str, Iterable[float]], ...]", target has type "Tuple[str, Optional[Iterable[int]], float, Optional[Iterable[float]], str]")  [assignment]
qiskit/transpiler/instruction_durations.py:128: error: Incompatible types in assignment (expression has type "Tuple[Union[float, str, Iterable[float]], ...]", target has type "Tuple[str, Optional[Iterable[int]], float, Optional[Iterable[float]]]")  [assignment]
qiskit/transpiler/instruction_durations.py:128: error: Incompatible types in assignment (expression has type "Tuple[Union[float, str, Iterable[float]], ...]", target has type "Tuple[str, Optional[Iterable[int]], float, str]")  [assignment]
qiskit/transpiler/instruction_durations.py:128: error: Incompatible types in assignment (expression has type "Tuple[Union[float, str, Iterable[float]], ...]", target has type "Tuple[str, Optional[Iterable[int]], float]")  [assignment]
qiskit/transpiler/instruction_durations.py:130: error: Incompatible types in assignment (expression has type "Tuple[Union[float, str, Iterable[float]], ...]", target has type "Tuple[str, Optional[Iterable[int]], float, Optional[Iterable[float]], str]")  [assignment]
qiskit/transpiler/instruction_durations.py:130: error: Incompatible types in assignment (expression has type "Tuple[Union[float, str, Iterable[float]], ...]", target has type "Tuple[str, Optional[Iterable[int]], float, Optional[Iterable[float]]]")  [assignment]
qiskit/transpiler/instruction_durations.py:130: error: Incompatible types in assignment (expression has type "Tuple[Union[float, str, Iterable[float]], ...]", target has type "Tuple[str, Optional[Iterable[int]], float, str]")  [assignment]
qiskit/transpiler/instruction_durations.py:130: error: Incompatible types in assignment (expression has type "Tuple[Union[float, str, Iterable[float]], ...]", target has type "Tuple[str, Optional[Iterable[int]], float]")  [assignment]
qiskit/transpiler/instruction_durations.py:146: error: Need more than 4 values to unpack (5 expected)  [misc]
qiskit/transpiler/instruction_durations.py:146: error: Need more than 3 values to unpack (5 expected)  [misc]
qiskit/transpiler/instruction_durations.py:208: error: Item "int" of "Union[int, Qubit]" has no attribute "index"  [union-attr]
qiskit/transpiler/instruction_durations.py:211: error: Argument 2 to "_get" of "InstructionDurations" has incompatible type "Union[List[int], List[Qubit], List[Union[int, Qubit]]]"; expected "List[int]"  [arg-type]
qiskit/transpiler/instruction_durations.py:231: error: Incompatible types in assignment (expression has type "Tuple[str, Tuple[int, ...]]", variable has type "Tuple[str, Tuple[int, ...], Tuple[float, ...]]")  [assignment]
qiskit/transpiler/instruction_durations.py:236: error: Invalid index type "Tuple[str, Tuple[int, ...], Tuple[float, ...]]" for "Dict[Tuple[str, Tuple[int, ...]], Tuple[float, str]]"; expected type "Tuple[str, Tuple[int, ...]]"  [index]
qiskit/transpiler/instruction_durations.py:246: error: Incompatible types in assignment (expression has type "Union[float, ParameterExpression]", variable has type "float")  [assignment]
qiskit/transpiler/passes/basis/decompose.py:46: error: Incompatible types in assignment (expression has type "Union[Type[Gate], List[Type[Gate]], List[str], str, None]", variable has type "Type[Gate]")  [assignment]
qiskit/transpiler/passes/calibration/builders.py:236: error: Item "Instruction" of "Union[Instruction, Any]" has no attribute "channel"  [union-attr]
qiskit/transpiler/passes/calibration/builders.py:237: error: Item "Instruction" of "Union[Instruction, Any]" has no attribute "pulse"  [union-attr]
qiskit/transpiler/passes/calibration/builders.py:239: error: Item "Instruction" of "Union[Instruction, Any]" has no attribute "channel"  [union-attr]
qiskit/transpiler/passes/calibration/builders.py:258: error: Argument 1 to "rescale_cr_inst" of "RZXCalibrationBuilder" has incompatible type "Union[Instruction, Any]"; expected "Play"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:259: error: Argument 1 to "rescale_cr_inst" of "RZXCalibrationBuilder" has incompatible type "Union[Instruction, Any]"; expected "Play"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:272: error: Argument 1 to "insert" of "Schedule" has incompatible type "Union[int, ParameterExpression]"; expected "int"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:272: error: Argument 2 to "insert" of "Schedule" has incompatible type "Union[Schedule, ScheduleBlock]"; expected "Union[Schedule, Instruction]"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:280: error: Argument 2 to "insert" of "Schedule" has incompatible type "Union[Schedule, ScheduleBlock]"; expected "Union[Schedule, Instruction]"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:288: error: List item 0 has incompatible type "Union[int, ParameterExpression]"; expected "int"  [list-item]
qiskit/transpiler/passes/calibration/builders.py:289: error: List item 0 has incompatible type "Union[int, ParameterExpression]"; expected "int"  [list-item]
qiskit/transpiler/passes/calibration/builders.py:291: error: Argument 2 to "insert" of "Schedule" has incompatible type "Union[Schedule, ScheduleBlock]"; expected "Union[Schedule, Instruction]"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:292: error: Argument 2 to "insert" of "Schedule" has incompatible type "Union[Schedule, ScheduleBlock]"; expected "Union[Schedule, Instruction]"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:293: error: Argument 2 to "insert" of "Schedule" has incompatible type "Union[Schedule, ScheduleBlock]"; expected "Union[Schedule, Instruction]"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:294: error: Argument 2 to "insert" of "Schedule" has incompatible type "Union[Schedule, ScheduleBlock]"; expected "Union[Schedule, Instruction]"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:295: error: Argument 2 to "insert" of "Schedule" has incompatible type "Union[Schedule, ScheduleBlock]"; expected "Union[Schedule, Instruction]"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:296: error: Argument 2 to "insert" of "Schedule" has incompatible type "Union[Schedule, ScheduleBlock]"; expected "Union[Schedule, Instruction]"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:391: error: Item "Instruction" of "Union[Instruction, Any]" has no attribute "channel"  [union-attr]
qiskit/transpiler/passes/calibration/builders.py:407: error: Argument 1 to "filter" of "ScheduleBlock" has incompatible type "*List[Callable[[Tuple[int, Union[Schedule, Instruction]]], bool]]"; expected "List[Callable[..., Any]]"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:407: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
qiskit/transpiler/passes/calibration/builders.py:407: note: Consider using "Sequence" instead, which is covariant
qiskit/transpiler/passes/calibration/builders.py:408: error: Argument 1 to "filter" of "ScheduleBlock" has incompatible type "*List[Callable[[Tuple[int, Union[Schedule, Instruction]]], bool]]"; expected "List[Callable[..., Any]]"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:408: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
qiskit/transpiler/passes/calibration/builders.py:408: note: Consider using "Sequence" instead, which is covariant
qiskit/transpiler/passes/calibration/builders.py:411: error: Argument 1 to "rescale_cr_inst" of "RZXCalibrationBuilder" has incompatible type "Union[Instruction, Any]"; expected "Play"  [arg-type]
qiskit/transpiler/passes/calibration/builders.py:412: error: Argument 1 to "rescale_cr_inst" of "RZXCalibrationBuilder" has incompatible type "Union[Instruction, Any]"; expected "Play"  [arg-type]
qiskit/transpiler/passes/routing/algorithms/token_swapper.py:123: error: Incompatible types in assignment (expression has type "Iterator[List[int]]", variable has type "Generator[List[Tuple[int, int]], None, None]")  [assignment]
qiskit/transpiler/passes/routing/algorithms/token_swapper.py:123: error: Argument 1 to "take_until_zero" has incompatible type "Generator[List[Tuple[int, int]], None, None]"; expected "Iterable[List[int]]"  [arg-type]
qiskit/transpiler/passes/routing/algorithms/util.py:100: error: Argument 2 to "PermutationCircuit" has incompatible type "Dict[_V, Any]"; expected "Dict[Union[int, Qubit], Qubit]"  [arg-type]
qiskit/transpiler/passes/routing/commuting_2q_gate_routing/commuting_2q_block.py:37: error: Need type annotation for "qubits" (hint: "qubits: Set[<type>] = ...")  [var-annotated]
qiskit/transpiler/passes/routing/commuting_2q_gate_routing/commuting_2q_block.py:37: error: Need type annotation for "cbits" (hint: "cbits: Set[<type>] = ...")  [var-annotated]
qiskit/transpiler/passes/routing/commuting_2q_gate_routing/commuting_2q_gate_router.py:238: error: Need type annotation for "blocked_vertices" (hint: "blocked_vertices: Set[<type>] = ...")  [var-annotated]
qiskit/transpiler/passes/scheduling/alignments/align_measures.py:123: error: Argument 3 to "_check_alignment_required" has incompatible type "Type[Measure]"; expected "Union[Instruction, List[Instruction]]"  [arg-type]
qiskit/transpiler/passes/scheduling/alignments/align_measures.py:180: error: Argument 1 to "pad_with_delays" has incompatible type "Optional[Tuple[Qubit, ...]]"; expected "List[int]"  [arg-type]
qiskit/transpiler/passes/scheduling/alignments/pulse_gate_validation.py:82: error: Unsupported operand types for % ("ParameterExpression" and "int")  [operator]
qiskit/transpiler/passes/scheduling/alignments/pulse_gate_validation.py:82: note: Left operand is of type "Union[int, ParameterExpression]"
qiskit/transpiler/passes/scheduling/alignments/pulse_gate_validation.py:90: error: Unsupported operand types for > ("int" and "ParameterExpression")  [operator]
qiskit/transpiler/passes/scheduling/alignments/pulse_gate_validation.py:90: note: Left operand is of type "Union[int, ParameterExpression]"
qiskit/transpiler/passes/scheduling/padding/base_padding.py:123: error: Argument 4 to "_apply_scheduled_op" of "BasePadding" has incompatible type "Optional[Tuple[Qubit, ...]]"; expected "Union[Qubit, List[Qubit]]"  [arg-type]
qiskit/transpiler/passes/scheduling/padding/base_padding.py:123: error: Argument 5 to "_apply_scheduled_op" of "BasePadding" has incompatible type "Optional[Tuple[Clbit, ...]]"; expected "Union[Clbit, List[Clbit], None]"  [arg-type]
qiskit/transpiler/passes/scheduling/padding/dynamical_decoupling.py:273: error: "DAGNode" has no attribute "op"  [attr-defined]
qiskit/transpiler/passes/scheduling/padding/dynamical_decoupling.py:349: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
qiskit/transpiler/passes/synthesis/unitary_synthesis.py:282: error: Incompatible types in assignment (expression has type "Set[str]", target has type "Dict[Any, Any]")  [assignment]
qiskit/transpiler/passes/synthesis/unitary_synthesis.py:286: error: Incompatible types in assignment (expression has type "Optional[bool]", target has type "Dict[Any, Any]")  [assignment]
qiskit/transpiler/passes/synthesis/unitary_synthesis.py:288: error: Incompatible types in assignment (expression has type "Optional[bool]", target has type "Dict[Any, Any]")  [assignment]
qiskit/transpiler/passes/synthesis/unitary_synthesis.py:301: error: Incompatible types in assignment (expression has type "Optional[Target]", target has type "Dict[Any, Any]")  [assignment]
qiskit/transpiler/passes/synthesis/unitary_synthesis.py:325: error: Incompatible types in assignment (expression has type "Tuple[Optional[CouplingMap], List[int]]", target has type "Dict[Any, Any]")  [assignment]
qiskit/transpiler/passmanager.py:169: error: List item 0 has incompatible type "BasePass"; expected "TBasePass"  [list-item]
qiskit/transpiler/passmanager.py:455: error: Argument 1 of "append" is incompatible with supertype "PassManager"; supertype defines the argument type as "Union[BasePass, List[TBasePass]]"  [override]
qiskit/transpiler/passmanager.py:455: note: This violates the Liskov substitution principle
qiskit/transpiler/passmanager.py:455: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
qiskit/transpiler/passmanager.py:463: error: Argument 2 of "replace" is incompatible with supertype "PassManager"; supertype defines the argument type as "Union[BasePass, List[TBasePass]]"  [override]
qiskit/transpiler/passmanager.py:463: note: This violates the Liskov substitution principle
qiskit/transpiler/passmanager.py:463: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
qiskit/transpiler/preset_passmanagers/level1.py:208: error: Argument 1 to "append" of "PassManager" has incompatible type "object"; expected "Union[BasePass, List[<nothing>]]"  [arg-type]
qiskit/transpiler/preset_passmanagers/level1.py:250: error: Unsupported operand types for + ("List[TransformationPass]" and "List[AnalysisPass]")  [operator]
qiskit/transpiler/preset_passmanagers/level2.py:193: error: Argument 1 to "append" of "PassManager" has incompatible type "object"; expected "Union[BasePass, List[<nothing>]]"  [arg-type]
qiskit/transpiler/preset_passmanagers/level2.py:233: error: Unsupported operand types for + ("List[TransformationPass]" and "List[AnalysisPass]")  [operator]
qiskit/transpiler/preset_passmanagers/level3.py:178: error: Type variable "qiskit.transpiler.basepasses.TBasePass" is unbound  [valid-type]
qiskit/transpiler/preset_passmanagers/level3.py:178: note: (Hint: Use "Generic[TBasePass]" or "Protocol[TBasePass]" base class to bind "TBasePass" inside a class)
qiskit/transpiler/preset_passmanagers/level3.py:178: note: (Hint: Use "TBasePass" in function signature to bind "TBasePass" inside a function)
qiskit/transpiler/preset_passmanagers/level3.py:179: error: Type variable "qiskit.transpiler.basepasses.TBasePass" is unbound  [valid-type]
qiskit/transpiler/preset_passmanagers/level3.py:179: note: (Hint: Use "Generic[TBasePass]" or "Protocol[TBasePass]" base class to bind "TBasePass" inside a class)
qiskit/transpiler/preset_passmanagers/level3.py:179: note: (Hint: Use "TBasePass" in function signature to bind "TBasePass" inside a function)
qiskit/transpiler/preset_passmanagers/level3.py:214: error: Argument 1 to "append" of "PassManager" has incompatible type "object"; expected "Union[BasePass, List[<nothing>]]"  [arg-type]
qiskit/transpiler/synthesis/aqc/aqc.py:99: error: Argument "fun" to "minimize" of "Optimizer" has incompatible type "Callable[[ndarray[Any, Any]], float]"; expected "Callable[[Union[float, ndarray[Any, Any]]], float]"  [arg-type]
qiskit/transpiler/synthesis/aqc/aqc.py:101: error: Argument "jac" to "minimize" of "Optimizer" has incompatible type "Callable[[ndarray[Any, Any]], ndarray[Any, Any]]"; expected "Optional[Callable[[Union[float, ndarray[Any, Any]]], Union[float, ndarray[Any, Any]]]]"  [arg-type]
qiskit/transpiler/synthesis/aqc/aqc.py:104: error: Argument 1 to "build" of "ApproximateCircuit" has incompatible type "Union[float, ndarray[Any, Any], Any]"; expected "ndarray[Any, Any]"  [arg-type]
qiskit/transpiler/synthesis/aqc/cnot_unit_objective.py:79: error: Return type "SupportsFloat" of "objective" incompatible with return type "float" in supertype "ApproximatingObjective"  [override]
qiskit/transpiler/target.py:955: error: Incompatible types in assignment (expression has type "List[Dict[str, Any]]", target has type "None")  [assignment]
qiskit/transpiler/target.py:959: error: Incompatible types in assignment (expression has type "List[Dict[str, Any]]", target has type "Sequence[str]")  [assignment]

I'll take this one

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

70 of 105 (66.67%)  changed or added relevant lines in 22 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.006%) to 84.04%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/transpiler/preset_passmanagers/level0.py
2
3
66.67%

qiskit/transpiler/preset_passmanagers/level1.py
2
3
66.67%

qiskit/transpiler/preset_passmanagers/level2.py
2
3
66.67%

qiskit/transpiler/preset_passmanagers/level3.py
5
6
83.33%

qiskit/transpiler/passes/optimization/_gate_extension.py
0
31
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.006%

Covered Lines:
56102

Relevant Lines:
66756

💛  - Coveralls

@1ucian0 I've updated on current master

Thanks for the patience! LGTM!


Update indicator in Data control.yaml

Add "simply and at no cost" to "Users can obtain a copy of their information" per @ferdeline suggestion

"Unfortunately, some companies try to dissuade the filing of data subject access requests by charging extreme fees or making the process as difficult as possible. PayPal, for instance, until recently only allowed data subject access requests to be filed by mail, it had to be accompanied by a notarised / certified copy of your photo ID, and you could only pay the fee by money order. (Under the GDPR, it is not permitted to charge a fee for a data subject access request, so PayPal has now stopped this practice in Europe but it persists in other countries where they operate.)" @ferdeline

@cody-f @benrito @stephtngu-CR approve


Custom Dynamic Prompt with PtPython

Hello Jonathan,
Would it be possible to have a feature where an embedded PtPython instance can actively "listen" to a variable from where the instance was created, and then alter the prompt's output based on that variables changing values? I have an instance of a class in the "if name == 'main''" section of the module when it is being run in interpreted mode, and the user can alter some of its attributes by typing in certain commands or functions. I would like to dynamically change the prompt to display what the current value of those instance attributes are. The attributes whose values have to be displayed in the prompt are known in advance. Please let me know if this is possible with the current PtPython.
Thank you,
Robert Valencia

This should be possible, with a small change. I'll put it on the to-do list.

Could you have a look at the following pull request and have try?
https://github.com/jonathanslenders/ptpython/pull/67

Hi Jonathan,
My apologies for the late reply. I tried it out and it works! Thank you so much :)
I would also like to ask about your rules on altering copies of your PtPython package. I would like to alter my copy to remove the 'In[#]' part of the prompt (which is part of the layout.py module), and I am just wondering if this is okay for personal/business use.
Thanks again.

Hi @valencra,
Maybe I should make it more flexible that the In[#] part can be overriden as well.
In any case, feel free to fork it, play around with it as much as you want. That's ok, even for business use. (But better of course is that this repository has all the flexibility you need. Maintaining a fork and keeping it up to date takes some effort.)
Jonathan

Reminder: In[#] part can already be overriden in ptipython via the ipython setting c.PromptManager.in_template.

@jonathanslenders Thank you for the permission, Jonathan! I have been looking for a package like this for quite some time now, and this is the only one that meets all of my needs, so thank you for sharing your work.
@ryneeverett That is true. Although, for now, I have altered my copy of PtPython.

@ryneeverett: That's true, but for now I'm still ignored that, because the IPython template is not yet compatible. (The way IPython handles colors needs to be improved.)
@valencra: I made a second pull request. It's an alternative implementation, and probably I'm going for that one. Please have a look:
https://github.com/jonathanslenders/ptpython/pull/68

@jonathanslenders: I tried it out and it's great! Thanks again. As another suggestion, maybe in the future,  an option to change the colour scheme would also be nice.

Changing the colorscheme is already possible.
Have a look at this example configuration file: https://github.com/jonathanslenders/ptpython/blob/797e61ee54bd82730d246f660e445e4730a0041a/examples/ptpython_config/config.py#L81
The configure() function that you see there is the same as the following configure function:
https://github.com/jonathanslenders/ptpython/blob/797e61ee54bd82730d246f660e445e4730a0041a/examples/python-embed-with-custom-prompt.py#L12
Cheers.

Oh wow what was I thinking I did not realize that. I originally altered the hex codes in the style module, but now that I know this, I will change it today. Thanks again @jonathanslenders !

I can close this issue, right?

Yes :)


Delete unnecessary spaces

When copying from the web page, there is an unnecessary space after the code.

@changeworld @tomarchermsft - We're in the process of pulling these commits to the private repo, so we can verify the content on staging. We'll post a new PR # shortly and then close this PR.

@changeworld @TomArcherMsft - The commits in this PR were moved to the private repo (PR 65171) for validation and staging. We'll close this PR now.


fix: DNS-1035 label

Fixing:
Reading genesis validators root
There was an error executing Starlark code
An error occurred executing instruction (number 20) at github.com/ethpandaops/ethereum-package/src/prelaunch_data_generator/el_cl_genesis/el_cl_genesis_generator.star[65:42]:
  run_sh(name="read_genesis_validators_root", run="cat /data/genesis_validators_root.txt", files={"/data": "genesis_validators_root"}, wait=None, description="Reading genesis validators root")
  Caused by: error occurred while creating a run_sh task with image: badouralix/curl-jq
  Caused by: Failed registering service with name: 'read_genesis_validators_root'
  Caused by: Error registering service 'read_genesis_validators_root'
  Caused by: An error occurred getting attributes for the Kubernetes service for user service 'read_genesis_validators_root'
  Caused by: Failed to get name for user service service.
  Caused by: An error occurred creating Kubernetes object name from string 'read_genesis_validators_root'
  Caused by: Object name string 'read_genesis_validators_root' doesn't pass validation of being a Kubernetes object name
  Caused by: Expected object name string 'read_genesis_validators_root' to be a valid DNS_LABEL, instead it failed validation:
  a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name',  or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')

Error encountered running Starlark code.

Only happens when you run k8s backend.

LGTM; fixes the genesis issue. thanks for the quick fix!


cargo feature confusion in workspaces

Problem
here is a minimal repro case: https://github.com/dvc94ch/cargo-bug
fails to build when in an empty workspace but builds when not in a workspace
Steps
[workspace]
members = ["a"]

[package]
name = "a"
version = "0.1.0"
edition = "2021"

[target.'cfg(not(target_family = "wasm"))'.dependencies]
surf = { version = "2.3.2", default-features = false, features = ["h1-client-rustls"] }

[target.'cfg(target_family = "wasm")'.dependencies]
surf = { version = "2.3.2", default-features = false, features = ["wasm-client"] }

Possible Solution(s)
No response
Notes
No response
Version
cargo version --verbose
cargo 1.65.0 (4bc8f24d3 2022-10-20)
release: 1.65.0
commit-hash: 4bc8f24d3e899462e43621aab981f6383a370365
commit-date: 2022-10-20
host: x86_64-unknown-linux-gnu
libgit2: 1.5.0 (sys:0.15.0 vendored)
libcurl: 7.83.1-DEV (sys:0.4.55+curl-7.83.1 vendored ssl:OpenSSL/1.1.1q)
os: Arch Linux [64-bit]

Could you fill out more details, for example

Steps for seeing what you mean by "empty workspace" and "non empty workspace"
Error output

updated the issue with two Cargo.toml's that cause the issue. the error is that it does not fail to build when the root Cargo.toml is removed, but simply adding the crate to a workspace, even if it's the only crate in the workspace, makes cargo unable to build the crate.

Yes, your steps reproduce the issue.
The error is a generic build error:
cargo check --manifest-path a/Cargo.toml
    Checking surf v2.3.2
error[E0432]: unresolved import `http_client::wasm`
  --> /home/dvc/.cargo/registry/src/github.com-1ecc6299db9ec823/surf-2.3.2/src/client.rs:15:26
   |
15 |         use http_client::wasm::WasmClient as DefaultClient;
   |                          ^^^^ could not find `wasm` in `http_client`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `surf` due to previous error

Likely, the difference between workspace or not is in which resolver is being used.
When you set edition = "2021", you are opting in to resolver v2.
The resolver is determined at the workspace level but defaults to the package's edition when it is present in the root crate.  For a virtual workspace (no package in it), we are stuck defaulting to workspace.resolver = "1" to avoid breaking compatibility.  Adding workspace.resolver = "2" to the workspace should make it behave like the non-workspace case.
Work has started on trying to steer people towards this in documentation (#10625) and providing warnings (#10910)

ah this does fix the problem. the mentioned PR's would have indeed prevented the issue. thanks


Tilemaps are not centered

Version tested
Latest commit, 0.9.0
Problem
Tiles appear to be half a tile too far left and down.

Repro
For dramatic effect, modify basic.rs with
WindowDescriptor {
    width: 540.0,
    height: 540.0,
    /* ... */
}

Or just resize the window at runtime.
cargo run --example basic

Just ran into this after upgrading to 0.9 release it looks like


feat: support initial-response in RPC based event streams

Issue #
#1163
Description of changes
awaitInitialResponse() and retrieveInitialResponse() are used on in combination to allow code-generated service clients to get and populate initial-response fields. Together they wait for the first message to be processed and then return the value of initialResponse or nil if it is not set.
Companion PR: #597
Known Risk: We cannot currently this feature in production (integration test) as there is no known service which supports initial-response over RPC protocols.
New/existing dependencies impact assessment, if applicable

Conventional Commits

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/test

/test

/test

/test

/test


Image error

Bug Report 🐛
I was going through the website and found this bug in footer of the website that the image is not displaying properly on the website.
Possible Solution
The image should be removed or it should be displayed as icon
Desktop
Windows 11

Could you assign it to me, I try to solve it.


Add automountServiceAccountToken

Add automount token

Hi @dangarthwaite ! Sorry for taking it so long! chart versions are only changed when we release the changes. Can you please revert the Chart.yaml changes?


Repair Error With refill on Dev branch

Thanks for the pull request. However, this information is completely irrelevant on refills crates as their projectile and propellant mass is arbitrary. Fixed on 0017518, this information is now omitted on crates with refill ammo.


uv add should use ^ instead of >= when adding dependencies to pyproject.toml

To add / remove dependencies i use the uv add and uv remove commands and i prefer not to edit pyproject.toml manually.
When i do something like uv add requests i see the following addition in pyproject.toml
dependencies = [
    "requests>=2.32.3"
]

The >= looks super scary as it semantically means my project will not break even if requests releases a major version. Yes, i know there is a uv.lock file to ensure reproducible builds but i prefer the following when i do uv add requests
dependencies = [
    "requests>=2.32.3,<3"
]

I believe poetry on several other semver tools use something like ^2.32.3 which is basically the equivalent of >=2.32.3,<3

Loosely a duplicate of https://github.com/astral-sh/uv/issues/6783
There's a very strong argument for not including upper bounds when publishing libraries. I think in applications, an upper bound can be nice. There is further discussion linked in the referenced issue.

There's a very strong argument for not including upper bounds when publishing libraries.

@zanieb Can you point me to this? I am unable to find it

https://iscinumpy.dev/post/bound-version-constraints/

And more, at https://github.com/zanieb/poetry-relax?tab=readme-ov-file#references


#416 Check licenses in PR Builder

Issue
https://github.com/SymphonyPlatformSolutions/symphony-api-client-java/issues/416
Description
A Gradle plugin has been added in order to validate licenses during PR Builder execution.
By default, all kind of licenses are excluded by the plugin. We had to define allowed licences in file .circleci/allowed-licenses.json:
{
    "allowedLicenses": [
        {
            "moduleLicense": ".*Apache.*2.0",
            "moduleName": ".*"
        },
        {
            "moduleLicense": "Bouncy Castle Licence",
            "moduleName": ".*"
        },
        {
            "moduleLicense": "EPL 2.0",
            "moduleName": ".*"
        },
        {
            "moduleLicense": "CC0",
            "moduleName": ".*"
        },
        {
            "moduleLicense": "Eclipse Public License.*",
            "moduleName": ".*"
        },
        {
            "moduleLicense": "MIT License",
            "moduleName": ".*"
        },
        {
            "moduleLicense": "GNU.*General Public License.*",
            "moduleName": ".*"
        },
        {
            "moduleLicense": "GPL2 w/ CPE",
            "moduleName": ".*"
        },
        {
            "moduleLicense": "Prior BSD License",
            "moduleName": ".*"
        },
        {
            "moduleName": "org.springframework.boot:spring-boot-dependencies"
        }
    ]
}

Isn't it a duplicate of what Snyk does?

Isn't it a duplicate of what Snyk does?

@symphony-youri Isn't it a duplicate of what Snyk does?

I'd say that we have way more control over the licenses we want to allow or not with this Maven plugin. It could also be because we never configured Snyk to reject some particular licenses.

@symphony-youri Isn't it a duplicate of what Snyk does?

I'd say that we have way more control over the licenses we want to allow or not with this Maven plugin. It could also be because we never configured Snyk to reject some particular licenses.

@maoo you can find the Dependency License Report here

@maoo you can find the Dependency License Report here

This is perfect @symphony-thibault , I'll use the list you shared above to run my checks. Thanks for the quick response!

This is perfect @symphony-thibault , I'll use the list you shared above to run my checks. Thanks for the quick response!


Make TextToService outofprocess

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: varumugam123:x: ramasatYou have signed the CLA already but the status is still pending? Let us recheck it.


Create an endpoint for accepting reports on images

We need an endpoint for accepting reports from users about images that they perceive as being inappropriate for search results. The report will go to a database table called nsfw_reports, where we will be able to make a judgement call on what the next steps with the image are (either no action, hiding behind an opt-in NSFW checkbox, or deleting entirely).
Example request:
POST /v1/images/{uuid}/report
{
    identifier = 694d7022-69a6-40d6-9198-6251d48a7eb1,
    reason = 'adult'
}

Users can also pick "other" and provide a description of what the problem with the image is.
POST /v1/images/{uuid}/report
{
    identifier = 694d7022-69a6-40d6-9198-6251d48a7eb1,
    reason = 'other',
    description = 'reasons why this image upsets me'
}

This should then result in the creation of a database entry in nsfw_reports with a similar schema.
reason can be any one of the following: "adult", "other", or "dmca"
description is a free-form string of up to 500 characters (minimum 20) where the reporter can give us more details. It should be required if a user clicks "other", but ignored if a user picks "adult" or "dmca".

@aldenstpage can I work on this?


error connecting to voice server

When trying to join the room "React.js and Kubernetes", this error pops up:
error connecting to voice server | Cannot read property 'recvTransport' of undefined
Mind you, this room had 80+ listeners/speakers when this error started to occur, but I am still able to listen to other rooms with lower number of listeners/speakers.

Welp, I wasn't fast enough.
Duplicate of #3


Move Llama-2 to Hugging Face

Llama 2 works on Together now. Closing this. We should still eventually support Llama 2 on Hugging Face additionally, though.


MyPet variable support

Hellow guys i really like to have an scoreboardstats with mypet variable so that they will not need to see the information about there pet cause scoreboard is here!

[Enhancement]

What variables do you want?

The my Pet level variable pls add it :smile:


slickGoTo() documentation error

Documentation here: http://kenwheeler.github.io/slick/
slickGoTo()
Arguments: int : slide number, boolean: should animate
Bolded part needs to be changed to should not animate or don't animate

This was never added or is no longer on the documentation site (http://kenwheeler.github.io/slick/)
It's still:

slickGoTo
int : slide number, boolean: should animate
Navigates to a slide by index


restic init password interaction fail on MSYS2 Windows bash

I'm a MSYS2 respectively Cygwin user. I've tried restic init in a MSYS2 bash. It fail with error:
v% restic init --repo backup
enter password for new backend: unable to read password: Das Handle ist ungültig.
v% restic init --repo backup
enter password for new backend: unable to read password: Das Handle ist ungültig.

v% echo $0
/usr/bin/bash

The same at a dos console works.
H:\>restic init --repo backup
enter password for new backend:
enter password again:
created restic backend xxxxx backup

This is an interesting bug, the password is just read from stdin, although restic tries to configure the terminal and disable echo (so that the password isn't shown).

Hi Alex (also from Schland ;-),
I believe the terminal modification cause the issue. Should I try something?
v% echo $TERM
xterm-256color

The MSYS2 terminal is a mintty 2.0.3.

Hm, interesting. It really seems to be caused by the terminal/ssh library, there is different code executed for windows and linux here: https://github.com/restic/restic/tree/master/Godeps/_workspace/src/golang.org/x/crypto/ssh/terminal
I don't  think the library detects xterm running on windows and uses the linux code.

Okay, I can modify the code and use the linux code of terminal/ssh and run some tests.

It's a general Go issue. You can copy util_linux.go to util_windows.go and add 'windows' to build.  I think it's a general go problem. We've to file a new Golang issue and describe the scenario. I hope Cygwin will be a new Golang target.

It's not a "general Go problem" in my opinion. I think the use case "unix terminal on windows" just isn't supported yet. Thanks for raising the issue, though!

You are right, "general" is the wrong word. Yes, the case isn't supported yet. But what's the best solution? Adding syscall.Termios for target Windows? Adding a complete new target Cygwin?

I'm not sure how to approach this. Could you maybe use strace/ltrace to have a look what e.g. ssh does in the DOS box versus in the terminal?

No that's not possible. Strace is MSYS2/Cygwin based on Windows. You can trace cmd's which are compiled with this virtual Posix enviroment. The Windows Go tools chain use the native Windows interface, no Posix wrapper.
v% strace restic -r /h/backup snapshots
enter password for repository: unable to read password: Das Handle ist ungültig.
--- Process 8672 created
--- Process 8672 loaded C:\Windows\System32\ntdll.dll at<PHONE_NUMBER>100000
--- Process 8672 loaded C:\Windows\System32\msctf.dll at 000007FEFE440000
--- Process 8672 thread 3620 created
--- Process 8672 loaded C:\Windows\System32\cryptsp.dll at 000007FEFC970000
--- Process 8672 loaded C:\Windows\System32\rsaenh.dll at 000007FEFC450000
--- Process 8672 loaded C:\Windows\System32\cryptbase.dll at 000007FEFCD80000
--- Process 8672 thread 6288 created
--- Process 8672 thread 5516 created
--- Process 8672 thread 3960 created
--- Process 8672 exited with status 0x2

Mintty termina xterm is termios based. It use the same interface like Linux. The Dos box on the other hand use the native Windows console interface.
The type syscall.Termios is not defined for Windows.
To support termios based

I've found a work around. For me it's acceptable. In general MSYS2 starts a shell via msys2_shell.bat. The Bat script starts a Mintty (xterm based) terminal and execute bash. Replacing the Mintty terminal with a Dos Box solves the password issue.
replace:
    start %WD%mintty -i /msys2.ico /usr/bin/bash --login %*

with:
    %WD%bash --login -i %*

I think you'd place a note for all MSYS2 and Cygwin Mintty users.

Hm, I don't have a good idea where to place the note, do you have a proposal? Otherwise we can leave this issue open until the problem is fixed in the library, so users can find it (and the workaround).

My proposal is the leave a note at the "Initialize a repository" section. For instance
At the moment Restic supports only Dos Box based terminals session like cmd.exe or Standard cygwin.bat. Terminals like Mintty.exe (xterm based), which is the default MSYS2 terminal, cannot by handled at the moment.

I've found a fine solution which works on Mintty (xterm) based terminal sessions. That's the default on MSYS2. There is a tool called winpty. Winpty providing an interface similar to a Unix pty-master for communicating with Windows console programs.
# install winpty on MSYS2
v% pacman -S winpty

v% restic -r backup snapshots
enter password for repository: unable to read password: Das Handle ist ungültig.

v% winpty restic -r backup snapshots
enter password for repository:
ID        Date                 Source      Directory
----------------------------------------------------------------------
088cc522  2015-11-02 10:32:41  XXXXXXXX  e:\home\user

Ok, so we could add that to the manual section about initialization, right? May I ask that you open a PR at https://github.com/restic/restic.github.io? That'd be awesome!

Since you didn't answer I assume that you didn't have the time to do this. I'm closing this issue for now, if you still want to add a section to the manual, please create a PR or add a comment here. Thanks!


-contentSize 0 --> Out of memory

Goal
To make the output image size the same as as the content image size.
Attempt
th test.lua -content mushka_cat0159.jpg -style dark_matter_bw.png -contentSize 0
Error
Out of memory

THCudaCheck FAIL file=/root/torch/extra/cutorch/lib/THC/generic/THCStorage.cu line=66 error=2 : out of memory
/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/nn/Container.lua:67:
In 29 module of nn.Sequential:
/root/torch/install/share/lua/5.1/nn/THNN.lua:110: cuda runtime error (2) : out of memory at /root/torch/extra/cutorch/lib/THC/generic/THCStorage.cu:66

[stack traceback omitted]
Setup
Content image
1280x720
25,840 bytes
Download
Style image
512x512
469,165 bytes
Download
GPU
Titan X Pascal
Other attempts
th test.lua -content mushka_cat0159.jpg -style dark_matter_bw.png
Result: output image size: 912x512 (i.e. different than the content image size, 1280x720)

th test.lua -content mushka_cat0159.jpg -style dark_matter_bw.png -contentSize 720
Result: out of memory

If anyone tried to reproduce this, please tell me what happened. If you could reproduce it, then we can see what's going on in the code. If you couldn't reproduce it, then I'll know to focus on my system's idiosyncrasies.
Content image
Style image
Copy and paste the following for an easier test, after downloading the images:
th test.lua -content 425c7aec-13fd-11e7-979e-cc8868c6ad96.jpg -style 4260dd94-13fd-11e7-883f-8edc52b992dc.png -contentSize 0

Hi @MatthewKleinsmith, Yes, I tried out your images and was able to reproduce the error.
GPU: Titan X Maxwell
On debugging a bit, I found out that Line118 of test.lua causes the error:
   return decoder:forward(targetFeature)
Next, I tried resizing the content image and -contentSize 0 works in some cases and in other cases it throws a similar error. On an image with greater number of pixels, you get this error and on an image with lesser pixels, you don't get this error.
On thinking a bit, this seems to perfectly make sense. It is just as it says, your GPU ran out of memory. Your content image is too big for the decoder CNN.
If you read the paper Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization  it says that the authors used first few layers of VGG19 as encoder and its inverse for decoder. Hence, the decoder/encoder is a fully convolutional network and thus can adapt itself to input of any arbitrary size. The original paper on FCN has more details regarding this. So, when your image becomes too big like in your case, torch is unable to allocate memory for your network and it throws an error.

Use -gpu -1 option. I was able to use images up to 1600px on my server with 64GB memory (and it takes about 3min to style image)

@armoreal you are using CPU right? I think on a 12GB GPU (Titan X), max of 500,000 pixels can be processed.

Yes, i use GPU for resolution lower than 512x512px and CPU for resolution up to 1600x1600px.

@armoreal 👍
Btw, the use of an AdaIN layer made it really fast. Even videos can be made in minutes with this.
I made a small script to add video support using ffmpeg. Try it out this repo here if you are interested.
I have posted some results in this video.

Thanks, I'll look at it later.
AdaIN is really great in terms of speed and overall quallity. But need to tune decoder for face processing. Right now small human face becomes ugly So I'd like to train decoder with different settings (content/style layers weights).

@gsssrao
Hi,can you show us more result from different content (no just cartoon video)，I dont know why my computer can not install this implement successful ,I am trying again.

@dovanchan In this video I have results with various videos not just cartoon. The only additional dependency to run the video stylization is ffmpeg . If you have installed this, you should not experience any other problems if AdaIN style for images was working.


Getting compiler errors about a missing __COLD attribute? from zig headers

I have a project that depends on netcdf-src 0.4.0. Trying to build that in the official rust-lang docker container with cargo-zigbuild 0.19.1 and zig 0.13.0 installed fails with the following error messages:
/opt/zig/lib/libc/include/generic-glibc/stdio.h:878:38: error: expected function body after function declarator
    878 | extern void perror (const char *__s) __COLD;
        |                                      ^
  In file included from /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/netcdf-src-0.4.0/source/libdispatch/dcopy.c:11:
  In file included from /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/netcdf-src-0.4.0/source/include/ncdispatch.h:17:
  /opt/zig/lib/libc/include/generic-glibc/stdio.h:878:38: error: expected function body after function declarator
    878 | extern void perror (const char *__s) __COLD;
        |                                      ^
  1 error generated.
  gmake[2]: *** [libsrc/CMakeFiles/netcdf3.dir/build.make:88: libsrc/CMakeFiles/netcdf3.dir/v1hpg.c.o] Error 1
  gmake[2]: *** Waiting for unfinished jobs....
  1 error generated.
// repeated many times

I can workaround that error by just adding CFLAGS="-D__COLD=\"\"" to the compilation environment. I report this here as this either seems to be  an issue in cargo-zigbuild (not setting that option) or in zig itself (__COLD) shouldn't be there.
Interestingly it works outside of the docker container with the same rust, zig, zig-build and netcdf-src version…

https://github.com/bminor/glibc/commit/0ab341b247fc1c2cd101a87c78f38d2da00c335c
It should have been defined by glibc itself, can you try to inspect the code of the same file in /opt/zig/lib/libc/include/?

Thanks for the response.
I checked it in the rust docker container and it seem like:

/opt/zig/lib/libc/include/generic-glibc/sys/cdefs.h does contain the relevant defines
/usr/include/x86_64-linux-gnu/sys/cdefs.h does not contain the relevant defines

Also ldd reports that the system uses glibc 2.36
It seems like that for some reason the system header from /usr is used and not the bundled header from zig
For reference that's with the rust:1.80.1 docker image (+ a view custom layers to install zig + cargo-zigbuild)

Maybe it's caused by cmake? There is support for cmake in cargo-zigbuild but it's not really tested thoroughly.
https://github.com/rust-cross/cargo-zigbuild/blob/d420792226cef24e8a718dbef87fec14df77f3d2/src/zig.rs#L475-L486

That might be the case, I'm not sure about that.
As a general note: The project I'm building depends on quite a few complex cmake projects (netcdf, hdf5, gdal, proj, just to name some). It works fine as soon as I specify that additional define manually. I believe that this means the cmake integration should be mostly fine.


makeself: 2.2.0 -> 2.3.1

Motivation for this change
Version 2.3 has new feature I need.
Things done

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

[x] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@grahamcofborg makeself

(just trying out the new bot!)


Add requirements and installation step in setup

This makes the installation a bit simpler

The matplotlib should be set to version 1.5.3 unless these issues have been addressed:
https://github.com/tyiannak/pyAudioAnalysis/issues/151
https://github.com/tyiannak/pyAudioAnalysis/issues/190


[BUG] Language change doesn't allow LB to reopen anymore

Describe the bug
Whenever changing the language of League Broadcast and then restarting (Example is with Spanish Language), makes the app to crash.
To Reproduce
Steps to reproduce the behavior:

Fresh install on LB
Go to Settings and change language to Spanish
Restart

Expected behavior
A fast restart to make items display in spanish.
Material
Logs:
--- LeagueBroadcast Crash Report ---
Everything went according to plan. Seriously, this is the best case scenario.

Time: 2023.10.06-10:18
Description: Value cannot be null. (Parameter 'source')

Stacktrace:
   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
   at LeagueBroadcast.Common.Data.Provider.DataDragon.Init() in F:\Repos\LeagueOfLegends\LeagueBroadcast2\LeagueBroadcast\Common\Data\Provider\DataDragon.cs:line 207
   at LeagueBroadcast.Common.Data.Provider.DataDragon.<>c.<<-ctor>b__21_0>d.MoveNext() in F:\Repos\LeagueOfLegends\LeagueBroadcast2\LeagueBroadcast\Common\Data\Provider\DataDragon.cs:line 125
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
   at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi)
   at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action`1 callback, TState& state)
   at System.Threading.QueueUserWorkItemCallback.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
   at System.Threading.Thread.StartCallback()

-- System Details --
League Broadcast Version: <IP_ADDRESS>
OS: Win 10 2009

Additional context
Changing the language back to en_US in the component.json makes the app work again and open normally.

only works in English

Agreed. Why even have a language selector if it only works the default one?

Same issue here. How can I fix that? Thanks!


Revert reworked Doomfist to OW1

Created by: MaxwellJung

Created by: MaxwellJung
https://workshop.codes/ZXJB4
Someone made dps doom in ow2 using workshop. I'm gonna see if we can just use their code. @snappycreeper
edit: I reviewed their entire codebase, and there's some stuff that I think I can improve on. I got permission from author to use their code as reference, but I think I can write their code better from scratch.

mentioned in merge request ow1_emulator_backup!68

mentioned in merge request ow1_emulator_backup!173

moved from ow1_emulator_backup#725

mentioned in issue ow1_emulator_backup#593

Created by: MaxwellJung
https://youtu.be/Cyw70jYlEU4
Video footage of old doomfist abilities for rerference


Increase max temp

The proposed changes were made and committed in this branch. This pull request is to merge the changes into the main branch.
@gregorychen3 please review

Merge is done and branch deleted. Bring on the steam power!

Resolves https://github.com/gregorychen3/espresso-controller/issues/1


Pr mavsdk install

Brought in here
https://github.com/ARK-Electronics/ark_companion_scripts/pull/22/commits/51bae37163dac4e511b5fc04ee7cead3045d8674


get pr_checks_backend.yml working

Addresses #638 . Adds a test to confirm that the primary docker container builds correctly when any files are changed in data. Probably would be good to also add checks for the postgres container.

should now also address #640

I tried running this workflow on a test branch and got this error on the Black formatter check step:

I'm pretty new to git-hub workflows but I think you might need to cd into the directory with the docker-compose file before running the docker-compose command.

Hi @nlebovits
I tried running this workflow on a test branch and got this error on the Black formatter check step:

@Michael-Dratch thanks for catching this!


SQL Lab queries can't be stopped

When a SQL query is running is SQL Lab, it can't be stopped.
How to reproduce the bug

Go to SQL Lab
Write a query and run it
Click on STOP
(Nothing happens)

Expected results
The query should be stopped
Actual results
The query is still running
Screenshots
(Imagine a query running in the SQL Lab...)
Environment
(please complete the following information):

browser type and version: Google Chrome Version 94.0.4606.71 (Oficial build) (x86_64)
superset version: 1.3.0
python version: 3.7.9
node.js version: doesn't apply, I run on Kubernetes, using gunicorn as server
source : AWS Athena
any feature flags active: /

Checklist
Make sure to follow these steps before submitting your issue - thank you!

[ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
The queries could be stopped in Superset v1.1

I have noticed this as well.
Basically, the query gets successfully stopped as far as Superset is concerned.
But, if you check recent queries in the Athena UI, the query is still running.

Was it fixed in the latest release ?

I have also observed same behavior with Athena. I was not able to stop one of my Athena queries. On clicking stop button i get error "Failed at stopping query."
Timer doesn't stop in SQL Lab

I queried Superset meta database to find out query id.

It stopped when i ran this SQL on Superset backend database.
UPDATE query SET status = 'failed' WHERE id = 97;

Cancel query has only been implemented for mysql, postgres, and snowflake. Thus the error that you're seeing on Athena. It's a fairly simple integration needed where you would run that sql statement that you ran directly above. Here's an example for Mysql if someone is interested in contributing this fix: https://github.com/preset-io/superset/blob/02032ee8a478ab9578cf6e13a7645a8b4106be58/superset/db_engine_specs/mysql.py#L240

@eschutho I ran query against Superset metadata databases's query table.
I believe we will have to run the cancel query against Athena to stop the actual query execution.
As per my understanding, Cancel query implementations for mysql, postgres, and snowflake run cancellation against respective database engines and not against Superset's metatdata database. Cancelling the Athena query is done via stop_query_execution which requires QueryExecutionId. PyAthena has a cancel method for this purpose.
We will have to store QueryExecutionId somewhere in Superset's metadata database so that it can be fetched later via get_cancel_query_id. I have raised this on pyathena github project to check if there is an easy way to QueryExecutionId.

@mdeshmu correct on all points. Ok, let's see if they have any answers for that lookup. Also I found this if it helps: https://github.com/laughingman7743/PyAthena/blob/master/pyathena/cursor.py#L65

@eschutho In case of Athena, we will have to get QueryExecutionId after running sql statements. Looking at this reply, I understand that the cursor.execute method blocks until the query execution is finished. So we will not be able to use same cursor to get QueryExecutionId until execution finishes, which doesn't help us.

Here's an example of a recent PR to add the cancel functionality to Redshift for reference: https://github.com/apache/superset/pull/16326

What i meant is, To capture QueryExecutionId, we would need a separate thread utilizing the same cursor that is used for running sql statements from SQL Lab but current location of invocation of get_cancel_query_id wouldn't give us QueryExecutionId because its invoked before execution of SQL statements.
Even if we move this after execution of SQL statements then also its of no use as cursor would be blocked until the query execution is finished and get_cancel_query_id would be called after query execution has finished.
Please correct me if I am wrong.

So this is the flow for the whole flow of running a query to stopping it. It should work with Athena as long as we build out the two required methods cancel_query and get_cancel_query_id for Athena in the db engine spec:
with closing(engine.raw_connection()) as conn:
        # get cursor
        cursor = conn.cursor()

        # fetch cancel query id from  cursor
        cancel_query_id = db_engine_spec.get_cancel_query_id(cursor, query)

       # save cursor in metadata on query model
         if cancel_query_id is not None:
            query.set_extra_json_key(cancel_query_key, cancel_query_id)
            session.commit()

       ...
       # execute statement (thread is blocked)
                result_set = execute_sql_statement(
                    statement,
                    query,
                    session,
                    cursor,
                    log_params,
                    apply_ctas,
                )

(separate thread after clicking the "STOP" button)
    @expose("/stop_query/", methods=["POST"])
    ...
    # fetch cancel_query_key from query model metadata
    cancel_query_id = query.extra.get(cancel_query_key)

    .....
    # pass the cancel_query_id to the db_engine_spec and cancel the query
            return query.database.db_engine_spec.cancel_query(
                cursor, query, cancel_query_id
            )

@eschutho In Athena, query id is not available immediately after initiation of cursor.

with closing(engine.raw_connection()) as conn:
# get cursor
cursor = conn.cursor()
    # fetch cancel query id from  cursor  **--> THIS WONT RETURN ANYTHING in case of Athena**
    cancel_query_id = db_engine_spec.get_cancel_query_id(cursor, query)

   # save cursor in metadata on query model
     if cancel_query_id is not None:
        query.set_extra_json_key(cancel_query_key, cancel_query_id)
        session.commit()

   ...
   # execute statement (thread is blocked)  --> **WE WILL NEED A PARALLEL THREAD HERE TO GET QueryExecutionId**
            result_set = execute_sql_statement(
                statement,
                query,
                session,
                cursor,
                log_params,
                apply_ctas,
            )

In pyAthena in version 1.11 we can cancel a query in cursor. Actually superset use pyAthena 1.10

@jplanckeel Superset works with latest PyAthena version. It seems you are referring to query cancellation on KeyboardInterrupt. Can you explain how it can be applied in this case?

Thanks for starting a PR @jplanckeel. We'll review or give feedback when ready.

Hey all... I know that some DBs made progress in this area, but I'm not sure about Athena. Since the PR is not moving forward, and this thread has been silent for about a year and a half, I wondered if y'all think we should keep this open, or let it go. In particular, since it's arguably a feature request as much as a bug ¯\_(ツ)_/¯

I'm not directly affected any longer, as we moved to Snowflake.
But I can confirm that this issue is still present in Superset 3.0.3.
I would definitely not call it a feature, since users expect the STOP button in SQLLab to work.
If Superset does not provide this functionality, the STOP button should at least be invisible or grayed out.

Hey folks! Any news about this issue? It's still happening here with Athena.
I'm manually updating the query status to failed as a workaround, as mentioned by @mdeshmu almost one year ago.

@ajunior if you (or anyone reading this) want to pick up the abandoned PR, you may be able to fix it. We'd appreciate the contribution!

Possible to assign me? I will have a look. @rusackas

@vyasmanmohan thanks for stepping up! I've assigned the issue to you, though I can't assign the PR. If you want me to assign that, too, you need to comment on that thread as well.

Any word on this @vyasmanmohan ? If nobody on the thread is working on this, we might close it out as stale/abandoned to maintain a more actionable backlog.


Remove unused name params

Description

Related Issues

Motivation and Context

How Has This Been Tested?

Types of Changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Refactoring (improves code quality but has no user-facing effect)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation

Readiness Checklist

[x] My code follows the code style of this project
~[ ] My change requires a change to the documentation~
~[ ] I have updated the documentation accordingly~
~[ ] I have added tests to cover my changes~
[x] All new and existing tests passed

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?


Add Style/ClassAndModuleChildren style: namespace

This adds support for a style wherein the concept of a module used as a namespace is kept separate from the definition of a
class or module itself.
I.e. making a distinction between a module to represent a software package, and a module to include behaviour.
Since the introduction of Zeitwerk in Rails, the benefits of retaining the nested style in terms of accurate constant lookup  (when using Zeitwerk) have disappeared.
This makes the compact style more appealing for the following reasons:

Less low-information-value horizontal whitespace.
Less git churn when moving files around between differing namespace depths.
Easier scanning on the eyes when looking for the main constant.

The compact style suffers slightly from the following though:

Main constant definition in a file is far over to the right in heavily namespaced files.
Change to either the namespace or the constant name results in change to the same line.

The new proposed namespace style allows for

Conceptual separation of the namespace/package concept from the class or
module definition.
File move refactors to a different namespace result in a diff that only touches
the namespace constant part of the file.
Scanning by eye for the constant name is easier.

# nested style
module Foo
  module Bar
    module Baz
      module Qux
        module Quux
          module Quuz
            module Corge
              module Grault
                module Garply
                  module Waldo
                    module Fred
                      class Plugh
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

# proposed namespace style
module Foo::Bar::Baz::Qux::Quux::Quuz::Corge::Grault::Garply::Waldo::Fred
  class Plugh
  end
end

# compact style
class Foo::Bar::Baz::Qux::Quux::Quuz::Corge::Grault::Garply::Waldo::Fred::Plugh
end

Caveats
It may be nice to support using a Class as a namespace as a configurable option. This doesn't seem straightforward using static analysis though, so the results would be quite ugly.
Example if a Class could be a namespace:
module Foo::Bar::Baz
  class Qux
    module Quux::Quuz
      class Corge
        class Grault
          module Garply::Waldo::Fred
            class Plugh
            end
          end
        end
      end
    end
  end
end

I have chosen in this implementation to just reject using Classes as namespaces.
Note this PR depends upon a fix being in place for #9886 . Which I am happy to add in separately onto that PR once I've either had feedback about that needing a fix and/or had some pointers, or once I've worked out how to do it myself.
I have put a commit which inserts the invalid excess whitespace into the expectations in 55e8ae8
If #9886 is approved and merged, I can rebase against that as this PR depends upon that fix.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

Converted back to draft as I found a couple of edge cases after running against a large project

@markburns ping :)

sorry @dvandersluis just seen this - I need to get back on this at some point. IIRC I felt that it may make more sense in the rails gem as the only approach I found that resolved some ambiguity depended upon using the path and checking against zeitwerk conventions.
Whilst probably most projects do follow those conventions it felt a little prescriptive? Not sure how you'd feel about that?
I'll see if I can put some time into it this weekend

I'm closing this PR due to no recent activity. Feel free to re-open it if you ever come back to it.


feat(#1596): Showcase examples in playground

Description
Update Playground to use example profiles, and show more appropriate example by default.
Changes

Introduce a list of curated example profiles (examples.json)
Update playground to show the examples
Remove initial profile content (replace with first loaded example)

Issue
Resolves #1595
Resolves #1596

@ColinEberhardt demonstrated here.
https://sl-slaing.github.io/datahelix/playground

generally looks good to me - a few comments on the implementation.
I also spotted that this example doesn't work.
(edit - odd, that link didn't work? the 'in set' example is broken)

I think I've addressed all of your comments.
Regarding the not-working example, I'll take a look at this in a separate PR, as there are a couple of other examples that could do with a bit of a tidy-up.

There is an issue with this PR - it ignores the hash in the URL.

The example you've linked to as not working (inSet) won't work in the playground as it requires there to be additional files available during the generation - namely vegetables.csv and reductions.csv.
I'll get this example removed from the playground, together with any others that require additional resources.

@ColinEberhardt I've made a number of changes to the playground and think this PR is ready to merge - could you take a look again please.
There is another PR to resolve an issue with the 'inSet' example.
I'll have a look to see if it is possible to reinstate some of the removed examples through other means as a follow-up task


[api-minor] Remove the CSS.supports checks for the pageColors-option in the GENERIC viewer

Given the browsers that we currently support it's probably not necessary to keep the checks for the color-values.

/botio-linux preview

Looks good!


Create image customizing tool

I imagine this as either a script you run, or even as an online service that basically uses a base image, or the image creation script idea mentioned in #6, where the idea is that you at the very least could inject an authorized_keys file for root or have a key pair or password generated and injected for less technical users. Other options for pre-configuring with more settings is possible, but should all be optional as I would want it be possible to choose not to trust such a service with credentials (thus the authorized keys variant).
On a more technical level, we might be able to pull this of by having a plain base image that we create with no spare space what so ever, and then having a second partition in the image that is writable and then mount using unionfs. This would give us an overlay over the base that is self contained. So for the default image we would ship the base partition + empty overlay, while users of this tool would basically be pre populating it with whatever they need. Other neat thing about this approach, is it allows for a "factory reset" by nuking everything in the overlay getting users back to a known base state.

https://ostree.readthedocs.io/en/latest/ or something based on it might be worth looking at.
I also suspect this bug should be merged into a single bug for whatever directions is chosen as there are a bunch of interdependent / similar bugs to this one floating around.


Combinational Loop not detected for self-connections

Type of issue: bug report

What is the current behavior?
firrtl input:

circuit loop :
  module loop :
    output y : UInt<8>

    wire w : UInt<8>
    w <= w
    y <= w

emitted verilog:
module loop( //<EMAIL_ADDRESS>  output [7:0] y //<EMAIL_ADDRESS>);
  wire [7:0] w; //<EMAIL_ADDRESS>  assign y = w; //<EMAIL_ADDRESS>  assign w = w; //<EMAIL_ADDRESS>endmodule

What is the expected behavior?
throw CombLoopException

Impact: no functional change
Development Phase: request

I never thought about this case :) Do existing Verilog consumers like synthesis or fancy linters flag this?
This is a trivial fix, I can do this today.

I'm not sure about what the tools do, but I'm trying use combinational loop detection to optimize vecs of bools and ran into this issue.

One synthesis tool just optimizes connecting a wire to itself away:
module loop(y);
  output [7:0] y;
  wire [7:0] y;
endmodule

I addressed this in #837 and added your example code as the test case, @albertchen-sifive


Investigate better ways to create component-specific classes

I'm going to reopen this can of worms and ask if anybody has ideas for a better way to handle component interpolations that lets us do SSR without the Babel plugin.

See https://github.com/styled-components/styled-components/issues/2064#issuecomment-427571787 for the background information behind this issue

There's two broad possibilities I see:

Get rid of the component-specific class. For example, instead of only adding a single class, we could maybe keep track of all active instance classes and add them all to the generated CSS:

const Parent = styled.div`
  ${Child} {
    color: blue;
  }
`

// Before this would use the component-specific class, which needs the Babel plugin to be consistent between server and client
// .Child-asdf123 { color: blue; }
// Could we get a list of all instance-specific classes instead?
// .sc-fhgurt, .sc-tueqia, .sc-lijgue { color: blue; }

Make the component-specific class consistent without relying on a build-time transform. Not sure how we could make this happen, but it would have to happen without a counter of any sort.

Are these potentially viable? Other ideas?

@mxstbr Thanks so much for opening this! I really appreciate it. I haven't read through all of @probablyup and your replies yet, but I'll do that now.
Having read through the code I now understand the core of the problem. I look forward to working on this!

you can just hash the content of the CSS that supposed to be associated
with an element and use that as the class.

Not really. We support function interpolations so the end result of the CSS
after flattening and stringification can be very different between renders
depending on props. This also isn’t a safe assumption because multiple
components can have the exact same css, but we need the resulting hash to
be unique despite that.
On Sat, Oct 6, 2018 at 10:26 PM Tyler Cloutier<EMAIL_ADDRESS>wrote:

Okay, I had a little time to think about the problem.
#1 https://github.com/styled-components/styled-components/issues/1 is
an interesting idea, but I've got a couple questions. How would it be
possible implement a component instance specific class which can be
deterministically derived from the component instance so that it's
consistent across server and client? Would that be the same issue? Is this
based off of the hash of the CSS content?
With regard to #2
https://github.com/styled-components/styled-components/issues/2, I've
got some ideas (I'm going to just summarize stuff you guys already know
just to organize my thoughts, let me know if I've got anything wrong). It
seems like there are two separate problems that StyledComponents solves.
The first is that it needs to assign to each DOM element a blob of CSS
which defines the styling of the element. It's straightforward to implement
this association using classes because you can just hash the content of the
CSS that supposed to be associated with an element and use that as the
class. This is effectively equivalent to inline styles, but you also get
de-duping for free, even across different React components which have the
same normalized CSS (@ipfs https://github.com/ipfs and @git
https://github.com/git approve haha). The mapping itself has
essentially nothing to do with React components or how you decide to
specify which component gets which blob of CSS (i.e. React is just a way to
configure the mapping). For this the content hashing can be used to get
deterministic/consistent classes on both the client and server.
The second thing it solves is that it tries to use classes to distinguish
between two DOM elements which are exactly the same (i.e. same tag, same
styles), but were generated using different React components.
The reason for this is so that users can reference specific child DOM
elements, that would otherwise have the same tag and elements, based on which
React component generated them.

}
This part is hard because it requires introspection into React itself to
see which components are generating which DOM elements. It's particularly
difficult because both of those children could be called Container
components, have the same CSS and the same tag, but defined in different
files!
StyledComponents solves this issue now by generating an ID which is unique
per React component definition. But the only way to get a unique ID per
component is to use a counter which increments as they're defined, generate
it randomly, base it off of something internal to the component which
identifies it unambiguously, or have the user specify a unique "tag" for
the component (yuck). There's nothing internal that can be used and the
others are not the same across server/client, so that's why you guys use
the file path to disambiguate between different React components. Pretty
brilliant, but it also means you have to get file paths in the browser
where there is only a bundle file, hence the Babel toolchain to the
server-side file paths into the client bundle.
One other possible solution is to just say, "If two child React elements
have the same React component displayName, tag, and CSS content, but
somehow come from different React components, then you'll just be selecting
both." Obviously, not ideal, but there can there really be any instances
where you need to do this? It's got to handle 99.99% of cases (although,
I'll bet someone found a way to rely on it haha). StyledComponents could
also just say that if you really need this specific use case then you have
to use Babel transpilation, but if you don't need it it will work out of
the box. That's not excellent either though :/. I guess it depends on how
widespread the feature usage is.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/styled-components/styled-components/issues/2069#issuecomment-427622809,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAiy1ggG2wfQN2zyNUxtU7oZbDiEzLoEks5uiXR8gaJpZM4XLV-L
.

We support function interpolations so the end result of the CSS
after flattening and stringification can be very different between renders
depending on props.

Yes, but if that's the case it should have a different class because it has CSS content. I'm trying to separate the two problems. Using classes which are just the hashed content of the CSS is is just a more efficient way of rendering inline styles, right?

This also isn’t a safe assumption because multiple
components can have the exact same css, but we need the resulting hash to
be unique despite that.

That may be true for the React component ID specifically, but like I was saying this doesn't have anything to do with associating the CSS blob to a component. Just like above, it's just a more efficient way to do inline styles.
AFAICT the unique styledComponetId solves an entirely different problem.

Also I see you're replying via email, not sure if you can see my edits. You are really fast at replies haha!

Basically the TL;DR of what I'm saying is there are two problems:

I would like this rendered CSS content to be applied to these elements
I would like to reference another React element from within my CSS content

1 is very easy to do
2 is decidedly not so easy
The solution for 1 kinda sorta solves problem 2, but not it's perfect because it's not quite specific enough

Out of the box, I'd like the library to be able to solve problem 1 no matter what without Babel and if I want to use the 2 feature, maybe it makes sense to just require it for that.

At the very least you can definitely have the library output displayNames for debugging without requiring Babel, if I'm understanding correctly.

So the OP prompt of:

if anybody has ideas for a better way to handle component interpolations that lets us do SSR without the Babel plugin

Is specifically about generating styledComponentId. The way the class hashes for styles themselves are generated works perfectly fine at runtime without babel.
The primary issue is styledComponentId has to be 100% deterministic and the same between environments. Babel provides a convenient way to accomplish this since all file systems in mainstream use do not allow multiple files to exist at the same path, thus we can hash that unique and stable information (in conjunction with a few other bits as available) to make a hash.
Due to transpilation, runtime order, and other dynamic language concerns, I'm not aware of a way to get equivalent guarantees at runtime. If the files are 100% the same, then they should create the same hash yes, but most people's SSR vs client setups do include minute differences between environments.

@probablyup I'm not sure what you mean when you talk about hashing files. Are you talking about somehow hashing JS files? Just to clarify the only hashing I have been referring to is the hashing of the normalized CSS rules that are passed to the StyledComponent type constructor.
With regard to your first point, I don't think it's possible to generate a unique styledComponentId per component for the reasons that you've brought up (or at least I haven't been able to think of a way yet either). However, I don't think that's the equivalent to the prompt you quoted. The method @mxstbr proposed for example has an id per component instance, not a unique styledComponentId, if I'm understanding correctly.

I understand that the styledComponentId is unique per component meant to refer to all instances. That's not what I'm talking about.
@mxstbr was referencing adding using per instance id's to accomplish the same effect:
/* Could we get a list of all active instance-specific classes of both components
 * and put a matrix of those in instead, completely alleviating the need for
 * component-specific classes? */

That could literally be thousands of classes for a highly used component.

That could literally be thousands of classes for a highly used component.

Yes, but it would only happen if you use the component-selector, which we don't advocate anyway, without the Babel plugin, right? In my mind, that seems like a great tradeoff:

Upside: No longer required to use the Babel plugin for SSR, TypeScript SSR is easy
Downside: When using component-selectors (an escape hatch feature that's recommended to use sparingly) and you're not using the Babel plugin you'll get bigger CSS output

Again, that downside would only apply to people who use an escape hatch feature without using the Babel plugin. We could even warn in dev mode if they do that and tell them to use the Babel plugin.
Right? What am I missing?

Yeah that seems reasonable to me. Honestly, anything that get's it further towards working right out of the box (with debug info) is a great help to people trying to use the library. Otherwise users have to change their build toolchain for reasons they don't understand to fix an issue with a degenerate edge case.
I've thought about this from a few angles and I agree it doesn't seem possible to get the interpolation feature without doing one of the folowing:

Relaxing the perfect specificity constraint (i.e. if you have a pair of parent and child components in different files which have the exact same names, css, and are being used for interpolation and you use both children in one of the parent instances, then it will inadvertently style both children with the inner CSS instead of just one -- a presumably very very rare use case*)
Doing something with component instance classes like @mxstbr is saying
Just making the interpolation feature require Babel, but allowing users to disable this feature if they don't want to change their build chain

*Note that for number 1 if you just have identical components with identical CSS in two different files then you only need one CSS rule because that CSS rule should apply to both components anyway. In fact you really have to work at it to come up with a degenerate case:
// From child-file1.js
const Child = styled.div.withClass("child-1")`
`;

// Somehow imported child from another file and renamed to be Child2,
// but used as Child when creating react components (e.g. <Child />)
// From child-file2.js
const Child2 = styled.div.withClass("child-2")`
`;

const Parent = styled.div.withClass`
    width: 100%;
    ${Child} {
        color: blue;
    }
    ${Child2} {
        color: red;
    }
`

// file1.js
// Child here is imported from child-file1.js
const GrandParent = () => (
    <Parent>
        <Child />
        {props.children}
    <Parent>
);

// file2.js
// Child here is imported from child-file2.js
<GrandParent>
    <Child />
</GrandParent>

For number 1 or number 3 you could even include an API to allow users to disambiguate manually. For example:
const Child = styled.div.withClass("child-1")`

`;

const Child2 = styled.div.withClass("child-2")`
`;

const Parent = styled.div.withClass`
    width: 100%;
    .child-1 {
        color: blue;
    }
    .child-2 {
        color: red;
    }
`

I can't see any other possibilities, but I think that any one of the three could be an acceptable solution, except with the caveat that number 1 is not perfectly backwards compatible in the degenerate case so I could see why you might want to avoid that.

@mxstbr The number 1 in the previous answer assumes that you can get access to the react displayName when generating the classNames for the react elements and for the CSS sheet. Is that possible, or do you need to use the component variable name in class?
e.g.
// this name
const Child = styled.div``;
// vs this name (the one that goes into the jsx element and becomes the displayName for that element)
<Child />

@mxstbr In general I'm a fan of your proposed trade off though. I'm still not quite sure how you're going to generate unique but deterministically derived classnames per element though. Are you going to use some React Id to create the className which is the same on server and client?

Closing due to age, inactivity, missing reproduction, or lack of details.


Source maps are not available for referenced class library projects

When project A references project B and project A has source maps enabled, no source maps will be available for the referenced project B. Related to #3034
Steps To Reproduce

Clone the Cable repo
Build the whole solution
Open solution-root\Cable.Bridge.Tests\Bridge\index.html to see the output of the Cable.Bridge.Tests project that references Cable.Bridge
Open browser console, sources/debug tab
See only source files of Cable.Bridge.Tests and no source files for Cable.Bridge

Expected Result
Source files are generated for the referenced project (Cable.Bridge is this case)
Actual Result
No source maps available for the referenced project

As I see, Cable.Bridge project doesn't activate source map option. You should add "sourceMap": true to bridge.json of Cable.Bridge

We believe the solution is that the referenced project must enable sourceMaps because the metadata is created during original source compilation.