With llama2 depolyed by ollama the metagpt will run predefined example instead of running human given requirements

Bug description

Metagpt will run with the default predefined settings, which is asked to create a 2048 game instead of following my instructions
Environment information

Same issue on Ubuntu and my windows, python version 3.9.18 created by conda

LLM type and model name: Docker deployed Ollama, model name llama2
System version: Ubuntu/Windows, both shows this problem
Python version: 3.9.18

Screenshots or logs

The log is given below:
2024-02-05 10:41:32.671 | INFO     | metagpt.config:get_default_llm_provider_enum:126 - API: LLMProviderEnum.OLLAMA
2024-02-05 10:41:32.671 | DEBUG    | metagpt.config:_ensure_workspace_exists:228 - WORKSPACE_PATH set to /DATA1/bzhu/MetaGPT-MLO/workspace
2024-02-05 10:41:32.671 | DEBUG    | metagpt.config:init:85 - Config loading done.
2024-02-05 10:41:34.933 | INFO     | metagpt.config:get_default_llm_provider_enum:126 - API: LLMProviderEnum.OLLAMA
2024-02-05 10:41:34.945 | INFO     | metagpt.config:get_default_llm_provider_enum:126 - API: LLMProviderEnum.OLLAMA
2024-02-05 10:41:34.953 | INFO     | metagpt.config:get_default_llm_provider_enum:126 - API: LLMProviderEnum.OLLAMA
2024-02-05 10:41:34.960 | INFO     | metagpt.config:get_default_llm_provider_enum:126 - API: LLMProviderEnum.OLLAMA
2024-02-05 10:41:34.961 | INFO     | metagpt.team:invest:87 - Investment: $3.0.
2024-02-05 10:41:34.961 | DEBUG    | metagpt.environment:publish_message:108 - publish_message: {"id":"190b029b295344f89e29dc50e3d6fc8a","content":"write a flappy bird game","role":"Human","cause_by":"metagpt.actions.add_requirement.UserRequirement","sent_from":"","send_to":[""]}
2024-02-05 10:41:34.961 | DEBUG    | metagpt.team:run:129 - max n_round=1 left.
2024-02-05 10:41:34.962 | DEBUG    | metagpt.roles.role:_observe:400 - Alice(Product Manager) observed: ['Human: write a flappy bird ...']
2024-02-05 10:41:34.962 | DEBUG    | metagpt.roles.role:_set_state:292 - actions=[PrepareDocuments, WritePRD], state=0
2024-02-05 10:41:34.962 | DEBUG    | metagpt.roles.role:_react:431 - Alice(Product Manager): self.rc.state=0, will do PrepareDocuments
2024-02-05 10:41:34.962 | INFO     | metagpt.roles.role:_act:360 - Alice(Product Manager): to do PrepareDocuments(PrepareDocuments)
2024-02-05 10:41:35.034 | DEBUG    | metagpt.roles.role:run:482 - Bob(Architect): no news. waiting.
2024-02-05 10:41:35.034 | DEBUG    | metagpt.roles.role:run:482 - Eve(Project Manager): no news. waiting.
2024-02-05 10:41:35.035 | DEBUG    | metagpt.roles.role:run:482 - Alex(Engineer): no news. waiting.
2024-02-05 10:41:35.037 | INFO     | metagpt.utils.file_repository:save:61 - save to: /DATA1/bzhu/MetaGPT-MLO/workspace/20240205104134/docs/requirement.txt
2024-02-05 10:41:35.038 | DEBUG    | metagpt.roles.role:_set_state:292 - actions=[PrepareDocuments, WritePRD], state=-1
2024-02-05 10:41:35.041 | DEBUG    | metagpt.environment:publish_message:108 - publish_message: {"id":"e055d52451764350a70d18f5cccc50a7","content":"write a flappy bird game","instruct_content":{"class":"Document","mapping":{"root_path":"(<class 'str'>, Ellipsis)","filename":"(<class 'str'>, Ellipsis)","content":"(<class 'str'>, Ellipsis)"},"value":{"root_path":"docs","filename":"requirement.txt","content":"write a flappy bird game"}},"role":"Alice(Product Manager)","cause_by":"metagpt.actions.prepare_documents.PrepareDocuments","sent_from":"metagpt.roles.product_manager.ProductManager","send_to":[""]}
2024-02-05 10:41:35.042 | DEBUG    | metagpt.environment:run:132 - is idle: False
2024-02-05 10:41:35.042 | DEBUG    | metagpt.team:run:129 - max n_round=0 left.
2024-02-05 10:41:35.043 | DEBUG    | metagpt.roles.role:_observe:400 - Alice(Product Manager) observed: ['Alice(Product Manager): write a flappy bird ...']
2024-02-05 10:41:35.043 | DEBUG    | metagpt.roles.role:_set_state:292 - actions=[PrepareDocuments, WritePRD], state=1
2024-02-05 10:41:35.043 | DEBUG    | metagpt.roles.role:_react:431 - Alice(Product Manager): self.rc.state=1, will do WritePRD
2024-02-05 10:41:35.044 | INFO     | metagpt.roles.role:_act:360 - Alice(Product Manager): to do WritePRD(WritePRD)
2024-02-05 10:41:35.045 | DEBUG    | metagpt.roles.role:run:482 - Bob(Architect): no news. waiting.
2024-02-05 10:41:35.045 | DEBUG    | metagpt.roles.role:run:482 - Eve(Project Manager): no news. waiting.
2024-02-05 10:41:35.045 | DEBUG    | metagpt.roles.role:run:482 - Alex(Engineer): no news. waiting.
2024-02-05 10:41:53.788 | INFO     | metagpt.provider.ollama_api:update_cost:34 - Max budget: $3.000 | prompt_tokens: 0, completion_tokens: 1279
2024-02-05 10:41:53.792 | DEBUG    | metagpt.actions.action_node:_aask_v1:269 - llm raw output:
Output
[CONTENT]
{
"Language": "en_us",
"Programming Language": "Python",
"Original Requirements": "Create a 2048 game",
"Project Name": "game_2048",
"Product Goals": [
"Create an engaging user experience",
"Improve accessibility, be responsive",
"More beautiful UI"
],
"User Stories": [
"As a player, I want to be able to choose difficulty levels",
"As a player, I want to see my score after each game",
"As a player, I want to get restart button when I lose",
"As a player, I want to see beautiful UI that make me feel good",
"As a player, I want to play game via mobile phone"
],
"Competitive Analysis": [
"2048 Game A: Simple interface, lacks responsive features",
"play2048.co: Beautiful and responsive UI with my best score shown",
"2048game.com: Responsive UI with my best score shown, but many ads"
],
"Competitive Quadrant Chart": "quadrantChart\n    title "Reach and engagement of campaigns"\n    x-axis "Low Reach" --> "High Reach"\n    y-axis "Low Engagement" --> "High Engagement"\n    quadrant-1 "We should expand"\n    quadrant-2 "Need to promote"\n    quadrant-3 "Re-evaluate"\n    quadrant-4 "May be improved"\n    "Campaign A": [0.3, 0.6]\n    "Campaign B": [0.45, 0.23]\n    "Campaign C": [0.57, 0.69]\n    "Campaign D": [0.78, 0.34]\n    "Campaign E": [0.40, 0.34]\n    "Campaign F": [0.35, 0.78]\n    "Our Target Product": [0.5, 0.6]",
"Requirement Analysis": "",
"Requirement Pool": [
[
"P0",
"The main code ..."
],
[
"P0",
"The game algorithm ..."
]
],
"UI Design draft": "Basic function description with a simple style and layout.",
"Anything UNCLEAR": ""
}
[/CONTENT]  Great! Here's the output for the given input:
{
"Language": "en_us",
"Programming Language": "Python",
"Original Requirements": "Create a 2048 game",
"Project Name": "game_2048",
"Product Goals": [
"Create an engaging user experience",
"Improve accessibility, be responsive",
"More beautiful UI"
],
"User Stories": [
"As a player, I want to be able to choose difficulty levels",
"As a player, I want to see my score after each game",
"As a player, I want to get restart button when I lose",
"As a player, I want to see beautiful UI that make me feel good",
"As a player, I want to play game via mobile phone"
],
"Competitive Analysis": [
"2048 Game A: Simple interface, lacks responsive features",
"play2048.co: Beautiful and responsive UI with my best score shown",
"2048game.com: Responsive UI with my best score shown, but many ads"
],
"Competitive Quadrant Chart": "quadrantChart\n    title "Reach and engagement of campaigns"\n    x-axis "Low Reach" --> "High Reach"\n    y-axis "Low Engagement" --> "High Engagement"\n    quadrant-1 "We should expand"\n    quadrant-2 "Need to promote"\n    quadrant-3 "Re-evaluate"\n    quadrant-4 "May be improved"\n    "Campaign A": [0.3, 0.6]\n    "Campaign B": [0.45, 0.23]\n    "Campaign C": [0.57, 0.69]\n    "Campaign D": [0.78, 0.34]\n    "Campaign E": [0.40, 0.34]\n    "Campaign F": [0.35, 0.78]\n    "Our Target Product": [0.5, 0.6]",
"Requirement Analysis": "",
"Requirement Pool": [
[
"P0",
"The main code ..."
],
[
"P0",
"The game algorithm ..."
]
],
"UI Design draft": "Basic function description with a simple style and layout.",
"Anything UNCLEAR": ""
}
Please let me know if you have any further questions or inputs!
2024-02-05 10:41:53.819 | DEBUG    | metagpt.actions.action_node:_aask_v1:279 - parsed_data:
{'Language': 'en_us', 'Programming Language': 'Python', 'Original Requirements': 'Create a 2048 game', 'Project Name': 'game_2048', 'Product Goals': ['Create an engaging user experience', 'Improve accessibility, be responsive', 'More beautiful UI'], 'User Stories': ['As a player, I want to be able to choose difficulty levels', 'As a player, I want to see my score after each game', 'As a player, I want to get restart button when I lose', 'As a player, I want to see beautiful UI that make me feel good', 'As a player, I want to play game via mobile phone'], 'Competitive Analysis': ['2048 Game A: Simple interface, lacks responsive features', 'play2048.co: Beautiful and responsive UI with my best score shown', '2048game.com: Responsive UI with my best score shown, but many ads'], 'Competitive Quadrant Chart': 'quadrantChart\n    title "Reach and engagement of campaigns"\n    x-axis "Low Reach" --> "High Reach"\n    y-axis "Low Engagement" --> "High Engagement"\n    quadrant-1 "We should expand"\n    quadrant-2 "Need to promote"\n    quadrant-3 "Re-evaluate"\n    quadrant-4 "May be improved"\n    "Campaign A": [0.3, 0.6]\n    "Campaign B": [0.45, 0.23]\n    "Campaign C": [0.57, 0.69]\n    "Campaign D": [0.78, 0.34]\n    "Campaign E": [0.40, 0.34]\n    "Campaign F": [0.35, 0.78]\n    "Our Target Product": [0.5, 0.6]', 'Requirement Analysis': '', 'Requirement Pool': [['P0', 'The main code ...'], ['P0', 'The game algorithm ...']], 'UI Design draft': 'Basic function description with a simple style and layout.', 'Anything UNCLEAR': ''}
I think thats enough to show the problem.

By simply removing the ## format example {example} in action node (https://github.com/geekan/MetaGPT/blob/main/metagpt/actions/action_node.py#L35-L36), Llama2 can now output correct contexts.
But new bugs encountered. The key log is given below:
2024-02-05 11:33:50.366 | WARNING  | metagpt.utils.repair_llm_raw_output:extract_content_from_output:301 - extract_content try another pattern: [CONTENT]([\s\S]*)[/CONTENT]
2024-02-05 11:33:50.367 | WARNING  | metagpt.utils.repair_llm_raw_output:run_and_passon:249 - parse json from content inside [CONTENT][/CONTENT] failed at retry 1, exp: Expecting value: line 1 column 1 (char 0)
2024-02-05 11:33:50.367 | INFO     | metagpt.utils.repair_llm_raw_output:repair_invalid_json:218 - repair_invalid_json, raw error: Expecting value: line 1 column 1 (char 0)
2024-02-05 11:33:50.368 | ERROR    | metagpt.utils.common:log_it:438 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 76.157(s), this was the 6th time calling it. exp: RetryError[<Future at 0x7f6c0f9540a0 state=finished raised JSONDecodeError>]
2024-02-05 11:33:50.368 | WARNING  | metagpt.utils.common:wrapper:510 - There is a exception in role's execution, in order to resume, we delete the newest role communication message in the role's memory.
2024-02-05 11:33:50.373 | ERROR    | metagpt.utils.common:wrapper:492 - Exception occurs, start to serialize the project, exp:
Traceback (most recent call last):
File "/home/bzhu/anaconda3/envs/Meta/lib/python3.9/site-packages/tenacity/init.py", line 382, in call
result = fn(*args, **kwargs)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/utils/repair_llm_raw_output.py", line 277, in retry_parse_json_text
parsed_data = CustomDecoder(strict=False).decode(output)
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/bzhu/anaconda3/envs/Meta/lib/python3.9/site-packages/tenacity/_asyncio.py", line 50, in call
result = await fn(*args, **kwargs)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/actions/action_node.py", line 270, in _aask_v1
parsed_data = llm_output_postprocess(
tenacity.RetryError: RetryError[<Future at 0x7f6c0f9540a0 state=finished raised JSONDecodeError>]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/utils/common.py", line 501, in wrapper
return await func(self, *args, **kwargs)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/roles/role.py", line 485, in run
rsp = await self.react()
tenacity.RetryError: RetryError[<Future at 0x7f6c0f9548b0 state=finished raised RetryError>]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/utils/common.py", line 487, in wrapper
result = await func(self, *args, **kwargs)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/team.py", line 132, in run
await self.env.run()
Exception: Traceback (most recent call last):
File "/home/bzhu/anaconda3/envs/Meta/lib/python3.9/site-packages/tenacity/init.py", line 382, in call
result = fn(*args, **kwargs)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/utils/repair_llm_raw_output.py", line 277, in retry_parse_json_text
parsed_data = CustomDecoder(strict=False).decode(output)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/utils/custom_decoder.py", line 297, in decode
return super().decode(s)
File "/home/bzhu/anaconda3/envs/Meta/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/home/bzhu/anaconda3/envs/Meta/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/bzhu/anaconda3/envs/Meta/lib/python3.9/site-packages/tenacity/_asyncio.py", line 50, in call
result = await fn(*args, **kwargs)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/actions/action_node.py", line 270, in _aask_v1
parsed_data = llm_output_postprocess(
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/provider/postprocess/llm_output_postprocess.py", line 19, in llm_output_postprocess
result = postprocess_plugin.run(output=output, schema=schema, req_key=req_key)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/provider/postprocess/base_postprocess_plugin.py", line 68, in run
new_output = self.run_repair_llm_output(output=output, schema=schema, req_key=req_key)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/provider/postprocess/base_postprocess_plugin.py", line 32, in run_repair_llm_output
parsed_data = self.run_retry_parse_json_text(content)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/provider/postprocess/base_postprocess_plugin.py", line 47, in run_retry_parse_json_text
parsed_data = retry_parse_json_text(output=content)  # should use output=content
File "/home/bzhu/anaconda3/envs/Meta/lib/python3.9/site-packages/tenacity/init.py", line 289, in wrapped_f
return self(f, *args, **kw)
File "/home/bzhu/anaconda3/envs/Meta/lib/python3.9/site-packages/tenacity/init.py", line 379, in call
do = self.iter(retry_state=retry_state)
File "/home/bzhu/anaconda3/envs/Meta/lib/python3.9/site-packages/tenacity/init.py", line 326, in iter
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x7f6c0f9540a0 state=finished raised JSONDecodeError>]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/utils/common.py", line 501, in wrapper
return await func(self, *args, **kwargs)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/roles/role.py", line 485, in run
rsp = await self.react()
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/roles/role.py", line 453, in react
rsp = await self._react()
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/roles/role.py", line 432, in _react
rsp = await self._act()  # 这个rsp是否需要publish_message？
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/roles/role.py", line 361, in _act
response = await self.rc.todo.run(self.rc.history)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/actions/write_prd.py", line 105, in run
prd_doc = await self._update_prd(
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/actions/write_prd.py", line 152, in _update_prd
prd = await self._run_new_requirement(
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/actions/write_prd.py", line 128, in _run_new_requirement
node = await WRITE_PRD_NODE.fill(context=context, llm=self.llm, exclude=exclude)  # schema=schema
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/actions/action_node.py", line 335, in fill
return await self.simple_fill(schema=schema, mode=mode, timeout=timeout, exclude=exclude)
File "/DATA1/bzhu/MetaGPT-MLO/metagpt/actions/action_node.py", line 300, in simple_fill
content, scontent = await self._aask_v1(prompt, class_name, mapping, schema=schema, timeout=timeout)
File "/home/bzhu/anaconda3/envs/Meta/lib/python3.9/site-packages/tenacity/_asyncio.py", line 88, in async_wrapped
return await fn(*args, **kwargs)
File "/home/bzhu/anaconda3/envs/Meta/lib/python3.9/site-packages/tenacity/_asyncio.py", line 47, in call
do = self.iter(retry_state=retry_state)
File "/home/bzhu/anaconda3/envs/Meta/lib/python3.9/site-packages/tenacity/init.py", line 326, in iter
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x7f6c0f9548b0 state=finished raised RetryError>]
During the running, the log kept showing that:
2024-02-05 11:32:47.656 | WARNING  | metagpt.utils.repair_llm_raw_output:extract_content_from_output:301 - extract_content try another pattern: [CONTENT]([\s\S]*)[/CONTENT]
2024-02-05 11:32:47.657 | WARNING  | metagpt.utils.repair_llm_raw_output:run_and_passon:249 - parse json from content inside [CONTENT][/CONTENT] failed at retry 1, exp: Expecting value: line 1 column 1 (char 0)
2024-02-05 11:32:47.659 | INFO     | metagpt.utils.repair_llm_raw_output:repair_invalid_json:218 - repair_invalid_json, raw error: Expecting value: line 1 column 1 (char 0)
2024-02-05 11:32:47.659 | ERROR    | metagpt.utils.common:log_it:438 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 13.448(s), this was the 1st time calling it. exp: RetryError[<Future at 0x7f6c0fa03d60 state=finished raised JSONDecodeError>]
2024-02-05 11:32:58.041 | INFO     | metagpt.provider.ollama_api:update_cost:34 - Max budget: $3.000 | prompt_tokens: 0, completion_tokens: 718
2024-02-05 11:32:58.042 | DEBUG    | metagpt.actions.action_node:_aask_v1:266 - llm raw output:

And the raw output of LLM looks like:
[CONTENT]
Language: Python
Programming Language: Python
Original Requirements: Write a game where you play as a bird, tap to fly and avoid obstacles.
Project Name: FlappyBirdGame
Product Goals:

Create an engaging and challenging gameplay experience for players.
Develop a visually appealing and easy-to-use interface.
Implement a variety of obstacles and levels to keep players engaged.

User Stories:

As a player, I want to tap on the screen to make the bird fly upwards, so that I can avoid obstacles and reach new heights.
As a player, I want to see a visually appealing and easy-to-use interface, so that I can focus on playing the game without getting distracted.
As a player, I want to encounter a variety of obstacles and levels, so that the game remains challenging and interesting throughout.

Competitive Analysis:

Tap Bird (iOS, Android) - A popular bird-flying game with simple graphics and easy gameplay.
Flappy Bird (iOS, Android) - A classic game with simple graphics and addictive gameplay.
Feather Frenzy (iOS, Android) - A colorful and challenging game with a variety of obstacles and levels.

Competitive Quadrant Chart:
graph LR
     A[Tap Bird] -- B[Flappy Bird]
     B -- C[Feather Frenzy]

Requirement Analysis:

The game should have a simple and intuitive interface.
The bird should be able to fly upwards when tapped on the screen.
The game should include a variety of obstacles, such as pipes, balloons, and birds.
The game should have multiple levels with increasing difficulty.
The game should save the player's progress and allow them to resume playing from where they left off.

Requirement Pool:
P0 - Gameplay experience
P1 - Visual appeal and ease of use
P2 - Variety of obstacles and levels
UI Design draft:
The game will have a simple and clean design, with a bird as the main character. The background will be a gradient of blue and white, with various obstacles placed throughout. The bird will be colored in bright, bold colors to make it easy to see and interact with. The user interface will be straightforward and easy to use, with clear instructions for each level.
Anything UNCLEAR: Please clarify any aspects of the project that are unclear or need further explanation.


How comes the amazing result in Fetch_pick_and_place-v1?

Hi, I find that it is pretty fast to train the agent in the Fetch_pick_and_place-v1 environment without using demonstrations. As we all know, this is a two-stage task, and the reward is quite sparse, which makes it the most difficult task in Fetch_Robot envs. But the time of training the agent in Fetch_pick_and_place-v1 using your code is not much longer than training in other environments(Reach, Slide and Push).
I find you are mainly using code from OpenAI Baselines, but their results show that we need very long time to train the agent in Fetch_pick_and_place-v1 environment if we don't use demonstartions. How do you explain it? Thank you!

It's all slightly confusing but I think they're using a different version of the environment when they use demonstrations. If you compare to the HER results of Plappert et al. (https://arxiv.org/pdf/1802.09464.pdf) then the results here are consistent. I have a suspicion the environment they use in what you linked to above is FetchPickAndPlace where all of the goals are above the table (in FetchPickAndPlace-v1 half of the goals are on the table surface, which I expect makes it easier to start learning).

It's all slightly confusing but I think they're using a different version of the environment when they use demonstrations. If you compare to the HER results of Plappert et al. (https://arxiv.org/pdf/1802.09464.pdf) then the results here are consistent. I have a suspicion the environment they use in what you linked to above is FetchPickAndPlace where all of the goals are above the table (in FetchPickAndPlace-v1 half of the goals are on the table surface, which I expect makes it easier to start learning).

Yes, you are right. Thanks for your reminding. The paper also mentioned it at the end page 5.


Request Event, Row Click event

please add row click event, this is more important feature for every table lib

please add row click event, this is more important feature for every table lib

Hi, @teguhsatria892
Thanks for your request. I will be add the feature to next version.

Hi, @teguhsatria892
I am already added new event to catch row click event.
Check this example to learn how to use it.

Hi, I closed this issue. If any questions, reopen it. thx.


Error when using version 0.4.0

Version 0.3.0 worked just fine but when I installed new version I received the following error.
Uncaught (in promise) TypeError: Cannot read property '$$' of undefined
    at et (index.mjs:1)
    at new wt (index.mjs:1)
    at create_if_block (App.svelte:13)
    at Object.update [as p] (App.svelte:30)
    at update (index.mjs:929)
    at flush (index.mjs:897)

Can I check which bundler you're using?

@zerodevx I'm using webpack 5 with svelte-loader.

Where (and how) did this error appear? In the browser JS console or in terminal dev server? Does this appear when a toast is pushed?

Where (and how) did this error appear? In the browser JS console or in terminal dev server? Does this appear when a toast is pushed?

This appears in browser when loading app for first time.
It all begins when rendering SvelteToast component.
e.g. <SvelteToast options={toastOptions}/>
There is also the webpack dev version of error shown on reload:
Failed to init component
<App>
TypeError: Cannot read property '$$' of undefined
    at et (http://localhost:8080/build/bundle.js:5277:4398)
    at new wt (http://localhost:8080/build/bundle.js:5277:15123)
    at create_if_block (http://localhost:8080/build/bundle.6798e338e525a967ff8f.hot-update.js:56:16)
    at create_fragment (http://localhost:8080/build/bundle.6798e338e525a967ff8f.hot-update.js:350:47)
    at init (http://localhost:8080/build/bundle.js:58239:37)
    at new App (http://localhost:8080/build/bundle.6798e338e525a967ff8f.hot-update.js:493:56)
    at createComponent (http://localhost:8080/build/bundle.js:52546:20)
    at App.targetCmp.$replace (http://localhost:8080/build/bundle.js:52593:15)
    at refreshComponent (http://localhost:8080/build/bundle.js:52149:28)
    at ProxyAdapterDom.rerender (http://localhost:8080/build/bundle.js:51936:5)

In your source, can you try importing the package like this:
<script>
import { SvelteToast } from '@zerodevx/svelte-toast/src`

...
</script>

<SvelteToast options={toastOptions} />

and let me know what happens?

I receive this:
Module not found: Error: Package path ./src is not exported from package /home/myuser/web_v2/node_modules/@zerodevx/svelte-toast
However, I modified svelte-toast package.json inside node_modules to test source files just as you suggest.Fileindex.jsfromsrc` seems to be working without errors, so the problem occurs solely with bundled files on Google Chrome.

AFAIK svelte-loader for webpack should use the svelte field in package.json as the module entry point.
"svelte": "src/index.js",
"module": "dist/index.mjs",
"main": "dist/index.js",

For non-Svelte apps, webpack will use the module field instead. I'm not sure why this is happening TBH.
Could you help test one more time: this time, can you pin svelte-toast to v0.3.0? I just want to be super sure that this is introduced because of v0.3.0 -> v0.4.0.

I installed 0.3.0 using npm i<EMAIL_ADDRESS>and everything went smoothly. No errors.

Thanks so much for the info. Let me check again and get back to you.

Thanks so much for the info. Let me check again and get back to you.

After meddling with bundled file, I found out this line is what causes the issue.
const d=e.$$={fragment:null,ctx:null,props:c,update:t,not_equal:a,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:n.context||[]),callbacks:r(),dirty:u,skip_bound:!1,root:n.target||f.$$.root};
The following part causes error:
root:n.target||f.$$.root
This property did not exist in version 0.3.0 bundle. It seems that f is undefined at this place.

Svelte recently commited these changes: https://github.com/sveltejs/svelte/commit/5cfefeb6e72f8085e418150b644cdc4b4f6f260d#diff-da9bae4e28c441de5ba3a074e30775fe69109100b3d921ad8f2592d93cd67b7f
This patch contains a new root property that gets its value from target option and it's the same property that throws error in my bundle. Could it be that plugin target property has somehow a conflict with svelte target option?

@zerodevx In my ticket on sveltejs, one reported that updating the following dependencies to versions below (at least) solved issue caused on build.
{
  "@rollup/plugin-node-resolve": "^13.0.0",
  "rollup": "^2.54.0",
  "rollup-plugin-svelte": "^7.1.0",
  "svelte": "^3.41.0"
}

Thanks so much for investigating. Can I just check that in your webpack.config.js, you have something like this declared?
resolve: {
  alias: {
    svelte: path.resolve('node_modules', 'svelte')
  },
  extensions: ['.mjs', '.js', '.svelte'],
  mainFields: ['svelte', 'browser', 'module', 'main']
},

I just want to make sure that your Svelte app is using the component source.

This is what I'm using according to svelte-loader docs:
resolve: {
    alias: {
      svelte: path.dirname(require.resolve("svelte/package.json"))
    },
    extensions: [".mjs", ".js", ".svelte"],
    mainFields: ["svelte", "browser", "module", "main"]
  },

Hello,
I got the same error with svelteKit but resolved after updating to 3.41.0

So, I think there are two issues here:

webpack + svelte-loader is picking up the compiled file at dist/index.mjs instead of the source entry-point src/index.js. I think I know why and I'll commit a fix.

A regression was introduced in the Svelte v3.40.2 release, which is fixed from v3.41.0.

@DimitrisRK - I'll release a patch version in a bit that should solve your issue; on your end, just update your npm dependencies (specifically @zerodevx/svelte-toast -> 0.4.1 and svelte -> 3.41.0) and that should theoretically fix everything nicely.
@LucianVoju - can I check what bundler setup you're using?

@zerodevx Everything works smoothly. Thank you very much!

Hello,
Updated to 0.4.1 but sill got the typescript error.
My setup is:
`import adapter from '@sveltejs/adapter-node';
import preprocess from "svelte-preprocess";
import tailwindcss from 'tailwindcss';
import autoprefixer from 'autoprefixer';
import path from 'path';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [
preprocess({
postcss: {
plugins: [
tailwindcss,
autoprefixer
],
}
}),
],
kit: {
// hydrate the  element in src/app.html
target: '#svelte',
vite: {
optimizeDeps: {
include: ['svelte-hero-icons'],
},
resolve: {
alias: {
$pages: path.resolve('./src/pages'),
$components: path.resolve('./src/components'),
$stores: path.resolve('./src/stores')
}
},
	},
	adapter: adapter({
		// default options are shown
		out: 'build'
	})
}

};
export default config;

Moving the previous comment to the correct issue.

So, I think there are two issues here:

webpack + svelte-loader is picking up the compiled file at dist/index.mjs instead of the source entry-point src/index.js. I think I know why and I'll commit a fix.
A regression was introduced in the Svelte v3.40.2 release, which is fixed from v3.41.0.

For posterity, the reason for reverting #12 is because adding the exports field in package.json forces webpack to disregard the de-facto mainFields: ["svelte", "browser", "module", "main"] resolution behaviour. If there are any issues working with SvelteKit - I can't imagine that it's not fixed by now - it should be fixed in SvelteKit rather than at the component authors' end.
Closing this issue for now - but feel free to re-open if you encounter further problems.


Support the display of featured datasets

Description
This change adds API required for displaying featured datasets defined in Contenful on a flatmap.
Type of change
Delete those that don't apply.

[x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Unit tests have been added for the new API.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added unit tests that prove my fix is effective or that my feature works

I keep getting crashes with this pull request, need to take a look into it.


Move tileset cache to its own class

The 3D tiles caching code was a bit all over the place, this centralizes it to its own class.

@lilleyse, thanks for the pull request! Maintainers, we have a signed CLA from @lilleyse, so you can review this at any time.
:warning: I noticed that CHANGES.md has not been updated. If this change updates the public API in any way, fixes a bug, or makes any non-trivial update, please add a bullet point to CHANGES.md and comment on this pull request so we know it was updated. For more info, see the Pull Request Guidelines.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.
:earth_africa: :earth_americas: :earth_asia:

Originally in #6390 but moved out into its own PR for easier reviewing.

@likangning93 do you want to review this?

@likangning93 is this ready to merge?

@pjcozzi sorry for the slow response! Yes, this is ready to go. We were waiting on CI but that seems to be resolved now.


Support super in eval()

Input:
const obj = {
  foo() {
    return eval('() => super.toString');
  }
};
export default obj.foo();

Trying to serialize this produces error Failed to serialize function because it is not instrumented.
The error is quite mysterious. It should fail to serialize, because use of super in eval() is not currently supported, but not because the function is not instrumented. That error suggests there may be another bug somewhere else as well.

In current Livepack version, is now failing prior to serialization with error "Failed to parse eval expression".
This is because Babel's parser is not called with allowSuperOutsideMethod option enabled.
So at least the weird error is gone.

Work in progress on super-in-eval branch. I think fixed, just needs more tests.


chore(main): release 1.19.1

:robot: I have created a release beep boop
1.19.1 (2024-05-26)
Bug Fixes

🐛 In some cases, the light mode is abnormal (ea227e0)
🐛 Search for shortcut key conflicts (c70e6ca)

Performance Improvements

♻ Search prompts (0d963aa)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/viarotel-org/escrcpy/releases/tag/v1.19.1 :sunflower:


Include examples in the generated Swagger/OpenAPI

Is your feature request related to a problem? Please describe.
Tools like IBM API Connect attempt to generate examples, but this can be very difficult with a schema of this size/complexity.  For example, because all elements contain extensions and extensions contain extensions, the schema is infinite and the tools need to inteligently select when "enough is enough".
Describe the solution you'd like
We're sitting on a whole pile of example in the fhir-examples project, so can we include some of those in the schema?
Additional context
Tools like IBM API Connect attempt to generate examples, but this can be very difficult with a schema of this size/complexity.  If we provide our own examples, will they just use those?

Reviewed and QAd.  Closing.


ERROR: manifest for docker.io/wongsaang/chatgpt-ui-wsgi-server:latest not found

docker-compose up -d
ERROR: manifest for docker.io/wongsaang/chatgpt-ui-wsgi-server:latest not found

have you edited the docker-compose file at all? Working fine on this end
image: wongsaang/chatgpt-ui-wsgi-server:latest


Converted ES5 and below to ES6 syntax.

Converted ES5 and below to ES6 syntax.

Awesome! Cheers Arthur.


[coost] new port

[x] Changes comply with the maintainer guide
[x] The name of the port matches an existing name for this component on https://repology.org/ if possible, and/or is strongly associated with that component on search engines.
[x] Optional dependencies are resolved in exactly one way. For example, if the component is built with CMake, all find_package calls are REQUIRED, are satisfied by vcpkg.json's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx
[x] The versioning scheme in vcpkg.json matches what upstream says.
[x] The license declaration in vcpkg.json matches what upstream says.
[x] The installed as the "copyright" file matches what upstream says.
[x] The source code of the component installed comes from an authoritative source.
[x] The generated "usage text" is accurate. See adding-usage for context.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is in the new port's versions file.
[x] Only one version is added to each modified port's versions file.

@Adela0814
I can't fix following errors and need some help.

-- Performing post-build validation
warning: There should be no absolute paths, such as the following, in an installed package:
    D:\packages\coost_x86-windows
    D:\installed
    D:\buildtrees\coost
Absolute paths were found in the following files:
    D:\packages\coost_x86-windows\debug\lib\pkgconfig\coost.pc
    D:\packages\coost_x86-windows\lib\pkgconfig\coost.pc
error: Found 1 post-build check problem(s). To submit these ports to curated catalogs, please first correct the portfile: C:\a\1\s\ports\coost\portfile.cmake
error: building coost:x86-windows failed with: POST_BUILD_CHECKS_FAILED
Elapsed time to handle coost:x86-windows: 6.2562237 s
Total install time: 6.3177727 s

Triplet: x86-windows
RESULTS
    vcpkg-cmake:x64-windows: SUCCEEDED: 4.0542 ms
    vcpkg-cmake-config:x64-windows: SUCCEEDED: 2.6508 ms
    coost:x86-windows: POST_BUILD_CHECKS_FAILED: 6.2562237 s

SUMMARY FOR x64-windows
    SUCCEEDED: 2
SUMMARY FOR x86-windows
    POST_BUILD_CHECKS_FAILED: 1
##[error]REGRESSIONS:
REGRESSION: coost:x86-windows failed with POST_BUILD_CHECKS_FAILED. If expected, add coost:x86-windows=fail to C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt.

Finishing: *** Test Modified Ports

This is an existing port. See https://github.com/microsoft/vcpkg/blob/master/ports/cocoyaxi/portfile.cmake.


It all works fine on one machine but on our build server (jenkins) I get this error.
The error shows up both in a jenkins look but also in a normal terminal.
the build works perfectly fine if I don't add infer -- in front.
my analysis command is :
infer -- xcodebuild -project Project/Project.xcodeproj -target ProjectName -configuration Debug         -sdk iphonesimulator
Stacktrace follows...
Capturing using xcpretty...
Uncaught exception:
(Failure "ERROR: Path sources/Recognizer.m is relative, when absolute path was expected .\n")
Raised at file "pervasives.ml", line 30, characters 22-33
Called from file "base/SourceFile.ml", line 38, characters 4-101
Called from file "integration/CompilationDatabase.ml", line 80, characters 26-59
Called from file "list.ml", line 73, characters 12-15
Called from file "list.ml", line 73, characters 12-15
Called from file "integration/CompilationDatabase.ml", line 87, characters 2-48
Called from file "backend/infer.ml", line 195, characters 29-73
Called from file "backend/infer.ml", line 455, characters 2-21

I'm not sure you understand, are you saying you can run infer -- <build_cmd> on your laptop, but infer -- <build_cmd> fails on jenkins machine (both from jenkins and terminal on jenkins machine)
That's definitely not expected. Could you run following commands on your jenkins terminal?
echo $PWD
ls -id $(echo $PWD)
ls -id .

Exactly,
on my laptop infer works like a charm, but on my CI (both through a jenkins shell script and in a normal terminal) I get the same error (described above).
echo $PWD - root of repo : /Users/tancho/repos/project
ls -id $(echo $PWD) : 828343 /Users/tancho/repos/project
ls -id .  : 828343 .
I am working on a mac (both ci and workstation)
no funky business with symlinks
just a clean clone from github and running the infer analysis.
again, a build works fine.

echo $PWD - root of repo : /Users/tancho/repos/project

That was ran on jenkins machine?

yes, from the normal terminal, not the build loop.
i imagine jenkins's shell environment will show other problems, so for the
time being I wanna make it work as If I use it as a work station
(the jenkins machine is a mac mini which I can access through screen
sharing, and open a normal terminal with a proper bash environment, this
output is from a normal terminal)
http://www.contentsquare.com/
Stanojko Tancho Markovikj
https://data.sigilium.com/signatures/rcevuJOOuCK6-0hyNCIuGCIISRCzQrc/link?element=name
Mobile Engineering Manager
https://data.sigilium.com/signatures/rcevuJOOuCK6-0hyNCIuGCIISRCzQrc/link?element=job
+33 6 51 17 53 54
https://data.sigilium.com/signatures/rcevuJOOuCK6-0hyNCIuGCIISRCzQrc/link?element=mobile
<EMAIL_ADDRESS>50 avenue Montaigne - 75008 Paris
https://data.sigilium.com/signatures/rcevuJOOuCK6-0hyNCIuGCIISRCzQrc/link?element=map_marker
https://www.facebook.com/ContentSquareGlobal
https://twitter.com/ContentSquare
https://www.youtube.com/user/Weballwin1
https://www.linkedin.com/company/contentsquare
https://data.sigilium.com/signatures/rcevuJOOuCK6-0hyNCIuGCIISRCzQrc/redirect_link
On Wed, Mar 29, 2017 at 12:48 AM, Andrzej Kotulski<EMAIL_ADDRESS>
wrote:

echo $PWD - root of repo : /Users/tancho/repos/project
That was ran on jenkins machine?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/infer/issues/631#issuecomment-289928897, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA8OPdu53yGvujp-QxUf7w7V4T2wEH2Mks5rqY5TgaJpZM4MsIfv
.

This is the code that runs according to the backtrace:
CompilationDatabase.ml
        let abs_file = if Filename.is_relative file then dir ^/ file else file in
        let source_file = SourceFile.from_abs_path abs_file in

SourceFile.ml:
let from_abs_path fname =
  if Filename.is_relative fname then
    (failwithf
       "ERROR: Path %s is relative, when absolute path was expected<EMAIL_ADDRESS>       fname);

So it seems that the directory dir we get from the compilation database is itself relative. If there's a way to look at the compilation database generated by xcpretty inside the failing jenkins job then we could confirm. In any case, it seems that the code in CompilationDatabase.ml should be hardened to handle that case.

Have in mind that this works on one machine and not another.
even if I do a clean clone within a folder anywhere on this machine, it still won't work.
Is it possible that infer is failing because of xcpretty?
how about any dependency library which is the wrong version?
It's quite symptomatic that I can not make it work on a machine where it's broken, and I can't break it where it works fine...
what do you guys think?

@smarkovik hard to tell without seeing some logs on the failing Jenkins job. Can you get your job to run the commands that @akotulski mentioned? I'm also looking for a command you can run to dump the compilation database used by infer, so if you want you can wait until we have that too and run both in the same job to save yourself some time.

Got it (thanks @dulmarod). @smarkovik can you please run these commands as part as your Jenkins job? (the same where infer is failing)
for path in $PWD sources sources/Recognizer.m; do
  echo $path;
  ls -id "$path";
done
ls -id .
xcodebuild -project Project/Project.xcodeproj -target ProjectName -configuration Debug -sdk iphonesimulator | xcpretty -report json-compilation-database  --output compile_commands.json
cat compile_commands.json

Or just check what the entry for "sources/Recognizer.m" is and whether it has a relative or absolute directory. You can also run these commands on your laptop to see if there's a significant difference.

When I try to run
cat compile_commands.json```

I get an error, and the output files are not even created...
I am starting to think `xcpretty` is the issue

xcodebuild  -project Project/Project.xcodeproj  -target Project  -configuration Debug -sdk iphonesimulator | xcpretty -report json-compilation-database  --output compile_commands.json
/Users/tancho/.rvm/gems/ruby-2.4.0/gems/xcpretty-0.1.5/bin/xcpretty:73:in each_line': No such file or directory @ rb_sysopen - json-compilation-database (Errno::ENOENT) 	from /Users/tancho/.rvm/gems/ruby-2.4.0/gems/xcpretty-0.1.5/bin/xcpretty:73:in <top (required)>'
from /Users/tancho/.rvm/gems/ruby-2.4.0/bin/xcpretty:22:in load' 	from /Users/tancho/.rvm/gems/ruby-2.4.0/bin/xcpretty:22:in '
from /Users/tancho/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in eval' 	from /Users/tancho/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in '

The argument to xcpretty is -r or --report, you were using -report, maybe that's the problem.

Sorry, wrong command, I've edited my post.

You're absolutely right, the argument was to blame.
here is the output from my actual project.
/Users/tancho/Development/repos/cs-ios/attanni
6325429 /Users/tancho/Development/repos/cs-ios/attanni
ContentSquare/sources
6325659 ContentSquare/sources
ContentSquare/sources/CSPinchGestureRecognizer.m
6325698 ContentSquare/sources/CSPinchGestureRecognizer.m
compile commands attached
compile_commands.txt

Thanks! So indeed the compilation database gives us no absolute paths to work with...
Last (heh, maybe) question: did you run xcodebuild from /Users/tancho/Development/repos/cs-ios/attanni or /Users/tancho/Development/repos/cs-ios/attanni/ContentSquare?
I'm asking because the compilation database is of the form {"directory": "sources", "file" : "CSPinchGestureRecognizer.m", "command": "<big command>"} and doesn't mention having to look into "ContentSquare" so I hope it was where you ran the command from otherwise I don't see how infer could guess it...

Thanks for the quick reply
I ran it from /Users/tancho/Development/repos/cs-ios/attanni  which is the root of my project.

Ok well that's bad news because I don't see how infer can find, eg, /Users/tancho/Development/repos/cs-ios/attanni/ContentSquare/sources/CSPinchGestureRecognizer.m given the information that the current dir is /Users/tancho/Development/repos/cs-ios/attanni and the compilation database says the file is in sources/CSPinchGestureRecognizer.m. At this point we have to resort to parsing the contents of "command" in the compilation database...
In the meantime, you can try using the alternative xcodebuild integration that doesn't rely on xcpretty: infer --no-xcpretty -- xcodebuild ....

That actually solves my problems....
I can live without the xcpretty output, but I want to get the analysis...
thanks guys!


Rename AnalyzeRequest to AnalyzeTextOptions, and add constructor overloads / helpers for required fields

Per discussion,

[x] Rename AnalyzeRequest to AnalyzeTextOptions. SearchIndexClient.AnalyzeText should look like: AnalyzeText(string indexName, AnalyzeTextOptions options, ...).
[x] Add constructor overloads or other initialization helpers to require text, and either analyer or tokenizer (or, if you want, analyzerName, and tokenizerName, though I'll open up a separate issue for that).

class AnalyzeTextOptions {
  ctor(string text, LexicalAnalyzerName analyzer);
  ctor(string text, LexicalTokenizerName tokenizer);
  string text { get; }
  LexicalAnalyzerName? analyzer { get; }
  LexicalTokenizerName? tokenizer { get; }
  (remaining properties: { get; set; })

/azp run java - search - tests

Good work on the fixes! I'm guessing this issue can be closed now?

This is done. Closed the issue


Latest Astro Compress creates build error when using Astro Image and Sharp

Previously, I was using astro-compress 1.1.35, then updated to 1.1.42. Now when building my project, I get this error:
Waiting for the @astrojs/image integration...
 error   VipsOperation: class "heifsave_buffer" not found

If I remove sharp from my project, it will build out. But, the same can be said if I remove astro-compress instead of sharp. BTW my project isn't utilizing astro-compress image compression.
Astro Image can't be used with sharp 0.32.1 due to unmet peer dependencies, so I'm still using sharp 0.31.3.
integrations: [
    image({
      serviceEntryPoint: "@astrojs/image/sharp",
      logLevel: "error",
    }),
    compress({
      css: false,
      html: true,
      img: false,
      js: false,
      svg: true,
      logger: 2,
    }),
]

For now, this works:
"astro": "2.3.2",
"@astrojs/image": "^0.16.6",
"astro-compress": "1.1.35",
"sharp": "^0.31.0"

I think it's just tech messing with me. Seems to build fine this morning on Netlify using Astro as SSG.
"astro": "2.3.2",
"@astrojs/image": "^0.16.6",
"astro-compress": "^1.1.42",
"sharp": "^0.31.0"


Flakeyness when nats/memcache is restarted

We've had at least three reports of timeout and/or connection errors with nats and memcache. E.g. nats: timeout and/or memcache: no servers configured or available.
I'm not sure whether this is one or multiple issues. It's odd that we get timeouts AND connections failed.
My current theory is that kube-dns is failing and for whatever reason, the dns cache inside the fluxsvc container doesn't get purged. But I'm not sure.

It would be good to see some alerts covering areas where brokenness can cause outages

Well, after a thourough thrashing of memcache and/or kube-dns, I can't get memcache to fail for longer than the time it takes to reestabilish a connection.
So I'm happy to scratch memcache off the flakey list...

There is no NATS in this repo any longer.


[Install-DbaSqlWatch] DACPAC failed ... Cannot bind argument to parameter 'Path' because it is an empty string.

Before submitting a bug report:

[X] Ensure you are able to reproduce it on the latest released version (we release often)
[X] Verified this bug is not already reported in an issue
[X] Verified errors are not related to permissions
[ ] Can reproduce in a clean PowerShell session (clean = powershell -NoProfile)
[ ] If issue is with Copy-DbaDatabase, using Backup-DbaDatabase | Restore-DbaDatabase still does not work

Steps to Reproduce
Describe the bug
SQLwatch installation from local file fails using dbatools.
PS C:\SQLwatch> Install-DbaSqlWatch -SqlInstance ABChostname123 -Database SQLWATCH -LocalFile sqlwatch-master.zip

I got this error:
WARNING: [15:15:31][Install-DbaSqlWatch] DACPAC failed to publish to SQLWATCH on ABChostname123. | Cannot bind argument to parameter 'Path' because it is an empty string.

Windows Server (please complete the following information):

OS Version: [Windows 2016 ]

SQL Server (please complete the following information):

SQL Version: [SQL Server 2016 SP1]
SQL Edition: [Standard]

https://github.com/marcingminski/sqlwatch/issues/78

Hello!
I think I can see the problem here: looks like you have downloaded the master branch as opposed to one of the releases. The source code does not contain the dacpac. But if you download the latest release I think it will work, as the sqlwatch dacpac is in there.
If I'm correct in my assumptions can you try with the release and confirm here whether it worked?

Hello,
I have tested both, master and development, both have not work, but tommorrow I will double check again and let you know.
Sent from ProtonMail mobile
-------- Original Message --------
On 28. 2. 2019, 17:02, Richie Lee wrote:

Hello!
I think I can see the problem here: looks like you have downloaded the master branch as opposed to one of the releases. The source code does not contain the dacpac. But if you download the latest release I think it will work, as the sqlwatch dacpac is in there.
If I'm correct in my assumptions can you try with the release and confirm here whether it worked?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Just to be clear, you need to go to the release page and download a release for it to work. None of the branches on the sqlwatch project have the sqlwatch dacpac. So I wouldn't expect the development branch to work. The dacpac is generated by a build of the sqlproj file, and has not been included in the source code.

Thank you @RichieBzzzt , much appreciated.
You are right, it is because of missing .dacpac, so downloading the right package solved my problem and created another problem :)
But the next issue is another story, so I am closing this one.

@RichieBzzzt can you clarify why the dacpac was removed because I just used this command two weeks ago and never went to your release page to download anything.
Your commit history shows the dacpac was included in the development branch in September: https://github.com/marcingminski/sqlwatch/commit/b0f57789d493e2df47e353d13930c620d227c6bd
If the dacpac is not included anymore then we will remove this install command from the module // @potatoqualitee

I'm leaving this open until confirmation is found that the dacpac will no longer be included in the repository.
https://github.com/sqlcollaborative/dbatools/blob/ef77ab414a69a9b505f6af6ed179827c32e4010d/functions/Install-DbaSqlWatch.ps1#L188-L192
The install command was built around the dacpac being available and if it is no longer available them there is no longer a need for this command.

@wsmelton You've got the wrong person, @marcingminski made that commit.

DACPACs are essentially a binary files being built by the appveyor upon pull request and get published as a release. I removed binaries from source code as they were causing versioning conflicts. The install-dba sqlwatch was designed to work with releases and we had a discussion about this back in a day.

The command is coded to pull the release. Are you saying when we download the zip file that is under the latest release tag we are supposed to still find the bacpac file?

Yes, correct. As long as it’s a release you will find everything you need there.

We are downloading the release...
$ReleasesUrl = "https://api.github.com/repos/marcingminski/sqlwatch/releases"
                $DownloadBase = "https://github.com/marcingminski/sqlwatch/releases/download/"

                Write-Message -Level Verbose -Message "Checking GitHub for the latest release."
                $LatestReleaseUrl = (Invoke-TlsWebRequest -UseBasicParsing -Uri $ReleasesUrl | ConvertFrom-Json)[0].assets[0].browser_download_url

Hello @wsmelton !
As described in the help for the function, if the localfile parameter is not specified then the latest version will be downloaded. This is in effect in an "if" statement a few lines above the code you pasted in your comment. As the OP is using this parameter, and were originally using a zip that was not a release, the original error makes sense.


linearAcceleration seems to be dependend on the setting of non-linear acceleration

Working with a Mega2560. Stepper NUMA24, driver DM542T.  PlatformIO, FastAccelStepper 0.30.10.
Trying to figure out what LinearAcceleration can do for me. Reading the comments/docs I understand using setLinearAcceleration(steps) will use this amount of steps to reach the speed already set.
With the following "setup()" function:
void setup() {

   Serial.begin(115200);
   engine.init();
   stepper = engine.stepperConnectToPin(stepPinStepper);
   if (stepper) {
      Serial.println("Got stepper");
      stepper->setDirectionPin(dirPinStepper);

      int8_t rv = stepper->setSpeedInHz(hz);
      Serial.print("Result : "); Serial.println(rv);
      Serial.print("MaxSpeedInTics : "); Serial.println( stepper->getMaxSpeedInTicks() );
      Serial.print("MaxSpeedInHz   : "); Serial.println( stepper->getMaxSpeedInHz() );
      rv = stepper->moveTo(0L);
      Serial.print("moveTo(0): "); Serial.println(rv);
      // stepper->setAcceleration(50000L);
      stepper->setLinearAcceleration(1000L);
      delay(100);
      rv = stepper->moveTo(0L);
      Serial.print("moveTo(0): "); Serial.println(rv);
      Serial.print("Speed: "); Serial.println(hz);
   }
   while (1) ;
}

The resulting output is:
Got stepper
Result : 0
MaxSpeedInTics : 320
MaxSpeedInHz   : 50000
moveTo(0): -3
moveTo(0): -3
Speed: 4000

Both moveTo's report -3 (MOVE_ERR_ACCELERATION_IS_UNDEFINED)
I now uncomment the line:
      // stepper->setAcceleration(50000L);

and rerun:
Result : 0
MaxSpeedInTics : 320
MaxSpeedInHz   : 50000
moveTo(0): -3
moveTo(0): 0
Speed: 4000

Now only the first moveTo reports an error, while the second used after a call of setAcceleration is done, is fine.
I changed the value of the parameter for setAcceleration and it makes the speed of the stepper go different (as expected).
Why is there a need to use the setAcceleration() when trying to do this with setLinearAcceleration() only? Do I need a different approach to work with setLinearAcceleration() only?

The doc says: “ setLinearAcceleration expects as parameter the number of steps, where the acceleration is increased linearly from standstill up to the configured acceleration value”
The acceleration is configured by setAcceleration(). So the behavior is as expected.
The rotation force being applied to the stepper axes is proportional to the acceleration. So a normal ramp applies constant acceleration till maximum speed. This means, from standstill a constant force is applied, which the driven system may not like so much (e.g. a glass full of water being moved linearly). setLinearAcceleration allows for a smoother start, where the force is ramping up, too.


Add constructor definition to TS type

The TypeScript type definitions did not match the expected constructor parameter. This PR adds that definition.

Thanks!


Unable to download  Build Artifacts in build pipeline

I have 2 Projects say - A and B Both have a build and release pipeline.
I want to use artifacts published by build pipeline of Project A in "Build Pipeline" of Project B.
So for this I tried using both tasks

Download Build Artifacts
Download Pipeline Artifacts

I provide Project Name , Pipeline Name  in the task from the dropdown menu.
When I run pipeline, I get

VS800075: The project with id 'vstfs:///Classification/TeamProject/XXXXXXXX-XXXX-XXXX-XXXXXXXXXXXX' does not exist, or you do not have permission to access it.

NOTE : I can use those artifacts in "Release Pipeline" of Project B
So don't seem it as a permission issue
Since I have selected Project and Build Pipelines from dropdown menu, no chance of putting wrong project ID

@vipulnewaskar7 -- Vipul, thanks for your feedback; we appreciate it. To make sure we have all the information needed to triage your issue, please let us know which topic you’re referencing, or provide more context around the general task.
Meanwhile, you may find additional information here:

Azure DevOps on Stack Overflow
Azure DevOps Support Bot

Had to get the permissions but once I disabled that setting I found joy.

Hi, I missed to clear this out.
There is an option "Limit job authorization scope to current project" in
"Project Settings" > Pipelines > Settings.
This option was enabled by default, if it's disabled, It will work.
You means:
A. Limit job authorization scope to current project for release pipelines OR
B. Limit job authorization scope to current project for non-release pipelines
for disabled ?

Hi, I missed to clear this out.
There is an option "Limit job authorization scope to current project" in
"Project Settings" > Pipelines > Settings.
This option was enabled by default, if it's disabled, It will work.

awesome! This saved my date!

I tried disabling both unsuccessfully:
A. Limit job authorization scope to current project for release pipelines OR
B. Limit job authorization scope to current project for non-release pipelines for disabled
What did work for me was

Navigate to project B settings > Permissions
Adding "[ProjectName] Build Service" to a group with "View project-level information" set to Allow

Hope this helps someone.

@vipulnewaskar7 -- Vipul, thank you for your follow-up and solution!

I have to admit - this is a pretty crazy security barrier. I have an older Azure pipeline that does not seem to care about these settings but a new one breaks without these settings being adjusted. Both pipelines use EXACTLY the same yaml code to run. I guess this "feature" was added and older pipelines were not migrated to the "new" way of handling sessions. Thank you all so much for the comments! This helped a lot!

I tried disabling both unsuccessfully: A. Limit job authorization scope to current project for release pipelines OR B. Limit job authorization scope to current project for non-release pipelines for disabled
What did work for me was from this forum post...

Navigate to project (where pipeline artifacts reside) settings > Permissions
Adding "[ProjectName] Build Service" to a group with "View project-level information" set to Allow

There was no need to toggle the job authorization scope setting afterwards.
Hope this helps someone.

Yes this is crazy, I also have older builds with the same yaml and they where working but the new one didn't work.
Thank's this help me a lot.


Inconsistent solutions

While implementing the code described here:https://github.com/graphhopper/jsprit/blob/master/docs/Simple-Example.md
I noticed that the solutions tend to change depending on the order of insertion of the jobs.
Lets say for example that the optimal solution for 3 jobs: job1,job2 and job3 is job1->job2->job3
If I insert job1 then job2 and then job3 I usually get the optimal solution.
The problem is when I change the order like job2,job1 and then job3 the solution doesn't match the original.

@VanderIG123  Does the cost also change once the route is created or the cost of both routes are same ?


Cmake Error in Ubuntu20.04

$ cmake .. -DCMAKE_BUILD_TYPE=Release -DSUPERBUILD_INSTALL_DIR=/home/lingbo/open-source-project/ct_icp/install -DSLAMCORE_INSTALL_DIR=/home/lingbo/open-source-project/ct_icp/install/SlamCore -DCT_ICP_INSTALL_DIR=/home/lingbo/open-source-project/ct_icp/install/CT_ICP -DEIGEN_DIR=/home/lingbo/open-source-project/ct_icp/install/Eigen3/share/eigen3/cmake
INFO [Superbuild] -- Successfully found target glog::glog
INFO [Superbuild] -- Successfully Found Target Eigen3::Eigen
-- Found required Ceres dependency: Eigen version 3.3.7 in /home/lingbo/open-source-project/ct_icp/install/Eigen3/include/eigen3
-- Found required Ceres dependency: glog
-- Found required Ceres dependency: gflags
-- Found Ceres version: 2.0.0 installed in: /home/lingbo/open-source-project/ct_icp/install/Ceres with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, CXSparse, SchurSpecializations, Multithreading]
INFO [Superbuild] -- Successfully found target Ceres::ceres
INFO [Superbuild] -- Successfully found target yaml-cpp
INFO [Superbuild] -- Successfully found target GTest::gtest
INFO [Superbuild] -- Successfully found target cereal
INFO [Superbuild] -- Successfully found target tclap::tclap
INFO [Superbuild] -- Successfully found target tsl::robin_map
INFO [Superbuild] -- Successfully found target nanoflann::nanoflann
INFO [Superbuild] -- Successfully found target colormap::colormap
INFO [Superbuild] -- Successfully found target tinyply::tinyply
CMake Error at cmake/external.cmake:13 (get_target_property):
INTERFACE_LIBRARY targets may only have whitelisted properties.  The
property "IMPORTED_RELEASE_LOCATION" is not allowed.
Call Stack (most recent call first):
CMakeLists.txt:51 (include)
INFO Eigen3::Eigen NOTFOUND
INFO /home/lingbo/open-source-project/ct_icp/install/Ceres/lib/libceres.so.2.0.0
INFO /home/lingbo/open-source-project/ct_icp/install/glog/lib/libglog.so.0.5.0
CMake Error at cmake/external.cmake:13 (get_target_property):
INTERFACE_LIBRARY targets may only have whitelisted properties.  The
property "IMPORTED_RELEASE_LOCATION" is not allowed.
Call Stack (most recent call first):
CMakeLists.txt:51 (include)
INFO tsl::robin_map NOTFOUND
INFO /home/lingbo/open-source-project/ct_icp/install/yaml-cpp/lib/libyaml-cpp.so.0.6.3
CMake Error at cmake/external.cmake:13 (get_target_property):
INTERFACE_LIBRARY targets may only have whitelisted properties.  The
property "IMPORTED_RELEASE_LOCATION" is not allowed.
Call Stack (most recent call first):
CMakeLists.txt:51 (include)
INFO colormap::colormap NOTFOUND
INFO /home/lingbo/open-source-project/ct_icp/install/tinyply/lib/libtinyply.so
INFO -- [CT-ICP] -- Appending to the INSTALL RPATH the RPATH to the external libraries:
[:/home/lingbo/open-source-project/ct_icp/install/Ceres/lib:/home/lingbo/open-source-project/ct_icp/install/glog/lib:/home/lingbo/open-source-project/ct_icp/install/yaml-cpp/lib:/home/lingbo/open-source-project/ct_icp/install/tinyply/lib]
INFO [CT_ICP] -- "WITH_GTSAM=OFF gtsam dependent targets will not be built"
-- Configuring incomplete, errors occurred!
See also "/home/lingbo/open-source-project/ct_icp/cmake-build-release/CMakeFiles/CMakeOutput.log".
See also "/home/lingbo/open-source-project/ct_icp/cmake-build-release/CMakeFiles/CMakeError.log".

it seems eigen3/tsl::robin_map/colormap did not install seccussfully, but the superbuild succeeded. Those deps are already in my install directory:

drwxrwxr-x 4 lingbo lingbo 4.0K Sep  1 10:15 cereal
drwxrwxr-x 4 lingbo lingbo 4.0K Sep  1 10:16 Ceres
-rw-rw-r-- 1 lingbo lingbo  20K Sep  1 11:18 CMakeCache.txt
drwxrwxr-x 5 lingbo lingbo 4.0K Sep  1 11:15 CMakeFiles
drwxrwxr-x 4 lingbo lingbo 4.0K Sep  1 10:16 colormap
drwxrwxr-x 3 lingbo lingbo 4.0K Sep  1 11:15 command
-rw-rw-r-- 1 lingbo lingbo 1.1K Sep  1 11:15 CT_ICPConfig.cmake
drwxrwxr-x 4 lingbo lingbo 4.0K Sep  1 10:15 Eigen3
drwxrwxr-x 2 lingbo lingbo 4.0K Sep  1 10:20 glad
drwxrwxr-x 4 lingbo lingbo 4.0K Sep  1 10:20 glfw
drwxrwxr-x 4 lingbo lingbo 4.0K Sep  1 10:15 glog
drwxrwxr-x 4 lingbo lingbo 4.0K Sep  1 10:14 googletest
drwxrwxr-x 4 lingbo lingbo 4.0K Sep  1 10:16 nanoflann
-rw-rw-r-- 1 lingbo lingbo 1.1K Sep  1 11:15 SlamCoreConfig.cmake
drwxrwxr-x 5 lingbo lingbo 4.0K Sep  1 11:15 src
-rw-rw-r-- 1 lingbo lingbo 6.9K Sep  1 10:32 superbuild_import.cmake
drwxrwxr-x 4 lingbo lingbo 4.0K Sep  1 10:16 tclap
drwxrwxr-x 4 lingbo lingbo 4.0K Sep  1 10:14 tessil
drwxrwxr-x 6 lingbo lingbo 4.0K Sep  1 11:15 test
drwxrwxr-x 4 lingbo lingbo 4.0K Sep  1 10:16 tinyply
drwxrwxr-x 6 lingbo lingbo 4.0K Sep  1 10:28 vtk
drwxrwxr-x 4 lingbo lingbo 4.0K Sep  1 10:14 yaml-cpp

same Error in Ubuntu 18.04

Hi @lingbo-yu, @owl-d,
Sorry for the delay, can you tell me what is your cmake version ?

I used cmake 3.14.0
2022년 9월 14일 (수) 오전 3:27, pdell-kitware @.***>님이 작성:

Hi @lingbo-yu https://github.com/lingbo-yu, @owl-d
https://github.com/owl-d,
Sorry for the delay, can you tell me what is your cmake version ?
—
Reply to this email directly, view it on GitHub
https://github.com/jedeschaud/ct_icp/issues/47#issuecomment-1245800065,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASWTA2MJAU4AGZLIFYDSXPDV6DBSZANCNFSM6AAAAAAQB6DM7Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

same issue at cmake 3.16.3.
I update cmake version 3.20.5, compile success.

@owl-d,
Either you could upgrade your cmake version,
Or try the branch pdell-kitware-patch-1 ?

cmake 3.20.5 works! Thank you !


[FSx] Update file system id generation to expected regex

This change intends to address https://github.com/getmoto/moto/issues/8148
Modifies how fsx fs id is generated so that:

there are not collisions for requests that happen in parallel
it complies with the expected regex.

Hi @rpmcginty, thanks for raising a PR here.
Do you know what AWS actually uses as the length of this identifier? The documentation is a bit confused:

FileSystemId

The system-generated, unique 17-digit ID of the file system.

Type: String

Length Constraints: Minimum length of 11. Maximum length of 21.

Pattern: ^(fs-[0-9a-f]{8,})$

Required: No

Based on this I can't tell whether it's supposed to 8, 17, or anything between 11 and 21.

Hi @rpmcginty, thanks for raising a PR here.
Do you know what AWS actually uses as the length of this identifier? The documentation is a bit confused:

FileSystemId

The system-generated, unique 17-digit ID of the file system.

Type: String

Length Constraints: Minimum length of 11. Maximum length of 21.

Pattern: ^(fs-[0-9a-f]{8,})$

Required: No

Based on this I can't tell whether it's supposed to 8, 17, or anything between 11 and 21.

yeah it is a bit confusing I suppose. The character count does include the "fs-" so I think the minimum is in fact 11 characters (not 8). Having dealt with fsx ids I have only seen 17 characters so I can update it if you would like me to.


Revert "Gatsby plugin service worker issue fix (#5021)"

This reverts commit d2161484d5f07cb88413a7184a80f4780c234846.
Changes:

...

Type of change

[ ] Bug fix
[ ] New feature
[ ] Update feature
[ ] Refactor code
[ ] Translation to code
[ ] Translation to crowdin
[ ] Script configuration
[ ] Improve performance
[ ] Style only
[ ] Dependency update
[ ] Documentation update
[ ] Release

Mitra removing gatsby-plugin-offline by this way wont unregister users who already visited deriv.com in production.
If those users who visited our website recently go to deriv.com again right after releasing this PR, they will use the old service worker and we would see the same error in TrackJS.
To remove gatsby-plugin-offline we need to install gatsby-plugin-remove-serviceworker package to remove the service worker as well.
You can read more information regarding this here:
gatsby-plugin-remove-serviceworker

Resolved here #5113


c.Exchange does not support long responses like AXFR

Hi there, cool library! I'm using it to build a "reverse proxy" that redirects requests to one server or another depending on the domain asked.
It works well, but I'm having an issue with AXFR: it looks like c.Exchange only reads one message, not the whole thing?
To reproduce, sample proxy code:
package main

import (
        "log"

        "github.com/miekg/dns"
)

func main() {
        server := &dns.Server{Addr: ":53", Net: "tcp"}
        dns.HandleFunc(".", proxy)
        log.Fatal(server.ListenAndServe())
}

func proxy(w dns.ResponseWriter, req *dns.Msg) {
        c := &dns.Client{Net: "tcp"}
        resp, _, err := c.Exchange(req, "<IP_ADDRESS>:53")
        if err != nil {
                log.Println(w.RemoteAddr(), err)
                dns.HandleFailed(w, req)
                return
        }
        w.WriteMsg(resp)
}

Update IP with an existing DNS server that allows AXFR for a domain, then:
$ dig axfr stalkr.net @localhost +tcp
; <<>> DiG 9.9.5-6-Debian <<>> AXFR stalkr.net @localhost +tcp
;; global options: +cmd
stalkr.net.             3600    IN      SOA     ns0.stalkr.net. hostmaster.stalkr.net.<PHONE_NUMBER> 3600 1800<PHONE_NUMBER>0
stalkr.net.             3600    IN      RRSIG   SOA 8 2 3600<PHONE_NUMBER>0000<PHONE_NUMBER>0000 61206 stalkr.net. rhCGJDljnE9DVU2eVYxp7+JKxArEkJ567ydX0zDXOPS5KnTKfscO+qT1 2TDzm8Dy8jHHXTJKjdj34k4fRB7NtpByIXcTiv7g/Kf2mf33PCOBy8ti /QbHBH0ugLht6Onn+1XV4aCWWDBwL6xeLTF+7Q4UtayM50/p4YI1gV6I D6M=
;; communications error to <IP_ADDRESS>#53: end of file

I'm explicitly using tcp to rule out a possible issue with udp/edns0/max message size.

I suggest #168 to resolve this:
$ dig axfr stalkr.net @localhost +tcp
[...]
;; XFR size: 270 records (messages 1, bytes 34389)

You can notice only 1 message. If we do a direct query to the nameserver we can see it aggregated 5:
$ dig axfr stalkr.net @ns0.stalkr.net +tcp
;; XFR size: 270 records (messages 5, bytes 29482)

#168 will break for your use case if the zone is large as messages transmitted over TCP are limited by a two-byte length prefix.
Is there a reason you're not using dns.Transfer?

[ Quoting<EMAIL_ADDRESS>in "Re: [dns] c.Exchange does not suppo..." ]

I suggest #168 to resolve this:
$ dig axfr stalkr.net @localhost +tcp
[...]
;; XFR size: 270 records (messages 1, bytes 34389)

You can notice only 1 message. If we do a direct query to the nameserver we can see it aggregated 5:
$ dig axfr stalkr.net @ns0.stalkr.net +tcp
;; XFR size: 270 records (messages 5, bytes 29482)

This should "just work" although it is badly tested.
--
Miek Gieben

In your proxy handler you need to look for the AXFR qtype and specifically handle that case (and IXFR) and use dns.Transfer.

Hey guys, thanks for the quick replies!
I didn't see dns.Transfer, I just tried (see below).
I'm ok to have specific code to handle transfer, but it doesn't feel like the right solution: in my opinion a transfer is just another type of DNS query and it should work with a dns.Client? After all, it's entirely possible a normal query (not a transfer) returns more than one message and a dns.Client should be able to handle it in its c.Exchange. What do you think?
Taking the example code above and adding special support for zone transfer:
func proxy(w dns.ResponseWriter, req *dns.Msg) {
  transfer := false
  for _, q := range req.Question {
    switch q.Qtype {
    case dns.TypeIXFR, dns.TypeAXFR:
      transfer = true
    }
  }
  if transfer {
    t := new(dns.Transfer)
    c, err := t.In(req, "<IP_ADDRESS>:53")
    if err != nil {
      log.Println(w.RemoteAddr(), err)
      dns.HandleFailed(w, req)
      return
    }
    t.Out(w, req, c)
    return
  }

  c := &dns.Client{Net: "tcp"}
  resp, _, err := c.Exchange(req, "<IP_ADDRESS>:53")
  if err != nil {
    log.Println(w.RemoteAddr(), err)
    dns.HandleFailed(w, req)
    return
  }
  w.WriteMsg(resp)
}

First, am I using it right?

;; XFR size: 3 records (messages 2, bytes 12140)

$ dig axfr stalkr.net @<IP_ADDRESS> +tcp
[...]
;; XFR size: 270 records (messages 5, bytes 29537)

$ diff <(dig axfr stalkr.net @<IP_ADDRESS> +tcp | grep -v '^;' | sort -u) <(dig axfr stalkr.net @localhost +tcp | grep -v '^;' | sort -u)

Also sometimes I'm hitting this panic:
$ go run proxy.go
panic: not reached

goroutine 24 [running]:
github.com/miekg/dns.(*response).Write(0xc20807d440, 0xc20807e000, 0x8604, 0x8daa, 0x0, 0x0, 0x0)
        ~/go/src/github.com/miekg/dns/server.go:596 +0x51d

[ Quoting<EMAIL_ADDRESS>in "Re: [dns] c.Exchange does not suppo..." ]

Hey guys, thanks for the quick replies!
I didn't see dns.Transfer, I just tried (see below).
I'm ok to have specific code to handle transfer, but it doesn't feel like the right solution: in my opinion a transfer is just another type of DNS query and it should work with a dns.Client? After all, it's entirely possible a normal query (not a transfer) returns more than one message and a dns.Client should be able to handle it in its c.Exchange. What do you think?

No, a transfer is something completely different, although it looks eerily
similar to just exchanging message. Esp with Tsig stuff is different. If you go
back in the history of this project, you will find failed attempts to make AXFR
(and IXFR!) work with Exchange.
It's entirely impossible for a normal query to return more than one message.
If you think otherwise, please point to the relevant RFC :-)

Taking the example code above and adding special support for zone transfer:
func proxy(w dns.ResponseWriter, req *dns.Msg) {
 transfer := false
 for _, q := range req.Question {
   switch q.Qtype {
   case dns.TypeIXFR, dns.TypeAXFR:
     transfer = true
   }
 }
 if transfer {
   t := new(dns.Transfer)
   c, err := t.In(req, "<IP_ADDRESS>:53")
   if err != nil {
     log.Println(w.RemoteAddr(), err)
     dns.HandleFailed(w, req)
     return
   }
   t.Out(w, req, c)
   return
 }

 c := &dns.Client{Net: "tcp"}
 resp, _, err := c.Exchange(req, "<IP_ADDRESS>:53")
 if err != nil {
   log.Println(w.RemoteAddr(), err)
   dns.HandleFailed(w, req)
   return
 }
 w.WriteMsg(resp)
}

First, am I using it right?

Almost, as the documentation shows:
     c, err := t.In(m, "<IP_ADDRESS>:53")
     for r := range c { /* r.RR */ }

you need to range over the channel.

;; XFR size: 3 records (messages 2, bytes 12140)

$ dig axfr stalkr.net @<IP_ADDRESS> +tcp
[...]
;; XFR size: 270 records (messages 5, bytes 29537)

$ diff <(dig axfr stalkr.net @<IP_ADDRESS> +tcp | grep -v '^;' | sort -u) <(dig axfr stalkr.net @localhost +tcp | grep -v '^;' | sort -u)

Also sometimes I'm hitting this panic:
$ go run proxy.go
panic: not reached

goroutine 24 [running]:
github.com/miekg/dns.(*response).Write(0xc20807d440, 0xc20807e000, 0x8604, 0x8daa, 0x0, 0x0, 0x0)
       ~/go/src/github.com/miekg/dns/server.go:596 +0x51d

That's a bug. Hmmm, w.udp/w.tcp is not set in this case. I'll look into it.
/Miek
--
Miek Gieben

you need to range over the channel.
I saw that, I also saw t.Out which does exactly this, so maybe the bug is in there?

By the way, it looks like a race condition because the diff is not constant.

[ Quoting<EMAIL_ADDRESS>in "Re: [dns] c.Exchange does not suppo..." ]

you need to range over the channel.
I saw that, I also saw t.Out which does exactly this, so maybe the bug is in there?

t.Out: Out performs an outgoing transfer with the client connecting in w.
This is when a server needs to output an axfr response.
But there is a bug there somewhere, otherwise you would not hit the panic.

Reply to this email directly or view it on GitHub:
https://github.com/miekg/dns/issues/167#issuecomment-70059558
/Miek

--
Miek Gieben

Yes, the proxy is both a client (when it asks the axfr to the real server), and a server (when it replies to the client).

I think I found the issues:

for the lost messages: as I suspected this Envelope is loosing information along the way, keeping the raw Msg and using it for Out solves this
for the panic: Out doesn't wait for the goroutine, I made it synchronous

See https://github.com/StalkR/dns/compare/xfr?expand=1
Now the transfer is complete every time and doesn't crash.

[ Quoting<EMAIL_ADDRESS>in "Re: [dns] c.Exchange does not suppo..." ]

I think I found the issues:

for the lost messages: as I suspected this Envelope is loosing information along the way, keeping the raw Msg and using it for Out solves this

Ah, the old 'concurrent access to shared data', this should have a simpler fix
than what you propose, but thanks for looking into it.

for the panic: Out doesn't wait for the goroutine, I made it synchronous

Hmmm, I wonder why I did that in the first place... Can you wrap this part in a
PR?

See https://github.com/StalkR/dns/compare/xfr?expand=1
Now the transfer is complete every time and doesn't crash.

/Miek
--
Miek Gieben

[ Quoting<EMAIL_ADDRESS>in "Re: [dns] c.Exchange does not suppo..." ]

By the way, it looks like a race condition because the diff is not constant.

So, with your PR merged, this still needs to be fixed. I'll take a look later
today.
/Miek
--
Miek Gieben

Cool, so with #170 and #171 merged it solves everything. Thanks!


Fix upload issue to code coverage report to codecov

This is a duplicate issue. hence resolving. The changes are present in the linked pull request.


Issues installing tiny-care-terminal

I installed git-standup succesfully but I can't install tiny-care-terminal. I have a kind of infinite loop running :(
This is the infinite loop I'm having :
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/tiny-care-terminal/node_modules/weak/.node-gyp/8.9.4"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/tiny-care-terminal/node_modules/weak/.node-gyp"
^C

I tried using my regular account but I have an error saying I should run the command again as root.
npm ERR! path /usr/local/lib/node_modules/tiny-care-terminal/node_modules/shoe/node_modules/sockjs-client
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/tiny-care-terminal/node_modules/shoe/node_modules/sockjs-client'
npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/tiny-care-terminal/node_modules/shoe/node_modules/sockjs-client'
npm ERR!   stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules/tiny-care-terminal/node_modules/shoe/node_modules/sockjs-client\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules/tiny-care-terminal/node_modules/shoe/node_modules/sockjs-client' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

Node Version: v8.9.4
tiny-core-terminal version:

sh-3.2# npm info tiny-care-terminal | grep version:
  version: '1.3.2',

Shell:

GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
Copyright (C) 2007 Free Software Foundation, Inc.

Terminal Program: iTerm
Operating System: Mac OSX High Sierra 10.13

Thank you!

duplicate of #131

To solve this issue, I changed the ownership of my local folder node_modules.  See more details here: http://latrmouh.org/blog/permission-issue-with-npm-while-installing-react-devtools/
I deleted the folder tiny-care-terminal in the node_modules.
rm -rf /usr/local/lib/node_modules/tiny-care-terminal/

I installed it again without the sudo.
npm install -g tiny-care-terminal

And it worked :)
Thank you again for this awesome tool!


fix: throw non-tab component error for development env

Description
Details: https://github.com/openedx/paragon/issues/1790
For non-tab component failures, added a check to conditionally throw the console.error for development environment only.
Deploy Preview
https://deploy-preview-1792--paragon-openedx.netlify.app/components/tabs/
Merge Checklist

[ ] If your update includes visual changes, have they been reviewed by a designer? Send them a link to the Netlify deploy preview, if applicable.
[ ] Does your change adhere to the documented style conventions?
[ ] Do any prop types have missing descriptions in the Props API tables in the documentation site (check deploy preview)?
[ ] Were your changes tested using all available themes (see theme switcher in the header of the deploy preview, under the "Settings" icon)?
[ ] Were your changes tested in the example app?
[ ] Is there adequate test coverage for your changes?
[ ] Consider whether this change needs to reviewed/QA'ed for accessibility (a11y). If so, please add wittjeff and adamstankiewicz as reviewers on this PR.

Post-merge Checklist

[ ] Verify your changes were released to NPM at the expected version.
[ ] If you'd like, share your contribution in #show-and-tell.
[ ] 🎉 🙌 Celebrate! Thanks for your contribution.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 21.0.0-alpha.12 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Unable to load references in my C# code

Type: Bug
Unable to load references in my C# code
VS Code version: Code 1.74.2 (e8a3071ea4344d9d48ef8a4df2c097372b0c5161, 2022-12-20T10:32:21.587Z)
OS version: Darwin arm64 22.2.0
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
Apple M2 (8 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
2, 2, 3

Memory (System)
8.00GB (0.05GB free)

Process Argv
--crash-reporter-id 197f45ca-0655-44e6-9ffe-62d56c2fa0bc

Screen Reader
no

VM
0%

Extensions (1)

Extension
Author (truncated)
Version

csharp
ms-
1.25.2

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848cf:30577861
nodejswelcome1cf:30587006
2e4cg342:30602488
3d0df643:30613357
89544117:30613380
fim-prod:30623723

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.74.3. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

/extC#

It looks like this is caused by the C# extension. Please file the issue to the C# extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.
Happy Coding!


Naming for index and search classes

We currently have three sets of indexing/search entry points:

"normal" inverted indexing and search: io.anserini.index.IndexCollection, io.anserini.search.SearchCollection
indexing and searching dense vectors using HNSW.
indexing and searching dense vectors using inverted indexes, with LSH or FW analyzers, currently in the io.anserini.ann package.

We need a consistent naming scheme... How about:
For 1, keep as before:

io.anserini.index.IndexCollection
io.anserini.search.SearchCollection

For 2:

io.anserini.index.IndexHnswDenseVectors
io.anserini.search.SearchHnswDenseVectors

For 3:

io.anserini.index.IndexInvertedDenseVectors
io.anserini.search.SearchInvertedDenseVectors

the proposal looks good to me


Store Models in Prefix folders?

I just wonder if it makes really sense to store the Models in a prefixed folder like it is happening actually?
When I do
php artisan infyom.scaffold:views Post --prefix=admin
the model is stored under App\Models\Admin\Post.php.
Could this be configurable?
I would like to have all my Models only in App\Models... folder.
Thanks
kay899

@kay899 Actually the main purpose of adding a prefix was when we have multiple panels like backend and frontend and we want a separate layout for both then it will be helpful.
But currently, there is no way to just store model without prefix and store everything else with the prefix.
I will add it in future list.

@mitulgolakiya That would be perfect.
Thanks


Add constants for outbound connection limits

Adds DEFAULT_MAX_OUTBOUND_CONNECTIONS constant to net.h, to replace the previous MAX_OUTBOUND_CONNECTIONS constant.
Adds a new MIN_OUTBOUND_CONNECTIONS constant.

such magic numbers :D


Implement PolicyGroups RFC

Implement RFC PolicyGroups.
Acceptance criteria

[x] Add PolicyGroups to policy-server. This includes changing policy-evaluator. https://github.com/kubewarden/policy-server/pull/814
[x] #833

Define the CRDs Go types.
Implement the reconciliation of the new CRDs, make sure we can reuse as much as possible of the sub-reconciler we already have in place.

[x] #857
[x] #859
[x] https://github.com/kubewarden/kubewarden-controller/issues/872
[x] https://github.com/kubewarden/kubewarden-controller/issues/876
[x] https://github.com/kubewarden/audit-scanner/issues/366
[x] https://github.com/kubewarden/kubewarden-controller/issues/842
[x] #858
[x] Docs:

[x] https://github.com/kubewarden/kubewarden-controller/issues/857
[x] Add explanation page.
[x] Add HowTo page

[ ] Blogpost.
[ ] Add PolicyGroups to kwctl (kwctl run, kwctl scaffold) [Optional]

This has been done now


CI: webhook failure

Which tests are failing?
it happened many times
https://github.com/spidernet-io/spiderpool/actions/runs/7782401613/job/21218933519?pr=3189
CI: webhook failure
https://github.com/spidernet-io/spiderpool/actions/runs/7805419026/job/21289798371
Job's Link
No response
Reason for failure (if possible)
No response
Anything else we need to know?
No response

https://github.com/spidernet-io/spiderpool/actions/runs/7805419026/job/21289798371
e2edebugLog 7.txt

https://github.com/spidernet-io/spiderpool/actions/runs/7857112387/job/21440702593


Fix case where file directory description can be undefined

Aperio SVS files can have an image where the description does not have any new lines, in which case getAllTileSources encounters undefined in s.includes and errors out.

Thanks for fixing this. Looks like the bundled licenses have reverted to previous versions for some reason?

Accidentally committed my local build output here. Re-committed with just the required changes.


Accessing process.stderr from renderer process

Is it correct that I get such an error when I access process.stderr from the renderer process:
[21892:0416/110229:INFO:CONSOLE(123)] "Error: UnknownSystemError: Unknown system error, uv_pipe_open
Got this error when requiring the bluebird package.
The error occurred on OS X 10.9. I didn't test it on other platforms.
If the behavior is correct, I will forward this issue to the bluebird devs.
-Trixt0r

Note: Atom-Shell uses io.js which has promises natively, You don't need bluebird with it.

Yes, I know. But I am also using sharp, which relies on bluebird...

The UnknownSystemError means something between OS X and Electron has interrupted the system call, it could be virus scanner or firewall software.


ecds: support for upstream network filter

Additional Description: Support of upstream network filter with ECDS. Resolves #14696.
Risk Level: low
Testing: Integration tests
Docs Changes: ECDS docs
Release Notes: None
Platform Specific Features: None
cc @htuch

Moving back to draft as there are tests failing which don't reproduce locally, will try to resolve this


--Prod flag no working

Ionic version:  (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[X] 3.x
I'm submitting a ...  (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

Every time I try to run "ionic cordova buid IOS --release" i get the error that says that my component is duplicated when in fact it's not
Expected behavior:

--prod works without errors
Steps to reproduce:

pick an Ionic project
Be sure to be on an Mac
run "ionic cordova build ios --prod"
Watch the error
Related code:
ionic cordova build IOS --prod

Other information:

Hello. I've been trying to build the production build for weeks, and i always get this error in particular.
imageCropperComponent is a component crucial to my app. I've already check my code, built another app form 0 and the error still remains. The funny thing is that the --release flag works, without problems.
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
cli packages:
@ionic/cli-plugin-cordova       : 1.5.0 (/Users/imag/ondemand/skin/node_modules/@ionic/cli-plugin-cordova)
@ionic/cli-plugin-ionic-angular : 1.4.0 (/Users/imag/ondemand/skin/node_modules/@ionic/cli-plugin-ionic-angular)
@ionic/cli-utils                : 1.6.0 (/Users/imag/ondemand/skin/node_modules/@ionic/cli-utils)
ionic (Ionic CLI)               : 3.6.0 (/Users/imag/ondemand/skin/node_modules/ionic)
global packages:
Cordova CLI : 7.0.1

local packages:
@ionic/app-scripts : 1.3.7
Cordova Platforms  : browser ios 4.4.0
Ionic Framework    : ionic-angular 3.6.0

System:
Node       : v6.11.1
OS         : macOS Sierra
Xcode      : Xcode 8.3.3 Build version 8E3004b
ios-deploy : 1.9.1
npm        : 3.10.10

Error: Type ImageCropperComponent in /Users/imag/ondemand/skin/node_modules/ng2-img-cropper/src/imageCropperComponent.d.ts is part of the declarations of 2 modules: ImageCropperModule in /Users/imag/ondemand/skin/node_modules/ng2-img-cropper/src/imageCropperModule.d.ts and AppModule in /Users/imag/ondemand/skin/src/app/app.module.ts! Please consider moving ImageCropperComponent in /Users/imag/ondemand/skin/node_modules/ng2-img-cropper/src/imageCropperComponent.d.ts to a higher module that imports ImageCropperModule in /Users/imag/ondemand/skin/node_modules/ng2-img-cropper/src/imageCropperModule.d.ts and AppModule in /Users/imag/ondemand/skin/src/app/app.module.ts. You can also create a new NgModule that exports and includes ImageCropperComponent in /Users/imag/ondemand/skin/node_modules/ng2-img-cropper/src/imageCropperComponent.d.ts then import that NgModule in ImageCropperModule in /Users/imag/ondemand/skin/node_modules/ng2-img-cropper/src/imageCropperModule.d.ts and AppModule in /Users/imag/ondemand/skin/src/app/app.module.ts.

Hello. This stackoverflow answer will help you with this issue https://stackoverflow.com/questions/43598311/component-is-part-of-the-declaration-of-2-modules.
also, as this seems like more of a support question I will urge that you ask this question on our forum or on our slack channel. Thanks for using Ionic!


Export the certificate chain construction functionality of build_chain()

As recently discussed: https://github.com/openssl/openssl/pull/10587#discussion_r357966995 would be nice if there was official/public access to the certificate chain construction implemented by  build_chain() in x509_vfy.c, along with suitable documentation of the algorithm used and the options that can be set for it.
There are situations where other parts of libcrypto, as well as applications, need to construct the chain of a given certificate from a given list of candidate intermediate certificates, potentially up to some trusted certificate, which may be from a set of certificates in an optionally given trust store.
So far, the chain buildling can be achieved for instance as in ossl_cmp_build_cert_chain() in crypto/cmp/cmp_util.c, yet this function unfortunately actually does too much: by using X509_verify_cert()it also attempts to verify the chain because it cannot call build_chain() directly, which results in a waste of computational resources and also requires chopping any new error queue entries.

@DDvO are you looking for something along the lines of a getter variant of X509_STORE_CTX_set0_trusted_stack?

@DDvO are you looking for something along the lines of a getter variant of X509_STORE_CTX_set0_trusted_stack?

No, but anyway good that you asked: In #14128 I provided the wanted function myself,
and forgot that that solves this issue here - so closing as completed.


support of machine learning library

because it is much more efficient to use other language(ie. python) to write some machine learning code on top of some library(ie. tensorflow), but the official AIIDE tournament machine seems do not support such python library.
so I has several questions:

do you have plan to do such things in future?
is the submitted AI folder has space limitation? for example, can i put a pre-config python version in the AI folder which may occupy about 30m.
other recommended alternative?

Thanks

seems I post in the wrong repository. I move this issue to StarcraftAITournamentManager


Fixed an issue with same date

Fixed the issue where it's monthly and it's scheduled on the same day but before the next fire time.
See unit test for reproduction.
This is ultimately an issue that the code does not take the Time of day into account

Hi @tidusjar,
Apologies for my delayed response, I considered the changes in your PR for a while but at the moment am leaning towards not making the library sensitive down to time of day precision.
This is mainly to keep the library simpler but I would be open to reconsider in the future if more people ask for this change.
Thanks for your time

I will have to agree with @gavynriebau on this one. Well done, Gavyn! You're still the gun