TS2304 Errors appear for excluded files in Visual Studio 2017

Hi,
Premise: I looked carefully for existing issues but didn't find a working answer (although I found many speaking about the same topic).
I am working with Visual Studio 2017, on an ASP.NET MVC Core application where the front end will be implemented using React, ES6 and Babel. No TypeScript.
I have a node_modules folder, hidden in FS and excluded from project, which contains some source .ts files from an external library (react-router).
When I open the solution, after few minutes 4 errors appear as compilation error (TS2304 Cannot find name 'object')

What I tried to do:

Add following configuration to  inside .csproj file + Close and Reopen solution

<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>

Disable JavaScript/TypeScript new service + Close and Reopen solution

But this wasn't sufficient. To resolve, I needed to disable the TypeScript extension completely from VS and close every instance of VS 2017.

Disable TypeScript extension

Which in turn removed completely the "JavaScript/TypeScript" entry from Options / Text Editor settings.
Expected behavior:
TS2304 Errors should not appear for files that are not included in the project. In the same way as C# files that are not included in the project (or are not set to "Compile" build action) do not affect compilation (for example). This should not require any special action.
Actual behavior:
Behavior of TypeScript files is inconsistent with other programming languages used in VS. Compilation errors such as TS2304 are appearing also for files that are excluded from project and even hidden in file system.

Kind Regards,
Roberto

Are you seeing this on 15.2?

Hi @mhegazy, thanks for answering. No, I didn't update today my VS - I will update tomorrow at work and let you know.

Hello again, @mhegazy. After updating to latest version 15.2, the issue I described went away. Thank You!

Please reopen this issue.
This issue still occurs for me in visual studio 15.3 with following excludes I still get errors from ts files from a subdirectory of lib:
"**/wwwroot/lib/*", // Don't operate on lib directory to prevent warnings from lib code
  "wwwroot/lib/*", // Don't operate on lib directory to prevent warnings from lib code
  "wwwroot/lib", // Don't operate on lib directory to prevent warnings from lib code
  "wwwroot/lib/**", // Don't operate on lib directory to prevent warnings from lib code
  "**/wwwroot/lib/**", // Don't operate on lib directory to prevent warnings from lib code
  "wwwroot/lib/" // Don't operate on lib directory to prevent warnings from lib code

Hi,
I am reopening the issue because of two reasons:

others are saying this exact problem came back with VS 15.3
since a few weeks, Visual Studio became really slow when compiling of a solution which contains a node_modules folder (the same project I was referring to when first opening this issue)

Note that I have TypeScript extensions completely disabled; the node_modules folder is hidden in the file system and excluded from the project. Nevertheless, since a few weeks the compilation is impacted by the presence of this folder. The situation is even worse that it used to be, since even having TypeScript disabled doesn't help. I understand this is not exactly the same problem, but I think it may be related.

//cc @billti, @amcasey

I have VS 2017 v15.4.5 and have this problem as well. Since my project uses Typescript heavily, this is blocking my ability to upgrade to VS2017 at all.

anyone had any luck with this?

Not really. I have worked around this by deleting the node_modules/@types directory, and then the errors go away. But I have to do this frequently, because npm recreates the folder. This works but it's very annoying.

My recommendation is to simply keep your ES6 source code in a completely different folder than the one used by your server side code and Visual Studio, and configure the build tasks to deploy client side build artifacts into the wwwroot folder of the ASP.NET Core application. I did this in the last web application I am working on. It's annoying but it solves the problem with VS.

Same issue has start form me after I have update Visual Studio 2017 to 15.5.0, versions 15.5.1 and 15.5.2 does not solve this, I have installed Typescript 2.6.2 for Visual Studio 2017. Typescript  is compiling *.config files, so there are thousand of typescript errors.

I have this same issue as well, however in a slightly different manner.
We have our entity framework dbcontext classes saved as .edm files and mapped to visual c# in the text editor file extension options.  Even adding an exclusion to our .tsconfig does not stop intellisense from trying to throw ts2304 errors on these.
If I remove the mapping then the errors go away.
We are on VS 2017 15.5.5 and typescript 2.6.1

@mcnallys can you clarify more on how to reproduce this? This is what I see (note that these are correctly C# errors);

I'm getting thousands of these for an Asp.net webforms project. No typescript, tsconfig.json, or packages.json, but there is a leftover node_modules folder that isnt part of the project.  Happens sporadically. If someone from MSFT wants the feedback collect it should be up on devcomm, but I literally cant help you find it.

Tried everything and can't get rid of these errors. Any suggestions?
They are caused in our project by a third party javascript folder which has typescript files and its own tsconfig file.
Tried add exclusions and tried to disable typescript compilation, nothing helps.

As I wrote before, in the error list choose build only as workaround.

Unfortunately this is not a possible workaround for us because we want to use the intellisense for other things.

@guylando, the way I approached this problem in last applications, is to separate completely the folder containing the projects used by Visual Studio (server side code) and the folder containing the source code for the client side application; then I configured my JavaScript boilerplate to publish artifacts into the folder used by ASP.NET Core (wwwroot), even using watchers.
To develop the front end, we use Visual Studio Code, which in my opinion works much better than Visual Studio IDE for client side development.
Something like:
ProjRepository\
   \aspnet  # for server side code
   \spa     # for single page application, contains node_modules and all client source code

This also makes more sense if you are using official React or Vue.js project templates (and similar) including a Node.js development server - this is usually the case when using WebPack boilerplate.
In my case the presence of node_modules was slowing down the compilation of C# code (Why ??), even though I am working with a pretty good laptop. :sweat:

Hi there, I have the same issue with TypeScript code analysis raising thousands of errors from non typescript nor javascript files on a project that contains no JS nor TS files.
It seams that this occurs after adding an extension on file extension (with a SQL editor in that case) with any "Non TypeScript" editor, TS editor analysis is done. As long as this is NOT Typescript nor javascript, it is normal that it does not comply to TS standard and syntax... but why is it analysed?

Thanks for the extra info. Can you expand on what you mean by "It seams that this occurs after adding an extension on file extension (with a SQL editor in that case) with any "Non TypeScript" editor, TS editor analysis is done"? I'm not sure I understand exactly.
If you have some repro steps I can try to follow on my test machine (i.e. "Do x, then y,... Now you will see the issue"), I'd definitely love to get this fixed.

@billti create a subfolder named "lib" in the visual studio project and add there a folder named "yyy" placing there a library which uses typescript and has tsconfig of its own such as mobiscroll.
then visual studio intellicense recognizes that folder as a seperate project and does not apply the main project configs of disabling the errors on that folder and trigger many errors on it.

even though in my project tsconfig i have:
"exclude": [
"**/lib/*",
"lib"
],
and
"noEmit": true

@gucourti reproduced locally. Thank you so much for providing this repro - I'm investigating the issue now

@gucourti we have a fix but it's on the Visual Studio side. In the meantime we have a patch you can apply to tsserver.js:
--- "tsserver.js"
+++ "tsserver.js"
@@ -85714,6 +85714,7 @@ var ts;
                 }
             };
             ScriptInfo.prototype.getSnapshot = function () {
+                if (this.scriptKind === 5) return ScriptSnapshot.fromString("");
                 return this.textStorage.getSnapshot();
             };
             ScriptInfo.prototype.ensureRealPath = function () {

I’m glad i helped you. I’m not in a hurry for a fix, as long as files which raise errors are PL/SQL files, and the oracle specifics like packages are definitively not supported atm.
Envoyé de mon téléphone Windows 10
De : Ryan Cavanaugh
Envoyé le :vendredi 13 avril 2018 19:52
À : Microsoft/TypeScript
Cc : gucourti; Mention
Objet :Re: [Microsoft/TypeScript] TS2304 Errors appear for excluded files inVisual Studio 2017 (#15730)
@gucourti we have a fix but it's on the Visual Studio side. In the meantime we have a patch you can apply to tsserver.js:
--- "tsserver.js"
+++ "tsserver.js"
@@ -85714,6 +85714,7 @@ var ts;
}
};
ScriptInfo.prototype.getSnapshot = function () {

           if (this.scriptKind === 5) return ScriptSnapshot.fromString("");
           return this.textStorage.getSnapshot();
       };
       ScriptInfo.prototype.ensureRealPath = function () {

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@mhegazy If this is being fixed in Visual Studio maybe there could be some kind of indication in Solution Explorer that a file is being excluded.
I'm referring to files in the 'exclude' list in tsconfig.json. If VS were to somehow indicate they are excluded it could help debug the 'opposite' problem for people.
@RyanCavanaugh where do we find this tsserver.js file?

Awaiting solution to this issue.

@RyanCavanaugh  - I've also reported this issue via developer community twice now, the most recent one is here but its been sitting in Triaged status for more than a month. I'm curious to know if that reported issue actually made it to this team or if it is was misdirected.

Sorry @StingyJack - I'm looking at your issue on developer community now.

I tried @gucourti's steps in VS 2017 version 15.9.14 and our internal version of VS 2019 version 16.3 Preview and saw no errors in the error list, so I believe we can say that the fix for the original issue has successfully shipped and that new occurrences are likely due to new bugs.

@amcasey - if you can't tell for sure this is fixed by something specific - and convey that, I need you to reopen the devcomm issue.  (Op can weigh in on if he is ok with this being closed)
I get weird problems regularly with the project system and specifically JavaScript and node_module related files. Yesterday it started complaining about a web.config having some element reserved for a machine.config, but the web config it was complaining about was in a subfolder of a selenium-something-something node module. This morning it was trying to copy the files from the root of the C: drive (like pagefile.sys, hibfile, etc) into the project output folder. Two weeks ago TS errors were showing up for me, and the hosted 2019 build agent, but not for other coworkers. These incidents eat up a minimum 30 minutes per instance, because restarting VS doesn't fix it. Sometimes they hang me up until I rewrite sections of code that worked before and that I didn't modify.
So you will have to forgive me for appearing to be difficult, but after logging more than 500 issues about different broken things with VS, and getting satisfactory results for maybe 50-75 of those, I'm not keen on opening a new issue if this happens again. Because it too will stagnate for months before some feigned interest followed by an attempted #please-close. I'm more interested in getting this fixed, and holding an item open for longer will make it more visible than a newly opened issue, and bring some truth to the overall quality metrics.

Hey @StingyJack, I wasn't directly involved in the investigation, but I believe the primary fix was in a closed-source component in roughly the 15.9 timeframe.   There may also have been a change in this repo to compensate for bad input from VS.  Would you find it helpful to have specific version numbers?
This thread appears to have evolved over the course of a year and some of the issues you describe above sound new and distinct.  Are you still seeing the problems described in the portion of the thread before I closed it?  If so, which VS and TS versions are you using?  If not, I'm inclined to track things using the devcomm issue, since the issues in your most recent comment sound separate.  Fair warning: you will most likely be asked for additional context and/or repro steps.

I set flag to tscofig.json
"compilerOptions": { "skipLibCheck": true }
fine work for me

This works for me as a workaround to this issue.
For me this issue is happening on VS code (version below), dotnet.exe (3.0.100), and Visual Studio 16.3 (just updated this week). Slightly different bug version (TS2305 vs. TS2304), though.
Version: 1.38.1 (system setup)
Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0
Date: 2019-09-11T13:35:15.005Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 6.3.9600

@amcasey - thanks for the info, sorry for not seeing this until it was commented again. I only want all these weird and intermittent TS/JS behaviors to stop. They have been happening since VS 2017 through 2019.
I haven't had many in the last 2 months or so, but I've been working with python and not using VS much.

@StingyJack all the focus is going on VSCode for what I can tell. I use both at the same time. Took a little used to diffferences in the editors but once I was up to speed it made a lot more sense to me to keep ASP.NET Core stuff in Visual Studio and typescript in VSCode.

MSFT putting any more effort into VSCode other than the initial push and governance seems like a broken business model to me seeing as the program is freely given away and VS collects license money.
On the same token, MSFT putting any features into VSCode that arent put into VS first. or prioritizing non-critical-path feature work for VSCode before bug fixes for VS is flatly the wrong thing to be doing in regards to their customers that paid for a license for the world's premiere IDE.
@simeyla  - I'm not upset with you suggesting it, since you are also a victim of their unfortunate choices. I've had MSFT staff make suggestions to "just use VS code" instead of fixing a bug in VS before and its carries all the negative emotions that accompany getting ripped off for an amount in the high 4/low 5 digit range (like buying a car that is full of problems and the seller is acting shady).
In my case, I get these and I am not directly using Typescript in any projects. One time VS started freaking out about some of the culture specific js files that were included as part of globalize.js - no TS in any project. Another time it refused to build a solution, pointing out a perfectly fine bit of TS in a project I hadn't touched that it just could not resolve the types for. It also failed to compile on the DevOps hosted build server, but worked fine on every other coworkers PC.
There are a dozen other TS problem instances (all slightly different) that have been work stopping until I recode something that I didn't change in the first place (and would be out of scope for the sprint to do so) or do something drastic like removing files from projects. This has been going on for years now. I would like VS to stop failing to compile due to TS errors when there isnt any TS present, and when I'm not touching anything that would cause any TS to need to compile (we have gated checkin, non-compile-able source cant really get into the codebase).

Totally agree with Andrew.
Regards,
Nagendra
Gift yourself a stress-free life!
Experience Sudarshan Kriya today!!!
On Sun, Sep 29, 2019 at 4:42 PM Andrew Stanton<EMAIL_ADDRESS>wrote:

MSFT putting any more effort into VSCode other than the initial push and
governance seems like a broken business model to me seeing as the program
is freely given away and VS collects license money.
On the same token, MSFT putting any features into VSCode that arent put
into VS first. or prioritizing non-critical-path feature work for VSCode
before bug fixes for VS is flatly the wrong thing to be doing in regards
to their customers that paid for a license for the world's premiere IDE.
@simeyla https://github.com/simeyla - I'm not upset with you suggesting
it, since you are also a victim of their unfortunate choices. I've had MSFT
staff make suggestions to "just use VS code" instead of fixing a bug in VS
before and its carries all the negative emotions that accompany getting
ripped off for an amount in the high 4/low 5 digit range (like buying a car
that is full of problems and the seller is acting shady).
In my case, I get these and I am not directly using Typescript in any
projects. One time VS started freaking out about some of the culture
specific js files that were included as part of globalize.js - no TS in any
project. Another time it refused to build a solution, pointing out a
perfectly fine bit of TS in a project I hadn't touched that it just could
not resolve the types for. It also failed to compile on the DevOps hosted
build server, but worked fine on every other coworkers PC.
There are a dozen other TS problem instances (all slightly different) that
have been work stopping until I recode something that I didn't change in
the first place (and would be out of scope for the sprint to do so) or do
something drastic like removing files from projects. This has been going on
for years now. I would like VS to stop failing to compile due to TS
errors when there isnt any TS present, and when I'm not touching anything
that would cause any TS to need to compile (we have gated checkin,
non-compile-able source cant really get into the codebase).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/TypeScript/issues/15730?email_source=notifications&email_token=AESI6BDSRO6MCRPTFFSSBSDQMEHLBA5CNFSM4DK3HWH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD736GIA#issuecomment-536339232,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AESI6BFS7U7O5BHVKCQCVV3QMEHLBANCNFSM4DK3HWHQ
.


Potential scalability hazard in Realm GASNet-EX layer

This was identified by @timattox at HPE.
The concern is code like the following in Realm. targets is Realm::NodeSet which is implemeneted as a bitset. Therefore, if you were to hit this code with targets containing all of (or a substantial fraction of) the nodes in a run, you would get all of the ranks iterating nodes in the same order everywhere, possibly resulting in more network contention that you might otherwise induce even for the same communication pattern.
https://github.com/StanfordLegion/legion/blob/d4cef06c68574f1089e5cb7d1eebe4a6b16b9bac/runtime/realm/gasnetex/gasnetex_module.cc#L310
It's not currently clear how often or if we hit this code, and whether we use this code in a manner that would induce the problematic communication pattern.
One potential solution, if this ends up being a problem, is to start iteration at rank+1 and wrap around at the end, so that the communication is less correlated in time. Of course this does not modify the communication pattern and if we are using this to send messages from all nodes to all nodes, that would also be something we'd want to address.
CC @abbotts

It reminders me the all to all algorithm used in MPI https://github.com/open-mpi/ompi/blob/main/ompi/mca/coll/base/coll_base_alltoall.c#L209-L213. To avoid every node sends messages to every node at the same time, MPI tries to shift the order. I will think about it and see if we can apply the same idea to Realm.

That's true, but I think it's worth thinking about if this code gets used and where before we jump to conclusions.
What are the actual scenarios in a typical Legion application where we go through the code above?

It is used by active message https://github.com/StanfordLegion/legion/blob/d4cef06c68574f1089e5cb7d1eebe4a6b16b9bac/runtime/realm/gasnetex/gasnetex_module.cc#L711
I need to check if we use all to all active messages.

I have seen 1-to-all or 1-to-many active messages in triggering events, destroying instances and etc., but it is hard to tell if all-to-all is used (all-to-all only happens when all ranks are sending 1-to-all active messages at the same time) in a asynchronous runtime. If we do the shifting all the time, it may not be a good idea.

What are the actual scenarios in a typical Legion application where we go through the code above?

I don't think there are actual scenarios where Legion ever go through the code above. I think multicast from 1-to-many (never all) will be used for event triggering in a few cases but not really much of anywhere else. When that does it occur it will be asynchronous between different nodes and only broadcasting to a subset of nodes so highly unlikely to cause a scalability issue. I would make this a very low priority to investigate and only consider changing the code after extensive profiling.

it is hard to tell if all-to-all is used

I think all-to-all is only used at the beginning when Realm (not Legion) does the machine model broadcast.  That might be the one and only place where this is worth investigating.

@lightsighter machine module broadcast does not use all-to-all any more, now we use the allgather provided by the network library, we might use all-to-all for creating cuda ipc if shared peers is not detected.
I have seen some many/few-to-many/all cases in Legion, here is an example when I run circuit with 4 ranks, do you know if it is a many-to-many/all or few-to-many/all case?
#0  Realm::GASNetEXMessageImpl::commit (this=0x7f3b5ad84510, act_payload_size=0) at /scratch2/wwu/legion-master/runtime/realm/gasnetex/gasnetex_module.cc:310
#1  0x000055bbc942b92f in Realm::ActiveMessage<Realm::EventUpdateMessage, 256ul>::commit (this=0x7f3b5ad844f0) at /scratch2/wwu/legion-master/runtime/realm/activemsg.inl:448
#2  0x000055bbc9420617 in Realm::GenEventImpl::trigger (this=0x7f3b58207d20, gen_triggered=74, trigger_node=2, poisoned=false, work_until=...)
    at /scratch2/wwu/legion-master/runtime/realm/event_impl.cc:1829
#3  0x000055bbc92cd19b in Realm::GenEventImpl::trigger (e=..., poisoned=false) at /scratch2/wwu/legion-master/runtime/realm/event_impl.inl:65
#4  0x000055bbc9419c99 in Realm::UserEvent::trigger (this=0x7f3b5ad84a50, wait_on=..., ignore_faults=false) at /scratch2/wwu/legion-master/runtime/realm/event_impl.cc:408
#5  0x000055bbc86e6e6d in Legion::Internal::Runtime::trigger_event (to_trigger=..., precondition=...) at /scratch2/wwu/legion-master/runtime/legion/runtime.h:4043
#6  0x000055bbc8a82c78 in Legion::Internal::RegionTreeForest::physical_perform_registration (this=0x55bbcc9e9de0, analysis=0x7f3b5aad80c0, targets=..., trace_info=...,
    map_applied_events=std::set with 0 elements) at /scratch2/wwu/legion-master/runtime/legion/region_tree.cc:1976
#7  0x000055bbc8a83469 in Legion::Internal::RegionTreeForest::handle_defer_registration (this=0x55bbcc9e9de0, args=0x7f3b5aaad450)
    at /scratch2/wwu/legion-master/runtime/legion/region_tree.cc:2091
#8  0x000055bbc8b96ae5 in Legion::Internal::Runtime::legion_runtime_task (args=0x7f3b5aaad450, arglen=76, userdata=0x55bbf00bc5c0, userlen=8, p=...)
    at /scratch2/wwu/legion-master/runtime/legion/runtime.cc:24421
#9  0x000055bbc944a46c in Realm::LocalTaskProcessor::execute_task (this=0x55bbcc720010, func_id=4, task_args=...) at /scratch2/wwu/legion-master/runtime/realm/proc_impl.cc:1176
#10 0x000055bbc9b3542a in Realm::Task::execute_on_processor (this=0x7f3b5aade780, p=...) at /scratch2/wwu/legion-master/runtime/realm/tasks.cc:326
#11 0x000055bbc9b3a78a in Realm::UserThreadTaskScheduler::execute_task (this=0x55bbcc44dec0, task=0x7f3b5aade780) at /scratch2/wwu/legion-master/runtime/realm/tasks.cc:1687
#12 0x000055bbc9b38532 in Realm::ThreadedTaskScheduler::scheduler_loop (this=0x55bbcc44dec0) at /scratch2/wwu/legion-master/runtime/realm/tasks.cc:1160
#13 0x000055bbc9b40d90 in Realm::Thread::thread_entry_wrapper<Realm::ThreadedTaskScheduler, &Realm::ThreadedTaskScheduler::scheduler_loop> (obj=0x55bbcc44dec0)

That just says you're in the multicast. It doesn't say how many nodes are being sent to. It might look like one-to-all on small node counts, but I bet that as you scale up the pattern becomes sparse.

The Realm barrier owner performs a 1-to-many multicast to notify the remote waiters. The remote subscribers list is NOT created via the NodeSet, though. It’s possible to consider scenarios where multiple barriers have identical subscriber lists. In practice, triggering will likely be asynchronous.
Another place where we are certainly using the pattern mentioned by @elliottslaughter is when tracking the sparsity map references across the system.  It’s not being used at the moment as we are making progress on completing this feature, but I am probably going to take a moment and evaluate how much of a problem it poses there and whether it needs to be addressed.

I think the crucial thing to realize about the issue raised is that the pattern above is only bad if multiple nodes are doing it at the same time. If just one node is doing it or even a few then it's not really going to be a scalability problem. All (or most of) the nodes have to be sending to one node and swamp the target node, then they all send to the next target node and swamp that one, etc. We don't get that pattern often in Realm and even if we did the likelihood of it all happening at the same time during asynchronous execution is unlikely.

It’s possible to consider scenarios where multiple barriers have identical subscriber lists.

@lightsighter can correct me if I'm wrong but I believe Legion only uses all-to-all barriers for a small set of things during initialization. For the bulk of most applications, Legion builds its own reduction and broadcast trees. Therefore, for the patterns Legion uses, there will be one barrier at a time, and we may hammer one node in the process, but with a all-to-one followed by one-to-all, rather than a true all-to-all, and therefore not the pattern described in this issue.

tracking the sparsity map references across the system.

The applications which I imagine would hit this case would have other issues: namely, if every node requires the sparsity map for an index space that presumably means the application itself is doing all-to-all communication. (So think dense Circuit style communication.) We know this is non-scalable today and we'd have a lot of work to do to make it scalable, so I'd consider fixing this low priority.

can correct me if I'm wrong but I believe Legion only uses all-to-all barriers for a small set of things during initialization

I don't think we do that at all anymore in Legion. All those patterns should be gone now I believe. There are some Realm barriers that span the entire machine at times, but @apryakhin is working on a "scalable" Realm barrier implementation so we don't get all-to-one or one-to-all patterns with those anymore.

The applications which I imagine would hit this case would have other issues: namely, if every node requires the sparsity map for an index space that presumably means the application itself is doing all-to-all communication. (So think dense Circuit style communication.) We know this is non-scalable today and we'd have a lot of work to do to make it scalable, so I'd consider fixing this low priority.

Agreed. I think in 99% of cases sparsity maps will only be shared between a small subset of nodes, so the sparsity map reference clean up will be not be a scalability issue.


WIP: Removal of old VMS cruft

This is code to fixup deficiencies in VAX C and older DEC C RTLs.  Since we only support DEC C V7.1 and up, thsi old cruft isn't useful any more.

I'm running a test build on VMS.  As soon as it passes, the WIP: tag goes away.

It passed the VMS builds, getting of out WIP

"old vms  cruft"  isn't that triply-redundant? :)
+1

"old vms cruft" isn't that triply-redundant? :)

No, it 3!, i.e. factorial :-)

Err, no.  VMS is a current operating system.

We're just teasing you :)

Merged


Add localizations

App already looks great 🎉
but it needs to support multiple languages.
Other projects already use lokalise.com, so I think the next step is to create a community-driven project that will allow us to help with translation.

Home Assistant already uses lokalise for the front-, backend and iOS app:
https://lokalise.com/project/3420425759f6d6d241f598.13594006/
https://lokalise.com/project/130246255a974bd3b5e8a1.51616605/
https://lokalise.com/project/834452985a05254348aee2.46389241/
So I guess there will soon be a project for the Android app

I've created a new project on Lokalise and found @TheZoker, so he is a member now too.
If a dev is working on this to automate uploading/downloading, let me know and I can add you to the Lokalise group. Example translation download/upload scripts can be found here https://github.com/home-assistant/home-assistant/tree/dev/script - although it is kinda different in Android world probably.

fixed https://github.com/home-assistant/home-assistant-android/pull/72


iOS web app icon link tag causes conflict

e.g. <link rel="apple-touch-icon-precomposed" href="icon.png">
due to:
.match(/\bicon\b/)

I'm tidying up this repository and closing issues over a year old, thanks for the report and please reopen if you'd still like to see this fixed.


chore: upgrade Node.js to v16.x and update dependencies

I also added a "volta" field in the package.json for those who use Volta :)


Changes for OWLS-83136 - Limit concurrent pod shutdowns during a cluster shrink

Add maxConcurrentShutdown cluster configuration, and maxClusterConcurrentShutdown domain configuration:
The maximum number of managed servers that the operator will shutdown in parallel for the cluster in response to a change in replicas count for the cluster. If more managed servers need to be shutdown, the operator will wait until a managed server pod is terminated before shutting down the next managed server. The default value of maxConcurrentShutdown is 1. A value of 0 means all managed servers will shutdown in parallel. If replica count is set to 0 then all managed servers will shutdown in parallel. If domain is deleted using "kubectl delete domain" command then all managed servers will shutdown in parallel.
Because of a bug in Kubernetes java client (https://github.com/kubernetes-client/java/issues/86), the async request step to delete pod was timing out after 10 seconds. With default retry strategy, the request was retried with increased timeout of 20 seconds. The second attempt to delete pod was also timing out and third retry attempt was failing with "404 - Not Found". The pod delete is being considered as success when delete fails with "404 - Not Found". This PR include changes to specify a custom retry strategy, in case of async pod delete with custom retry strategy, it will not retry the async delete pod step.
IT test suite passed with latest changes - https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/1774/

The unit tests for server shutdown behavior is in ServerDownIteratorStepTest.java which is newly added file. I have added DelayedPodAwaiterStepFactory class in PodHelperTestBase.java to simulate the behavior of waiting for pod to be deleted before proceeding to delete next pod. Please let me know if I missed something. Thanks.

@ankedia, very minor comments and wordsmithing on the description and then I will approve and merge.


enhancement Refine the build scripts for macOS

Proposed changes
Set the environment up before running the build scripts on macOS.
Problem summary
We should export some tools installed by Homebrew to the PATH to run the build scripts successfully.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[x] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[x] No Need

Has document been added or modified:

[ ] Yes
[x] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[x] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[x] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 41.63 seconds
load time: 585 seconds
storage size:<PHONE_NUMBER>6 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221019165631_clickbench_pr_31384.html


might fixes https://github.com/microsoft/sql-spark-connector/issues/191

Hi there
I just tried updating the Spark Version and make it compile. If someone can review this and merge it if it's ok, that would be great
Regards,
Adrian

Close this PR as outdated.


Update API docs for 0.15.0

Update all reference API docs to 0.15.0 versions.
Ideally - we would also add the following new libraries:

docker
azure-serverless
openstack

May want to review the individual commits.  I cleaned up some of the doc generation of privates and unexported members as part of this.


Homematic Thermostat: Temperature switches to 5°C after window open/close

Describe the bug
I still use a few Homematic thermostats. They seem to react strange to the window open/close function of VT:
They switch off and on when opening and closing the window, which is the expected and intended procedure. However they are always set to 5°C when getting turned on again after the windows closes again.
It looks as if the thermostats default to minimum temperature when getting turned on, and not to the last set temperature.
So maybe VT should preserve the current temperature setting, too, when going in the window-off mode, and restore it afterwards. (Additional complexity when you have also an schedule running to change the temperature which can also kick in while the window is open, this should be respected somehow, too...)

Hello @Ra72xx ,
When you open/close the window, do you have a preset selected ?
Can you post me your Developement Tools / State for the VTherm ?

Here a log. In this case without a preset selected, but it's the same with a preset. Thermostat turns always on with 5°C. In this example it's a bit difficult, because there are 4 thermostats controlled by VT. This is only for Homematic thermostats, it doesn't happen with my Aqara E1 thermostats.
home-assistant_versatile_thermostat_2023-10-21T16-27-33.217Z.log

Huuum, it is coincidence, but i'm currently see some weird thing about window temperature set.
You have a preview fix in this release: https://github.com/jmcollin78/versatile_thermostat/releases/tag/3.6.0.beta4
It is not fully tested on my side but if you can, it would be valuable that you give it a try.
I will finish the test in //.

I have a look at your log, and here is what I have found:

you have a VTherm over 4 climate,
the window open is detected and shutdown the 4th climate (Stopping underlying entity climate.wz_thermostat_0),
the 4th climate are off (_async_climate_changed new_state...),
windows is closed (you have a very short delay 3 sec),
Heat mode is restored: (Restoring hvac_mode 'heat', target_temp is 22)
The 4 climate sistch to on (_async_climate_changed new_state is <state climate.wz_thermostat_2=heat and  temperature=5.0)

The problem is that when turning on your underlying climates they swith alone to 5. And because now VTherm is following the underlying temp, Vtherm switch to 5°. This is due to #101 which have many side effect (and not #123).
What I will do is to force the temperature update after turning on an underlying climate. It will solve your issue.

Fixed in 3.6.0. Tell me if this does the trick !

Thanks for the quick fix once again.
However, I had to remove the Homematic thermostats from VT, because they are simply not usable: The Homematic radio technology has some kind of "duty cycle", which means the devices are only allowed to send a certain amount of time per hour. Obviously VT in combination with four thermostats runs into this limit, which means that suddenly no more transmission is taking place and the whole setup gets in an undefined stage as one device after another seemingly drops out of the network..
"Better Thermostat" has a special mode for Homematic because of this. However, as I'm currently thinking of getting rid of this system altogether, I won't pursue it any further..

Ok fine. I will add this Homematic TRV into the incompatible chapter, I start.
Thanks for the tip.
I will keep the enhancement, which sends the target temperature after turning on a over climate. I think it was missing anymawy.

It might not be outright incompatible, but it seems to get problematic if too many devices get driven by another entity which doesn't implement some kind of duty cycle management. I could probably have worked around if I'd paired those thermostats internally with the methods the Homematic protocol offers, so that only one thermostat has to receive the commands from VT and propagates them "internally", but that was too much of a hassle.

Hi, I have the same issue. In one room, I have a Homematic heating group and an Aqara TRV combined via VT. After ventilating, the target temperature remains at 5°C. I am running VT 4.3, I think.
I am wondering if this is linked to the HmIP heating group having its own "window open" logic which also defaults to 5°C.

Hello @nurunet ,
Homematic are known to badly work with VTherm: https://github.com/jmcollin78/versatile_thermostat?tab=readme-ov-file#incompatibilities
They have their own internal logic which don't work fine with VTherm. So sorry for this bad news.
If you to change, I recommend the Shelly TRV for which will able VTherm to pilot directly the percent of valve opening. So you have a full VTher feature and a still a TRV.


Forgot important warning.

Forgot to add the warning yesterday.
Also fixed the formatting and changed back the '''crystal to '''ruby to get the colored syntax.

Thanks :+1:


Comments from Dave and Zoraida.

👍  LGTM.
Merge it whenever you are happy with it, and LMK and I'll push it to prod.


Get a list of processors attached to a Handler

Hello,
Is it possible to add a method to fetch the list of processors that are attached to a handler?
ProcessableHandlerTrait contains methods to push and pop a processor but not to get a list of them.
I do not have a complete idea of the flow I just wanted to ask the contributors before making a pull request.

I guess we could but I wonder what the need is?

Aah, can be done. Thanks.


rate limit exceeded: funky error message

The error message for "rate limit exceeded" has both a period and a semicolon in it which looks weird.
GET https://api.github.com/repos/golang/go/issues?direction=desc&page=1&per_page=100&sort=updated&state=all: 403 API rate limit of 5000
still exceeded until 2017-04-21 08:38:57 -0700 PDT, not making remote request.; rate reset
in 26m8.032328588s

We could also probably round the duration to the nearest second (if greater than a minute) or tenth of a second (if less than a minute) to avoid 8 useless units of precision after the decimal.

Thanks, @kevinburke... excellent points.

For anyone who wants to work on this issue, please discuss proposed fix here before sending a PR.

Newbie here - hoping to kick off contributions with this one.
The error message originates from github/github.go:479 - removing the extra period is trivial.
I'm not sure where the "rate reset in ..." is printed, though. There's a test at github_test.go::TestDo_rateLimit_rateLimitError but it simply checks the actual members in RateLimitError. Where is this extra part concatenated to the error message?

Ah, that might have come from our error wrapper
--
Kevin Burke
925.271.7005 | kev.inburke.com
On Sat, Apr 22, 2017 at 6:25 PM, Omkar Ekbote<EMAIL_ADDRESS>wrote:

Newbie here - hoping to kick off contributions with this one.
The error message originates from github/github.go:479 - removing the
extra period is trivial.
I'm not sure where the "rate reset in ..." is printed, though. There's a
test at github_test.go::TestDo_rateLimit_rateLimitError but it simply
checks the actual members in RateLimitError. Where is this extra part
concatenated to the error message?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/google/go-github/issues/622#issuecomment-296412808,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOSI6ZljyCVg_6JGLRxxn2u-miMJLuzks5ryqhwgaJpZM4NEb8r
.

Newbie here - hoping to kick off contributions with this one.

Thanks for looking at this!

The error message originates from github/github.go:479 - removing the extra period is trivial.
I'm not sure where the "rate reset in ..." is printed, though.

One part of the error message is indeed from github/github.go:479. The other part comes from the Error method of that RateLimitError type, at github/github.go:530-532.
So, to resolve this, we should figure out what we want the final message to be, and then decide which part of it should go into Message, and what part should be in RateLimitError.Error method.
When doing that, we should consider what a real response from GitHub API says when over rate limit. We should also consider the other error messages, such as ErrorResponse.Error, to make sure things are consistent.

Thanks for the guidance, Dmitri.

When doing that, we should consider what a real response from GitHub API says when over rate limit.

Here's the response from the Github API (from their documentation):
HTTP/1.1 403 Forbidden
Date: Tue, 20 Aug 2013 14:50:41 GMT
Status: 403 Forbidden
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0
X-RateLimit-Reset:<PHONE_NUMBER>
{
   "message": "API rate limit exceeded for xxx.xxx.xxx.xxx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
   "documentation_url": "https://developer.github.com/v3/#rate-limiting"
}

X-RateLimit-Reset is in UTC epoch seconds and Github leaves it to the application to format and display it.

We should also consider the other error messages, such as ErrorResponse.Error, to make sure things are consistent.

Here's a sample generic error message;

GET https://api.github.com/user: 401 Bad credentials []

The extra [] at the end would presumably dump the 'errors' array from an API response JSON like this:
{
  "message": "Validation Failed",
  "errors": [  //< This array would be dumped
    {
      "resource": "Issue",
      "field": "title",
      "code": "missing_field"
    }
  ]
}

As @kevinburke suggested,

We could also probably round the duration to the nearest second (if greater than a minute) or tenth of a second (if less than a minute) to avoid 8 useless units of precision after the decimal.

.... which makes sense.
Current error message:
GET https://api.github.com/repos/golang/go/issues?direction=desc&page=1&per_page=100&sort=updated&state=all: 403 API rate limit of 5000
still exceeded until 2017-04-21 08:38:57 -0700 PDT, not making remote request.; rate reset
in 26m8.032328588s

Proposed error message(s):
a. rate reset duration <1m
GET https://api.github.com/repos/golang/go/issues?direction=desc&page=1&per_page=100&sort=updated&state=all: 403 API rate limit of 5000
still exceeded until 2017-04-21 08:38:57 -0700 PDT, not making remote request; rate reset
in 8.3s

b. rate reset duration >1m
GET https://api.github.com/repos/golang/go/issues?direction=desc&page=1&per_page=100&sort=updated&state=all: 403 API rate limit of 5000
still exceeded until 2017-04-21 08:38:57 -0700 PDT, not making remote request; rate reset
in 9m50s

Here's the response from the Github API (from their documentation):

Here's what it looks like when you get it as an error from go-github:
GET https://api.github.com/users/willnorris/orgs: 403 API rate limit exceeded for xxx.xxx.xxx.xxx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.); rate reset in 58m41.516618654s

One observation is that the Message field contains a complete sentence that ends with a period. I think we should probably be consistent with that in our simulated error.

One observation is that the Message field contains a complete sentence that ends with a period. I think we should probably be consistent with that in our simulated error.

Hmmm, I believe we create the fake response in the first place because the one Github returns isn't informative enough (and chatty). The user (of this library) will never see the actual error message that came in the HTTP response, so I'm not sure whether we should be further masquerading as an accurate representation of the non-technical part of the Github API response,
That being said, adding a period at the end of the above proposed messages wouldn't hurt.

I was thinking we keep the period at the end of not making remote request., but do something about the semicolon and onwards. For example, something like this:
... not making remote request. rate reset in 26m8s

Or like this:
... not making remote request. (rate reset in 26m8s)

Roger that.
Proposed error message(s):
a. rate reset duration <1m

GET https://api.github.com/users: 403 API rate limit of 5000 still exceeded until 2017-04-21 08:38:57 -0700 PDT, not making remote request. [Rate reset in 8.3s]

b. rate reset duration >1m

GET https://api.github.com/users: 403 API rate limit of 5000 still exceeded until 2017-04-21 08:38:57 -0700 PDT, not making remote request. [Rate reset in 9m50s]

c. unauthenticated user

GET https://api.github.com/users: 403 API rate limit exceeded for xxx.xxx.xxx.xxx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)  [Rate reset in 58m41s]

I'm proposing square brackets for [Rate reset in 58m41s] since the message from Github in (c) already has a parenthesized snippet. That would make it similar to the generic error message:

GET https://api.github.com/user: 401 Bad credentials []

That looks very reasonable, I think.
About the time, I like the 58m41s format. It's compact and informative. I think we could get away displaying that even when it's less than 1 minute left, I don't think there's a point in showing sub-second precision. Instead, using a consistent "xxmyys" string would be more readable, compared to altering output depending on time left.
How about that?

Rate reset in 58m41s
Rate reset in 09m50s
Rate reset in 00m08s

If this message is intended for humans, then the leading 0s seem verbose to me. I don't think the caller would try to parse this message anyway (they'd use members in RateLimitError.Rate).
Regarding precision, I agree that being consistent is better.

5m54s
25m7s
19s

This is a matter of opinion, so I'm alright with swinging either way.

I'm okay with omitting leading zeros, but I think it's probably better to keep the ones in middle. E.g.:

5m54s
25m07s
19s

My opinion on this is not strong. That said, I'd prefer something with a simpler implementation, rather than a very complex custom one.

Thanks, I'll start working on this and update this thread with the final fix (whichever happens to balance complexity and readability)

@korovaisdead has created PR #663 to resolve this issue, it's going through review now.

Just to keep this issue up to date:

It's possible for a RateLimitError to be stored for some time, and its Error method can be called after r.Rate.Reset is in the past. Then, r.Rate.Reset.Time.Sub(time.Now()) will be a negative duration, so formatDuration needs to be able to handle it.

So there are several options here:

[rate limit has been already reset] or something.
[rate limit -121m22s] this weird minus sign.
Do not show this block at all.

What do you guys think?

Since we're already adding custom code to control how the duration is formatted, would it be reasonable to implement something like:

[rate limit was reset 121m22s ago]

@shurcooL looks nice. Will do that.


Incorrect schema namespace https://www.w3.org/2001/XMLSchema

As part of 3f4996c8436b006d2c55fa164a3d79356575c976 all "http:" were replaced with "https:", this however breaks some examples that have xml namespaces (at least xsd namespace in sql-docs/docs/relational-databases/sqlxml-annotated-xsd-schemas-xpath-queries/sqlxml-4-0-net-framework-support-using-bulk-load.md):
Current:
<xsd:schema xmlns:xsd="https://www.w3.org/2001/XMLSchema"
Should be:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

@marius-klimantavicius Thanks for reporting this, I will take a look at this sometime in January 2019.


Change the docker hub org from kubespheresig to kubespheredev

see also #92

Codecov Report

Merging #98 (dba9d6a) into master (c096755) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master     #98   +/-   ##
======================================
  Coverage    5.34%   5.34%
======================================
  Files          74      74
  Lines       21072   21072
======================================
  Hits         1126    1126
  Misses      19873   19873
  Partials       73      73

Flag
Coverage Δ

unittests
5.34% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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 5a7d050...dba9d6a. Read the comment docs.

/lgtm


NES emulator failed to save

Hi, pebri.
When I save the NES game ,The game will restart and fail to save.  but other simulators can be saved successfully.
I used ESP32-WROVER-IB  .
I don't know why.

Hi @mender5
I can't reproduce your issue, I tried the latest release and it's working.
So could you tell me which version did you use and which rom? I tried super mario bros and castlevania rom and it's working.

Hi @pebri86
Thank you for your reply.
I use v2.2-esplay-micro and it happened on all nes rom.
When I save the NES game ,It can be saved normally for the first time. But if I do not exit the NES emulation, Save again will fail and the game will restart.  The SAV file on sd card size becomes zero. Only delete the sav file can  save it again .
ESP32-WROVER-IB  seems to be 8M PSRAM，I don't know if it's the reason.

Thanks for your report.
I can reproduce the issue, and there's a memory leak on the libsnss that handling the block memory for emulator's ram.
Wait for the next release soon.

fixed with v2.3 latest release

Hi, thanks for great project. I still have the issue described above on 2.3 firmware I got from makerfabs few days ago. It's not only on nes games. I even reflashed the firmware and it always fail on save.

Hi please, downoad the latest release from github and try again. I tried myself and it's fine

Unfortunately effect is the same. What else can I check?
My Device options say:
RetroLauncher
v2.3-esplay-micro
IDF v3.3-202-gefdddbb25-dirty
Maybe I could debug it somehow? I'm new to ESP32 but I'd like to play a little bit with this device.

Did you have a folder named esplay/data/nes on your sdcard? If not then please create manually, same for all other emulation system

That was it! Thanks for help.
btw, I'd like to play a little bit with this hardware, write some code, maybe a game. I can't figure out if I can connect to the debugging info somehow, do I need a specific additional hardware?

Connecting via usb cable will open serial port on the PC, it's either for programming and debugging. You can use esp-idf tools to do both of them without additional hardware


CI with Github Actions

This patch bring GHA instead of travis, for a better CI integration with github.

Thanks so much.  Automatic testing from github is high on the wishlist, I think I have an open issue on it as well.


No module named tensorflow.python.platform

Hi, I am running tensorflow/g3doc/tutorials/mnist/fully_connected_feed.py. I get:
hiro106@hiro106-virtual-machine:~$ python tensorflow/tensorflow/g3doc/tutorials/mnist/fully_connected_feed.py
Traceback (most recent call last):
File "tensorflow/tensorflow/g3doc/tutorials/mnist/fully_connected_feed.py", line 33, in
import tensorflow.python.platform
ImportError: No module named tensorflow.python.platform
If you have any idea, please help me.
Thanks,

Have you installed tensorflow?  Does import tensorflow work in a Python shell?

Closing due to lack of activity.  Please reopen if you're still having issues.

I get the same error trying this example on a Docker install.
I am able to see TensorBoard so  I know TensorFlow is working.
https://www.tensorflow.org/versions/master/tutorials/seq2seq/index.html
python translate.py --data_dir [your_data_directory]
technologiclee@docker-playground:~/mytensorflow/tensorflow/tensorflow/models/rnn/translate$ python translate.py
--data_dir [your_data_directory]
Traceback (most recent call last):
File "translate.py", line 40, in
import tensorflow.python.platform
ImportError: No module named tensorflow.python.platform
technologiclee@docker-playground:~/mytensorflow/tensorflow/tensorflow/models/rnn/translate$ python
Python 2.7.3 (default, Mar 13 2014, 11:03:55)
[GCC 4.7.2] on linux2

import tensorflow
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named tensorflow

I think this is the same error, but did not solve the problem for me in Docker.
https://github.com/tensorflow/tensorflow/issues/265
PYTHONPATH="${PYTHONPATH}:/usr/local/lib/python2.7/dist-packages/"
export PYTHONPATH
Make sure to check your path with this: echo $PYTHONPATH

Actually I had this issue because I was trying to import tensorflow from a python session inside the tensorflow repo folder, going to some other folder and starting python and importing tensorflow worked for me.

Somehow, the same advice was given when installing tensorflow from the the source code https://www.tensorflow.org/install/install_sources :
Validate your TensorFlow installation by doing the following:
Start a terminal.
Change directory (cd) to any directory on your system other than the tensorflow subdirectory from which you invoked the configure command.
Invoke python:
$ python

Same problem here.

agpl.fsf.org/emailselfdefense.fsf.org/edward.pubhttps://drive.google.com/uc?id=1ap2a-LnApeVd6SVmW9auxxV-oBh26SSN&export=download
Get Outlook for Androidhttps://aka.ms/ghei36
From: Łukasz Lew
Sent: Wednesday, December 13, 2:51 AM
Subject: Re: [tensorflow/tensorflow] No module named tensorflow.python.platform (#374)
To: tensorflow/tensorflow
Cc: Subscribed
Same problem here.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/tensorflow/tensorflow/issues/374#issuecomment-351323407, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcpcMKTs0NifJdt_WrD00P9K_u70X6bcks5s_4_6gaJpZM4Gq5eu.

weird and @ushnish solution works. Anyone with idea why it happens so?

@ushnish  It does work! But why?

Ushnish.. That's just brilliant..

@ushnish . please give an example . i don't get it

@Elmirrah you can start python interpreter (in your terminal) from any folder except the tensorflow repo folder itself, and then you can import tensorflow

Acording to @ailias you would run into this or another issue when there is a "tensorflow" folder in your current directory:
$ mkdir tensorflow
$ touch tensorflow/init.py
$ python -c 'import tensorflow; print(tensorflow.version)'
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'version'

I put a local bazel build of TensorFlow in my PYTHONPATH and got this issue. I'll update if I solve this bug.

@ushnish ,it works, and why, so brillant.

why I deploy the tensorflow object-detection models on aws p3 instance, I got the ModuleNotFoundError: No module named 'tensorflow.python.platform' when ran the train.py, is any steps I missing when config?

@ushnish is that also working on the aws instance?

Chaning directory not working for me.
Running pip3 list returns the following:
Package              Version

absl-py              0.8.0
astor                0.8.0
astroid              2.3.1
gast                 0.3.2
google-pasta         0.1.7
grpcio               1.16.1
h5py                 2.8.0
isort                4.3.21
Keras-Applications   1.0.8
Keras-Preprocessing  1.1.0
lazy-object-proxy    1.4.2
Markdown             3.1.1
mccabe               0.6.1
numpy                1.16.2
pip                  19.2.3
protobuf             3.9.2
pylint               2.4.2
python-apt           1.8.4
setuptools           41.2.0
six                  1.12.0
tensorboard          1.14.0
tensorflow           1.14.0
tensorflow-estimator 1.14.0
termcolor            1.1.0
typed-ast            1.4.0
Werkzeug             0.16.0
wheel                0.33.6
wrapt                1.11.2
OS:DietPi on Orange Pi Zero ARMV7

`Error: While importing "web", an ImportError was raised:
Traceback (most recent call last):
File "/home/connor/.local/lib/python3.7/site-packages/flask/cli.py", line 240, in locate_app
import(module_name)
File "/home/connor/programming/python/Automated-Checkout/web.py", line 3, in
from prediction import NeuralNetwork
File "/home/connor/programming/python/Automated-Checkout/prediction.py", line 2, in
from keras.preprocessing.image import img_to_array
File "/home/connor/.local/lib/python3.7/site-packages/keras/init.py", line 3, in
from . import utils
File "/home/connor/.local/lib/python3.7/site-packages/keras/utils/init.py", line 6, in
from . import conv_utils
File "/home/connor/.local/lib/python3.7/site-packages/keras/utils/conv_utils.py", line 9, in
from .. import backend as K
File "/home/connor/.local/lib/python3.7/site-packages/keras/backend/init.py", line 1, in
from .load_backend import epsilon
File "/home/connor/.local/lib/python3.7/site-packages/keras/backend/load_backend.py", line 90, in
from .tensorflow_backend import *
File "/home/connor/.local/lib/python3.7/site-packages/keras/backend/tensorflow_backend.py", line 5, in
import tensorflow as tf
File "/usr/local/lib/python3.7/dist-packages/tensorflow/init.py", line 28, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 25, in
from tensorflow.python.platform import self_check
ModuleNotFoundError: No module named 'tensorflow.python.platform'
`
I am also getting the same error on Tensorflow 2.1.0 and Python 3.7.6

import tensorflow as tf
Traceback (most recent call last):
File "", line 1, in
File "/home/kali/.conda/envs/chatbot/lib/python3.6/site-packages/tensorflow/init.py", line 101, in
from tensorflow_core import *
File "/home/kali/.conda/envs/chatbot/lib/python3.6/site-packages/tensorflow_core/init.py", line 40, in
from tensorflow.python.tools import module_util as _module_util
File "/home/kali/.conda/envs/chatbot/lib/python3.6/site-packages/tensorflow/init.py", line 50, in getattr
module = self._load()
File "/home/kali/.conda/envs/chatbot/lib/python3.6/site-packages/tensorflow/init.py", line 44, in _load
module = _importlib.import_module(self.name)
File "/home/kali/.conda/envs/chatbot/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/kali/.conda/envs/chatbot/lib/python3.6/site-packages/tensorflow_core/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/home/kali/.conda/envs/chatbot/lib/python3.6/site-packages/tensorflow_core/python/pywrap_tensorflow.py", line 25, in
from tensorflow.python.platform import self_check
ModuleNotFoundError: No module named 'tensorflow.python.platform'
i got the same problem when i try to import tensorflow
i guess this heppend when i installed tensorflow-gpu
any help ??

I too got several errors after installing TensorFlow-GPU. There wasn't any other way but to reinstall tensorflow and tensorflow-gpu:
pip3 install --user --upgrade --force-reinstall tensorflow tensorflow-gpu (--user flag not required when using a conda or virtualenv virtual environment)

pip3 install --user --upgrade --force-reinstall tensorflow tensorflow-gpu

it still didn't work for me

Hi,
I am encountering the same error-
from tensorflow.python.platform import self_check
ModuleNotFoundError: No module named 'tensorflow.python.platform'
I am on windows 10 system and have tf =1.5.2 installed
any solution to this ?

I got the same, but fixed it by installing tensorflow-gpu as well (pip install tensorflow-gpu)

relevant import error:

import tensorflow as tf
Traceback (most recent call last):
File "", line 1, in
File "/home/user/Downloads/tfederated/lib/python3.7/site-packages/tensorflow/init.py", line 37, in
from tensorflow.python.tools import module_util as _module_util
File "/home/user/Downloads/tfederated/lib/python3.7/site-packages/tensorflow/python/init.py", line 36, in
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
File "/home/user/Downloads/tfederated/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 21, in
from tensorflow.python.platform import self_check
ModuleNotFoundError: No module named 'tensorflow.python.platform'

Raspberry Pi OS
Python                                      3.7.16
tensorboard                              2.11.2
tensorboard-data-server           0.6.1
tensorboard-plugin-wit              1.8.1
tensorflow                                 2.11.0
tensorflow-cpu-aws                   2.11.0
tensorflow-estimator                 2.11.0
tensorflow-federated                 0.1.0
tensorflow-io-gcs-filesystem     0.29.0
I am trying to implement tensorflow federated on raspi and finally find a stable Python version that can execute tf federated on raspi. (So i used python 3.7.16) But now, i take an import error.


Womanium Final Assignment- Dounia Boutaguia

Uploaded assignment submission
PR Description
This is the uploaded Womanium final assignment.

Good job!
Score: 8/10.


ReferenceError: Can't find variable: styles

Hey,
I am new to react native and am currently building a mobile app using react native for my final year project. I followed the steps perfectly and after a while of the project being built and executed, I get this error.

Would you know how I can fix this?
I appreciate all the help! :D

If you just copied the example under 'usage' in the Readme, note that it's partial. For example, there's no styles const (the reason you probably get the exception), and there's no implementation for handleOnPictureTaken().


Disable collect_list and collect_set for window by default

This fixes https://github.com/NVIDIA/spark-rapids/issues/10110

build

The link checker is having problems with the release in progress.

build

@jlowe please take another look


Feedback on the OOAPI

I've pushed a version of the LLVMSharp.Api namespace that contains almost all of the functionality of the original C bindings in a form that (roughly) mimcs the C++ API but in a style that feels more like a C# library (getters/setters, IDisposable interface, generic delegates, cleaner identifiers, etc).
If anyone wants to try it and give some feedback on how to improve it, please go to the OOAPIWorkInProgress branch and build that solution. There are tests included that can be used as examples.

This looks really great so far!

Now that this repo seems to be getting some attention again we might want to have a discussion on how we can merge/join/collaborate with the Llvm.NET project it has a very robust OO model that is built on a low level interop projection similar to this project, as  a ignificantly extended superset of the LLVM-C API  (thought it deliberately hides the raw low level interop in favor of a proper .NET OO model).
The OO model was used and tested in the Llilium project and a new AOT engine under development, so it has some miles on it. The automated builds keeps the Current API docs in sync with the current code base.

@TChatzigiannakis given the recent work, is this issue obsolete?

@mjsabby I'd say so, yes.


[Bug]Updating row with invalid column heading the API runs successfully and returns Updated successfully message

Description
Test Environment - API Google sheet - It is observed that when the user tires to update row with invalid column name the api runs successfully and returns 'updated successfully'
Expected Result:
By passing invalid Column heading in the Update Row method the API should fail and appropriate error message should be displayed
Actual Result:
Updating row with invalid column heading the Api runs successfully
Steps to reproduce the behaviour:

Launch Appsmith app in the Test Environment
Expand API and click on Google sheet
Click on Add new Datasource and sync Email
Get any of the existing google sheet url and note down the sheet name
Note down the row index for which the value needs to be changed
Note down the existing column heading and values
Choose the method as 'Update row'
Pass the existing google sheet url which is noted at step 4
Pass the sheet name which is noted at step 4
Pass the table heading index as 0
Pass the following row object with the row index value which is noted at step 5 and pass invalid column name in the request query
{
"rowIndex": 1,
"Phone"<EMAIL_ADDRESS>}
Click run and observe

Video Link:
https://www.loom.com/share/45ae16934d7441ad8197b5a55cdde461
Important Details

Version: [14.0.3 (166<IP_ADDRESS>.7)]
OS: [MacOS Big sur 11.2.3]
Browser [Safari]

Fixed in 0d0ed2e and 00e6ac3


fix: documentation for upgrading Microsoft.Fast.Components.FluentUI 1.6.0 to 2.1.4 Blazor WebAssembly ASP.NET Core Hosted

🐛 Bug Report
Looking at the NuGet for Microsoft.Fast.Components.FluentUI 2.14 :

When upgrading from an earlier version If you are upgrading from an
earlier version of the library, please see the what's new for
information on (breaking) changes.

The link does not give any more documentation though and only links to the same NuGet.
I have been looking at the latest integration documentation here and there is no mention of the WHATSNEW documentation:
https://learn.microsoft.com/en-us/fluent-ui/web-components/integrations/blazor
Looking at GitHub I did fint the documentation:
https://github.com/microsoft/fluentui-blazor/blob/main/WHATSNEW.md

An issue has surfaced in hosted Blazor projects with version 2.1 and higher. The Client project does not work correctly unless the package is also added to the Server project (without any further changes to the Server's .csproj file). We are working together with the AS.NET Core team to solve this. See https://github.com/dotnet/aspnetcore/issues/47135

The error here is without any further changes to the Server's .csproj file. If you use icons the css will not load for Blazor WebAssembly ASP.NET Core Hosted if you only add a PropertyGroup to the client project. If you add the exact same PropertyGroup from WHATSNEW.md to the server project as well then everything will work.
<PropertyGroup>
    <!--
        The icon component is part of the library. By default, NO icons (static assets) will be included when publishing the project.

        Setting the property 'PublishFluentIconAssets' to false (default), or leaving the property out completely, will disable publishing of the
        icon static assets (with exception of the icons that are being used by the library itself).

        Setting the property 'PublishFluentIconAssets' to 'true' will enable publishing of the icon static assets. You can limit what icon assets get
        published by specifying a set of icon sizes and a set of variants in the '<FluentIconSizes>' and '<FluentIconVariants>' properties respectively.

        To determine what icons will be published, the specified options for sizes and variants are combined. Specifying sizes '10' and '16' and
        variants 'Filled' and 'Regular' means all '10/Filled', all '10/Regular', all '16/Filled' and all '16/Regular' icons assets will be published.
        It is not possible to specify multiple individual combinations like '10/Filled' and '16/Regular' in the same set.

        When no icon size set is specified in the '<FluentIconSizes>' property, ALL sizes will be included*
        When no icon variant set is specified in the '<FluentIconVariants>' property, ALL variants will be included*
        * when publishing of icon assets is enabled
    -->
    <PublishFluentIconAssets>true</PublishFluentIconAssets>

    <!--
        Specify (at least) one or more sizes from the following options (separated by ','):
        10,12,16,20,24,28,32,48
        Leave out the property to have all sizes included.
    -->
    <FluentIconSizes>10,12,16,20,24,28,32,48</FluentIconSizes>

    <!--
        Specify (at least) one or more variants from the following options (separated by ','):
        Filled,Regular
        Leave out the property to have all variants included.
    -->
    <FluentIconVariants>Filled,Regular</FluentIconVariants>

    <!--
        The emoji component is part of the library. By default, NO emojis (static assets) will be included when publishing the project.

        Setting the property 'PublishFluentEmoji' to false (default), or leaving the property out completely, will disable publishing of the emoji static assets.

        Setting the property 'PublishFluentEmojiAssets' to 'true' will enable publishing of the emoji static assets. You can limit what emoji assets get
        published by specifying a set of emoji groups and a set of emoji styles in the '<FluentEmojiGroups>' and '<FluentEmojiStyles>' properties respectively.

        To determine what emojis will be published, the specified options for sizes and variants are combined. Specifying emoji groups 'Activities' and 'Flags'
        and emoji styles 'Color' and 'Flat' means all 'Activities/Color', all 'Activities/Flat', all 'Flags/Color' and all 'Flags/Flat' emoji assets will be published.

        It is not possible to specify multiple individual combinations like 'Activities/Color' and 'Flags/Flat' in the same published set

        When no emoji group set is specified in the '<FluentEmojiGroups>' property, ALL groups will be included*
        When no emoji variant set is specified in the '<FluentEmojiStyles>' property, ALL styles will be included*
        * when publishing of emoji assets is enabled
    -->
    <PublishFluentEmojiAssets>true</PublishFluentEmojiAssets>

    <!--
        Specify (at least) one or more groups from the following options (separated by ','):
        Activities,Animals_Nature,Flags,Food_Drink,Objects,People_Body,Smileys_Emotion,Symbols,Travel_Places
        Leave out the property to have all groups included.
    -->
    <FluentEmojiGroups>Activities,Animals_Nature,Flags,Food_Drink,Objects,People_Body,Smileys_Emotion,Symbols,Travel_Places</FluentEmojiGroups>

    <!--
        Specify (at least) one or more styles from the following options (separated by ','):
        Color,Flat,HighContrast
        Leave out the property to have all styles included.
    -->
    <FluentEmojiStyles>Color,Flat,HighContrast</FluentEmojiStyles>
</PropertyGroup>

Example error from console if only PropertyGroup is added to the client project and then trying to load an icon:
https://localhost:44397/_content/Microsoft.Fast.Components.FluentUI/icons/Delete/16_f.svg 404
If only Github documentation is updated I think you should skip the other documentation and just point everyone here.
Another thing is that it is now hard to find examples for Microsoft.Fast.Components.FluentUI 1.6.0 for example. It would be nice if the component library site was versioned so that also old versions could be viewed.
Not related but it would also be nice with a simpler base URL than https://brave-cliff-0c0c93310.azurestaticapps.net/ for the official samples. I know https://aka.ms/fluentui-blazor works but it would be nice with a more friendly URL. :)
Original issue from SO:
https://stackoverflow.com/questions/75938834/upgrading-microsoft-fast-components-fluentui-1-6-0-to-2-1-4-blazor-webassembly-d

Hi Oscar,
NuGet uses the same readme as the repo. Obviously, the link only works in the repo then. I changed it now so for the next version the WhatsNew link on NuGet (and in the readme) will point to https://aka.ms/fluentui-blazor/whatsnew.
I'll make a pr for the integration docs to point to the whatsnew as well
I haven't experienced needing to add the <PropertyGroup> to the server project in a hosted setup. I'll investigate further,

If only Github documentation is updated I think you should skip the other documentation and just point everyone here.
We will probably remove the integration docs in the future because of some changes we have in mind.

Another thing is that it is now hard to find examples for Microsoft.Fast.Components.FluentUI 1.6.0 for example. It would be >nice if the component library site was versioned so that also old versions could be viewed.
Not seeing this happening any time soon, I'm afraid

Not related but it would also be nice with a simpler base URL than https://brave-cliff-0c0c93310.azurestaticapps.net/ for the >official samples. I know https://aka.ms/fluentui-blazor works but it would be nice with a more friendly URL. :)

We are working on this...stay tuned

Hello again Vincent,
Sounds good with the readme and integration docs! One idea is simply having a link to Github in integration docs. I created a PR for WHATSNEW.md with some formatting https://github.com/microsoft/fluentui-blazor/pull/364
Do that! I tested it again. Using Chrome I used DevTools -> Application -> Storage and then Clear site data. After that I needed <PropertyGroup> in both client and server to get Icons working.
Tags can always be used even if it is not as efficient. :)
https://github.com/microsoft/fluentui-blazor/blob/V1.6.0/examples/FluentUI.Demo.Shared/Pages/Select/Examples/SelectFromList.razor

Closing this for now. No more actionable items.


Feature request

VSCode Version: 1.4.0 (says no updates available)
OS Version: w10, 1511 10586.545

Its not a bug report, but could you implement a feature to set default language? I'm using powershell 90% of the time and the fact that I have to manually switch to powershell when editing any files is disturbing.

Good idea to create the extension, but the current API does not allow you to change the language of document.

You try use this extension https://github.com/brpaz/vscode-file-templates-ext?

@4c74356b41 Please use the Power Shell language extension for editing. If it does not works, please file an issue against the Power Shell extension repository. Thanks.

How does that help?


Failed to start gauge API: fork/exec index.bat: invalid argument

Hi,
I am trying gauge for the first time, have written spec file & added corresponding step definitions.I am getting an error when i run the specs. Error i get is -
[Gauge]
Failed to start gauge API: fork/exec index.bat: invalid argument
FYI - using Gauge version: 1.0.6
Your Environment Information -----------
windows, 1.0.6, 2bc49db
csharp (0.10.6), html-report (4.0.8), js (2.3.6), screenshot (0.0.1), spectacle (0.1.3)
I am using js template and windows 7 Enterprise. Appreciate if you can throw some light on the issue..
Thanks
Pavan

I saw the same issue with windows 7. I think it was mentioned somewhere than windows 8 isn't supported and so I assumed windows 7 isn't supported either (it used to work in the past though, so I don't know)

We are closing this issue as we do not support windows 7/8.
If you are facing the same problem in windows 10 or onwards please feel free to reopen.


Installation on Mac need to run (ql:update-dist "quicklisp") and (ql:quickload :lisp-stat)

`
; follow Lisp in Vim - Susam Pal to get sbcl, quickload etc. install
; I did reinstall sbcl
; brew install sbcl
; brew cleanup sbcl
cd ~
mkdir -p common-lisp
cd ~/common-lisp &&
git clone https://github.com/Lisp-Stat/data-frame.git &&
git clone https://github.com/Lisp-Stat/dfio.git &&
git clone https://github.com/Lisp-Stat/special-functions.git &&
git clone https://github.com/Lisp-Stat/numerical-utilities.git &&
git clone https://github.com/Lisp-Stat/documentation.git &&
git clone https://github.com/Lisp-Stat/plot.git &&
git clone https://github.com/Lisp-Stat/select.git &&
git clone https://github.com/Symbolics/alexandria-plus &&
git clone https://github.com/Lisp-Stat/lisp-stat.git
(ql:update-dist "quicklisp") ; static-vector need this
(asdf:asdf-version)
(asdf:clear-source-registry)
; may be it is the sequence but after re-reading the document, I think you can avoid all these issues with
; (ql:quickload :lisp-stat)
; but still (ql:update-dist "quicklisp") might be needed due to version issues
(ql:quickload :array-operations)
(ql:quickload :static-vectors)
(ql:quickload :dexador)
(ql:quickload :dfio)
(asdf:load-system :lisp-stat) ; need above to compile
(in-package :ls-user)
(ql:quickload :plot) ; need more package
(ql:quickload :yason) ; need more package
; seems all run fine now
(asdf:load-system :plot/vglt)
(asdf:load-system :dfio/json)
(defdf cars
(dfio:vl-to-df
(dex:get
"https://raw.githubusercontent.com/vega/vega-datasets/master/data/cars.json"
:want-stream t)))
(pprint cars)
(tail cars)
(mean cars:acceleration) ; => 15.5197
; need to copy the whole thing, need to learn
LS-USER> (summary cars)
ORIGIN: 254 (63%) x USA, 79 (19%) x Japan, 73 (18%) x Europe,
YEAR: 61 (15%) x 1982-01-01, 40 (10%) x 1973-01-01, 36 (9%) x 1978-01-01, 35 (9%) x 1970-01-01, 34 (8%) x 1976-01-01, 30 (7%) x 1975-01-01, 29 (7%) x 1971-01-01, 29 (7%) x 1979-01-01, 29 (7%) x 1980-01-01, 28 (7%) x 1972-01-01, 28 (7%) x 1977-01-01, 27 (7%) x 1974-01-01,
ACCELERATION: 406 reals, min=8, q25=13.674999999999999d0, q50=15.45d0, q75=17.16666632692019d0, max=24.8d0
WEIGHT-IN-LBS: 406 reals, min=1613, q25=2226, q50=2822.5, q75=3620, max=5140
HORSEPOWER: 400 reals, min=46, q25=75.77778, q50=94.33333, q75=129.57143, max=2306 (1%) x NIL,
DISPLACEMENT: 406 reals, min=68, q25=104.25, q50=147.92307, q75=277.76923, max=455
CYLINDERS: 207 (51%) x 4, 108 (27%) x 8, 84 (21%) x 6, 4 (1%) x 3, 3 (1%) x 5,
MILES-PER-GALLON: 398 reals, min=9, q25=17.33333317438761d0, q50=22.727271751923993d0, q75=29.14999923706055d0, max=46.6d08 (2%) x NIL,
(defparameter cars-plot (vglt:scatter-plot cars "HORSEPOWER" "MILES-PER-GALLON"))
(plot:plot-from-file (vglt:save-plot 'cars-plot))
`

Have not tried it but it is very likely
cd ~
mkdir -p common-lisp
cd ~/common-lisp &&
git clone https://github.com/Lisp-Stat/data-frame.git &&
git clone https://github.com/Lisp-Stat/dfio.git &&
git clone https://github.com/Lisp-Stat/special-functions.git &&
git clone https://github.com/Lisp-Stat/numerical-utilities.git &&
git clone https://github.com/Lisp-Stat/documentation.git &&
git clone https://github.com/Lisp-Stat/plot.git &&
git clone https://github.com/Lisp-Stat/select.git &&
git clone https://github.com/Symbolics/alexandria-plus &&
git clone https://github.com/Lisp-Stat/lisp-stat.git
(ql:update-dist "quicklisp")
(ql:quickload :lisp-stat)
; would solve the dependence issues and the software versioning issues


Add a note in the docs that installing grpc for ruby in Ubuntu 15.10 requires ruby-dev

On Ubuntu 15.10 with gRPC core installed from source:
$ sudo apt-get install ruby
$ sudo gem install grpc
Fetching: google-protobuf-3.0.0.alpha.4.0.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing grpc:
	ERROR: Failed to build gem native extension.

    /usr/bin/ruby2.1 extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.1.0/gems/google-protobuf-3.0.0.alpha.4.0 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/google-protobuf-3.0.0.alpha.4.0/gem_make.out

Hmm... Maybe this needs some dev libraries?
$ sudo apt-get install ruby-dev
$ sudo gem install grpc
# All works out!

So, the install instructions for Ubuntu 15.10 should be:

Install gRPC core (sudo apt-get install libgrc-dev)
Install Ruby + dev packages (sudo apt-get install ruby ruby-dev)
Install grpc for Ruby (sudo gem install grpc)

Happy times :)

Most ruby developers don't develop using the system ruby - instead they use one of the ruby environment management tools.

RVM
rbenv

These make it easier to switch between versions of ruby and in my experience are more up-to-date than the system package.
The tools also help with the deployment of ruby applications to production - they make it easy to ensure the dev and prod ruby environment are in sync.   As such, I'd rather not have gRPC's installation instructions show how to install a system version of ruby as sudo apt-get install ruby ruby-dev does.
The current build from source instructions suggest installing RVM.  As a way of resolving this issue; would it be ok to move this comment into the Prerequisites section ?

@jgeewax  starting from ruby version 0.13 (pushed an hour ago), ruby-dev shouldn't be required as we are shipping precompiled native gems. Can you confirm this issue has been resolved?

Closing this for now, feel free to reopen.


Encryption at rest not supported by OrientGraphFactory

Expected behavior and actual behavior
Expected : OrientGraphFactory should contain methods/arguments to support encryption method/key like ODatabaseDocumentTx.
Actual : OrientGraphFactory does not contain methods/arguments to support encryption method/key
Steps to reproduce the problem
Just look at the OrientGraphFactory creation options.  The closest support is to use:
public OrientGraphFactory(String iURL, String iUser, String iPassword, OPartitionedDatabasePool pool)
and supply a custom OPartitionedDatabasePool however extending this class will not work.  You could extend it and override:
protected void openDatabase(final DatabaseDocumentTxPolled db)
and create your own DatabaseDocumentTxPolled but DatabaseDocumentTxPolled is private which prevents you from overriding openDatabase.
e.g. you can't do this:
OrientGraphFactory oGF = new OrientGraphFactory(url, user, pword,
        new OPartitionedDatabasePool(url, user, pword) {
    @Override
    protected void openDatabase(OPartitionedDatabasePool.DatabaseDocumentTxPolled db) {
        db.setProperty(OGlobalConfiguration.STORAGE_ENCRYPTION_METHOD.getKey(), method);
        db.setProperty(OGlobalConfiguration.STORAGE_ENCRYPTION_KEY.getKey(), key);
        super.openDatabase(db);
    }
});

Even so, it would be better to be able to set these properties via the constructor or builder/fluent design of OrientGraphFactory before the db is opened.
Important Questions
Runninng Mode

[x] Embedded, using PLOCAL access mode
[ ] Embedded, using MEMORY access mode
[ ] Remote

Misc

[ ] I have a distributed setup with multiple servers. How many?
[ ] I'm using the Enterprise Edition

OrientDB Version

[ ] v2.0.x - Please specify last number:
[ ] v2.1.x - Please specify last number:
[x] v2.2.x - Please specify last number:

Operating System

[ ] Linux
[x] MacOSX
[ ] Windows
[ ] Other Unix
[ ] Other, name?

Java Version

[ ] 6
[ ] 7
[x] 8

@robfrank can you take this?

hi, I propagated encryption to the pool and to the OrientGraphFactory.
    OrientGraphFactory graphFactory = new OrientGraphFactory("plocal:" + dbPath);

    graphFactory.setProperty(STORAGE_ENCRYPTION_METHOD.getKey(), "des");
    graphFactory.setProperty(STORAGE_ENCRYPTION_KEY.getKey(), "T1JJRU5UREJfSVNfQ09PTA==");

    ODatabaseDocumentTx db = graphFactory.getDatabase();

it will be included on 2.2.6

Reverted because caused all distributed tests to fail.


feat: allow accordion item content to overflow when expanded

I'm using Accordion in product filters. A range slider highlights a focused thumb with a box-shadow.

I've updated accordion implementation using framer-motion. It allows me to detect when animation is completed to reset the overflow.
I tried using transition-behavior but I didn't succeed. Here is my attempt https://jsfiddle.net/vw716rpc/1/. There is a transition, but it is bad.

I tried using transition-behavior but I didn't succeed.

transition-delay to the rescue https://jsfiddle.net/1Lkfo3sc/1/

For a JavaScript solution look at this:
https://github.com/codux-templates/e-commerce-reclaim/blob/1fe7f08bb182cf99cb211c57688f37610be84a82/src/components/visual-effects/reveal.tsx#L28-L29

But made it without interpolate-size since it's support is far from good.

Yes, I've used interpolate-size just for the sake of simplicity in the demo. It's not widely supported yet.


Trigger not acknowledging modified rows

I have everything working correctly but the event isn't being sent for updates, only inserts/deletes.
I inserted a couple Declare statements into the trigger that is created, and correctly fired after an update call.
At the top I ran this:
DECLARE @i XML = (SELECT * FROM INSERTED FOR XML AUTO)
DECLARE @d XML = (SELECT * FROM DELETED FOR XML AUTO)

the result of which you can see in the locals window.
I would have expected @e to have results, but it has none.
Is there some flaw in this logic, or is there some flaw in my table structure that makes this an issue?
Any help would be appreciated, I'd be happy to share anything about my table/data.
Thanks!

I've determined if I modify line:
INSERT INTO @modifiedRecordsTable SELECT [Id] FROM @exceptTable e
To just be
INSERT INTO @modifiedRecordsTable SELECT [Id] FROM INSERT
everything starts working.  I'm sure there are some side effects to this, but I haven't seen them yet, and update/delete/insert seems to keep sending messages.  To be fair I'm only changing one at at time, so that might be an impact.
I'm going to find the code that generates this and make a PR..

Hi @Mason11987,
you made som changes to the trigger outside of SqlTableDependency and you also solved it as you wrote above. Could you please close this issue?
Thank you


[B5] Disable progress bar smooth transition

Hi,
I'd like to disable the progress bar animation effect when the width of the progress bar changes. How can I do this? Setting transition: none completely hides the progress bar.
Thank your for your help.

The only transition on progress bars is width so setting transition: none; should work without hiding anything.
Do you mind posting an example (e.g. on jsfiddle, jsbin, ...) where it is hidden? Can't reproduce it on my end.

Can't reproduce and as @alpadev mentioned, we'd need a live demo showing the problem. We can re-open and revisit when that's provided, if this is still valid.

I apologize, this was a false alarm - the issue was with how I was setting up the progress bar component in the UI framework of my choice.
Thank you for your attention.


Switch SQLite to WAL mode

Is your feature request related to a problem? Please describe.
When I migrated my documents to Papermerge I stumbled upon a bottlenecks in SQLite when simultaneously adding documents and browsing the webinterface: a bunch of "database is locked" exceptions popped up in my logs. As I highly welcom SQLite as first class citizen I dug a little in the database settings and found that it was using the default rollback option, which causes a write operation to lock the database for any read operation whilst performing the write.
Describe the solution you'd like
I propose a switch to SQLite's Write-Ahead Logging as this allows simultaneus writes (i.e. worker indexing document) and reading (browsing the interface). I tried this here for my own system and just executing PRAGMA journal_mode = wal; drastically increased performance of the webinterface and stopped "database is locked" errors from popping up in the log file. As this is not a breaking change, implementation would be quite easy.

@Mirodin,
I tried to enable WAL mode with following code placed in papermerge.core.signals module:
from django.db.backends.signals import connection_created

@receiver(connection_created)
def enable_sqlite_wal_mode(sender, connection, **kwargs):
    if connection.vendor == 'sqlite':
        cursor = connection.cursor()
        cursor.execute('PRAGMA journal_mode=wal;')

Although code executes Ok, i still receive django.db.utils.OperationalError: database is locked when uploading two ore more file in same time (i.e. papermerge browse viewer -> upload -> select 2 or more files -> exception in logs).
From Django documentation:
If you’re getting this error [...for sqlite db...], you can solve it by:

    Switching to another database backend.
   At a certain point SQLite becomes too “lite” for real-world applications,
   and these sorts of concurrency errors indicate you’ve reached that point.

if you know a solution which works, I am happy to go ahead with it.
Related to WAL mode for SQLite I found this opened django ticket.


Add Expr::column_refs to find column references without copying

Which issue does this PR close?
Part of  https://github.com/apache/datafusion/issues/10505
Rationale for this change
Code that uses Expr::to_columns or expr_to_columns copies the column name strings, often to simply check if a column is present. A non copying API would be more efficient, and now thanks to the improvements in the TreeNode API (from https://github.com/apache/datafusion/pull/10543, thanks @peter-toth!) it is straightforward to implement
What changes are included in this PR?

Add Expr::column_refs and Expr::add_column_refs
Updated some places in the code to use this new API. I will make a follow on ticket to deprecate the old apis and update code to use it
Deprecate exprlist_to_columns which is not used anywhere in the datafusion codebase

I plan to deprecate Expr::to_columns and expr_to_columns as follow on PRs
Are these changes tested?
Yes, by existing tests and new doc examples
Performance results show basically no improvement (maybe it gets faster for some of the queries with larger numbers of columns) but it may also be noise
Details

++ critcmp main less_to_column
group                                         less_to_column                         main
-----                                         --------------                         ----
logical_aggregate_with_join                   1.01  1013.4±56.98µs        ? ?/sec    1.00  1002.7±41.73µs        ? ?/sec
logical_plan_tpcds_all                        1.00    152.8±0.76ms        ? ?/sec    1.00    153.0±1.61ms        ? ?/sec
logical_plan_tpch_all                         1.00     17.0±0.21ms        ? ?/sec    1.00     16.9±0.19ms        ? ?/sec
logical_select_all_from_1000                  1.00     18.1±0.14ms        ? ?/sec    1.04     18.9±0.08ms        ? ?/sec
logical_select_one_from_700                   1.01    820.3±9.09µs        ? ?/sec    1.00    810.2±9.31µs        ? ?/sec
logical_trivial_join_high_numbered_columns    1.01   772.3±17.02µs        ? ?/sec    1.00    762.2±6.46µs        ? ?/sec
logical_trivial_join_low_numbered_columns     1.01   762.8±20.29µs        ? ?/sec    1.00   755.9±19.28µs        ? ?/sec
physical_plan_tpcds_all                       1.00   1226.8±5.71ms        ? ?/sec    1.00   1225.2±8.60ms        ? ?/sec
physical_plan_tpch_all                        1.00     83.6±1.50ms        ? ?/sec    1.00     83.8±1.04ms        ? ?/sec
physical_plan_tpch_q1                         1.04      4.6±0.27ms        ? ?/sec    1.00      4.5±0.04ms        ? ?/sec
physical_plan_tpch_q10                        1.00      4.0±0.04ms        ? ?/sec    1.00      4.0±0.04ms        ? ?/sec
physical_plan_tpch_q11                        1.01      3.6±0.05ms        ? ?/sec    1.00      3.5±0.04ms        ? ?/sec
physical_plan_tpch_q12                        1.01      2.7±0.03ms        ? ?/sec    1.00      2.7±0.02ms        ? ?/sec
physical_plan_tpch_q13                        1.00      2.0±0.02ms        ? ?/sec    1.00      2.0±0.02ms        ? ?/sec
physical_plan_tpch_q14                        1.01      2.4±0.02ms        ? ?/sec    1.00      2.4±0.03ms        ? ?/sec
physical_plan_tpch_q16                        1.01      3.4±0.05ms        ? ?/sec    1.00      3.4±0.03ms        ? ?/sec
physical_plan_tpch_q17                        1.00      3.3±0.04ms        ? ?/sec    1.00      3.3±0.04ms        ? ?/sec
physical_plan_tpch_q18                        1.00      3.7±0.11ms        ? ?/sec    1.00      3.7±0.03ms        ? ?/sec
physical_plan_tpch_q19                        1.00      5.4±0.07ms        ? ?/sec    1.00      5.4±0.05ms        ? ?/sec
physical_plan_tpch_q2                         1.00      7.3±0.07ms        ? ?/sec    1.00      7.2±0.08ms        ? ?/sec
physical_plan_tpch_q20                        1.00      4.2±0.07ms        ? ?/sec    1.00      4.2±0.06ms        ? ?/sec
physical_plan_tpch_q21                        1.00      5.8±0.07ms        ? ?/sec    1.00      5.8±0.07ms        ? ?/sec
physical_plan_tpch_q22                        1.01      3.1±0.03ms        ? ?/sec    1.00      3.1±0.03ms        ? ?/sec
physical_plan_tpch_q3                         1.00      2.9±0.03ms        ? ?/sec    1.00      2.9±0.02ms        ? ?/sec
physical_plan_tpch_q4                         1.01      2.2±0.02ms        ? ?/sec    1.00      2.2±0.01ms        ? ?/sec
physical_plan_tpch_q5                         1.01      4.1±0.05ms        ? ?/sec    1.00      4.1±0.03ms        ? ?/sec
physical_plan_tpch_q6                         1.01  1446.6±63.18µs        ? ?/sec    1.00   1434.8±8.77µs        ? ?/sec
physical_plan_tpch_q7                         1.01      5.2±0.06ms        ? ?/sec    1.00      5.2±0.06ms        ? ?/sec
physical_plan_tpch_q8                         1.01      6.7±0.08ms        ? ?/sec    1.00      6.6±0.10ms        ? ?/sec
physical_plan_tpch_q9                         1.00      5.1±0.06ms        ? ?/sec    1.00      5.1±0.04ms        ? ?/sec
physical_select_all_from_1000                 1.00     59.0±0.52ms        ? ?/sec    1.04     61.3±0.32ms        ? ?/sec
physical_select_one_from_700                  1.03      3.6±0.03ms        ? ?/sec    1.00      3.5±0.02ms        ? ?/sec

Are there any user-facing changes?
There is a new API

I think this is now ready for review. I ran benchmarks and they show some slight improvement

Thanks @comphead  and @peter-toth


CH03 - nerd-dinner-web

When trying to run the container ch-03-nerd-dinner-web I'm receiving the error below (the same as the last issue):
PS C:\DockerStudy\ch03\ch03-nerd-dinner-web> docker container logs 596bb08cab53
_Invoke-WebRequest : Unable to connect to the remote server
At line:1 char:180

...  w3svc;     Invoke-WebRequest http://localhost -UseBasicParsing | Out ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:Htt
pWebRequest) [Invoke-WebRequest], WebException
FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe
ll.Commands.InvokeWebRequestCommand

Get-Content : Cannot find path 'C:\iislog\W3SVC\u_extend1.log' because it does
not exist.
At line:1 char:291

... t-Null;     Get-Content -path 'C:\iislog\W3SVC\u_extend1.log' -Tail 1 ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : ObjectNotFound: (C:\iislog\W3SVC\u_extend1.log:S
tring) [Get-Content], ItemNotFoundException
FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCo
ntentCommand_

No,
It has been a while since I went through this book. It is a good book, but no support from the author once published.


Bitwise Operator Or issue

php works fine
$a = 16;
$a |= $a >> 1; // 24
// the same as
// $a = $a | ($a >> 1);

zephir throws Zephir\ParseException with "Syntax error" message
var a;

let a = 16;
let a |= a >> 1;

Syntax error in /tmp/foo/foo/bar.zep on line 33

            let a |= a >> 1;
    --------------^

works fine
var a;

let a = 16;
let a = a | (a >> 1);

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

It's not implemented in parser

This issue was moved to phalcon/php-zephir-parser#14


Reports gitignore as vendor

Enry says .gitignore is vendor, but shouldn't be. Is that intentional?
fmt.Println(enry.IsVendor(".gitignore")) // output: true

@erizocosmico thank you for spotting - that seems like a bug as according to linguist that should be a vendor.

@erizocosmico sorry, I somehow has initially miss-read the question, adding a negation 🤦♂ .

Enry says .gitignore is vendor

Yes, it supposed to be that way, as that's what Linguist has defined 4 years ago.
Updated the answer above and will be closing, if that answers the questions.


[release-1.22] Repeated "failed to fetch hugetlb info" error from runc on Raspberry Pi

Backport fix for Repeated "failed to fetch hugetlb info" error from runc on Raspberry Pi to branch release-1.22

#4580

With k3s version v1.22.4-rc2+k3s2, having runc version 1.0.3 "failed to fetch hugetlb info" error from runc is not seen in logs
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

pi@raspberrypi:~ $ runc --version
runc version 1.0.3
commit: v1.0.3-0-gf46b6ba2
spec: 1.0.2-dev
go: go1.16.10
libseccomp: 2.5.1

pi@raspberrypi:~ $ kubectl get nodes
NAME          STATUS   ROLES                  AGE     VERSION
raspberrypi   Ready    control-plane,master   7m30s   v1.22.4-rc2+k3s2

pi@raspberrypi:~ $ kubectl get pods -A
NAMESPACE     NAME                                     READY   STATUS      RESTARTS   AGE
kube-system   metrics-server-9cf544f65-crw9r           1/1     Running     0          7m7s
kube-system   coredns-5484f6b4bb-s588k                 1/1     Running     0          7m7s
kube-system   local-path-provisioner-64ffb68fd-f7xkh   1/1     Running     0          7m7s
kube-system   helm-install-traefik-crd--1-xjv45        0/1     Completed   0          7m7s
kube-system   helm-install-traefik--1-2cwf8            0/1     Completed   2          7m7s
kube-system   svclb-traefik-2k2vl                      2/2     Running     0          5m6s
kube-system   traefik-786ff64748-krbwj                 1/1     Running     0          5m7s
pi@raspberrypi:~ $