text:
ChakraCore cannot build on Ubuntu 15.10 (x64)

Followed the information at http://ariya.ofilabs.com/2016/01/playing-with-chakracore-on-linux.html
except that I use virtualbox as the VM and install the ubuntu15.10 from http://releases.ubuntu.com/15.10/
the error message I am seeing is:
c++: error: unrecognized command line option ‘-fdelayed-template-parsing’
pal/src/CMakeFiles/Chakra.Pal.dir/build.make:54: recipe for target 'pal/src/CMakeFiles/Chakra.Pal.dir/cruntime/file.cpp.o' failed
make[2]: *** [pal/src/CMakeFiles/Chakra.Pal.dir/cruntime/file.cpp.o] Error 1
CMakeFiles/Makefile2:90: recipe for target 'pal/src/CMakeFiles/Chakra.Pal.dir/all' failed
make[1]: *** [pal/src/CMakeFiles/Chakra.Pal.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

@flyboy9 you need clang++3.7+
sudo apt-add-repository "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main"
sudo apt-get update
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-get install clang++-3.7

You also need libicu
sudo apt-get install libicu-dev

It may ask you to install couple of more packages.
Check if you have clang++ on the path ? Otherwise
sudo ln -s /usr/bin/clang++-3.7 /usr/bin/clang++
sudo ln -s /usr/bin/clang-3.7 /usr/bin/clang

if you don't want to do that, you may set clang location using build.sh
./builds --cxx=/usr/bin/clang++-3.7 --cc=/usr/bin/clang-3.7

please let me know, so I can update this comment (eventually wiki)

hmm,   followed you instruction,   still seeing the same error
@obastemur
ling@ling-VirtualBox:~/Desktop/code/ChakraCore$ cmake . && make
Detected Linux x86_64
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ling/Desktop/code/ChakraCore
[  1%] Building CXX object pal/src/CMakeFiles/Chakra.Pal.dir/cruntime/file.cpp.o
c++: error: unrecognized command line option ‘-fdelayed-template-parsing’
pal/src/CMakeFiles/Chakra.Pal.dir/build.make:54: recipe for target 'pal/src/CMakeFiles/Chakra.Pal.dir/cruntime/file.cpp.o' failed
make[2]: *** [pal/src/CMakeFiles/Chakra.Pal.dir/cruntime/file.cpp.o] Error 1
CMakeFiles/Makefile2:90: recipe for target 'pal/src/CMakeFiles/Chakra.Pal.dir/all' failed
make[1]: *** [pal/src/CMakeFiles/Chakra.Pal.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
ling@ling-VirtualBox:~/Desktop/code/ChakraCore$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
ling@ling-VirtualBox:~/Desktop/code/ChakraCore$ sudo ln -s /usr/bin/clang-3.7 /usr/bin/clang
ln: failed to create symbolic link ‘/usr/bin/clang’: File exists
ling@ling-VirtualBox:~/Desktop/code/ChakraCore$ ./builds --cxx=/usr/bin/clang++-3.7 --cc=/usr/bin/clang-3.7
-bash: ./builds: No such file or directory
ling@ling-VirtualBox:~/Desktop/code/ChakraCore$ git branch

linux
master
ling@ling-VirtualBox:~/Desktop/code/ChakraCore$ git status
On branch linux
Your branch is up-to-date with 'origin/linux'.
nothing to commit, working directory clean
ling@ling-VirtualBox:~/Desktop/code/ChakraCore$

Question:  is there a way for me to verify if the necessary develop  environment  is set up correctly?

ling@ling-VirtualBox:~/Desktop/code/ChakraCore$ cmake . && make

Could you use build.sh option above with the explicit location for clang, and clang++ ?

from the long you have: ln: failed to create symbolic link ‘/usr/bin/clang’: File exists
where do you have the clang, and clang++ ?

I also had difficulty building on Ubuntu 15.10. @digitalinfinity suggested that the version of cmake might be a problem. I tried to install the latest but ultimately updated to 16.04 LTS, and was able to get a successful build.

With @obastemur's PR #913 now merged in, cmake 3.5 is no longer needed either so it should build fine with Ubuntu 15.10.

@flyboy9 can you confirm that you're able to build and then we'll close this issue? :)

I've just compiled ChakraCore on a new VM with the steps below;

Visited  http://releases.ubuntu.com/ and download latest LTS! (x64)
How or to where you have installed doesn't make much difference.
!Keep in mind you will need an internet connection on this VM

Once you have Ubuntu is installed open a terminal window and start the update process
Ø sudo apt-get update
Ø sudo apt-get dist-upgrade

Make sure you have git is installed
Ø sudo apt-get install -y git

Get the latest ChakraCore source code (ReadOnly option - Use your fork instead of Microsoft)
Ø mkdir Github && cd Github
Ø git clone https://github.com/Microsoft/ChakraCore

The next step is to install some useful packages for better development experience (OPTIONAL)
Ø sudo apt-get install -y meld
Ø To install VSCode visit https://code.visualstudio.com/Docs/editor/setup#_linux

Time to install dependencies
Ø sudo apt-get install -y build-essential cmake clang uuid-dev libunwind-dev libicu-dev liblttng-ust-dev

Let's build
Ø cd ChakraCore
Ø git checkout linux

Finally
Ø ./build.sh

Closing this issue for now. In case you are unable to compile using the steps above feel free to open this issue back. Thanks for all the details!
@Microsoft/chakra-developers what is the best way to share these steps above from our wiki on Github?

@obastemur : @liminzhu might be able to provide more guidance or integrate this into the wiki in an appropriate place.

// thanks for cc'ing me @dilijev
Great stuff @obastemur ! I was actually looking for such a guide. The most logical place in the current wiki would be Building ChakraCore and have a linux block in it. I can test it out today and add the guide there.

@liminzhu sounds great. Thanks!

@obastemur Just add the guide [there] (https://github.com/Microsoft/ChakraCore/wiki/Building-ChakraCore#linux) with slight tweaks of words.

authors: digitalinfinity dilijev flyboy9 liminzhu obastemur


text:
How do I get this working?

Apparently pulling in the nuget package "Microsoft.ClearScript" is not enough to start doing what the examples say can be done.
Can someone explain how i'm supposed to correctly install this package in to my app stack since all it seems to want to do is complain about dependencies not loading right no matter what i seem to do.
I'm running a standard .Net 4.6 compile and the package is basically being imported in to a small project that contains a few DTO's but there's nothing special about it.
Having done that i'm trying to unit test the imported stuff by writing some code that uses it in my DTO project then creating a reference to that in my unit test project and calling my code which of course in turn calls up a new instance of a V8ScriptEngine and attempts to execute some js on it.

Hi @TehWardy,
Please make sure your Visual Studio installation includes the Desktop development with C++ workload.
Thanks!

Ok weird ... I created a new Console app, and did literally nothing else but pull in the "Microsoft.ClearScript" nuget package and then put this in main ...
using (var engine = new V8ScriptEngine())
{
    engine.Execute("var x = 1 + 2");
}

Console.ReadKey();

... and it worked ...
Something must be up with my project / solution that's causing a problem for it.

Ok i've beaten it!
Took a lot of removing and re-adding the reference ... not sure why but it seems to have gone now.

source: gharchive/issue

authors: ClearScriptLib TehWardy

repo: Microsoft/ClearScript

license: MIT

license_type: permissive

license_source: github-api


text:
NullReferenceException in Clousot/cccheck

I enabled Code Contracts (all default settings, except unticked Check In Background hoping it might work around #137 - it didn't) on a project in a big solution I have, and this was spat into the output window as it ran.
Unfortunately the chances of my getting a repro I can provide are slim (it's a massive project I can't share, and I doubt I could repro it in small, shareable codebase), but I'm hoping since it's an NRE with a stack, it might be possible to figure out from the error alone.
There are no contract annotations in any of our code (though the default settings include inferring and suggesting some).
CodeContracts: MyProject.Thing.AL: Run static contract analysis.
CodeContracts: MyProject.Thing.AL: Time spent connecting to the cache: 00:00:01.0514598
CodeContracts: MyProject.Thing.AL: Cache used: (LocalDb)\MSSQLLocalDB
C:\Work\Source\Thing\Thing-Code-Contracts\MyProject.Thing.AL\DataFields\MediaDataField.cs(83,5): message : CodeContracts: Suggested ensures for member Retrieve: The caller expects the postcondition Contract.Ensures(Contract.Result<SystemWrapper.IO.IFileInfoWrap>() != null); to hold for the interface member Retrieve. Consider adding such postcondition to enforce all implementations to guarantee it
C:\Work\Source\Thing\Thing-Code-Contracts\MyProject.Thing.AL\DataFields\CollectionDataField.cs(37,4): message : CodeContracts: Suggested ensures for member get_Value: The caller expects the postcondition Contract.Ensures(Contract.Result<System.Collections.Generic.List<T>>() != null); to hold for the interface member get_Value. Consider adding the postcondition to enforce all implementations to guarantee it
CodeContracts: MyProject.Thing.AL: Internal error in Clousot/cccheck --- catching it, and continuing
CodeContracts: MyProject.Thing.AL: \nException Type:System.NullReferenceException
CodeContracts: MyProject.Thing.AL: \nMessage:Object reference not set to an instance of an object.\, Stack TraceSystem.NullReferenceException: Object reference not set to an instance of an object.
CodeContracts: MyProject.Thing.AL: \n   at Microsoft.Research.CodeAnalysis.BoxedExpression.ContractExpression.get_SourceAssertionCondition()
CodeContracts: MyProject.Thing.AL: \n   at Microsoft.Research.CodeAnalysis.ClousotExpressionCodeProvider`5.SourceAssertionCondition(PC pc)
CodeContracts: MyProject.Thing.AL: \n   at Microsoft.Research.CodeAnalysis.MethodCache`9.SubroutineBase`1.SourceAssertionCondition(Label label)
CodeContracts: MyProject.Thing.AL: \n   at Microsoft.Research.CodeAnalysis.MethodCache`9.BlockWithLabels`1.SourceAssertionCondition(APC pc)
CodeContracts: MyProject.Thing.AL: \n   at Microsoft.Research.CodeAnalysis.AnalysisWrapper.TypeBindings`11.GenericValueAnalysis`2.<ReducePostconditions>b__12(SyntacticTest test)
CodeContracts: MyProject.Thing.AL: \n   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
CodeContracts: MyProject.Thing.AL: \n   at Microsoft.Research.DataStructures.Set`1.AddRange(IEnumerable`1 range)
CodeContracts: MyProject.Thing.AL: \n   at Microsoft.Research.DataStructures.Set`1..ctor(IEnumerable`1 original)
CodeContracts: MyProject.Thing.AL: \n   at Microsoft.Research.CodeAnalysis.AnalysisWrapper.TypeBindings`11.GenericValueAnalysis`2.ReducePostconditions(List`1 postconditions)
CodeContracts: MyProject.Thing.AL: \n   at Microsoft.Research.CodeAnalysis.AnalysisWrapper.TypeBindings`11.GenericValueAnalysis`2.SuggestPostcondition(ContractInferenceManager inferenceManager\, IFixpointInfo`2 fixpointInfo)
CodeContracts: MyProject.Thing.AL: \n   at Microsoft.Research.CodeAnalysis.Clousot.TypeBinder`9.RunContractInference(Int32 phasecount\, String methodFullName\, IMethodDriver`12 mdriver\, AnalysisStatistics& methodStats\, List`1 results\, ContractInferenceManager inferenceManager\, ComposedFactQuery`1 factQuery)
CodeContracts: MyProject.Thing.AL: \n   at Microsoft.Research.CodeAnalysis.Clousot.TypeBinder`9.MethodAnalysisNonCached(Method method\, MethodAnalysisFlags& analysisFlags\, Int32& phasecount\, String methodFullName\, IClassDriver`13 cdriver\, IMethodDriver`12 mdriver\, AnalysisStatistics& methodStats\, ContractDensity& methodContractDensity)
CodeContracts: MyProject.Thing.AL: \n   at Microsoft.Research.CodeAnalysis.Clousot.TypeBinder`9.AnalyzeMethodInternal2(Method method\, MethodAnalysisFlags analysisFlags\, IClassDriver`13& cdriver\, AnalysisStatistics& methodStats\, APC& entryPC)
CodeContracts: MyProject.Thing.AL: Validated:  99.6%
CodeContracts: MyProject.Thing.AL: Checked 880 assertions: 833 correct 3 unknown (44 masked)
CodeContracts: MyProject.Thing.AL: Contract density: 2.55
CodeContracts: MyProject.Thing.AL: Total methods analyzed 89
CodeContracts: MyProject.Thing.AL: Methods analyzed with a faster abstract domain 0
CodeContracts: MyProject.Thing.AL: Method analyses read from the cache 75
CodeContracts: MyProject.Thing.AL: Methods not found in the cache 14
CodeContracts: MyProject.Thing.AL: Methods with 0 warnings 77
CodeContracts: MyProject.Thing.AL: Time spent in internal, potentially costly, operations
CodeContracts: MyProject.Thing.AL: Overall time spent performing action #KarrPutIntoRowEchelonForm: 00:00:00.1861224 (invoked 79224 times)

I have a similar issue myself, here's my stack-trace below.
My project isn't anything secret or confidential, it's a simple database application using Entity Framework 6.

CodeContracts: Rss: Internal error in Clousot/cccheck --- catching it, and continuing
CodeContracts: Rss: \nException Type:System.NullReferenceException
CodeContracts: Rss: \nMessage:Object reference not set to an instance of an object.\, Stack TraceSystem.NullReferenceException: Object reference not set to an instance of an object.
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.BoxedExpressionReader`11.ExpressionInPostStateHelper(BoxedExpression exp\, Boolean replaceReturnValue\, Boolean overrideAccessModifiers\, Boolean allowReturnValue\, Details& details)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.BoxedExpressionReader`11.ExpressionInPostStateHelper(BoxedExpression exp\, Boolean replaceReturnValue\, Boolean overrideAccessModifiers\, Boolean allowReturnValue\, Details& details)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.BoxedExpressionReader`11.ExpressionInPostStateHelper(BoxedExpression exp\, Boolean replaceReturnValue\, Boolean overrideAccessModifiers\, Boolean allowReturnValue\, Details& details)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.BoxedExpressionReader`11.ExpressionInPostStateHelper(BoxedExpression exp\, Boolean replaceReturnValue\, Boolean overrideAccessModifiers\, Boolean allowReturnValue\, Details& details)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.BoxedExpressionReader`11.ExpressionInPostStateHelper(BoxedExpression exp\, Boolean replaceReturnValue\, Boolean overrideAccessModifiers\, Boolean allowReturnValue\, Details& details)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.BoxedExpressionReader`11.ExpressionInPostStateHelper(BoxedExpression exp\, Boolean replaceReturnValue\, Boolean overrideAccessModifiers\, Boolean allowReturnValue\, Details& details)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.BoxedExpressionReader`11.ExpressionInPostStateHelper(BoxedExpression exp\, Boolean replaceReturnValue\, Boolean overrideAccessModifiers\, Boolean allowReturnValue\, Details& details)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.BoxedExpressionReader`11.ExpressionInPostStateHelper(BoxedExpression exp\, Boolean replaceReturnValue\, Boolean overrideAccessModifiers\, Boolean allowReturnValue\, Details& details)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.AnalysisWrapper.TypeBindings`11.GenericValueAnalysis`2.ToListOfBoxedExpressions(AbstractDomain astate\, BoxedExpressionReader`11 expInPostState)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.AnalysisWrapper.TypeBindings`11.GenericNumericalAnalysis`1.SuggestPostconditionsFromReturnState(IFixpointInfo`2 fixpointInfo\, List`1 expressions)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.AnalysisWrapper.TypeBindings`11.GenericNumericalAnalysis`1.SuggestAnalysisSpecificPostconditions(ContractInferenceManager inferenceManager\, IFixpointInfo`2 fixpointInfo\, List`1 postconditions)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.AnalysisWrapper.TypeBindings`11.ArrayAnalysis`2.SuggestAnalysisSpecificPostconditions(ContractInferenceManager inferenceManager\, IFixpointInfo`2 fixpointInfo\, List`1 postconditions)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.AnalysisWrapper.TypeBindings`11.GenericValueAnalysis`2.SuggestPostcondition(ContractInferenceManager inferenceManager\, IFixpointInfo`2 fixpointInfo)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.Clousot.TypeBinder`9.RunContractInference(Int32 phasecount\, String methodFullName\, IMethodDriver`12 mdriver\, AnalysisStatistics& methodStats\, List`1 results\, ContractInferenceManager inferenceManager\, ComposedFactQuery`1 factQuery)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.Clousot.TypeBinder`9.MethodAnalysisNonCached(Method method\, MethodAnalysisFlags& analysisFlags\, Int32& phasecount\, String methodFullName\, IClassDriver`13 cdriver\, IMethodDriver`12 mdriver\, AnalysisStatistics& methodStats\, ContractDensity& methodContractDensity)
CodeContracts: Rss: \n   at Microsoft.Research.CodeAnalysis.Clousot.TypeBinder`9.AnalyzeMethodInternal2(Method method\, MethodAnalysisFlags analysisFlags\, IClassDriver`13& cdriver\, AnalysisStatistics& methodStats\, APC& entryPC)

authors: DanTup Jehoel

repo: Microsoft/CodeContracts

license: mit

license_source: bigquery


text:
TripPin Part 6 - Schema - Incomplete

I was unable to complete the tutorial without adding in the below two schema arguments when calling GetAllPagesByNextLink() and GetPage():

TripPin.Feed = (url as text, optional schema as table) as table => GetAllPagesByNextLink(url, schema);
page = if (nextLink <> null) then GetPage(nextLink, schema) else null

Sorry, I should have been more specific.  I meant the tutorial itself does not cover the mentioned code, i.e., if you follow the tutorial from beginning to end, you eventually get stuck on this part because it's not covered - it's only covered in the sample code.

repo: Microsoft/DataConnectors


text:
HoloToolkit-Example TextPrefabSamplesTest broken with Missing Prefab error

Repro steps:

Sync to latest master HTK-U
Open project using Unity 5.4 releases
Open HoloToolkit-Examples\Text\TextPrefabSamplesTest scene

Observe issue:

I guess this could be due to either some different version of Unity being used to check in or may be the font dependency? The original prefabs look fine though. It's hard to tell what these prefabs are.

Those are the four text & sample prefabs added as part of #339
This test scene is just having them in the hierarchy. Let me try with different version.

@dbastienMS just mentioned to me that you might be missing meta files.
True indeed: You don't have a meta file checked in for TextPrefabSamplesTest.meta
Also missing meta files for you 3DTextPrefab and other files.
Please add the meta files for all of them.

Created new pull request with added .meta files.
Thank you!

Still broken. Looks like there is a Scripts.meta but no Scripts folder to go with it.

Great. That issue is now fixed :)
Only new issue I see in the test scene is:
3DTextPrefab is missing the shader. This shader does not exist on the main prefab in UI\Prefabs.
Perhaps this needs to be fixed:

To point to HoloToolkit\3DTextShader
Also apply this same shader to the prefab

@NeerajW the shader probably just needs to be recompiled.

@HodgsonSDAS nope. There was a shader namespace change and it had to be re-applied to the component.

Fixed with PR #351

authors: HodgsonSDAS NeerajW cre8ivepark

repo: Microsoft/HoloToolkit-Unity


text:
Updated documentation screenshots

As requested in issue #2, screenshots made from a build with the master branch on Mac OS Sierra.

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

source: gharchive/pull-request

repo: Microsoft/InQRy


text:
Confused about conversion from Tensorflow chekpoint to Keras h5

Platform (like ubuntu 16.04/win10): Win10
Python version: 3.5
Source framework with version (like Tensorflow 1.4.1 with GPU): TF 1.5
Destination framework with version (like CNTK 2.3 with GPU): Keras 2.0
Pre-trained model path (webpath or webdisk path):
Running scripts:
I am trying to do what is supposed to be a straightforward conversion from a TF checkpoint (with 3 files, meta, index, and data-00000-of-00001) to an h5 model I can use with Keras.
But the documentation seems unclear as to what exactly are the steps. I cannot understand the meaning of all the -d,-n,-w, etc flags and keep getting errors.
Is there some detailed document I have missed, besides the instructions here?
P.S.
I saw that there is a way to convert a pb file to a Keras snippet and then to an h5. But when I tried this with a pb model I have from TF it also failed.

Figured it out by now. Thanks.

could you provide some information of how did you figured out please?

repo: Microsoft/MMdnn


text:
When will MRDL basic controls be merged into MRTK?

My team was trying to use the Holographic-Shell-like MRDL App Bar and BoundingBox controls in our MRTK app, and found that MRDL baseline functionality has been successfully merged hours ago. So I wonder when will the MRDL basic controls be merged, and will it land in v1.2017.2.0 or v1.2017.3.0?

We're still working on it. There's currently an active PR #1197 open for some basic stuff already.

@DreaminginCodeZH PR #1197 includes basic Holographic Button in the InteractableObjectExamples scene. App Bar and BoundingBox control is on phase 2 list - we are updating it to support motion controller's pointer input too.

Thanks for the quick response! I wonder when will the phase 2 controls be merged, and will it land in v1.2017.2.0 or v1.2017.3.0?

ASAP

Just one more question, is it possible for the AppBar and BoundingBox to be merged within two weeks? If not, our team will have to roll our own solution due to time constraint.

@Railboy could you please share rough timeline for your App Bar + Bounding Box updates?

repo: Microsoft/MixedRealityToolkit-Unity


text:
UX Document Fixes

Changes

Fixes: #1801

Is this meant to target Stabilization?

@keveleigh yes. That way master doesn't get ahead of it.

@StephenHodgson We should close Stabilization. I was under the impression that we'd create a stabilization branch off Dev, take bug fixes for some amount of time, merge the stabilization branch into master, delete the stabilization branch, then bring the bug fixes back into Dev to complete the cycle.
The release was merged, and Stabilization's only purpose is to stabilize towards a release. Otherwise, we'll get PRs targeting Stabilization incorrectly, and doc changes in master like this now turn into three PRs (branch -> Stabilization -> master -> dev) instead of "just" two.

authors: StephenHodgson keveleigh


text:
Regex changes to allow square brackets in key

This is to fix #253

Closing this pull request as we decided not to do this.


text:
Request to Type Hints similar to PyCharm's

Hi all:
One of the main reasons we're not switching from PyCharm to PVTS is PyCharm's Type Hints (extremely useful in python).
https://www.jetbrains.com/help/pycharm/2016.3/type-hinting-in-pycharm.html
Any possibility of you implementing the same?
I think this would make a lot more people switch to PTVS.
Thanks
E

As you noticed, duplicate of #82. I'll comment there.

authors: EdStone zooba

repo: Microsoft/PTVS


text:
Replace hard-coded path C:\Agent\HOL with $(build.artifactstagingdire…

…ctory)
Would it not be preferred to not use a hard-coded path but use the variable for the staging folder?   I completed the CI LAB using VSTS and the Hosted Agent.

can you please change the case to match the official "Build.StagingDirectory" as found https://msdn.microsoft.com/en-us/Library/vs/alm/Build/scripts/variables and then I will approve PR

This was fixed from another PR

authors: dtzar wesmacdonald

repo: Microsoft/PartsUnlimited


text:
Fraud Detection Error Message

Hi zhixingr,
I tried out the Fraud Detection example but got the following error message when executing rxExec function in the script 01-generate-tagged-data.R.

#rxExec function allows distributed execution of a function in parallel across nodes (computers) or cores of a "compute context" such as a cluster

rxExec(tag_fraud,

   in_table1 = untagged_table,

   in_table2 = fraud_table,

   out_table = tagged_fraud_table,

   tag_mode = "Acct")

======  DATASCISQL16DB  ( process  1 ) has started run at  2017-01-05 02:42:45.93  ======
DATASCISQL16DB [6024]: Rows Processed: 50000
DATASCISQL16DB [6024]: Rows Processed: 100000
DATASCISQL16DB [6024]: Rows Processed: 150000
DATASCISQL16DB [6024]: Rows Processed: 200000
DATASCISQL16DB [6024]: Rows Processed: 8640
DATASCISQL16DB [6024]: Rows Processed: 10000
Failed to allocate 20480000 bytes.
Caught exception in file: CxAnalysis.cpp, line: 6488. ThreadID: 3036 Rethrowing.
Caught exception in file: CxAnalysis.cpp, line: 5682. ThreadID: 3036 Rethrowing.
Caught exception in file: CxAnalysis.cpp, line: 5249. ThreadID: 3036 Rethrowing.
Error in doTryCatch(return(expr), name, parentenv, handler) :
bad allocation
Calls: source ... tryCatch -> tryCatchList -> tryCatchOne -> doTryCatch -> .Call
In addition: Warning messages:
1: In as.POSIXlt.POSIXct(x, tz) : unable to identify current timezone 'C':
please set environment variable 'TZ'
2: In as.POSIXlt.POSIXct(x, tz) : unknown timezone 'localtime'
Execution halted
Error in rxCompleteClusterJob(hpcServerJob, consoleOutput, autoCleanup) :
No results available - final job state: failed
Could you please kindly advise? Thanks a lot!

Hello -- It looks like you need to specify a time zone.

repo: Microsoft/SQL-Server-R-Services-Samples


text:
Fixing CI tests

Increasing the timeout on the taco-remote selftest, since we how include a plugin in the build which is acquired from the internet.
Also fixing a failure I introduced in the taco help tests, as well as improving the tests to show up failures as failures rather than timeouts.

looks good...

This fixes a couple more issues, but there's still a timeout in the kit tests that I haven't tracked down yet.

authors: MSLaguana nisheetjain

repo: Microsoft/TACO


text:
Switch to cordova-browsersync-primitives

This is to address issue #258 .

Hi @asselin, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@MSLaguana np, I went ahead and made the change from == to ===

The PR looks good to me now, however we can't accept it until you fill out the CLA as mentioned by the bot earlier on.

@asselin, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, MSBOT;

Looks good, we'll most likely merge this shortly

On our side of things, what impact does this have about adding an additional dependency?
@asselin looking at your repo I don't see a readme or license file. The npm page states that it is licensed under Apache 2.0. Can you please clarify?

Yes, Apache.  Lack of README and LICENSE was an oversight on my part. I'll push an update today to add those files.

Repo updated and published to npm.

@joshuaskelton Are you waiting on anything from me to merge this PR?

I think we should not be merging this. We are exploring a different way to do live reload - where we don't switch the protocol of the webview (which leads into issues) and that would not consume browser-sync as the module exposes.
@guillaumejenkins @joshuaskelton, My recommendation would be not to merge this PR, at least till we look at the feasibility of the new approach.

Sorry for the extended delay. We now suggest that people use our VSCode extension for livereload support, either via ionic or simulating in a browser.

authors: MSLaguana asselin axemclion guillaumejenkins joshuaskelton msftclas


text:
Incorrect types while iterating over a list of enums (1.8.10)

On TypeScript 1.8.10, the following happens, and breaks my existing code:
enum MyEnum { A, B };

var EnumList: MyEnum[] = [MyEnum.A, MyEnum.B];

for (var c in EnumList) {
//	var e: MyEnum = c; For some reason, c is a string
//	var e: MyEnum = MyEnum[c]; And this cast still doesn't compile
	var e: MyEnum = MyEnum[MyEnum[c]]; // This compiles
}

I think c never meant to be a string, to begin with. But let's admit it's okay, the second line should work to cast it back to the integer-based enum value, and it does not.
The weird double cast works though. At compile time... and at runtime.

for (var c in EnumList) is iterating over the keys in EnumList. You want to write for (var c of EnumList) to iterate over the members. This is a JS thing, not TS - we're just getting the types right.

Wow, the in/of thing is really really subtle.
Why was it working in version 1.7.5 then?

@Vermeille Prior to 1.8, we typed it as any, rather than string (despite is always being a string).

authors: Vermeille weswigham

repo: Microsoft/TypeScript


text:
Incorrect typecheck on generic Promise with inheritance

TypeScript Version:  2.3.2
Code
class A {
    a: number;
}

class Aplus extends A {
    plus = () => true;
}

function newAplusAsync(): Promise<Aplus> {
    return Promise.resolve(new A());
}

(async () => {
    const aplus = await newAplusAsync();
    console.log(aplus.plus());
})();

Expected behavior:
Compiler error: Type 'Promise<A>' is not assignable to type 'Promise<Aplus>'
Actual behavior:
Runtime error: aplus.plus is not a function

Should be fixed by https://github.com/Microsoft/TypeScript/pull/15104, fix should be available today in typescript@next.


text:
Cannot add methods when inheriting native Array class

I want to create a class that inherits the native Array class (as its prototype). However, I found that the methods I append to the inherited class are missed when being compiled.

TypeScript Version:  2.4.2
Code
// This class inherits the native Array class
// and has its own method "getFirst"
class MyNewArray<T> extends Array<T> {
    getFirst() {
        return this[0];
    }
}

// Create a new "MyNewArray" instance
var myArray = new MyNewArray<string>();
myArray.push("First Element");
// Print the first element by calling its "getFirst" method
console.log("getFirst", myArray.getFirst()); // "First Element"

Expected behavior:
The code should print the first element of myArray, i.e., "First Element"
Actual behavior:
The code raised an exception, saying as following:
console.log("getFirst", myArray.getFirst()); // "First Element"
                                ^

TypeError: myArray.getFirst is not a function
    at Object.<anonymous> (/Users/cosmozhang/work/temp/t.js:23:33)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3

Duplicate of #18035 (and many others)
Also covered in the FAQ Why doesn't extending built ins like Error,
Array, and Map work?
Search is your friend!

Should really just have a bot that detects the string "extends Array" in bug reports

authors: RyanCavanaugh cosmozhang1995 kitsonk


text:
Spread operator dont fill an empty array

TypeScript Version:  3.2.0-dev.20181027
Search Terms: array, spread
Code
const values = [...Array(2)]

Expected behavior:
The values should be an array with [undefined, undefined]
Actual behavior:
It return a true empty array (like an Array(2)) which cant be mapped
Playground Link: here

Duplicate of #8856

authors: andy-ms lucasteles


text:
Unexpected behavior when assigning class object to its interface and using spread operator

TypeScript Version:  3.0.0-dev.201xxxxx

Search Terms:
Code
interface A {
    readonly b: number;
    getB(): number;
}

class B implements A {
    readonly b: number;
    constructor(b: number) {
        this.b = b;
    }
    getB() {
        return this.b;
    }
}

class C implements A {
    readonly b: number;
    constructor(b: number) {
        this.b = b;
    }

    getB() {
        return this.b;
    }
}

const c: A = new C(4);
const d: A = {...c, b:5};
// This should fail typecheck but doesn't fail and javascript throws .getB() doesn't exist
console.log(d.getB());

Expected behavior:
Typecheck catches above error
Actual behavior:
Javascript throws error
Playground Link:  https://www.typescriptlang.org/play/#src=interface A {
    readonly b%3A number%3B
    getB()%3A number%3B
}

class B implements A {
    readonly b%3A number%3B
    constructor(b%3A number) {
        this.b %3D b%3B
    }
    getB() {
        return this.b%3B
    }
}

class C implements A {
    readonly b%3A number%3B
    constructor(b%3A number) {
        this.b %3D b%3B
    }

    getB() {
        return this.b%3B
    }
}

function test(a%3A A) {
    if (a instanceof B) {
        console.log('instance of B')%3B
    } else if (a instanceof C) {
        console.log('instance of C')%3B
    }
}

const c%3A A %3D new C(4)%3B
const d%3A A %3D {...c%2C b%3A5}%3B
console.log(d.getB())%3B%0D%0A
Related Issues:

Root cause is lack of #9726

authors: RyanCavanaugh tejas-patel


text:
ImageData's data isn't Uint8ClampedArray!

https://GitHub.com/Microsoft/TypeScript/blob/master/lib/lib.d.ts#L11052
https://GitHub.com/Microsoft/TypeScript/blob/master/lib/lib.es6.d.ts#L12367
interface ImageData {
    data: number[]; // should be Uint8ClampedArray type here...
    height: number;
    width: number;
}

According to https://developer.Mozilla.org/en-US/docs/Web/API/ImageData/data
data readonly property needs to be Uint8ClampedArray, not some mere number[].

#949 has said this a year ago but unfortunately haven't fixed yet :/

As @SaschaNaz mentioned. it is a duplicate.

authors: GoToLoop SaschaNaz mhegazy


text:
Proposal: set target to es6 by default for tsserver

Hello,
For now, you have to specify the target in tsconfig.json when you want to use es6 features in tsserver
It would be great to enable es6 by default only for tsserver, so there is no need for a tsconfig.json file.
We could downgrade by using tsconfig.json as usual.
Hope this could help others.

@dbaeumer, @egamma and @jrieken can you way in on this. Do you get similar feedback?

Node.js doesn't fully support es6 yet. So setting the default to es6 might be confusing when doing node development. See this issue for an example Microsoft/vscode#1556.

OK I understand you want to align tsc and tsserver.
But browsers like ie 11, old firefox ... won't support all es6 features, so you will always stay to es5!
The current ECMAScript is es6, so I think it would be great to switch only tsserver to es6 (for vscode) and throw an error from tsc when compiling, telling that this feature is not yet supported (: to target es5 or to target es6 and to use another transpiler like babeljs to transpile to es5 for example) instead of showing the diagnostic error for unsupported generators...
This is another way and I think it will be a new step to es6.

for generators and async/await we would like to get them transpiled to ES5 by 2.0.

authors: Alphapage egamma mhegazy


text:
No error on assignment between generic derived and base classes with incompatible signatures if the base class does not contain a structural reference to its generic parameter

TypeScript Version:
1.8.9
Code
class Base<T> { };
class Derived<U> extends Base<U> { };

let x: Base<number> = new Derived<number>(); // Works as expected.
let y: Base<string> = new Derived<number>(); // No error?

Expected behavior:
The second assignment should fail as string is not assignable to number, thus Base<string> is not a valid base class for Derived<number>.
Actual behavior:
No error.
Notes:
If the base class contained at least one structural reference to the type parameter. It would indeed give an error:
class Base<T> { a: T }
class Derived<U> extends Base<U> {};

let y: Base<string> = new Derived<number>();
// Error: types of 'a' are incompatible, 'number' is not assignable to 'string':

However, alternatively, even if the derived class contained a reference to its type parameter, there would be no error:
class Base<T> {}
class Derived<U> extends Base<U> { a: U };

let y: Base<string> = new Derived<number>(); // No error

More convincing example:
It turns out there could still be internal references to T in the body of a method that did not include it in its signature. Currently this compiles fine as well:
function externalFunction<T>(a: T) {
	...
}

class Base<T> {
	method() {
		// T is indeed referenced here, and still there is no error.
		// I understand the 'no type based emit' principle but I think this is taking it too far!
		let x: T;
		externalFunction(x);
	}
}

class Derived<U> extends Base<U> { };
let x: Base<string> = new Derived<number>(); // No error!

TypeScript's first design goal is:

Statically identify constructs that are likely to be errors.

It is hard for me to see a case where this would not be a programmer's mistake (or at least an early warning sign for one). I understand this is a structural type system and understand the fact that on some level this 'shouldn't' really have practical implications at run-time if there's no structural reference to the generic type in the base class, but I don't think that would justify accepting it as a valid assignment.

This problem is more fundamental and surfaces also in cases where only a single class is involved (I'll try to find a good example with interfaces as well):
class Bag<T> {
	items = [];
}

function putStringsInTheBag(bag: Bag<string>) {
	bag.items.push("a", "b", "c", "d");
}

function putNumbersInTheBag(bag: Bag<number>){
	bag.items.push(1, 2, 3, 4);
}

let bagOfStrings = new Bag<string>();
let bagOfNumbers = new Bag<number>();

putStringsInTheBag(bagOfNumbers); // Oh no!!!

This compiles perfectly fine despite the fact that the bagOfNumbers has a conceptually incompatible signature to bagOfStrings. You might say it's the programmer's fault because they didn't write items: T. Of course that would have been better, but the whole idea here is to catch patterns that are likely to be errors, not just blame the programmer whenever they do something that is not ideal.
I don't think this example is as 'convincing' as the base class one but I thought it had enough merit to include it as well.

I've noticed this with Promises - it's easy to accidentally create promises typed as Promise<{}>, which is assignable to any other promise type. Promise assignment should really only be covariant and not contravariant.
function f() {
	return new Promise(resolve => { resolve(42) });
	// without an explicit type argument, this ends up returning Promise<{}>
}

function g(a: Promise<string>) {
	a.then(s => { console.log(s.toUpperCase()) }).catch(e => { console.error(e) })
}

g(f()); // No error detected in assigning the Promise<{}> to Promise<string>
        // At runtime: [TypeError: s.toUpperCase is not a function]

https://github.com/Microsoft/TypeScript/wiki/FAQ#why-is-astring-assignable-to-anumber-for-interface-at--
Unconsumed generic type parameters are an extremely red red flag in TypeScript. The only reason this isn't an error is because it would have been a breaking change to do so.

@RyanCavanaugh
By using an expression like "unconsumed generic variables are a big no-no" you are basically describing exactly what I wrote: You are blaming the programmer instead of trying to provide an improvement to the type-checker that would address this.
If I believed that opening this to discussion was not productive or wouldn't be a constructive improvement to the language I would not have spent the time to research and write this. Hopefully you've read the example in my second comment, as it shows perfectly reasonable code that appears like it should provided type safety by the language but actually doesn't.
I opened this with the idea that it is, in a sense "by design", so that's not really any news for me. And I know fixing this would be a in a sense "breaking change" mostly in the sense that "bad" code would now get type-checked correctly!
Can you give examples where introducing a check for this would provide unuseful, spurious errors, rather than helpful ones?
In any case, please re-open this. You can leave the "By Design" tag if you wish, though I don't believe it is really helpful here, as that is pretty obvious..

@RyanCavanaugh
Listen, I have to tell you personally that borderline rude to close and dismiss it like it was nothing! Do you really believe you're going to keep helpful participants around if you treat us like we're this "swarm" of annoying people just here to pester you by asking or suggesting obvious and unhelpful things?
You described the problem as a 'red-red flag' but then said that nothing is ever going to be done about it? What kind of impression do you think this gives about how your team works? That you basically don't care? If you don't really care about your own language, why would I care? Why would I spend my time at carefully considering how it could improved in the best way and especially consider how to solve problems with the least impact and breaking changes? because that is a part of what I'm trying to do!

@RyanCavanaugh
I'm not here to argue and I'm not a confrontational person (I'm telling you, I'm actually a very nice person!). So here's what I'm going to do: we'll start all over in a new issue, which would only include the example in the second comment, which I now believe was a somewhat better one, but maybe you didn't notice and possibly others wouldn't as it is surrounded by a lot of text.
You and your team will carefully read and analyze that example and try to provide a solution for it because it is, by all means a "bug". It is perfectly reasonable code that the type checker cannot provide safety for.

@malibuzios sorry if you got that perception. We're not trying to brush issues like this off, and we do care. Please do understand though that we get many issues a day (to give you an idea, I have 833 notifications right now for the TypeScript GitHub repo alone), and we have answered some of the same questions/issues (@RyanCavanaugh especially!) many times. This is tough given the number of users compared to the number of members on the team, and can be very taxing for us.
So please don't take the terse responses the wrong way. We've thought about the problems here with a structural type system for years and have some thoughts on nominal typing that we've discussed (check out the most recent relevant design meeting notes at #6735).
tslint could have something to catch issues regarding unconsumed type parameters - though I don't really know how often people who already understand this issue accidentally end up writing unconsumed type params.

@DanielRosenwasser
I opened another issue and started receiving comments before I was able to read your response. Thank you for taking some time to answer. I appreciate that.
I'm not sure if the particular issue I'm describing is really about nominal typing. It is a particular type of checking that can be done between generic classes and their ancestors. I intentionally did not include interfaces here because I didn't think they were as important as this. If I thought this should be in a domain of a linter I would have posted this at the tslint repo, the Interface case my or may not be more relevant to it.
TypeScript is not like 'go', which doesn't have classes. When a class is declared, it has a particular and explicit implementation. The compiler knows that Bag<number> and Bag<string> share the exact same execution paths and internal logic. The current approach to class generics treats them essentially as if they were interfaces. I don't think this really is about structural or nominal typing, it is about encoding a semantic understanding of what it means that two entities are identical or share the same execution logic.
I have intentionally did not try to suggest solutions here because I believed this would require a more intricate understanding of the language, which I will never have as much as you or your team has. To be honest I believed this would be taken more seriously than it did.

it is about encoding a semantic understanding of what it means that two concrete entities are identical

Generally this is what nominal typing encompasses - the idea that a type would be immediately differentiated by its type arguments. But you can't just look at that because you're not always assigning between the same class, and if we required that, you couldn't do something like the following:
interface NumberStringMap {
    [key: number]: string;
}

let arr: Array<string> = ["hello", "world"];
let m: NumberStringMap = arr;

So we look at capabilities when we do type compatibility checking because we try to be lenient.
There's also a few questions that stand out in general. Let's say we did check type arguments specifically. Take the following:
interface Box<T> { }
interface Animal { a }
interface Dog extends Animal { d }

let animalBox: Box<Animal>;
let dogBox: Box<Dog>;

Can I assign a Box<Dog> to a Box<Animal>? What about vice versa? Why or why not?

@DanielRosenwasser
First of all, thanks again for taking the time to answer. I understand you may be very busy. My purpose here was to try my best to demonstrate that the current approach to generics has some issues and limitations. Not to propose a solution, as that would be beyond my capabilities and the time I have to spend for this.
It may be that some innovative (perhaps "hybrid") approach or concept may need to be developed to approach this. If I have time I will try to investigate this, but this may take months or even years.
All I wanted is having the problem be known and acknowledged. It may surprise you that I may not actually be that disturbed if it would never be addressed. It does, however, disturb me if people deny there's any flaw and defensively refuse to acknowledge it.
I hope I contributed at least a little with the example I gave in my second comment, as it shows useful, functioning code that looks perfectly type safe but actually isn't - in a way that is subtle enough that even people relatively familiar with the language may not notice.
Thank you for your time!

@malibuzios I'm sorry to have given you that impression above. As Daniel said, we get a lot issues a day, and we do want to read and address all the comments. It's unfortunately not possible for us to spend too much time one-on-one for issues that have been logged and discussed many times before.
Rest assured that we're listening to all feedback. We do look at things like "How many times has this been seen as a bug" when considering design changes, so even an issued closed as by design is having an impact on the future direction of the language. Thanks!

@RyanCavanaugh  @DanielRosenwasser
Just wanted to add this problem isn't really limited to generics, though you are probably familiar with this. For example if a base class has the same structure as a derived class, then the base class may be assigned to the derived class. So in this case:
class Base {
	action = "START WORLD WAR III";
}

class Derived extends Base {
	action = "SAVE THE WORLD";
}

function giveMeDerived(shouldBeDerived: Derived) {
	performAction(action);
}

giveMeDerived(new Base()); // OOPS?? no error?? The compiler could have saved the world :(

Now if this assignment was done erroneously, which is very likely, the type checker cannot really help here. This is actually 'worse' than all the examples I gave so far so introducing some capability for nominal typing/hybrid approach could be interesting, though I'm thinking on a more automated or error-oriented approached that wouldn't require explicit syntax..
Unused generic variables aren't really related to this and could be covered separately by a warning/linter..

You'd probably be interested in #202 or some discussion that happened at #6735

@RyanCavanaugh I was quite surprised to find that I will just lose the type safety once I want to use Promise as return type. That's embarrassing.
Why can't we treat generics as part of the structure? I think this could be considered as proper for type aliases like:
interface Foo {
    biu: string;
}

type Bar<T> = Foo;

But for interfaces and classes, that's really awkward to me to not consider generics part of the structural stuff.

authors: DanielRosenwasser RyanCavanaugh jeffreymorlan malibuzios vilic


text:
Fixed missing whitespace in jsDoc comments. Fixes #12236

Fixes #12236

Hi @Knagis, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.
TTYL, MSBOT;

Thanks for the fix @Knagis !

authors: Knagis msftclas sandersn


text:
Fixes #16255: DOM lib is missing Intersection Observer API on window …

Fixes #16255

@johan-gorter,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

These files are not meant to be edited by hand. If you need to make modifications, the respective files should be changed within the repository's top-level src directory. Running jake LKG will then appropriately update the files in this directory. (https://github.com/Microsoft/TypeScript/tree/master/lib#readme)

-> https://github.com/Microsoft/TypeScript/tree/master/src/lib#readme

what @ikatyang said.

I tried to understand where the change should be made and I found the TSJS-lib-generator project. But from there I do not know where I need to make the changes. Giving up.

@johan-gorter I believe it just needs to be added to the JSON structure in addedTypes.

authors: ikatyang johan-gorter kitsonk mhegazy msftclas


text:
Widening for tuples

Fixes #2798.
We actually did not have any widening logic for tuples. This change adds widening logic for tuples. It widens each element, and reports implicit any errors on each element.

@DanielRosenwasser @yuit I've pushed a new commit.

:+

:cookie:

authors: DanielRosenwasser JsonFreeman yuit


text:
UIPinchGestureRecognizer does not reset properly

UIPinchGestureRecognzier does not implement the reset method.  It needs to reset the internal tracking state of the gesture so that it can be reused after the reset callback.

Was fixed by #983

authors: ArnOmsft pittmab

repo: Microsoft/WinObjC


text:
pyyaml  inconsistent version in Pip lock files and security warning

The version of pyyaml referenced differently in
./agogosml/Pipfile
./agogosml/Pipfile.lock
./agogosml/setup.py
./agogosml_cli/Pipfile.lock

[packages]

pyyaml = ">=4.2b1"

Issue Template

[x] Does your issue follow our Code of Conduct?

[x] Ensure you are up-to-date with master.

[x] Search existing issues.

[x] Part of the project with issues: (ie. Agogosml, Deployment, CLI)

[x] Indicate OS, version of Python (Note: Only Python 3.7 is currently supported.)

[x] Include versions of tooling where appropriate (Terraform, Kubernetes, Docker, etc.)

Just as a note: the pyyaml dependency is pulled in as a transitive dependency of watchdog which is used for make servedocs.

Note that the root cause of this was resolved in https://github.com/Microsoft/agogosml/pull/229 since pipenv was replaced with pip.

authors: c-w cicorias

repo: Microsoft/agogosml


text:
Update backup-azure-vms-automation.md

Updated steps based on recent run.

Hi @jpalo, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@jpalo : Thanks for your contribution to the Azure documentation! The author, @markgalioto, has been notified to review your proposed change.

Thanks for updating the document. We reviewed it and will sign-off the changes.

#sign-off

authors: JPallavi PRmerger jpalo msftclas

repo: Microsoft/azure-docs


text:
Insufficient privileges while running Azure Active Directory command on powershell

Hi,
I am getting error "insufficient privileges" while running an AD command to my Azure Data Lake Store account I am creating via PowerShell. I am able to create the DLS account, however when I am trying to assign a group (admin group) to be the owning group, it fails with error "insufficient privileges". The command goes like this.
PS H:> Set-AzureRmDataLakeStoreItemOwner -AccountName $dataLakeStoreName -Path / -Type Group -Id (Get-AzureRmADGroup -SearchString $owninggroup).Id
Please suggest what needs to be done to get past the error.
P.S - It's happening when I am trying on powershell as well as on VSTS using PS script to create the DLS account in a CICD manner.
Thanks,
Radha

@mohantyrr2003  Can you try the recommendation provided by @xenalite and reopen the thread if it doesn't work?

repo: Microsoft/azure-pipelines-tasks


text:
Copy and paste columns from results grid to Excel not behaving as expected

Issue Type: Bug
Copying and pasting columns from the results grid to Excel seems to be a bit strange. If the whole result set or a drag-select is done, the structure copies OK, but if shift-selecting columns either together or spaced apart, the pasted result gets put all in one column - in the order the columns were selected.
Screenshot:

Ref Twitter conversation here
Azure Data Studio version: azuredatastudio 1.6.0 (eb35dae1d1238e03f1cab3bd45e151f381b22aef, 2019-04-17T07:11:15.944Z)
OS version: Windows_NT x64 10.0.17134

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (4 x 2400)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledsurface_synchronization: enabled_onvideo_decode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
11.89GB (4.35GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (3)

Extension
Author (truncated)
Version

agent
Mic
0.38.0

server-report
Mic
0.1.5

whoisactive
Mic
0.1.1

Seems like it's been an issue since 2017? https://github.com/Microsoft/azuredatastudio/issues/26

I'll close as a duplicate of #26.  Please upvote that issue to help us prioritize.  Currently this bug has received relatively few reports relative to most the other bugs we're investigating.  Thanks for reporting!

authors: kburtram oakhousetom

repo: Microsoft/azuredatastudio


text:
[c++ grpc] Drop client callback after executing

After executing the client callback upon receiving a response, clear the
stored callback to prevent a shared_ptr cycle.
Previously, when the callback function was not cleared, if the callback
happened to store the unary_call_result that it was invoked with (like
wait_callback does), there would be a shared_ptr cycle: the callback
would have a shared_ptr to the unary_call_result, which was keeping its
parent client_unary_call_data alive. This client_unary_call_data had a
copy of the callback function, which had a shared_ptr to the
unary_call_result.
This change resets the callback to empty after is has been executed,
breaking the cycle.

This change appears to have introduced some crashes. Investigating.

repo: Microsoft/bond


text:
Signed xml bug fix (issue #73)

Issue #73 bugfix.

Code selecting signature node from first child of xml document has been replaced with: XmlDocument.SelectSingleNode('//xmlsig:Signature',XmlNamespaceManager)
Test codeunit has been modified to run tests on xml documents with processing instructions and without them

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

Thanks a lot for your fix! Much appreciated! I will look into it asap!

@azwierzchowskitnp
Great, the error correction went really fast. Thanks for the quick correction!

Great work! Thanks a lot for the quick turnaround!

authors: FSharpCSharp JesperSchulz azwierzchowskitnp msftclas

repo: Microsoft/cal-open-library


text:
diskspd should support memory-mapped benchmarking

DISKSPD should support benchmarking of persistent memory / storage class memory. This will require rdtsc or equivalent support for timing, possible enhancement of the histogram tracking to handle cycle-granularity timing, and new modes of operation (-S, etc.) to indicate new modes of operation.

This is in 2.0.21a.

repo: Microsoft/diskspd


text:
update version

change the init matrix function.
change the bp error.

You may need to solve the conflicts first and update the pull request again.


text:
Add YAML for VSTS CI

This adds a YAML file specifying our CI build. Basically the dev CI process minus packing nupkgs and running APIScan (note there's a task for APIScan; I've disabled it because it's slow).

This looks fine to me. Does this work on our CI server? Out of curiousity, how did you find out those values (ie. securedevelopmentteam.vss-secure-development-tools.build-task-binskim.BinSkim@3)

It works, I tested it on another branch. Once this is merged I'll create a build definition for service.
The task names were included in the YAML generated by the web editor. I don't think there's another way to get them at present.

authors: chlowell conniey

repo: Microsoft/dotnet-apiport


text:
Merge pull request #9 from Microsoft/dotnet47

Add .NET 4.7 sample

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

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

authors: msftclas orinwalker


text:
allow single-use constrained types in some situations

Fixes #223.
What do you think of this? I'm not sure if its the cleanest way to go about it or the ideal place to do it, either, so some feedback on that would be nice.
It is to allow cases like this:
function func<T extends object>(param: Foo<T>): void;

This currently isn't allowed, but is of course a valid use case to constrain the type parameter.
cc @sandersn

How does that behave differently than
function func(param: Foo<object>): void;

That is my exact though, too. I'm not entirely sure.
Now that I dig into it more, i apologise for using your time up with this PR as i can see it should definitely not be needed. We're struggling with this in the DT sinon types and i'm unsure why.
If I copypaste the sinon types from my branch and dumb them down:
interface SinonSpy<TArgs extends any[] = any[], TReturnValue = any> {
}

declare function makeSpy<F extends (...args: any[]) => any>(func: F): SinonSpy<Parameters<F>, ReturnType<F>>;

declare function notCalled(spy: SinonSpy<any[]>): void;

const test = makeSpy((arg1: string, arg2: boolean) => 123);

notCalled(test);

This compiles just fine... with --strict too.
However, when the DT tests run, we get this:
ERROR: 300:28   expect                      Compile error in typescript@3.3 but not in typescript@next.                                                                               TypeScript@next features not yet supported.
Argument of type 'SinonSpy<[string, boolean], number>' is not assignable to parameter of type 'SinonSpy<any[], any>'.

Where L300 is a notCalled(spy);...

Don't think we need this anymore. Will reopen one day if I'm wrong

repo: Microsoft/dtslint


text:
MSBuild child nodes do not inherit parent node's process priority

This bug report refers specifically to MSBuild running on Windows.
If I start MSBuild.exe with process priority "below normal" (6) and the /m command line switch, and that MSBuild.exe starts child MSBuild.exe processes, then these child nodes still run with normal (8) process priority. It would be better for them to inherit the parent process' priority, because without such inheritance, it becomes impossible to effectively "nice" a multiprocessor build.
Thanks,
Philip
Visual Studio Team Services

Looks like the bug is on line 368 of src/XMakeBuildEngine/BackEnd/Components/Communications/NodeProviderOutOfProcBase.cs. Instead of setting the value to NORMAL_PRIORITY_CLASS, just set it to zero.

I just stumbled across #166, of which this is a duplicate.

authors: phkelley rainersigwald

repo: Microsoft/msbuild


text:
MSBuild 15 creates an assembly info file and fails to compile it..

Steps to reproduce the problem:

create an empty .NET Standard (1.3) library
delete theobj and bin sub-folders
at the command line, type :  msbuild <project-name>.csproj
MSBuild creates the following file at obj\Debug\netstandard1.3\<project-name>.AssemblyInfo.cs:

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("xxx")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("xxx")]
[assembly: System.Reflection.AssemblyTitleAttribute("xxx")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.

as these attributes are no longer supported in .NET Standard projects the compilation fails.

The problem does not appear when the folder obj\Debug\netstandard1.3 exists.

@jeffkl any idea why this is happening?

Did you restore after deleting the obj folder? Deleting that folder is pretty much undoing restore as well so there won't be any compilation references that define all the attributes..

No I didn't restore, I know I should, but don't you think it's odd that msbuild creates a file containing non-compilable attributes. And don't you think that the msbuild script code that generates the file should be deleted or at least modified...

And don't you think that the msbuild script code that generates the file should be deleted or at least modified...

I'm not sure this would make the situation any better.. If the obj/project.assets.json file is missing, not even System.Object is valid and no code will be able to compile. Even if you turn off assembly info generation via <GenerateAssemblyInfo>false</GenerateAssemblyInfo>, none of the other code in the library would be able to compile successfully.
I believe that it would be better to invest more into a meaningful error message saying that the project has not been restored which is tracked by https://github.com/Microsoft/msbuild/issues/1139.
(Note: i'm not affiliated with MS).

Thank you very much for your explanations. You are right, I tried to turn off assembly info generation and I get an error saying : project.assets.json not found.
Still good to know that assembly info generation code should be disabled when building .NET standard / Core projects...

Just to be clear, the ability to disable generation of those attributes is helpful in cases where you already have an AssemblyInfo.cs file in your project (and maybe have tooling for it - e.g. GitFlow) or don't want one of the generated attributes to be generated (each one can be controlled via properties like GenerateAssemblyCompanyAttribute).
Every attribute is valid on and can be used for .net standard and .net core projects.

👍 Thank you again... I should have looked at the error message of the compiler saying:
error CS0579: Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute

Hope the documentation will explain this type of things...

If you keep AssemplyAttributes in AssemblyInfo.cs, you can turn off auto-generated assembly attributes.
in csproj:
     <PropertyGroup>
          <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    </PropertyGroup>

No, no file is generated and sucess compilation

Sounds like this had a better error than it seemed at first glance and was resolved by restoring.

authors: dasMulli epsitec moh-hassan rainersigwald rvuistin


text:
Update README.MD

update command

Coverage remained the same at 52.647% when pulling 19cc93984806e73266c1cc6c49490ae3d2c38d81 on diawang/storage-doc-fix-1 into 55e381b35e5a159892e138f0f164c16bdf89a291 on master.

Coverage remained the same at 52.647% when pulling 19cc93984806e73266c1cc6c49490ae3d2c38d81 on diawang/storage-doc-fix-1 into 55e381b35e5a159892e138f0f164c16bdf89a291 on master.

Coverage remained the same at 52.647% when pulling 19cc93984806e73266c1cc6c49490ae3d2c38d81 on diawang/storage-doc-fix-1 into 55e381b35e5a159892e138f0f164c16bdf89a291 on master.

authors: coveralls wangdian

repo: Microsoft/pai


text:
Projects - Radio Project content wrong

https://pxt.microbit.org/projects/radio is actually an Accelerometer project

Fixed

authors: Jaqster abchatra

repo: Microsoft/pxt


text:
micro:bit deleted sprite still interferes with other display commands

Expected: The number should stay on the screen, as if we never created any sprite.
Actual: The number disappears after a short time, as if the sprite was still there. (Same for the real micro:bit and simulator.)
let item = game.createSprite(2, 2)
item.delete()
basic.showNumber(0)

Duplicate of https://github.com/Microsoft/pxt/issues/2467

To expand on this: After making some sprites, the game engine deliberately interrupts other display commands and re-displays the sprites after a short time. The point was that it shouldn't do this when all the sprites have been deleted.

Sorry I miss understood.

My first thought was to avoid plotting when there are no sprites. This does work.
https://github.com/HelenFoster/pxt-microbit/commit/384e8afec8c45d80fb5da178c8e74e595939402a
The remaining issue is that the game library sets the display to greyscale mode.
The game library initializes implicitly when the user creates the first sprite. So it makes sense to be able to "exit" the game library by deleting the last sprite. (And then it needs to work again if another sprite is created later.)
Would it be a good idea to save what mode the display was in when entering game state, and then restore it when the last sprite is deleted?

Would it be a good idea to save what mode the display was in when entering game state, and then restore it when the last sprite is deleted?

Would have to add a getDisplayMode function to do that.

Was fixed instead with manual pause and resume of game engine, in https://github.com/Microsoft/pxt-microbit/pull/476

authors: HelenFoster abchatra


text:
help text inhibits access to block

Unable to access block due to help text.
The child has to start moving blocks around or use +/-

What is the resolution on this screen?

Same type of issue with "Getting Started" both with full screen 1920x1080

PR https://github.com/Microsoft/pxt/issues/965

PR #1033

authors: OwenBrotherwood microsoftsam pelikhan


text:
Error in Building  cpprestsdk:x86-windows-static

Hi i have another Problem:
i want to build  cpprestsdk:x86-windows-static but it didn't compile.
I received the following error:

Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:68 (vcpkg_execute_required_process)
ports/cpprestsdk/portfile.cmake:18 (vcpkg_configure_cmake)
scripts/ports.cmake:74 (include)
Error: building package cpprestsdk:x86-windows-static failed
Please ensure sure you're using the latest portfiles with vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: cpprestsdk:x86-windows-static
Vcpkg version: 0.0.51-cd22281a945cd9d011f6937dfaf62f603c2d2d81
Additionally, attach any relevant sections from the log files above.

In the config-x86-windows-static-rel-err.log  have following

CMake Error at D:/Tools/vcpkg/downloads/cmake-3.5.2-win32-6/share/cmake-3.5/Modules/FindBoost.cmake:1657 (message):
Unable to find the requested Boost libraries.
Boost version: 1.62.0
Boost include path: D:/Tools/vcpkg/installed/x86-windows-static/include
Could not find the following Boost libraries:
      boost_regex
      boost_system
      boost_date_time

No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.txt:110 (find_package)

i had do "git pull" and build the boost:x86-windows-static
config-x86-windows-static-rel-err.log.txt
config-x86-windows-static-rel-out.log.txt

Thanks for the bug report!
There were two issues:

a72be4b6b9b63a7a11f507782c1c26fdd2b18ad0 The flag in this commit is only applicable in dynamic builds

7811ef602ecd963ae333e3427c82629d1c8e9f34 FindBoost (shipped with CMake) looks for differently named files depending on if it is dynamic or static. To fix the current issue, we chose to rename the output.

I will open a new issue to discuss whether this is a good idea.
In the meantime, if you pull the latest vcpkg and rebuild boost then you should be able to proceed with cpprestsdk. Use the following:
vcpkg remove --purge boost:x86-windows-static
vcpkg install cpprestsdk:x86-windows-static
(the latter will auto install boost, so no need to explicitly install it)
Please let me know if it worked for you.

thx it is resolved...

repo: Microsoft/vcpkg


text:
VCPKG_TARGET_ARCHITECTURE no working

TRIPLET x86-windows.cmake set
set(VCPKG_TARGET_ARCHITECTURE x86) no working x86 - NMAKE x64
+
set(CMAKE_SYSTEM_PROCESSOR x86) no working x86 - NMAKE x64
If you set the CPU to force
example COMMAND ${NMAKE} /NOLOGO -f Makefile CPU=i386
But the compiler is chosen correctly x86
log
Output going into obj\i386\dbg
	cl    -I.\..\..\include -I.\..\..\include\krb5 -DKRB5_DNS_LOOKUP=1 -DWIN32_LEAN_AND_MEAN -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -D_CRT_SECURE_NO_DEPRECATE -DUSE_LEASH=1 -DDEBUG -D_CRTDBG_MAP_ALLOC -D_USE_32BIT_TIME_T /Od /Zi /MDd -nologo /EHsc /W3 -Fdobj\i386\dbg\\ -FD  -Foobj\i386\dbg\\ -c ...

How do I set the HOST? x86 = HostX86\x86\link HostX64\x86\link
test port kerberos  <<--=
krb5.zip
env CMAKE x64
Successful x64 assembly provided that INCLUDE is added types.h+ stat.h
\ScopeCppSDK\
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\SDK\ScopeCppSDK\SDK\ include\ucrt\sys
sys.zip
https://github.com/krb5/krb5/blob/master/src/windows/README
https://github.com/krb5/krb5/blob/master/appveyor.yml
https://github.com/krb5/krb5/pull/788/files

hmm...
env CMAKE = x64 build x86-windows = failed
env CMAKE = x86 build x86-windows = ok

figured out, the linker did not understand the architecture make ccapi that Win32 \ x86
added and everything is ok
    <Link>
		<ForceSymbolReferences>_DllMainCRTStartup@12;%(ForceSymbolReferences)</ForceSymbolReferences>
		<EntryPointSymbol Condition="'$(Platform)'=='win32'">_DllMainCRTStartup@12</EntryPointSymbol>
		<EntryPointSymbol Condition="'$(Platform)'!='win32'">_DllMainCRTStartup</EntryPointSymbol>
	</Link>

ccapi - Makefile
!if  ("$(BITS)" == "64" )
ENTRYPOINT=_DllMainCRTStartup
!else
ENTRYPOINT=_DllMainCRTStartup@12
!endif


text:
[matroska] Initial port

LibMatroska port
LibMatroska ia C++ libary to parse and create Matroska files.
Notes

LibMatroska v1.4.8 (latest)
Uses hand made CMakeLists.txt (Pulled to origial repo as https://github.com/Matroska-Org/libmatroska/pull/13, not accepted yet)
Requires LibEbml (#2812)
Works for x86 & x64, WindowsStore is not supported (as LibEBML uses ANSI debugging calls in library)

Looks good! Thanks!

authors: alexkaratarakis evpobr


text:
Wrong SRTP constraints inferred

Long time ago I was trying to define generic constants, something like the existing GenericZero and GenericOne, but involving a method constraint of a typar and a specific type since we can't simulate static member outside the F# compiler.
But writing those signatures were not possible because of this limitation the only solution I found was involving a phantom type:
type M() =
    static member ($) (x:string, M) = ""
    static member ($) (x:int   , M) = 0
    static member ($) (x:float , M) = 0.0

let inline empty< ^R, ^M when (^R or ^M) : (static member ($) : ^R * M ->  ^R) and ^M :> M> =
    let m = M()
    ((^R or ^M) : (static member ($): ^R * M -> ^R ) (Unchecked.defaultof<'R>, m))

let a :int    = empty<  _ , M >
let b :string = empty<  _ , M >

But now that there is a PR which solves that issue I tried again using that version and found that in fact that limitation was hiding a bug in the type inference.
Repro steps
. Download the fixed F# compiler
. type build
. open it with Visual Studio
. Set FSIANYCPU as Start Project
. Press F5
. Paste this code:
type M() = class end

let inline empty< ^R when ( ^R or  M) : (static member ( $ ) :  ^R *  M ->  ^R)> =
    let m = M()
    Unchecked.defaultof< ^R> $ m: ^R

Expected behavior
val inline empty< ^R when ( ^R or  M) : (static member ( $ ) :  ^R * M ->  ^R) > :
   ^R when ( ^R or  M) : (static member ( $ ) :  ^R * M ->  ^R)

Actual behavior
It fails to compile with this error:
      Unchecked.defaultof< ^R> $ (m:M) : ^R;;
  ----^^^^^^^^^^^^^^^^^^^^^^^^
stdin(155,5): error FS0001: A type parameter is missing a constraint 'when ( ^R or  ^_arg2) : (static member ( $ ) :  ^R *  ^_arg2 ->  ^R)'

Known workarounds
No workaround found apart from the phantom type solution above mentioned which is very ugly.
Related information
Branch:

Branch https://github.com/Microsoft/visualfsharp/pull/1278

BTW: why in cases like this (even without the fix) the compiler complains about a missing constraint instead of inferring it for you as it does normally?

Interesting - nice repro, thanks.  Will need to look into it more.

@gmpl I have updated the fix for 1278 with a fix for this problem too

@dsyme  Cool, thanks so much.
I tried the code, it compiles but now when I try to use the generic constant I get this error:
stdin(9,15): error FS0001: None of the types 'int, M' support the operator '$'
> let (a:int) = empty<M> ;;

  let (a:int) = empty<M> ;;
  --------------^^^^^^^^

But M supports the operator $

@gmpl Could you add a full repro for that?  In the original repro code above, empty takes two type parameters.

@dsyme Sorry, I was testing only the repro, but now the full code should be:
type M() =
    static member ($) (x:string, M) = ""
    static member ($) (x:int   , M) = 0
    static member ($) (x:float , M) = 0.0

let inline empty< ^R when ( ^R or  M) : (static member ( $ ) :  ^R *  M ->  ^R)> =
    let m = M()
    Unchecked.defaultof< ^R> $ m: ^R

let (a:int) = empty
let (a:string) = empty

and this works !!!
Are you going to include this fix in the next F# release?

@gmpl I imagine it will be integrated along with all the other fixes in the pipe

@dsyme That will be a really cool feature. Thanks.
I tried now to create an alias for the generic constant, but:
> let inline x = empty ;;

  let inline x = empty ;;
  -----------^

stdin(41,12): error FS0832: Only functions may be marked 'inline'

I guess this is by-design.
Then using explicit type arguments:
> let inline x< ^T> = empty< ^T> ;;
  let inline x< ^T> = empty< ^T> ;;
  --------------------^^^^^

stdin(45,21): error FS0001: A type parameter is missing a constraint 'when ( ^T or M) : (static member ( $ ) :  ^T * M ->  ^T)'

and this is because when the type parameter is explicit the constraint should also be explicit, so if you write the whole signature it will work:
let inline x< ^T when ( ^T or M) : (static member ($) :  ^T * M ->  ^T)> = empty< ^T>

But regarding the first case I think you said once that you might consider removing that limitation in the future. Do you think it should be allowed? I don't see anything wrong with that.

You mean let inline x = empty?  I don't think we would add a feature to infer something to be a type function (executed as a method call) without explicit annotations - the change in semantics by addinginline is just too great.

@dsyme I see your point, for me it's clear what's happening but I agree that for someone else might be confusing. I have some alternative ideas which may be a better compromise but I think is better to use the user voice for that ;)

Fixed by the above PR

authors: dsyme gmpl

repo: Microsoft/visualfsharp


text:
[RC3] Re-opening F# Tutorial Script opens the wrong editor, making it think it's a XAML(?) app

I'm not sure what's happening.

Install RC3 + VSIX
Create Tutorial project.
Close the Tutorial.fsx file.
Re-open.

Expected: It opens, it's colorized, and it all "works".
Actual: Completely changes the editor into something with "Design", "Split", and "Source" tabs at the bottom.

@cartermp I don't know the underlying mechanism but it happens because Tutorial.fsx has Compile action in fsproj instead of None.

I suspect it also has something to do with System.Windows.Forms reference. Removing it restores normal behavior.

@majocha, I was able to 'fix' the issue by setting the action to 'None' like you suggested (vs. 'Compile').  Including or excluding System.Windows.Forms didn't seem to affect anything on my machine.

Interesting.  The Compile action is necessary to be able to run the Event-handling section of the tutorial as a WinForms app, so we definitely want to keep that.

HTML validation errors, DOCTYPE... Apparently it's some ancient HTML designer that kicks in and hangs. Didn't know Visual Studio still had one.

@brettfo my bad. I can't reproduce that one either. I guess I did more than one change at a time and it was confirmation bias on my part.

Just checked on another machine and this bug is also present on RC2 with OSS vsix built from recent master.

OK, I've noticed yesterday that this bug is not in "naked" RC3 i.e. with the old RC2 VisualFSharp.
I've reverted e110833748a18fb603ab22b99b8bd3fac83f7871, rebuilt VIsualFSharp and reinstalled the open source vsix and the bug is gone. This is tested on RC2 only, because I don't have RC3 at hand right now.

This was fixed by #2408

authors: brettfo cartermp majocha saul


text:
Feature request: Full featured support for Behave BDD like in PyCharm

For now only PyCharm professional edition have full support for Behave BDD Gherkin projects on Python. Its a little bit monopolistic. Some VS Code plugins give partially support for behave for example Gherkin plugin. But nice to have a full featured support like this:
Full support for Python Behave:

recognizes feature files format and provides syntax highlighting (its partially done by existing gherkin plugins)
code snippets for step definitions
navigate from a Scenario description to the actual step definition
debug functionality for behave projects

What do you think?

https://behave.readthedocs.io/ is the project web site and Gherkin seems to a be DSL to write out scenarios that get tied to the tests.

Yes this is Behavior-driven development framework for write test scenarios on plain English using Gherkin syntax like Given When Then based on Cucumber(ruby). This is the best implementation of BDD/Gherkin on python IMHO.

Thanks Brett!

To help manage our issues and to better communicate what the team plans to work on we are closing issues that we don't plan to work on but would accept a pull request from a volunteer for. To be clear, closing this issue does not mean we won't consider a pull request for this enhancement as outlined in our contributing guide, just that the development team has no plans to work on it themselves.

authors: Valentyn-Khanmamedov brettcannon

repo: Microsoft/vscode-python


text:
Document how .env files work

Should probably cover it in https://code.visualstudio.com/docs/python/environments. Came up due to confusion found at https://stackoverflow.com/questions/48120642/visual-studio-code-python-import-paths .

Can you set values in the .env file that get picked up in the python workspace settings?
Say I had an .env file with:
MY_VARIABLE=C:/some/path/

Then in my workspace settings I had:
{
    "python.pythonPath": "${env:MY_VARIABLE}/python"
}

Would this work?

@monkeez
No this wouldn't.

I have a multi-line variable (encrypted private key). How can I get around this issue?

@barakbd please create a separate issue for this (so it can be tracked). Currently its not supported, but should be easy to fix.

authors: DonJayamanne barakbd brettcannon monkeez


text:
Hide language modes without alias

To implement #6461 I had to define an artificial language id representing the tags inside a JSX document. The language id is used for being able to associate the language configuration with the jsx block comment tokens.

The jsx-tags language currently shows up in the language drop down. IMO it would be better if we hide all languages that don't only consist of an id but no alias.

FYI @alexandrudima

@aeschli I am not sure we can do that because there maybe extensions that are not defining an alias but still want to be selectable?
@alexandrudima moving to you to confirm that this request makes sense.
I would also probably need more API to understand that a language was contributed with no alias around here: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/browser/parts/editor/editorStatus.ts#L862

Ok, now interpreting languages contributed with alias: [] (i.e. an empty array) as languages that don't want to show up in the picker.

This feature request does not need a test plan item because a unit test verifies the new behaviour.

authors: aeschli alexandrudima bpasero

repo: Microsoft/vscode


text:
typingsInstaller/telemetry process causing high CPU usage

VSCode Version: 1.8.1
OS Version: Win 10

Steps to Reproduce:

Open VSCode
Open process explorer, one of the child processes will be related to telemetry and eating CPU

I was experiencing high CPU usage and found the following process which was causing it:
"C:\Program Files (x86)\Microsoft VS Code\Code.exe" "c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\typescript\node_modules\typescript\lib/typingsInstaller.js" --globalTypingsCacheLocation C:/Users/x/AppData/Local/Microsoft/TypeScript --enableTelemetry

(that's 20% with just one project, with a couple of projects it gets really worse)
Not sure if this is related to telemetry but I've already set "telemetry.enableTelemetry": false in user setting (as seen in gif) but still seeing the above process.

version 1.8.1
os win 10
Having exactly the same problem, I'm using vscode for a react.js project (es6)
BTW, this also happens on fedora

Please try out VSCode 1.10 with the current insiders builds. This includes a new version of TypeScript which fixed a number of regressions over VSCode 1.8.
If you still see this performance issue in VSCode 1.10 with all extensions disabled, to help us investigate, please try collecting some logs from the TypeScript server when this occurs. Here's information on to do this using the TSS_LOG environment variable: https://github.com/Microsoft/TypeScript/wiki/Standalone-Server-(tsserver)#logging
From a command prompt, run:
set TSS_LOG=-level verbose -file c:\tmp\tsserver.log
code

Reproduce the problem in VSCode and then share the c:\tmp\tsserver.log file
Let me know if you have any questions about this.
Thanks

Have the same issue. As a workaround I renamed typingsInstaller.js.
VSCode Version: 1.10.2
OS Version: Win 7

I can confirm the issue still exists. Also, while I'm working on a large JavaScript project, I am not using any typescript at the moment.
I was going to attach a tsserver.log file but it came out to be over 800 MB, so I'm skipping that.
VSCode Version: 1.12.2 (I have been noticing it since 1.12.0)
OS Version: Win 10.15063.296
Typescript Version: 2.3.2

authors: UzEE binbinfrog laggingreflex mjbvz syusukexrj


text:
Provide a way to instantiate an Emitter from an extension

I think it would be nice to give extension writers a helper class to implement the onDidChange method for the content provider. Otherwise you end up having to write lots of boiler plate code to manage listeners and I do like the API and use of Emitter a lot.

For Jan for discussion - maybe it's time for a sample node-module. Folks have also asked for an event throttler which could go there

authors: bpasero jrieken


text:
Remove scrollbar arrows in detailed suggestion

Testing #2230
Can you try to remove the arrows?

Duplicate of #1928

Sorry I wasn't clear. This is what I mean:
your dom node::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

authors: alexandrudima joaomoreno


text:
[Debug] Continue one thread will cause other threads' stack frames lost in CallStack panel when debugging multi-threads

VSCode Version: VSCode 1.14.0
OS Version: Windows 10

We're developing java debugger, and found that VSCode debug panel will lose some threads' call stacks  for multi-threads case.
See the screenshot below. There are two breakpoints hitted simultaneously by different threads (Thread-0 and Thread-1), and VSCode CallStack panel could display their call stacks correctly. (Note: When the breakpoint was hitted, i send a StoppedEvent with flag allThreadsStopped=false)

Then i choose to continue Thread-0 (threadId is 444) first. Thread-0 completed as expected. But Thread-1's call stacks are lost in VSCode CallStack panel. The whole debug process hanging there. See the screenshot.

Below are the DA requests and responses after the continue operation.
[REQUEST]
{"command":"continue","arguments":{"threadId":444},"type":"request","seq":18}
[[RESPONSE]]
{"success":true,"request_seq":18,"command":"continue","body":{"allThreadsContinued":false},"seq":28,"type":"response"}
[[RESPONSE]]
{"event":"thread","body":{"reason":"exited","threadId":444,"type":"thread"},"seq":29,"type":"event"}
[Expected]:
Because Thread-1 is still suspended by breakpoint, VSCode is supposed to keep Thread-1's call stacks after Thread-0 continued and terminated.

@testforstephen nice catch, we were not respecting the allThreadsContinued in the ContinueReponse.
I have puhsed a fix to my branch - you can expect the fix to land in insiders some time next week since we are now in endgame week and are only taking specific fixes.

@isidorn it's fixed in the latest 1.16.0-insider. thanks for the work.

@testforstephen thanks, adding verified label since you checked it works

authors: isidorn testforstephen


text:
[feature-request] Clicking file tab should maximize file pane.

VSCode Version: 1.16.1
OS Version: Ubuntu/GNU-Linux 17.04

Steps to Reproduce:

Open a file, should open the file in a file tab.
Double click in the file tab does nothing.
Explore pane and bottom pane should be minified to show only the file tab.

Reproduces without extensions: Yes

This feature request will not be considered in the next 6-12 months roadmap and as such will be closed to keep the number of issues we have to maintain actionable. Thanks for understanding and happy coding!

I don't think closing it is a good idea. I think it's better to tag it as 'backlog' or something similar. Closing the issue, puts it in the bucket of 'done or won't do at all',
How will you then separate the 'to do' from the 'done' in 12 months?

authors: bpasero str


text:
Java extension recommendation, but I have all installed

I'm getting the following recommendation, but I already have both

Language Support for Java(TM) by Red Hat
Java Debug Extension for Visual Studio Code
installed.

I think what it means is the 'Java Extension Pack'.
-> Change the dialog to The 'Java Extension Pack' is recommended for this file type

@seanmcbreen Can you update the name for the recommendation you added recently?

For 1.17, we will show

For 1.18, we will add some smarts to the distro to differentiate between extensions and extension packs

I find it pretty annoying that it recommends the Java extension pack when the minimum required (and already installed in my case) is the redhat.java one

Hi @fbricon
A little context - and a more generic point first - we are increasingly moving to packs for recommendation to offer a solid E2E experience for VS Code users.  Of course individuals can still elect to have partial adoptions e.g. language, analyse, utility tool or debugger.  But landing with a solid pack is something we aspire to.  We are also revising how we handle recommendations to make them more impact-full across the board - balancing being intrusive/getting in the way with helping a new user.
That said I think in this specific case the pack authors need to do a better job explaining why this makes sense and I’ll reach out and get that improved.  I'm sure there are also other things we should include as well.
Hopefully that clarifies, LMK if you have additional input.
Sean
VS Code Team Member

authors: aeschli fbricon ramya-rao-a seanmcbreen


text:
Open an empty folder workspace and then turing it into a workspace with that folder open doesn't render the folder

Good catch, I think the problem is that there is no "workspace folder added" event because the same folder is already part  of the workspace.
@isidorn moving to you, I think the explorer should still handle the workbench state change (from folder to workspace) properly.

Good catch, this is fixed via b597b6f55e

authors: bpasero dbaeumer isidorn


text:
HTML Inline SVG performance drop

VSCode Version: Code 1.17.2 (b813d12980308015bcd2b3a2f6efa5c810c33ba5, 2017-10-16T13:59:46.104Z)
OS Version: Windows_NT x64 10.0.15063
Extensions:

Extension
Author (truncated)
Version

html-snippets
abu
0.1.0

project-manager
ale
0.22.0

vscode-color
ans
0.4.5

gitignore
cod
0.5.0

vscode-eslint
dba
1.4.2

vscode-babel-coloring
dza
0.0.4

vscode-npm-script
eg2
0.3.2

auto-close-tag
for
0.5.3

auto-rename-tag
for
0.0.15

autofilename
Jer
0.1.3

PowerShell
ms-
1.5.0

debugger-for-chrome
msj
3.4.0

vscode-docker
Pet
0.0.20

seti-icons
qin
0.1.3

es6-mocha-snippets
spo
0.0.5

language-stylus
sys
1.8.0

sort-lines
Tyr
1.3.0

(1 theme extensions excluded)

Steps to Reproduce:

Create an HTML file
Place some reasonably long SVG code inline
Switch back and forth between different tabs a couple of times including the tab including the SVG
Seemingly at random syntax highlighting will break, Intellissense popups will stop displaying, emmet expand command will stop working altogether, VSCode will start taking a second to respond when you switch back to it from a different window and switching between tabs will start becoming slow
Restart VSCode and the problem is solved again

Reproduces without extensions: Yes

Can you share a sample svg where you can repro this consistently?
Also, are you able to repro this in the latest VS Code version? 1.18.0 or 1.18.1 ?

Thanks for your reply.
With the exception of the syntax highlighting not working in long lines, I haven't been able to repro it consistently and not at all since 1.18.0. Will run more tests and update.

I was having the same issue. I disabled the Auto Rename Tag plugin and it started working fine again.

authors: WorthyD pcjmfranken ramya-rao-a


text:
Can't search keyword SQL in extensions

VSCode Version: 1.19.0-insider
OS Version: Ubuntu 16.04

Steps to Reproduce:

Search extention with keyword "sql"
Error "Cannot read property 'filter' of undefined"

Reproduces without extensions: Yes

I will try to fix this bug.

/duplicate #38357

authors: jbeaudoin11 maxibanki roblourens


text:
SplitLinesCollection: attempt to access a 'newer' model

Issue Id: c387947c-7708-0efb-edd7-30e99187813dVersions - 1.20.0-  f9398645d1d624538708eeebf96e6fdeb546f5d7-  3f8cf5311b631c5bc395df1e8b9c795358c1ef80-  7636a7d6f7d2749833f783e94fd3d48d6a1791cbStack Error: SplitLinesCollection: attempt to access a 'newer' model/vs/editor/common/viewModel/splitLinesCollection.ts#L180:9/vs/editor/common/viewModel/splitLinesCollection.ts#L671:7 (_ensureValidState)/vs/editor/common/viewModel/splitLinesCollection.ts#L125:21 (convertModelPositionToViewPosition)/vs/editor/common/viewModel/viewModelImpl.ts#L232:58 (convertModelPositionToViewPosition)/vs/base/common/event.ts#L142:15 (call)/vs/editor/common/model/textModel.ts#L1598:27 (fire)/vs/editor/common/model/textModel.ts#L1608:8 (forceTokenization)/vs/editor/contrib/suggest/suggestModel.ts#L48:8 (tokenizeIfCheap)/vs/editor/contrib/suggest/suggestModel.ts#L439:20 (shouldAutoTrigger)/vs/editor/contrib/suggest/suggestModel.ts#L389:8 (_onNewContext)

Duplicate of #29033

authors: alexandrudima vscodeerrors


text:
Weird completion proposal for workbench color customizations

I am not sure why we propose this:

Completes to this:

It's just an example where you can see a change.

authors: aeschli bpasero


text:
New settings from the latest version pinned to top

Issue Type: Feature Request
I usually read through the release notes to see what's new, but is there any interest in having newly created settings pinned to the top of the settings editor?
Something like "Newly added in version 1.21.0". It could go above or below "Commonly Used", doesn't really matter to me.
VS Code version: Code - Insiders 1.21.0-insider (eb5e41cfd5df83b126cccf7a5483b05878ef637f, 2018-02-22T06:08:42.741Z)
OS version: Darwin x64 17.4.0

We actually tried this for a couple days in the new settings UI in Insiders. We decided that it's distracting to advertising new features inside the product itself, and the release notes are a better place for that.

authors: kurtnovack roblourens


text:
Adding an asterisk in a regex de-indents the line in JS

Code:
function foo() {
  bar.match(/^./)
}

GIF to show that adding an asterisk de-indents the line:

Thanks for your feedback, let's track it in https://github.com/Microsoft/vscode/issues/38886 .

authors: garyking rebornix