Pulling data from hass does not work

Hi David,
I'm encountering this behaviour from EMHASS:
[2022-09-14 14:07:47,182] INFO in web_server: Launching the emhass webserver at: http://<IP_ADDRESS>:5000
[2022-09-14 14:07:47,182] INFO in web_server: Home Assistant data fetch will be performed using url: http://supervisor/core/api
[2022-09-14 14:07:47,182] INFO in web_server: The base path is: /usr/src
[2022-09-14 14:07:47,183] INFO in web_server: Using core emhass version: 0.3.18
[2022-09-14 14:08:08,988] INFO in web_server: EMHASS server online, serving index.html...
[2022-09-14 14:08:30,780] INFO in command_line: Setting up needed data
[2022-09-14 14:08:30,811] INFO in forecast: Retrieving weather forecast data using method = scrapper
[2022-09-14 14:08:34,036] INFO in forecast: Retrieving data from hass for load forecast using method = naive
[2022-09-14 14:08:34,036] INFO in retrieve_hass: Retrieve hass get data method initiated...
[2022-09-14 14:08:34,051] ERROR in retrieve_hass: The retrieved JSON is empty, check that correct day or variable names are passed
[2022-09-14 14:08:34,051] ERROR in retrieve_hass: Either the names of the passed variables are not correct or days_to_retrieve is larger than the recorded history of your sensor (check your recorder settings)
[2022-09-14 14:08:34,051] ERROR in app: Exception on /action/dayahead-optim [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/local/lib/python3.9/dist-packages/emhass/web_server.py", line 134, in action_call
input_data_dict = set_input_data_dict(config_path, str(config_path.parent), costfun,
File "/usr/local/lib/python3.9/dist-packages/emhass/command_line.py", line 77, in set_input_data_dict
P_load_forecast = fcst.get_load_forecast(method=optim_conf['load_forecast_method'])
File "/usr/local/lib/python3.9/dist-packages/emhass/forecast.py", line 495, in get_load_forecast
rh.get_data(days_list, var_list)
File "/usr/local/lib/python3.9/dist-packages/emhass/retrieve_hass.py", line 130, in get_data
self.df_final = pd.concat([self.df_final, df_day], axis=0)
UnboundLocalError: local variable 'df_day' referenced before assignment
As my sensor for the load of the house without the deferrable load is only a calculated value and the update frequency of my energy sensor and the pv don't match I sometimes have negative values for the currently used power. Could this affect the EMHASS?
I'm also waiting for the implementation of the solcast values in the add-on to have the right values for my specific installation of the solar panels (installed on both sides of the house, 40% east, 60% west).
Just to mention, it looks like EMHASS is not at the right day (the graphs are showing dates as of April this year). Is this a config error?
Thanks for looking into that. If you need more data or config just send a message.
Thanks
Ralf

Hi, this error is well known and the error message was made explicit for this reason. So, check that the correct day or variable names are passed. Either the names of the passed variables are not correct or days_to_retrieve is larger than the recorded history of your sensor (check your recorder settings). Check the data entering EMHASS using templates in Home Assistant.

As my sensor for the load of the house without the deferrable load is only a calculated value and the update frequency of my energy sensor and the pv don't match I sometimes have negative values for the currently used power. Could this affect the EMHASS?

This is not a problem, there is a parameters in the configuration to control this (set_zero_min). Take a look at the docs here: https://emhass.readthedocs.io/en/latest/config.html

I'm also waiting for the implementation of the solcast values in the add-on to have the right values for my specific installation of the solar panels (installed on both sides of the house, 40% east, 60% west).

I'll implement this in the next version of the add-on when I could find some spare time to work on this. But for now you can already implement this by using rest sensors and passing the data using templates and list. Follow the example given in the docs here: https://emhass.readthedocs.io/en/latest/forecasts.html#example-using-solcast-forecast-amber-prices

Just to mention, it looks like EMHASS is not at the right day (the graphs are showing dates as of April this year). Is this a config error?

This is normal as this is just the example results form the default configuration, so this is not refelcting your system. You need to run a proper otimization first to update this figure. So this means that you need to solve the first issue first and then you will be able to see the updated graphs.

Dumb me, parameter for pv was not set at all (though I think I did it....), what ever.
Now that part is working, next problem comes up. I have left the params for the solver at the default values. So lp_solver is set to PULP_CBC_CMD and lp_solver_path is set to the string "empty" (did not change it). That's also what the documentation says (no that I understand that the string "empty" has to be there...).
[2022-09-14 14:55:57,306] INFO in optimization: Solving for day: 12-9-2022
[2022-09-14 14:55:57,326] ERROR in optimization: It was not possible to find a valid solver for Pulp package
[2022-09-14 14:55:57,326] INFO in optimization: Status: Not Solved
[2022-09-14 14:55:57,326] WARNING in optimization: Cost function cannot be evaluated, probably None
[2022-09-14 14:55:57,329] ERROR in app: Exception on /action/perfect-optim [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/local/lib/python3.9/dist-packages/emhass/web_server.py", line 143, in action_call
opt_res = perfect_forecast_optim(input_data_dict, app.logger)
File "/usr/local/lib/python3.9/dist-packages/emhass/command_line.py", line 161, in perfect_forecast_optim
opt_res = input_data_dict['opt'].perform_perfect_forecast_optim(df_input_data, input_data_dict['days_list'])
File "/usr/local/lib/python3.9/dist-packages/emhass/optimization.py", line 462, in perform_perfect_forecast_optim
opt_tp = self.perform_optimization(data_tp, P_PV, P_load,
File "/usr/local/lib/python3.9/dist-packages/emhass/optimization.py", line 386, in perform_optimization
opt_tp["P_grid"] = [P_grid_pos[i].varValue + P_grid_neg[i].varValue for i in set_I]
File "/usr/local/lib/python3.9/dist-packages/emhass/optimization.py", line 386, in
opt_tp["P_grid"] = [P_grid_pos[i].varValue + P_grid_neg[i].varValue for i in set_I]
TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'

Yes, this is another. I'll try to test this at home as this seems to be a new problem that other users have also found. I'll come back later when I can with an answer to this after the tests.

Question about the set_zero_min parameter:
According to the mentioned docs it set to true by default.
As I'm using the add-on this parameter is not available in the config page of the add-on. That's a little bit strange. Do I have to dig in some files in a container to find the config_emhass.yaml file to change it?

Yes, this is another. I'll try to test this at home as this seems to be a new problem that other users have also found. I'll come back later when I can with an answer to this after the tests.

GLPK_CMD is working!

Oh yes you're right, this is a parameter that is True by default and it can't be changed from the add-on. There are some parameters that can be updated from the add-on, the initial goal of this was to simplify the list of editable parameters and simplify usability of the add-on

Ok great! Still a solution needs to be found because the other solvers are normally there on your system and we just need to provide the correct path to the executables. The default solvers are normally more robust and efficient than GLPK

GLPK_CMD is working!

Ok great! Still a solution needs to be found because the other solvers are normally there on your system and we just need to provide the correct path to the executables. The default solvers are normally more robust and efficient than GLPK

Thanks for the support.
Day-ahead not working yet as I still have to implement the forecast data now :-)
Will stay tuned to this project! Good job!

Hi, for the last problem I've just changed the default values for these:
  lp_solver: COIN_CMD
  lp_solver_path: /usr/bin/cbc

Everything is just working fine now.
Feel free to open another issue if necessary

Day-ahead not working yet as I still have to implement the forecast data now :-)

Hi, concerning this, SolCast can now be used natively on emhass.
Follow these instructions: https://emhass.readthedocs.io/en/latest/forecasts.html#pv-power-production-forecast


Bot says nothing (botium-connector-google-assistant)

Describe the bug
Bot says nothing error appear randomly when bot actually replies (when i checked the history of my bot it shows the bot did replied)
To Reproduce
Run tests that are long enough (50 tests with bot) and tests will fail at random points with error "bot says nothing"
Expected behavior
Test to pass
Desktop (please complete the following information):

OS: Windows
Version 10

Pls attach log file


KAFKA-5039: Logging in BlockingChannel and SyncProducer connect

When an exception is thrown in BlockingChannel::connect, the connection is disconnected but the actual exception is not logged. This later manifests as ClosedChannelException when trying to send. Also the SyncProducer wrongfully logs "Connected to host:port for producing" even in case of exceptions.
The proposed patch logs the exception in BlockingChannel::connect in debug level and logs the "Connected" message in SyncProducer only on successful connection.

Thanks for the PR, these classes have been removed so closing.


code 404 is returned

I've configured this to listen on <IP_ADDRESS> behind apache proxy.
The proxy redirection work well but i've got a 404 error for response !?
I know the response is from Ratchet because of the response header X-Powered-By: Ratchet/0.4.1
what could cause Ratchet to return this error ?

Did you provide the correct Websocket url? If you for example have the socket route $socket->route('/example', new ExampleSocket, ['*']); you need create your socket with ws://localhost/example.


WebSocketFrame should have a nice description

Expected behavior
WebSocketFrame.description outputs something nice.
Actual behavior
WebSocketFrame.description outputs something that's not nice at all
WebSocketFrame(_storage: NIOWebSocket.WebSocketFrame.(unknown context at $1084150f8)._Storage, maskKey: nil, firstByte: 138)

Steps to reproduce

print any WebSocketFrame

Made a PR  for this.

Can this be closed?


unit of slip rate along dip

Is the unit of the slip rate along the dip km/s? The picture shows m/s.

Do you mean the the grey numbers (e.g. "6 km/s") along with the lines denoted on the figure (Strike vs Time figure in README)? They are the reference rupture-front velocities (km/s). I just plotted them for the use of estimating the propagation speed of the rupture. Does it make sense to you?


[HOTFIX] Forward compatibility of Note class

What is this PR for?
Solving inconsistency issue of Note's dateformat between branch-0.7 and master. It's related to #2272
What type of PR is it?
[Hot Fix]
Todos

[x] - Support several dateformat for Note class

What is the Jira issue?

N/A

How should this be tested?

Sync with some remote repository

Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

@Leemoonsoo This is hotfix. Please test it and leave comments.

@jongyoul I hit this issue before, I think just adding yyyy-MM-dd HH:mm:ss.SSS into NotebookImportDeserializer should be able to resolve this issue.

Yes, if we use that gson, it can be solved. But there're several gson instances and used different one. I fixed it in order to use the same one to handle that type.

Some code used only vanila gson for handling json.

@jongyoul Which code path use vanila gson for handling json ?

@zjffdu I found S3,VFS,Zeppelinhub repo used different gson from Note. I know it's fixed in master but need to fix them in 0.7.x branch.

Thanks @jongyoul

Merge if there's no more discussion


Make 1Inch pricing parameters more competive

We no longer need to make sure 1Inch generates low gas cost trading routes.
Especially for big volume trades there often exists a trading route which yields an overall better price even if you consider higher gas costs.
To get the best prices I removed our default arguments which are below the 1Inch default and added values for complexity_level and main_parts which are bigger than 1Inch's defaults. Those parameters where the only ones which yielded higher prices compared to queries with their default values instead.
Note that growing the solution space by giving more generous query arguments also increases the runtime of the query which will result in higher latency for price estimations.
I tried to measure the runtime regression bu the variance between the runs were quite. Overall the latency regression seems worth the up to ~2% better prices for big volume trades.
The routes generated for smaller volume trades most of the time didn't change with the new parameters.
Test Plan
Manual test

Codecov Report

Merging #1631 (f3a748d) into main (bc8c19b) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1631      +/-   ##
==========================================
- Coverage   66.74%   66.74%   -0.01%
==========================================
  Files         173      173
  Lines       33910    33909       -1
==========================================
- Hits        22633    22632       -1
  Misses      11277    11277

Very nice analysis of how the 1Inch API responds to tweaking parameters!


Help in writing a function to work FC16

The function 16 Preset multiple registers must be submitted to the block input is an array of numbers.
Have some input from the server mqtt convert from strings to numbers function:
var newMsg = { payload:parseFloat( msg.payload)*100 } ;
return newMsg;
"27.85" -> 2785
Help to write a function with MULTIPLE inputs that creates an array for the block (modbus write).
When using FC6, everything works, but needs more blocks and passes to write data.
I apologize for the use of a software translator.
I have a problem how to make function several data.
Advance very grateful!
Beginner, not young, by the user.

If I understand you correctly, you need to build an array of numbers or from numbers:
first translate or give names to MQTT variables by function nodes like:
msg.payload.myVariableNumber1 = parseFloat(msg.payload)*100;
msg.payload.myVariableNumber2 = parseFloat(msg.payload)*100;
msg.payload.myVariableNumber3 = parseFloat(msg.payload)*100;
....
later concatenate values in array of 16Bit chunks (max 16Bit values, otherwise you have to split 32Bit into two 16Bit for Modbus):
msg = { payload: [msg.payload.myVariableNumber1, msg.payload.myVariableNumber2, msg.payload.myVariableNumber3] } ;
return msg;
... was that your question? Otherwise use Google Translation, please!

Thank you for the quick reply, Klaus.
Try more vividly and clearly explain your question.
It is in the attached picture.
I hope now You have clearer my problem is to create a Node-Red function with MULTIPLE INPUTS.
Sincerely, Alexander.

Пятница, 10 февраля 2017, 23:44 +03:00 от Klaus Landsdorf<EMAIL_ADDRESS>If I understand you correctly, you need to build an array of numbers or from numbers:
first translate or give names to MQTT variables by function nodes like:
msg.payload.myVariableNumber1 = parseFloat(msg.payload)*100;
msg.payload.myVariableNumber2 = parseFloat(msg.payload)*100;
msg.payload.myVariableNumber3 = parseFloat(msg.payload)*100;
....
later concatenate values in array of 16Bit chunks (max 16Bit values, otherwise you have to split 32Bit into two 16Bit for Modbus):
msg = { payload: [msg.payload.myVariableNumber1, msg.payload.myVariableNumber2, msg.payload.myVariableNumber3] } ;
return msg;
... was that your question? Otherwise use  Google Translation , please!
—
You are receiving this because you authored the thread.
Reply to this email directly,  view it on GitHub , or  mute the thread .

Александр Омельчук

Dear Klaus.
I figured out how to do it!
And it works!!!
The problem was the storage of information, to the generation of the array and the method of its installation in the desired position in the array.
Now I clearly indicate what and where should be.
-------- Пересылаемое сообщение --------
От кого: Омельчук Александр<EMAIL_ADDRESS>Кому: biancode/node-red-contrib-modbus<EMAIL_ADDRESS>Дата: Суббота, 11 февраля 2017, 8:42 +03:00
Тема: Re[2]: [biancode/node-red-contrib-modbus] Help in writing a function to work FC16 (#12)
Thank you for the quick reply, Klaus.
Try more vividly and clearly explain your question.
It is in the attached picture.
I hope now You have clearer my problem is to create a Node-Red function with MULTIPLE INPUTS.
Sincerely, Alexander.

Пятница, 10 февраля 2017, 23:44 +03:00 от Klaus Landsdorf <<EMAIL_ADDRESS>>:
If I understand you correctly, you need to build an array of numbers or from numbers:
first translate or give names to MQTT variables by function nodes like:
msg.payload.myVariableNumber1 = parseFloat(msg.payload)*100;
msg.payload.myVariableNumber2 = parseFloat(msg.payload)*100;
msg.payload.myVariableNumber3 = parseFloat(msg.payload)*100;
....
later concatenate values in array of 16Bit chunks (max 16Bit values, otherwise you have to split 32Bit into two 16Bit for Modbus):
msg = { payload: [msg.payload.myVariableNumber1, msg.payload.myVariableNumber2, msg.payload.myVariableNumber3] } ;
return msg;
... was that your question? Otherwise use  Google Translation , please!
—
You are receiving this because you authored the thread.
Reply to this email directly,  view it on GitHub , or  mute the thread .

Александр Омельчук

Александр Омельчук


TypeError: Cannot read property 'substr' of undefined

No idea what's going on here, seems different than https://github.com/aurelia/bundler/issues/79, any tips would be greatly appreciated.
[14:24:33] 'bundle' errored after 555 ms
[14:24:33] Error on fetch for app.html at file:///Users/mbroadst/Development/hive/dashboard/dist/app.html
	TypeError: Cannot read property 'substr' of undefined
    at fromFileURL (/Users/mbroadst/Development/hive/dashboard/node_modules/systemjs-builder/lib/utils.js:58:13)
    at SystemJSNodeLoader.<anonymous> (/Users/mbroadst/Development/hive/dashboard/node_modules/aurelia-bundler/dist/bundler.js:83:86)
    at SystemJSNodeLoader.loader.fetch (/Users/mbroadst/Development/hive/dashboard/node_modules/systemjs-builder/lib/builder.js:170:59)
    at /Users/mbroadst/Development/hive/dashboard/node_modules/systemjs-builder/lib/trace.js:374:23
    at tryCatcher (/Users/mbroadst/Development/hive/dashboard/node_modules/systemjs-builder/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/mbroadst/Development/hive/dashboard/node_modules/systemjs-builder/node_modules/bluebird/js/release/promise.js:503:31)
    at Promise._settlePromise (/Users/mbroadst/Development/hive/dashboard/node_modules/systemjs-builder/node_modules/bluebird/js/release/promise.js:560:18)
    at Promise._settlePromise0 (/Users/mbroadst/Development/hive/dashboard/node_modules/systemjs-builder/node_modules/bluebird/js/release/promise.js:605:10)
    at Promise._settlePromises (/Users/mbroadst/Development/hive/dashboard/node_modules/systemjs-builder/node_modules/bluebird/js/release/promise.js:684:18)
    at Async._drainQueue (/Users/mbroadst/Development/hive/dashboard/node_modules/systemjs-builder/node_modules/bluebird/js/release/async.js:126:16)
    at Async._drainQueues (/Users/mbroadst/Development/hive/dashboard/node_modules/systemjs-builder/node_modules/bluebird/js/release/async.js:136:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/mbroadst/Development/hive/dashboard/node_modules/systemjs-builder/node_modules/bluebird/js/release/async.js:16:14)
    at processImmediate [as _immediateCallback] (timers.js:383:17)

The error seems to stem from this line of code: https://github.com/aurelia/bundler/blob/master/dist/bundler.js#L83
I haven't traced back far enough yet, but this is being called for a top level app.html file in my src dir, where load in this case is:
{ name: 'file:///Users/mbroadst/Development/hive/dashboard/dist/app.html',
  metadata: {},
  address: 'file:///Users/mbroadst/Development/hive/dashboard/dist/app.html' }

This looks like I forgot to change [*] to [*.js] in my bundles.json, sorry for the noise but hopefully it might be helpful to users in the future!

@mbroadst This helped me, so your hopes were made reality ;)

@mbroadst you're a life saver mate, nice work!


Add constraint: all recipes using npm package foo must use same version of foo

Fixes #76

@milesfrain Could you merge this once CI passes and if I don't get to this before you do?

Thanks! I ran out of time on my lunch break when I was working on this.


Create User-Dispatchable Workflow to Move Config Inputs

Currently, we require someone to login as tm70_ci to move configuration inputs into /g/data/vk83/configurations/inputs since it is restricted.
This is a bit painful, so create a workflow that takes in:

Remote file source
Remote file target
Whether to overwrite the target with the source
The ACLs that the file will have (create a sensible default)

Require sign off by developers, and log the inputs so we have visibility.
The workflow should copy source to target as tm70_ci and set appropriate ACLs.

Per a conversation with @aidanheerdegen:
We should tack on the ability to store modified (created/updated/deleted) inputs on tape, in a structure like so:
input_backup/
├── 20240228/
│   ├── manifest.yaml
│   └── <update 1>
└── 20250101/
    ├── manifest.yaml
    └── <update 2>

In which the datestamp subdirectory format is yet to be determined.


Dialog inside Form + useFormStatus.

The current Dialog implementation uses portals so it can never be truly nested in any element due to its use of Portals.
This is frustrating when you want to use Form + Dialog + useFormStatus as now if you want to use all 3 and still have inputs get registered by the form inside of a dialog you have to:

Put the form inside of the dialog
Create a separate component for the children of the form to use the useFormStatus hook.

Inconvenient solution example:
import Dialog from "custom dialog made with shadcn components"

const InnerComponent = () => {
    const { pending } = useFormStatus();
    ...
}

const Component = () => {
  return <Dialog>
      <form>
          <InnerComponent/>
      </form>
    </Dialog>
}

//Then to use the component elsewhere
<Component/>

Whereas if we use a native <dialog/> element implementation, we can utilise this pattern:
import Dialog from "custom dialog made with native dialog element"

const Component = () => {
  const { pending } = useFormStatus();

  return <Dialog>
         ...
      </Dialog>
};

//Then we can just wrap a minimal form to reuse wherever
<form><Component/></form>

I propose either a solution for the current implementation or a new component using the native dialog element, unless there's already a pattern which allows for retrieving form status inside a dialog using only 1 component that someone knows of?
I've developed a solution that uses the dialog element but just want to check opinions before making a PR.

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.


Repair the issue that iOS cannot connect.

Should perform git rebase to omit unnecessary commits
Should not change line end


it keeps saying that dotnet is not recognized, and yes it was a new command prompt. what do i do?

Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/install
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Hi @mynamejeff3777! I'm sorry to hear you're running into problems.
This might be an issue with PATH.
Check the output of the where.exe dotnet command and if your system is x64 and the x86 path returns first, please follow the steps at https://github.com/dotnet/core/issues/5962#issuecomment-780084535 to fix the issue.
Let us know how that goes.


Fix release process

Currently it's impossible to download a compiled version of furyctl, how do we fix it? We should probably ask @beratio as she was working on a pipeline.

I think we can close this issue as it's solved


[DP] [cpp] Minimum number of deletions to make a string palindrome

An algorithm to find the minimum no of deletion of characters from the string so that the resultant string becomes a palindrome using dynamic programming approach.
Please assign it to me
@anubhavitis
@dheerajkotwani
@tarun26091999
@todi-2000 @geekquad

I want to code in Java pls assign it to me
@anubhavitis
@dheerajkotwani
@tarun26091999
@todi-2000 @geekquad

Can I solve it using python? @tarun26091999
@anubhavitis

@rudrakshi99
Pls look into it here I create a separate link and also link to the issue as to told


Yarn Start Live Reload

Every time I have changes, I had to re-serve the local server to be able to reflect the change.

Yes modifying app-config.yaml and also when I change the logo in
app/src/components/Root/LogoFull.tsx and LogoIcon.tsx
I am running this under Ubuntu 20 WSL.
On Tue, May 25, 2021, 4:04 PM Patrik Oldsberg, @.***>
wrote:

What files are you changing? This is most likely a bug, but some files
don't cause refreshes right now, like changes to app-config.yaml. It
could be an OS issue, so a restart might help. Either way we need more
information to be able to help out.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/backstage/backstage/issues/5802#issuecomment-847646090,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADX4EPQP7S2TDOMQM52LSSDTPNKXHANCNFSM45ONLHVQ
.

app-config.yaml is not picked up automatically and a restart is required.
.tsx files should be picked up and reloaded automatically, is this happening for all .tsx files or just those two?
Changes are picked up on my Mac when I edit those tsx files but perhaps some friendly Windows user could help out verifying/testing this too.

app-config.yaml is not picked up automatically and a restart is required.
.tsx files should be picked up and reloaded automatically, is this happening for all .tsx files or just those two?
Changes are picked up on my Mac when I edit those tsx files but perhaps some friendly Windows user could help out verifying/testing this too.

I think it is for all .tsx files. As I also change some in /src/App.tsx (adding microsoft provider) and I had to restart.

I am having the same issue.. and I see in the bworser console following error [WDS] Disconnected!
Working on Windows 10, starting the backstage via WSL2.

and it may be connected with this issue: https://github.com/microsoft/WSL/issues/4739
If your project folder is under /mnt/..., the server won't detect any file modifications because Windows will not notify the development server. That means that you will need to restart the server after each modification to see any change in your views. The build can also be slow under that file system.

One workaround is to move your project into /home/<your username> and access to that folder via \\wsl$\... under Windows but it's not practical at all.


Build failure when system-wide clang exists on PowerPC

$/gpfs/r92gpfs02/zhengyu/infer/infer/bin/infer --version
Infer version v0.17.0-89782df
Copyright 2009 - present Facebook. All Rights Reserved.

$pwd
/gpfs/r92gpfs02/zhengyu/infer

$clang --version
clang version 10.0.0 (/gpfs/r92gpfs02/zhengyu/llvm/llvm-project/clang 3ab587df82c8f917a7048e7797b90267694ad938)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/zhengyu/local/bin

$make
[16:50:51][156264] Building clang plugin...
[      0s][156264] SUCCESS Building clang plugin
[16:50:51][156282] Building clang plugin OCaml interface...
[      0s][156282] SUCCESS Building clang plugin OCaml interface
[16:50:51][156416] Generating source dependencies...
[      0s][156416] SUCCESS Generating source dependencies
[16:50:52][156732] Building native(opt) Infer...
[      0s][156732] SUCCESS Building native(opt) Infer
[16:50:53][157174] Building Infer models...
[*ERROR**][157174] *** ERROR 'Building Infer models'
[*ERROR**][157174] *** command: ' make INTERACTIVE=1 infer_models'
[*ERROR**][157174] *** CWD: '/gpfs/automountdir/r92gpfs02/zhengyu/infer'
[*ERROR**][157174] *** stdout:
[*ERROR**][157174] make[1]: Entering directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer'
[*ERROR**][157174] WARNING: MAKEFLAGS var was set to: w -- INTERACTIVE=1
[*ERROR**][157174]          which may (and will!) interfere with the setup
[*ERROR**][157174]          ... ignoring MAKEFLAGS.
[*ERROR**][157174] *** inner Building clang plugin
[*ERROR**][157174] *** inner command:  make INTERACTIVE=1 -C /gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/libtooling all CC="clang" CXX="clang++" CFLAGS="-g -O2" CXXFLAGS="-g -O2" CPP="clang -E" LDFLAGS="" LIBS="" LOCAL_CLANG=/gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/bin/clang CLANG_PREFIX=/gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install CLANG_INCLUDES=/gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/include
[*ERROR**][157174] *** inner CWD: /gpfs/automountdir/r92gpfs02/zhengyu/infer
[*ERROR**][157174] make[2]: Entering directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/facebook-clang-plugins/libtooling'
[*ERROR**][157174] make[2]: Nothing to be done for `all'.
[*ERROR**][157174] make[2]: Leaving directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/facebook-clang-plugins/libtooling'
[*ERROR**][157174] *** inner Building clang plugin OCaml interface
[*ERROR**][157174] *** inner command:  make INTERACTIVE=1 -C /gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang-ocaml all build/clang_ast_proj.ml build/clang_ast_proj.mli CC=clang CXX=clang++ CFLAGS="-g -O2" CXXFLAGS="-g -O2" CPP="clang -E" LDFLAGS="" LIBS="" LOCAL_CLANG=/gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/bin/clang CLANG_PREFIX=/gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install CLANG_INCLUDES=/gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/include
[*ERROR**][157174] *** inner CWD: /gpfs/automountdir/r92gpfs02/zhengyu/infer
[*ERROR**][157174] make[2]: Entering directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang-ocaml'
[*ERROR**][157174] make[2]: Nothing to be done for `all'.
[*ERROR**][157174] make[2]: `build/clang_ast_proj.ml' is up to date.
[*ERROR**][157174] make[2]: `build/clang_ast_proj.mli' is up to date.
[*ERROR**][157174] make[2]: Leaving directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang-ocaml'
[*ERROR**][157174] *** inner Generating source dependencies
[*ERROR**][157174] *** inner command:  make INTERACTIVE=1 -C /gpfs/r92gpfs02/zhengyu/infer/infer/src INFER_BUILD_DIR=_build/opt src_build_common
[*ERROR**][157174] *** inner CWD: /gpfs/automountdir/r92gpfs02/zhengyu/infer
[*ERROR**][157174] make[2]: Entering directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/src'
[*ERROR**][157174] make[2]: Nothing to be done for `src_build_common'.
[*ERROR**][157174] make[2]: Leaving directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/src'
[*ERROR**][157174] *** inner Building native(opt) Infer
[*ERROR**][157174] *** inner command:  make INTERACTIVE=1 -C /gpfs/r92gpfs02/zhengyu/infer/infer/src INFER_BUILD_DIR=_build/opt infer
[*ERROR**][157174] *** inner CWD: /gpfs/automountdir/r92gpfs02/zhengyu/infer
[*ERROR**][157174] make[2]: Entering directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/src'
[*ERROR**][157174] make[2]: Nothing to be done for `infer'.
[*ERROR**][157174] make[2]: Leaving directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/src'
[*ERROR**][157174] make INTERACTIVE=1 -C /gpfs/r92gpfs02/zhengyu/infer/infer/annotations
[*ERROR**][157174] make[2]: Entering directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/annotations'
[*ERROR**][157174] make[2]: Nothing to be done for `all'.

[*ERROR**][157174] Capturing in make/cc mode...
[*ERROR**][157174] make[3]: /gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/clang++: Command not found
[*ERROR**][157174] make[3]: *** [c_src/glib_cxx.o] Error 127
[*ERROR**][157174] External Error: *** capture command failed:
[*ERROR**][157174] *** make INTERACTIVE=1 -C cpp/src all
[*ERROR**][157174] *** exited with code 2
[*ERROR**][157174]
[*ERROR**][157174] Error backtrace:
[*ERROR**][157174] Raised at file "format.ml" (inlined), line 242, characters 35-52
[*ERROR**][157174] Called from file "format.ml", line 469, characters 8-33
[*ERROR**][157174] Called from file "format.ml", line 484, characters 6-24
[*ERROR**][157174] Re-raised at file "base/Die.ml", line 26, characters 8-56
[*ERROR**][157174] Called from file "integration/Driver.ml", line 323, characters 2-29
[*ERROR**][157174] Called from file "base/Utils.ml", line 398, characters 16-20
[*ERROR**][157174] Called from file "scuba/ScubaLogging.ml", line 66, characters 29-44
[*ERROR**][157174] Called from file "infer.ml", line 20, characters 2-36
[*ERROR**][157174] Called from file "base/Utils.ml", line 398, characters 16-20
[*ERROR**][157174] Called from file "scuba/ScubaLogging.ml", line 66, characters 29-44
[*ERROR**][157174] Called from file "infer.ml", line 145, characters 8-54
[*ERROR**][157174]
[*ERROR**][157174] Run the command again with `--keep-going` to try and ignore this error.
[*ERROR**][157174] make[2]: *** [/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/lib/specs/clang_models] Error 3
[*ERROR**][157174] make[1]: *** [infer_models] Error 2
make: *** [infer] Error 2

It seems working if I modify the $CXX in infer/models/cpp/src/Makefile to the customized clang.
However, I also noticed the same issue in infer/models/c/src/Makefile. I was wondering if it should be modified too.
$git diff infer/models/cpp/src/Makefile
diff --git a/infer/models/cpp/src/Makefile b/infer/models/cpp/src/Makefile
index a8ca77d..7e22523 100644
--- a/infer/models/cpp/src/Makefile
+++ b/infer/models/cpp/src/Makefile
@@ -6,7 +6,7 @@
 SOURCES=$(wildcard *.cpp)
 CSOURCES=$(wildcard c_src/*.c)
 OBJECTS=$(patsubst %.c,%_cxx.o, $(CSOURCES)) $(patsubst %.cpp,%.o, $(SOURCES))
-CXX=clang++
+CXX=/gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/bin/clang++
 CXXFLAGS=-c -w -std=c++11

 all: $(OBJECTS)

$make
[16:51:22][159124] Building clang plugin...
[      0s][159124] SUCCESS Building clang plugin
[16:51:22][159142] Building clang plugin OCaml interface...
[      0s][159142] SUCCESS Building clang plugin OCaml interface
[16:51:22][159276] Generating source dependencies...
[      1s][159276] SUCCESS Generating source dependencies
[16:51:23][159593] Building native(opt) Infer...
[      1s][159593] SUCCESS Building native(opt) Infer
[16:51:24][160035] Building Infer models...
[     16s][160035] SUCCESS Building Infer models
[16:51:40][162260] Building Infer manuals...
[      3s][162260] SUCCESS Building Infer manuals

/gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/clang++: Command not found

That is suspicious: the command here should be just clang++ when building infer from an unmodified source tree. The way it's supposed to work is that make is called from infer with a special PATH that makes clang, clang++, etc. point to infer. That PATH trick doesn't work if the path to the compiler is absolute as in your paste.
With your change, infer will not analyse the C++ models because the path to clang++ is absolute.

Thanks.
A quick question about With your change, infer will not analyse the C++ models because the path to clang++ is absolute. The absolute path in the patch still points to the clang++ 8.0 built by infer instead of the global clang++ 10.0. So it should be the same. Maybe I am missing something?
BTW, the path to the clang++ built by infer is  /gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/bin/clang++ instead of /gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/clang++ in the make log. I will check what would be the reason for that.
$pwd
/gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/bin

$./clang++ --version
clang version 8.0.0 (tags/RELEASE_800/final)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/bin/

The absolute path in the patch still points to the clang++ 8.0 built by infer instead of the global clang++ 10.0.

It's not the same: building the models (the steps that was failing in your paste) is done by calling infer -- make in infer/models/cpp/src/. What this does is call make with a modified PATH environment variable where gcc, clang, ... actually are just symbolic links to infer. This way, when make calls clang it will actually call infer. This allows infer to "capture" the corresponding source files and analyse them. But if make calls /gpfs/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/bin/clang++ then PATH has no effect and the source files do not get analysed by infer.

I see. thanks a lot.
ok. I did another experiment. I restored the Makefiles and move the global clang and clang++.
In infer/infer/models:

infer capture works well for c/src:
  $/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/bin/infer capture --jobs 1 --biabduction-only --results-dir infer-out --biabduction-models-mode --continue -- make INTERACTIVE=1 -C c/src all

However, it complains for cpp/src:
$/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/bin/infer capture --jobs 1 --biabduction-only --results-dir infer-out --biabduction-models-mode --continue -- make INTERACTIVE=1 -C cpp/src all.

The followings are the details. I was wondering where I should look at next.
Thanks for your time. Really appreciated!
$pwd
/gpfs/r92gpfs02/zhengyu/infer/infer/models

$ls
c  cpp  infer-out  java  Makefile  models-config.make  objc  objcpp

$git status
# On branch master
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#   (commit or discard the untracked or modified content in submodules)
#
#	modified:   ../../facebook-clang-plugins (modified content, untracked content)
#
no changes added to commit (use "git add" and/or "git commit -a")

$which clang
/usr/bin/which: no clang in (...)

$which clang++
/usr/bin/which: no clang++ in (...)

$make clean
rm -f /gpfs/r92gpfs02/zhengyu/infer/infer/lib/specs/*.specs /gpfs/r92gpfs02/zhengyu/infer/infer/lib/specs/clang_models
make[1]: Entering directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/models/java'
make[1]: Leaving directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/models/java'
make[1]: Entering directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/models/c/src'
rm -rf glib.o wchar.o xlib.o math.o wctype.o libc_basic.o infer_builtins.o
make[1]: Leaving directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/models/c/src'
make[1]: Entering directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/models/cpp/src'
rm -rf c_src/glib_cxx.o c_src/wchar_cxx.o c_src/xlib_cxx.o c_src/math_cxx.o c_src/wctype_cxx.o c_src/libc_basic_cxx.o c_src/infer_builtins_cxx.o shared_ptr.o type_info.o throw_wrappers.o
make[1]: Leaving directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/models/cpp/src'

$/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/bin/infer capture --jobs 1 --biabduction-only --results-dir infer-out --biabduction-models-mode --continue -- make INTERACTIVE=1 -C c/src all
Capturing in make/cc mode...
make: Entering directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/models/c/src'
clang -c -w glib.c -o glib.o
clang -c -w wchar.c -o wchar.o
clang -c -w xlib.c -o xlib.o
clang -c -w math.c -o math.o
clang -c -w wctype.c -o wctype.o
clang -c -w libc_basic.c -o libc_basic.o
clang -c -w infer_builtins.c -o infer_builtins.o
make: Leaving directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/models/c/src'

$/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/bin/infer capture --jobs 1 --biabduction-only --results-dir infer-out --biabduction-models-mode --continue -- make INTERACTIVE=1 -C cpp/src all
Capturing in make/cc mode...
make: Entering directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/models/cpp/src'
clang++ -c -w -std=c++11 c_src/glib.c -o c_src/glib_cxx.o
clang++ -c -w -std=c++11 c_src/wchar.c -o c_src/wchar_cxx.o
clang++ -c -w -std=c++11 c_src/xlib.c -o c_src/xlib_cxx.o
clang++ -c -w -std=c++11 c_src/math.c -o c_src/math_cxx.o
clang++ -c -w -std=c++11 c_src/wctype.c -o c_src/wctype_cxx.o
clang++ -c -w -std=c++11 c_src/libc_basic.c -o c_src/libc_basic_cxx.o
Stack dump:
0.	Program arguments: /gpfs/automountdir/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/bin/clang-8 @/tmp/clang_command_.tmp.7700a6.txt
1.	<eof> parser at end of file
Uncaught Internal Error: (Bi_inbuf.End_of_input)
Error backtrace:
Raised at file "src/bi_inbuf.ml", line 49, characters 6-24
Called from file "src/bi_io.ml" (inlined), line 508, characters 12-35
Called from file "atd/clang_ast_b.ml", line 37478, characters 7-24
Called from file "clang/Capture.ml", line 58, characters 8-39
Called from file "clang/Capture.ml", line 119, characters 2-31
Called from file "clang/Capture.ml", line 124, characters 6-35
Re-raised at file "istd/IExn.ml", line 18, characters 15-63
Called from file "clang/Capture.ml", line 126, characters 4-60
Called from file "base/Utils.ml", line 166, characters 8-12
Re-raised at file "istd/IExn.ml", line 13, characters 2-50
Called from file "base/Utils.ml", line 168, characters 6-141
Called from file "clang/Capture.ml", line 137, characters 8-78
Called from file "clang/Capture.ml", line 150, characters 15-43
Called from file "list.ml", line 106, characters 12-15
Called from file "src/list0.ml" (inlined), line 26, characters 40-75
Called from file "clang/ClangWrapper.ml", line 178, characters 2-54
Called from file "integration/Driver.ml", line 323, characters 2-29
Called from file "base/Utils.ml", line 398, characters 16-20
Called from file "scuba/ScubaLogging.ml", line 66, characters 29-44
Called from file "infer.ml", line 20, characters 2-36
Called from file "base/Utils.ml", line 398, characters 16-20
Called from file "scuba/ScubaLogging.ml", line 66, characters 29-44
Called from file "infer.ml", line 145, characters 8-54

Run the command again with `--keep-going` to try and ignore this error.
make: *** [c_src/libc_basic_cxx.o] Error 2
make: Leaving directory `/gpfs/automountdir/r92gpfs02/zhengyu/infer/infer/models/cpp/src'
External Error: *** capture command failed:
*** make INTERACTIVE=1 -C cpp/src all
*** exited with code 2

Error backtrace:
Raised at file "format.ml" (inlined), line 242, characters 35-52
Called from file "format.ml", line 469, characters 8-33
Called from file "format.ml", line 484, characters 6-24
Re-raised at file "base/Die.ml", line 26, characters 8-56
Called from file "integration/Driver.ml", line 323, characters 2-29
Called from file "base/Utils.ml", line 398, characters 16-20
Called from file "scuba/ScubaLogging.ml", line 66, characters 29-44
Called from file "infer.ml", line 20, characters 2-36
Called from file "base/Utils.ml", line 398, characters 16-20
Called from file "scuba/ScubaLogging.ml", line 66, characters 29-44
Called from file "infer.ml", line 145, characters 8-54

Run the command again with `--keep-going` to try and ignore this error.

Thanks for the logs. Unfortunately there's no visible cause of failure in there. Clang fails mysteriously:
Stack dump:
0.	Program arguments: /gpfs/automountdir/r92gpfs02/zhengyu/infer/facebook-clang-plugins/clang/install/bin/clang-8 @/tmp/clang_command_.tmp.7700a6.txt
1.	<eof> parser at end of file

That makes infer fail too:
Uncaught Internal Error: (Bi_inbuf.End_of_input)
Error backtrace:
Raised at file "src/bi_inbuf.ml", line 49, characters 6-24
Called from file "src/bi_io.ml" (inlined), line 508, characters 12-35
Called from file "atd/clang_ast_b.ml", line 37478, characters 7-24
Called from file "clang/Capture.ml", line 58, characters 8-39
...

but I can't see why clang failed in the first place...


Limit of modules inside Edge device.

Is there a strict limit of modules inside an edge device?
The IoT Hub specifies: "A device may host up to ten modules." If this is a strict limit are the $edgeAgent and $edgeHub included in this ten modules?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ad3731a8-f0df-f1a1-d1a1-e89a769a0908
Version Independent ID: 50a5190e-eafa-7dde-c18f-be9505b00a0a
Content: Azure IoT Edge module composition
Content Source: articles/iot-edge/module-composition.md
Service: iot-edge
GitHub Login: @kgremban
Microsoft Alias: kgremban

@ArneVlietinck Thanks for the feedback! I have assigned the issue to the content author to provide feedback and possibly update the documentation as appropriate. Thank you, MIke

@ArneVlietinck I'm looking into this question. Where specifically does it say that devices can only support 10 modules? I can't find that message.

@kgremban It is specified on the Azure portal: IoT Hub > Edge Device > Device details (see image below).

@ArneVlietinck @kgremban There is currently an Azure IoT Edge User Voice request to have the ability to run more than 10 modules. Please up vote this and add feedback, as the product group is currently requesting feedback. Regards, Mike

For the moment 20 modules are supported see Azure IoT Edge User Voice.

@ArneVlietinck Thanks for pointing that out. I've asked for the portal to be updated to the new limit, 20, and clarified that the limit does not include the runtime modules. So it's $edgeHub, $edgeAgent, and then 20 of your own.
If we've been able to answer your questions sufficiently, please close this issue. Otherwise, let me know how else I can help.


Issue with runguard

I have been using CodeRunner with C++ programs. I was trying to overcome the problem of CodeRunner failing to execute further tests when a test causes a program crash, hence I tried to changed the template so that a subprocess is created using fork() per each test case.
It does not work and I believe the reason has to do with the way runguard works. Consider the following program.
#include <unistd.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>

void doit(int x) {
  pid_t pid = fork();
  if (pid == 0) {
    printf("SON %d %d\n", x, getpid());
    exit(0);
  } else if (pid > 0) {
    waitpid(pid, 0, 0);
    printf("PARENT %d %d\n", x, getpid());
  } else {
    printf("FAIL %d\n", x);
  }
}
int main() {
  puts("A");
  doit(0);
  puts("B");
  doit(1);
  puts("C");
  doit(2);
}

During a normal execution of the program I get (as expected) something like:
A
SON 0 1963
PARENT 0 1962
B
SON 1 1964
PARENT 1 1962
C
SON 2 1965
PARENT 2 1962

When I execute the program through run_guard I get surprising output - I believe fork() behaves differently:
A
SON 0 2070
A
PARENT 0 2069
B
SON 1 2071
A
PARENT 0 2069
B
PARENT 1 2069
C
SON 2 2072
A
PARENT 0 2069
B
PARENT 1 2069
C
PARENT 2 2069

Is there a way to fix this behavior through CR configuration options passed on to Jobe?
Thanks

Surprising behaviour indeed. My first thought was it couldn't happen, but you're right - it does. Looking through the runguard code I see it forks at the start. The parent is a watchdog process, which connects to the child (which runs the test code) via pipes. The watchdog loops, reading data from the pipes. until the child finishes. If the child prints something then forks, the contents of the pipe get replicated in the grandchild so the watchdog gets the contents twice. Or something like that, anyway - I'm not totally clear on the details.
I "borrowed" runguard from the domjudge project many years ago and I've stuck with the old version because it doesn't have to use cgroups, which would considerably complicate the Jobe installation if I had to use them. It has proved extremely reliable, but I've never tried using it in a multitasking mode. I checked with the latest version of runguard and the behaviour under forking is unchanged. So there's no easy fix here and I think you'll have to live with it as it stands.
However, I believe you can still use a fork to avoid aborting testing when a test case fails. I've created a proof of concept question, which I attach (zipped, because this UI won't accept a .xml file). It uses a non-combinator template, which means it runs each test case separately. For each test, it forks and the child runs the test code after redirecting stderr output to stdout. The parent waits for the child to finish, then returns with a return code of 0. You could make that example into a prototype for a new question type if you want to do this often.
Does that solve your problem?
c_function_prevent_abort_on_error.zip

Thanks, your solution had a small but important ingredient that paved the way for my solution to work: the dup(1,2) call in the child process. The difference is that I use a combinator template. This is more efficient as we save time on compiling just one C/C++ program as I understand, rather than one compiled program per test case. My template is as shown next.
#include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <vector>
#include <algorithm>
#include <unistd.h>
#include <sys/wait.h>

using namespace std;
#define SEPARATOR "#<ab@17943918#@>#"

{{ STUDENT_ANSWER }}

int main() {
{% for TEST in TESTCASES %}
   {
       pid_t pid = fork();
       if (pid == 0) {
            dup2(1, 2);
            {{ TEST.extra }};
            {{ TEST.testcode }};
            exit(0);
       } else if (pid > 0) {
            waitpid(pid, 0, 0);
            {% if not loop.last %}cout << SEPARATOR << endl;{% endif %}

       }
   }
{% endfor %}
    return 0;
}

A bit of context that perhaps you may find interesting: we are compiling programs with AddressSanitizer and UndefinedBehaviorSanitizer (gcc and clang support both), hence crashes in student submissions are more frequent (and deterministic!) thus we need to accomodate for those cases more often. An additional minor note is that AddressSanitizer uses 20 terabytes (!) of virtual memory hence MemLimit needs to be set to 0. Hence this line in your code applies to other cases beyond Matlab.

Yep, a combinator template is definitely better. Thanks. And I'm most impressed at the 20 terabytes figure! I've taken the liberty of pasting your last posting to the question author's forum on coderunner.org.nz so it is more easily found by other users. Hope that's OK with you.
More recent versions of runguard require the use of cgroups, and so monitor actual memory usage rather than virtual memory demands. If I used such a version the issues with programs reserving huge amounts of virtual memory would go away. But at least when I first looked into that possibility it was significantly more difficult to set up a Jobe server with cgroups enabled and I wanted the procedure to be as simple as possible to encourage its use. With a docker Jobe implementation that's presumably no longer an issue so I probably should look into that. But ... I'm primarily a teacher not a developer and the current system works fine for me.
If you have any further comments suggestions would you mind using one of the forums on https://coderunner.org.nz, please? Postings there are more accessible to the community.
Thanks for the contribution.


Request for protected variables - Fixed Asset Journal page

Describe the request
On page 5629 "Fixed Asset Journal", can the following to variables please be made protected (the same as was done on page 5628 "Fixed Asset G/L Journal")
CurrentJnlBatchName: Code[10];
FADescription: Text[100];
Additional context
Needed for page customisations.
Internal work item: AB#558856

Availability update: We will publish a fix for this issue in the next update for release 25.
Build ID to track: 27697.


Post Creation: Add spinner to the Publish button

Task description
Add spinner to the Publish button due to the next problem:
When user finish write main content of the post (on Create Article/ Create Note pages) and click Publish button too fast his post wouldn't be sent to BE due to 2-sec timeout of the useCallback hook:
ArticleCreation.ts

To do

[ ] Add spinner to the Publish button

Estimating

We could store button status (enabled/disabled) in redux. Set it disabled on input change using debounced call (leading). Then enable it again from dispatchHtmlContent call.

We could store button status (enabled/disabled) in redux. Set it disabled on input change using debounced call (leading). Then enable it again from dispatchHtmlContent call.


Bottom Navigation?

https://material.io/guidelines/components/bottom-navigation.html

Your question is "how to do bottom navigation?"?

Hi @jet10000,
Thank you for opening this issue.
You can use tabs.
If you want to update the content without tabs (no horizontal scroll, etc.), it is better to change the view dynamically.
Please, reopen this issue if I didn't understand your request.


Should be able to call boot more than once

Is your feature request related to a problem? Please describe.
Currently, the boot method can only be called once. Subsequent calls are no-ops, due to this isBooted check.
However, the Integrate Intercom in a single page app documentation describes a process whereby you call boot once for logged out users, and again later once they've logged in:

An example of this for logged out visitors would be:
window.Intercom('boot', {
   app_id: 'abc12345',
   custom_launcher_selector: '#my_custom_link'
});

Important: If you copy the code snippet above make sure to manually change your workspace ID (this is called your APP_ID in the code).
Then, when you'd like to log them in or convert them to a user, simply change the boot method to include their user info:
window.Intercom('boot', {
   app_id: 'abc12345',
   email<EMAIL_ADDRESS>   user_id: 'abc123',
   created_at:<PHONE_NUMBER>,
   custom_launcher_selector: '#my_custom_link'
});

Following this process makes it so that any conversations started when the user was logged out are merged with the user's pre-existing conversations when they log in.
Describe the solution you'd like
I think it should be possible to call boot more than once. I would recommend just removing this check. Alternatively, you could create a separate method (e.g. reboot? hardBoot?) that doesn't have that check.
Describe alternatives you've considered
I tried calling update when the user logs in, but it does not have the same effect (the user's pre-existing conversations do not appear when they log in). I also tried calling shutdown and then calling boot again, but that does not work right either (the conversations started when the user was logged out are never associated with their account, and are essentially gone forever).

Nevermind. I was ultimately able to get this working by calling boot once (via autoBoot), and then calling update subsequently when the user logs in. Not sure why it wasn't fetching the user's pre-existing conversations before - perhaps it was just Intercom itself being slow/buggy 🤷.

Thanks for creating this issue. It's really helpful to give such a detailed description.
It also makes more sense to me to remove the guard. This leans more towards the one-on-one abstraction of the "vanilla" module that this library tends to be.
I'll probably come back to this in the near feature


ENH: Add static member function, itk::Matrix::GetIdentity()

Used itk::Matrix::GetIdentity() to simplify and modernize the default-constructor of ImageBase.

I think this implementation may be less efficient.


OPSEXP-1358 Add reusable workflow for pre-commit

OPSEXP-1358

[x] add pre-commit action (moved to https://github.com/Alfresco/alfresco-build-tools/pull/28)
[x] add pre-commit reusable workflow
[ ] write some readme

the reusable workflow can work fine until you don't have custom dependencies (e.g. helm-docs), so I am abandoning here the idea to have a reusable workflow and just provide an action


Ibm Cloud Secrets Manager unable to sync PKCS12 Keystore

Hello all,
I am trying to synchronize from IBM Cloud Secrets Manager a PKSC Keystore into a cluster as a Secret.
Unfortunately there is a problem when converting the octet stream
spec:
  secretStoreRef:
    name: test
    kind: ClusterSecretStore
  target:
    name: keystore-test
  data:
    - secretKey: keystore.jks
      remoteRef:
        key: arbitrary/xxxxx

By decoding the secret on the cluster i got the following:
kubectl get secret keystore-test -o jsonpath="{.data['keystore\.jks']}" | base64 -d
data:application/octet-stream;base64,MIIKbwIBAzC........
Is there a way to convert the stream? So that I get the raw base64 encoded file
Do you have any idea here?
Thanks for help.

You're storing a certificate, as an arbitrary string, which means it will get base64 encoded when saved into Secrets Manager; it's not longer "a certificate". What you get when decoding as expected, for the Arbitrary secret type.
IBM Cloud Secrets Manager currently does not support the JKS certificate format.

@moolen Can we close the ticket?


Handle shops with no ShippingCarrier permissions

Those shops are currently stuck in a never ending loop. There should be a proper error message.

We can now safely retry the onboarding process.


Modifications on Indian region data

Added newly  added union territory Ladakh https://github.com/country-regions/country-region-data/issues/87#issue-920320308  and updated Telangana region code TG to TS

Thanks @JogiPrasadPakki! Sorry for the wait.


Integration with object_store crate

👋 Hi! I'm a fan of fsspec in python and happy to see you working on it in Rust as well.
I wanted to make sure you were aware of the object_store crate, because I see that as an existing implementation of fsspec in Rust, and you appear to be re-implementing fsspec from scratch here. Connecting that to python might save some work?

After a deeper look into the library than my original glance afforded, I agree that object_store seems to include everything that an rfsspec would need. I'll see what it takes to integrate (help appreciated!). Critically, we will want to allow for the full set of credential options currently supported by s3fs, gcsfs and adlfs. Of course, HTTP is the easiest.
Some thoughts:

http supports PUT but not POST
the clients seems to be per-bucket, do they share auth and connection resources?
has anyone tried using object_store via wasm in the browser? I would love to see that!

I believe object_store is a relatively young library (and I haven't used it much myself) so it probably makes sense to start an issue over there (in the arrow-rs repo) to ask some of your questions. I've been wondering whether object_store considers it in-scope to include more filesystem apis like fsspec, so I'll write up an issue (hopefully today) and cc you

has anyone tried using object_store via wasm in the browser? I would love to see that!

Yes! It's set up to be able to compile to wasm: https://github.com/apache/arrow-rs/tree/master/object_store#support-for-wasm32-unknown-unknown-target. As noted there, currently cloud integrations are turned off in wasm; not sure what the underlying complications are for those.

:wave: object_store maintainer here

I've been wondering whether object_store considers it in-scope to include more filesystem apis like fsspec

The object_store crate is focused on the APIs that object stores can efficiently provide, functionality such as directories, random access reads, etc... would therefore be considered out of scope. That being said, I don't see a reason why object_store couldn't be used as the basis for a fsspec style implementation, with the unavoidable caveat that treating object stores as a filesystem requires prefetching heuristics, and generally does not yield the best experience. See (https://github.com/apache/arrow-datafusion/issues/2205#issuecomment-1100069800) and (https://github.com/apache/arrow-rs/issues/1473) for more context on this.

not sure what the underlying complications are for those.

I seem to remember some limitation of tokio's networking support, it was something at that level as opposed to something inherent to object_store itself.

... as I was in the midst of writing an object_store issue 🙂

unavoidable caveat that treating object stores as a filesystem requires prefetching heuristics

I 100% agree that this is very tricky (I'll save those issues for later reading!). In my eyes the style of fsspec is to expose this to the user for them to choose how they want to handle this. fsspec in Python includes a variety of caching mechanisms that the user can add as they wish https://github.com/fsspec/filesystem_spec/blob/master/fsspec/caching.py

random access reads, etc... would therefore be considered out of scope.

I'm particularly interested myself in random access reads with an underlying block cache. I think something like fsspec in rust would be useful, and building on top of object_store would certainly make things easier.

@martindurant what are your plans for this repo? Do you want this to only be a Python integration? Are you interested in a public Rust filesystem API that is also integrated into Python? If you're focused mostly on speeding up fsspec in Python, a rust filesystem API might be out of scope?

I 100% agree that this is very tricky (I'll save those issues for later reading!)

The TLDR is that workload agnostic caching layers don't perform very well, DataBricks built their own integrated S3 reader for Spark, and the Hadoop ecosystem is working on adding vectored IO that maps better to the underlying object store requests

Makes a lot of sense. I suppose it would be important to make such an fsspec caching layer an externally-implementable trait


Improve highlighter contrast in Palenight theme

Hello there!
Thanks for this amazing theme have been enjoying it for the last couple of months.
What does this PR do?
Darkens the background of highlighted text in the Palenight theme.
Context and motivation for this PR
I started using the ::highlighter:: recently and noticed that the Palenight theme has very little background contrast, especially when we compare it to the default Bear templates. This doesn't make the text as notorious as you would expect for something highlighted.
Screenshots
[Example of contrast in official Bear themes]

[Current contrast]

[Proposed contrast] (same as $dark-background-color from App theme)

This might just be my opinion but hopefully, this makes sense to you.
✌

Thanks @codeams, good call! I don't use them much so it was hard to figure out a good implementation.


Em/fix location info

@cos please review

@cos just let me know if you're happy, but do NOT merge this. I have to rebase this on master before merging.

should be merged after #2043

looks good. removed the "ready-for-review" flag so that I don't merge it by mistake.

This can be merged now, because #2043 has been merged.

Jenkins: test this please


Implement MSKR for min_sig as well

Actually this should be the default mode, as our benchmarks say this is faster + sigs are reused, while pks are usually static for BFT committees (at least per epoch).

I already did it for the MSKR benchmarks, I can merge it from he mskr-bench branch

Although it contains a bit of code duplicate that could be avoided through a clever macro


refactor(client): adapt openAPI "multiCallback in fusion dataset

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

8 of 52 (15.38%)  changed or added relevant lines in 3 files are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.01%) to 83.015%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

tensorbay/client/requests.py
0
5
0.0%

tensorbay/client/dataset.py
3
15
20.0%

tensorbay/client/segment.py
5
32
15.63%

Files with Coverage Reduction
New Missed Lines
%

tensorbay/client/dataset.py
3
25.23%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
5005

Relevant Lines:
6029

💛  - Coveralls


Fix userDir test case when .config.json exists

#1317
Fix a problem when ".config.json" exists on the directory that runs a grunt command.

Coverage decreased (-0.09%) to 86.041% when pulling a5ce7edb54a3d5d1f9f865d3ecc433597c0d424c on Kazuki-Nakanishi:userDirFix into 781ca777946f2bbd7f2ca00185033b3d6bd0f1b9 on node-red:master.

Coverage decreased (-0.09%) to 86.041% when pulling a5ce7edb54a3d5d1f9f865d3ecc433597c0d424c on Kazuki-Nakanishi:userDirFix into 781ca777946f2bbd7f2ca00185033b3d6bd0f1b9 on node-red:master.

Coverage decreased (-0.09%) to 86.041% when pulling a5ce7edb54a3d5d1f9f865d3ecc433597c0d424c on Kazuki-Nakanishi:userDirFix into 781ca777946f2bbd7f2ca00185033b3d6bd0f1b9 on node-red:master.


Display namespace while describing resources.

@brendandburns follow-on PR for #9650
Display namespace while describing pod, rc, secret, service,
serviceAccount, node, limitRange, resourceQuota, pv and pvc.
For containers and events are always displayed with other
resources, it's not necessary to show namespace for them.

Can you talk more about why you think this is useful?
If the user sets --all-namespaces=true, then maybe we want to show namespace.
If the user didn't set it, though, I think we should not show namespace.  It will be the same for all the resources, and the user can get the namespace by doing kubectl context view.
@derekwaynecarr thoughts?

I agreed it was useful to show the namespace/name for a pod when describing the pods on a given node.
When we do a kubectl get pods --all-namespaces=true style operation, we prepend the namespace into the NAME column.  I would have preferred we showed an additional column for NAMESPACE, but I get why it is how it is, and it's not awful.
cluster/kubectl.sh get pods --all-namespaces=true
NAME                        READY     REASON    RESTARTS   AGE
default/kube-dns-v3-7hhav   3/3       Running   0          1h
development/test-911jy      1/1       Running   0          1m
development/test-h94h5      1/1       Running   0          1m

Now for this PR, there is no ambiguity on describe since its from the current context.  So I look at this from the perspective of trying to debug a customer problem.  I would probably ask for the YAML output of the resource instead of the output of a describe, but maybe users reporting initial problems would be less inclined to know to do that.
So I am fine adding it, but I think it should go AFTER Name.

@erictune - When working with multi namespaces, but not all the namespaces, I use kubectl config use-context to switch namespaces other than use --namespaces= option for every command. Sometimes I may be confused by this frequently switch, so I thinks having namespace information in command output can help me keep aware what ns I'm working on.

@derekwaynecarr - The reason I put namespace in front of name is as what's listed with --all-namespaces=true. It's like default/kube-dns-v3-7hhav other than kube-dns-v3-7hhav/default.

I don't think we should add a column to describe for namespace by default because it increases the width, and it is the same value for all the pods.  We have already tried hard to reduce the width of describe output.  See issue #7843.
I'd consider a change to add a -l flag to kubectl describe which enables showing more columns, of which namespace could be one.

@erictune - I've read the issue before, it's mainly about the get command. The result of get has a horizontal layout, so it would increase the width. But this patch is applied to describe command, the result is of vertical layout.
$ kubectl describe rc nginx
Namespace:	quota-example
Name:		nginx
Image(s):	nginx
Selector:	run=nginx
Labels:		run=nginx
Replicas:	1 current / 1 desired
Pods Status:	1 Running / 0 Waiting / 0 Succeeded / 0 Failed

Another reason is IMO when people use get, they just want a glance of the resource, when they use describe, they want more detailed information. So I'm positive to reduce the columns of get and show only key information, but personally I'd like to have more information by describe. For now, I have to use get -o to export the yaml file and search from it for my required information.
What's in my mind is to detail information in three levels.  By get: only few key info, by describe: most commonly used info, by export the yaml: all info. I think namespace is a commonly used info, so it can go into describe. Does that sounds reasonable to you?
BTW, I've added -l option to describe, which enables label support for the command. See #9248. I'm definitly positive to your idea and want to implement it, just need to change a name of the flag.

I am ok with it in the describe output, but I want it after Name since not all resources have a Namespace, as a user I want Name to always be first.
Sent from my iPhone

On Jun 18, 2015, at 9:10 PM, Victor HU<EMAIL_ADDRESS>wrote:
@erictune - I've read the issue before, it's mainly about the get command. The result of get has a horizontal layout, so it would increase the width. But this patch is applied to describe command, the result is of vertical layout.
$ kubectl describe rc nginx
Namespace:  quota-example
Name:       nginx
Image(s):   nginx
Selector:   run=nginx
Labels:     run=nginx
Replicas:   1 current / 1 desired
Pods Status:    1 Running / 0 Waiting / 0 Succeeded / 0 Failed
Another reason is IMO when people use get, they just want a glance of the resource, when they use describe, they want more detailed information. So I'm positive to reduce the columns of get and show only key information, but personally I'd like to have more information by describe. For now, I have to use get -o to export the yaml file and search from it for my required information.
What's in my mind is to detail information in three levels. By get: only few key info, by describe: most commonly used info, by export the yaml: all info. I think namespace is a commonly used info, so it can go into describe. Does that sounds reasonable to you?
BTW, I've added -l option to describe, which enables label support for the command. See #9248. I'm definitly positive to your idea and want to implement it, just need to change a name of the flag.
—
Reply to this email directly or view it on GitHub.

@derekwaynecarr - I'm ok to change the order of Name and Namespace. Can you take a example  beside node which resource doesn't have a namespace? I'm not familar with the namespace design. Thanks!

@derekwaynecarr - I've changed the order as you said. Can you review it?

@hurf I'd like to get this into 1.0. Do you have time to address the feedback soon?

@bgrant0607 Sorry for the delay, I was on a trip and the laptop I carried has an upload restriction, I'll do it today.

@derekwaynecarr - done, can you review it?

Changes look good
On Monday, June 29, 2015, Victor HU<EMAIL_ADDRESS>wrote:

@derekwaynecarr https://github.com/derekwaynecarr - done, can you
review it?
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/pull/9791#issuecomment-116898227
.

LGTM. Reassigning to @erictune for another LGTM.

LGTM.
Request for follow up PR which also prints Cluster: blah before namespace.
Ref: #10626
Cluster name would be the server string from the current context of the kubeconfig.


Add group object

Codecov Report

Merging #20 (20efd9a) into main (c0eddf5) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #20   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           35        37    +2
  Lines          600       626   +26
=========================================
+ Hits           600       626   +26

Impacted Files
Coverage Δ

aioalfacrm/client.py
100.00% <100.00%> (ø)

aioalfacrm/crud_objects/__init__.py
100.00% <100.00%> (ø)

aioalfacrm/crud_objects/group.py
100.00% <100.00%> (ø)

aioalfacrm/models/__init__.py
100.00% <100.00%> (ø)

aioalfacrm/models/group.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Black stripes on mosaicking

Hi!
Description
I am running some tests with stackstac, and I have an issue regarding the mosaicking: some stripes appear. Note that I did the tests in a Jupyter notebook, despite I guess it will not be any difference
Code
The code is

from dask.distributed import Client, LocalCluster
from pystac import ItemCollection
from pystac_client import Client
import stackstac
import numpy as np
from matplotlib import pyplot as plt

# Init Dask
cluster = LocalCluster(processes=False, n_workers=2, threads_per_worker=2, memory_limit='8GiB')
client = Client(cluster)

# Search parameters
bbox = [-3.5, 40.0, -1.0, 41.5]

# Get items
catalog = Client.open("https://planetarycomputer.microsoft.com/api/stac/v1")
search = catalog.search(collections=["cop-dem-glo-30"], bbox=bbox)
items_pc: ItemCollection = search.item_collection()

# Stack and mosaic
stack = stackstac.stack(items_pc)
mosaic = stackstac.mosaic(stack)

# plot
fig = plt.figure()
plt.imshow(mosaic[0].compute())

and the result is as appears in

As the files are DEM files, mosaicking results should be similar using another functions, so I tried max in order to evaluate if the problem was regarding stacking/input sources or mosaicking.
mosaic = stack.max(dim='time')

# plot
fig = plt.figure()
plt.imshow(mosaic[0].compute())

In this case, the operation seems to give good results

Let me know if I can provide more info
Thanks!

Thanks for the good report @lhcorralo. It looks like the underlying issue is https://github.com/rasterio/rasterio/issues/2916.
Short explanation: the xarray is basically composed of multiple tiles, spatially. It's also reading from multiple items, which cover different areas. When a tile doesn't overlap with an item at all, stackstac has an optimization to return all NaNs for the tile. But when the tile overlaps with an item, we use rasterio to read it. It looks like in this particular dataset, the GeoTIFFs don't have a nodata value set, so GDAL is filling in 0s for the pixels outside the bounds of the item, but not actually telling us that they should be masked out. However, the mosaic operation is only treating NaNs as nodata, so the 0s are left in, resulting in the stripes. That's also why max works: any actual data value is greater than 0.
I'll push up a fix for this, but for now, you can probably work around this with:
stack = stackstac.stack(items_pc, fill_value=0)
mosaic = stackstac.mosaic(stack, nodata=0)

That will make stackstac use 0s for empty tiles, matching up with GDAL's nodata value. Then you mosaic out all the 0s.
As a sidenote, this is yet another reason to move away from VRTs, which already needs to happen: https://github.com/gjoseph92/stackstac/issues/196.

Thanks!
Yes, it works as a workaround: it is easy to get a nodata value for elevation values, so no problem.

FYI @lhcorralo, the fix is now released in 0.5.0, so you should be able to go back to using mosaic. Thanks for the great bug report!


Update to 2024-10-17 API spec

This commit updates the public spec doc to the latest version used to generate SDKs. This is a larger-than-usual change because of recent tooling changes internally at OAI to generate this file.

For reference, it seems this was the only actual change:
--- Version 1/openapi.yaml
+++ Version 2/openapi.yaml
@@ -3681,7 +3681,7 @@
           description: The identifier, which can be referenced in API endpoints.
           type: string
         object:
-          description: The object type, which is always `vector_store.file_batch`.
+          description: The object type, which is always `vector_store.files_batch`.
           type: string
           enum:
             - vector_store.files_batch


Implementation of JAXB-API has not been found on module path or classpath.

When I start the application from the 'complete' directory and call the SOAP endpoint, I receice the following error message:
Implementation of JAXB-API has not been found on module path or classpath.
What's going wrong?

Adding this dependecies solve the problem th the pom.xml...
		<dependency> 			<groupId>javax.xml.bind</groupId> 			<artifactId>jaxb-api</artifactId> 		</dependency> 		<dependency> 			<groupId>org.glassfish.jaxb</groupId> 			<artifactId>jaxb-runtime</artifactId> 			<scope>runtime</scope>               </dependency>

This should be added to the "from scratch" documentation.

Adding the jaxb dependency, implementation 'org.glassfish.jaxb:jaxb-runtime:2.3.2' to the build.gradle file in the 'complete' directory seems to have fixed it for me.

Adding this dependecies to the pom.xml solve the problem...
 <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> </dependency> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> <scope>runtime</scope> </dependency>

I dont know why it works...but it is a right way

Thank you. Unfortunately it doesn't work with gradle
implementation 'org.springframework.boot:spring-boot-starter-web-services'
implementation 'wsdl4j:wsdl4j'
jaxb("org.glassfish.jaxb:jaxb-xjc")

implementation 'javax.xml.bind:jaxb-api:2.3.1'
implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.0'

I resolved this issue by downgrade the version of jaxb-runtime.
implementation 'wsdl4j:wsdl4j'
jaxb("org.glassfish.jaxb:jaxb-xjc")
implementation 'org.glassfish.jaxb:jaxb-runtime:2.3.6'

build.gradle.txt
The whole gralde file is:

Here is one better answer to the question
https://stackoverflow.com/questions/72390822/java-lang-classnotfoundexception-com-sun-xml-bind-v2-contextfactory

This is solved easily by adding dependency:
// For Java 11:
implementation 'org.glassfish.jaxb:jaxb-runtime'

This was already done and used on the consuming side project.

You just need to add this to pom.xml :
<outputDirectory>${project.basedir}/src/main/java</outputDirectory>
<clearOutputDir>false</clearOutputDir>
because that dependency (jaxb-api & jaxb-runtime) get the classes from target folder, and when we add those config lines, the classes will be added to the main folder and be visible to the project and won't shows error any more.
So it will be like this :
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>3.1.0</version>
<executions><execution><id>xjc</id><goals><goal>xjc</goal></goals></execution></executions>
<configuration>
<sources><source>${project.basedir}/src/main/resources/countries.xsd</source></sources>
<outputDirectory>${project.basedir}/src/main/java</outputDirectory>
<clearOutputDir>false</clearOutputDir>
</configuration>
</plugin>


Pass arguments when binding a service

Hi I have a very simple server based on the example
https://github.com/hyperium/hyper/blob/master/examples/server.rs
Is there any example of how to pass an object reference into the service  ?
Ie how can I pass a reference to each Echo instance so it can be used in the service implementation.
Thanks

@glennpierce If I understand correctly, you mean such that your service struct has other properties? Like struct Echo { foo: Something }? Or specifically that that something is a &Something? If you mean a literal reference, then the answer is that you can't, at least not with the convenient methods.
If you wish to share a thing, you'll need to make use of Arc.
Alternatively, if you don't use Http::bind, and instead manage the Core yourself, then you make use of references, since you can guarantee the compiler the references won't live longer than the Core.
(I'm going to close this as a usage question, instead of an issue/bug.)


Adding support for HTTPS SSL certificate verification to graphite

Hi
I faced a problem while working with HTTPS graphite and my Root SSL certificate was missing, so SSL didn't work.
I added a capability to cancel SSL verification, so it will run in any case.
regards

This has been inactive too long.
Please re-open if you still think it should be merged


remove logstash default fields from grok output in error messages

Error messages for patterns seem cleaner now. Next step would be to pretty print json objects probably.
closes #2

👍


Crashes on network connection error

This was the same error as I once had before. Looks like this case is not properly caught as an exception and still feeds an empty response back.
[2/17/2019, 1:52:46 PM] [Jablotron] { Error: getaddrinfo EAI_AGAIN api.jablonet.net:443
    at Object.exports._errnoException (util.js:1022:11)
    at errnoException (dns.js:33:15)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
  code: 'EAI_AGAIN',
  errno: 'EAI_AGAIN',
  syscall: 'getaddrinfo',
  hostname: 'api.jablonet.net',
  host: 'api.jablonet.net',
  port: 443 }
[2/17/2019, 1:53:46 PM] [Jablotron] Error: getaddrinfo EAI_AGAIN api.jablonet.net:443
[2/17/2019, 1:53:46 PM] [Jablotron] { Error: getaddrinfo EAI_AGAIN api.jablonet.net:443
    at Object.exports._errnoException (util.js:1022:11)
    at errnoException (dns.js:33:15)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
  code: 'EAI_AGAIN',
  errno: 'EAI_AGAIN',
  syscall: 'getaddrinfo',
  hostname: 'api.jablonet.net',
  host: 'api.jablonet.net',
  port: 443 }
/opt/node/lib/node_modules/homebridge-jablotron/lib/jablotron.js:82
                    var segments = response['data']['service_data'][0]['data'][0]['data']['segments'];
                                                                                ^

TypeError: Cannot read property 'data' of undefined
    at /opt/node/lib/node_modules/homebridge-jablotron/lib/jablotron.js:82:82
    at /opt/node/lib/node_modules/homebridge-jablotron/lib/jablotron-client.js:20:17
    at IncomingMessage.<anonymous> (/opt/node/lib/node_modules/homebridge-jablotron/lib/jablotron-client.js:56:17)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

That must be from some older version. We don't have that code line available in new version

I'll check, it should pull the latest version every night. Closing for now.


update doc based on #1253

add a NOTE, so if lazy dev do not hit the wall.

https://github.com/PostgREST/postgrest/issues/1253

@swuecho Thank you! :smiley:


docs: avoid use await

It's confusing

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@ae2d459). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #2   +/-   ##
=======================================
  Coverage        ?   92.59%
=======================================
  Files           ?        1
  Lines           ?       27
  Branches        ?        3
=======================================
  Hits            ?       25
  Misses          ?        2
  Partials        ?        0

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Starship has crashed. Please upload the logs to the support channel in discord.

"Starship has crashed. Please upload the logs to the support channel in discord."
I keep getting this error message when trying to run starship.exe. I followed the instructions correctly.

Same

You can't start it just by running starship.exe. You have to run generate_otr.bat first, which generates the necessary files.
https://github.com/HarbourMasters/Starship/issues/56

I followed the instructions, checked the hash, but after running the .bat file the cmd tells me the process is finished, but doesn't generate/extract the files. Then I get this message after running starship.exe


Package not found after npm install

Hi, I tried installing the utaformatix-ts package with npm:
npx jsr add @sevenc-nanashi/utaformatix-ts
It shows up in my package.json, but when I try to compile my TS files I get this error:
src/convert.ts:1:25 - error TS2307: Cannot find module 'jsr:@sevenc-nanashi/utaformatix-ts' or its corresponding type declarations.

import { Project } from "jsr:@sevenc-nanashi/utaformatix-ts";

What does your tsconfig.json look like?


Restarting closed container from UI results in navigation to main page

issue #545

Thanks for the review @mmabrouk, I have made the requested changes.

Closes #545


Pokémon Go - Pokéstop filters?

Will these be available via Yelp search/business api endpoint soon? Thanks.

We're looking into options!


Update DrakeCompanionClass.cs

Fix for the null appearing in the drake class progression view. It happens because the progression has no name or description, while it should have a blank string instead.

Thanks Kreaddy, I had trying to figure this out on my list. Rolled into the master-branch :)


Read / Write BLERemoteCharacteristic like stream or serial

Hello,
i hope anyone can help me with my little problem.
i have a Bluetooth device that act like a serial interface, it wait for data like  A503000.... and answer with similar
over wire it works perfect, so it exist a Bluetooth dongle for this device that "replace" the wire and give me the serviceUUID: 0xfff0
so i have a library/function that build and send this data, and receive it and split it in readable pieces, badly the library need a stream class where it can send and receive.
any chance to build a function that create a stream class like a serial with read, write, flush, available... from the BLERemoteCharacteristic?
the BluetoothSerial library doesn't work, it cant discover or connect this Bluetooth device.

This would require skipping the GATT layer and going to l2cap. This is possible but probably not something many would be familiar with. When the PR at esp-nimble-cpp is ready I will look to add it here.


Add scan path calculator

The functionality is too loosely defined, and #49 will be the substitute for this issue.


[Feature Request]: Install https://github.com/openai/CLIP.git together with llama-index-embeddings-clip

Feature Description
I have been using llama-index-embeddings-clip for some time. One requirement is to execute always pip install git+https://github.com/openai/CLIP.git to make use of the embedding model.
Would it make sense to include this as a dependency in the pyproject.toml?
What about including in within the [tool.poetry.dependencies]  as shown below (last line of the next snippet)
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
torch = "^2.1.2"
pillow = "^10.2.0"
torchvision = "^0.17.0"
ftfy = "^6.1.3"
llama-index-core = "^0.11.0"
clip = {git = "https://github.com/openai/CLIP.git", branch = "main"}

Reason
No response
Value of Feature
No response

You can't publish packages to pypi with github sources (at least, the last time I tried, that's what happened)

That's good to know. Thanks so much for the clarification @logan-markewich


chore: release firmware v7.5.1

@pastaghost please merge, ser.
It'll stop ShapeShift web incorrectly showing an out-of-date firmware warning to users.

@0xApotheosis On it. Thanks for the heads-up ser.


Upgrade dependencies

Thanks @madmath03 for your time and effort for creating PR to upgrade various dependencies of web and nativescript project. PR is merged now. 👍

You're welcome @shripalsoni04. I just started learning Angular and NativeScript a few weeks ago so I''m glad I could help. Very interesting project.


Features/run and log

Remove logging.py and replace with runandlog.py.
Adds new class RunAndLog which contains all wandb commands and run_commands_commands.
Remove run_commands_commands from ops.py.

closing this PR because it is out of date.


nothing happens when activating workflow

Thanks for the workflow.
After installing it, it doesn't do anything except for giving me notice saying "Copied Recognized Text".
What am I doing wrong.
Everything seems to be installed properly.
I'am using mac os 12, having it as well set up in the configuration of the workflow.
Is there anything I'am missing?

Hey @Schullinger, you're referring to either the OCR light or OCR+ workflow. If it's the former, your configuration will look a little different. However, since you are running macOS 12, make sure you select the appropriate model version in the configuration. Version 2 should work in your case, but alas, depending on your target language, you might get disappointing results. In my experience, Apple's Vision framework does not produce satisfactory results until v3.


Added Portuguese translation for 'contains embedded content'

already covered by #5057 5057

I translate more things. Thanks


Add navigation guards for non-existent projects

Remember to also watch for param changes

Duplicate of https://github.com/LibCrowds/vue-pybossa-frontend/issues/105, closing