devenv | CLI tool for managing several dev python environments

 by   dankilman Python Version: Current License: No License

kandi X-RAY | devenv Summary

kandi X-RAY | devenv Summary

devenv is a Python library. devenv has no bugs, it has no vulnerabilities and it has low support. However devenv build file is not available. You can download it from GitHub.

CLI tool for managing several dev python environments that may or may not be connected.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              devenv has a low active ecosystem.
              It has 1 star(s) with 0 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              devenv has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of devenv is current.

            kandi-Quality Quality

              devenv has 0 bugs and 0 code smells.

            kandi-Security Security

              devenv has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              devenv code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              devenv does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              devenv releases are not available. You will need to build from source code and install.
              devenv has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are available. Examples and code snippets are not available.
              It has 764 lines of code, 84 functions and 16 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed devenv and discovered the below as its top functions. This is intended to give you an instant insight into devenv implemented functionality, and help decide if they suit your requirements.
            • Configure the project .
            • Add a package to the site .
            • Preprocesses the configuration .
            • Infer the installed packages .
            • Add a directory to a site .
            • Returns True if path is an env root directory .
            • Export the bin .
            • Locates a JVM table XML file .
            • Starts a setup .
            • Removes the virtualenv entry from the project .
            Get all kandi verified functions for this library.

            devenv Key Features

            No Key Features are available at this moment for devenv.

            devenv Examples and Code Snippets

            No Code Snippets are available at this moment for devenv.

            Community Discussions

            QUESTION

            Setting environment variables in powershell script reading them from a .bat file
            Asked 2022-Feb-22 at 19:44

            I've a .bat file that starts a process, and I want to perform some automation by using a powershell script. The bat file must remain reasons that don't depend on me. The .bat file contains the definitions of some environment variable, something like:

            ...

            ANSWER

            Answered 2022-Feb-22 at 19:44

            QUESTION

            How to parametrize JMeter Loop Controller with Groovy function?
            Asked 2022-Jan-25 at 12:34

            I am pretty new to Jmeter but can handle "simple" test plans. I really do need help with the issue I am facing. Currently I run into a problem regarding how to parametrize the Loop Controller loop count Groovy function.

            I did found a lot of examples but they are all with static loop count like: ${__groovy(new File('test.csv').readLines().size(),)}. I really would like to parametrize the part 'test.csv'. Therefor I replaced that with ${csvFile}, like:

            ...

            ANSWER

            Answered 2022-Jan-25 at 11:16

            That's one of the reasons why it's not recommended to inline JMeter Functions or Variables into Groovy scripts.

            Just use vars shorthand for JMeterVariables class instance to read your csvFile variable value like:

            Source https://stackoverflow.com/questions/70847524

            QUESTION

            Unity Visual Studio 2017 Freeze and Crash
            Asked 2022-Jan-25 at 00:58

            I work with Unity, and recently I came across some sort of bug with Visual Studio. For some reason one day the Script Editor stopped working.

            When I first open it up through Unity, it would open as usual and seem fine, but after 5 seconds of interaction, Visual Studio would then freeze and crash without an error report. Following tries with the editor would just crash almost right away.

            I did some research and found out that it was some sort of problem with Unity's MEF Cache, the Microsoft Documentation would ask me to do the following: Delete the following file: "%localappdata%\Microsoft\VisualStudio\ComponentModelCache" and if the problem continues, I should run this line of code on VS' CMD as a administrator "devenv /setup".

            I tried both methods with Visual Studio, but neither seemed to work, only to return to being fine for 5 seconds before freezing and crashing.

            I have updated Visual Studio 2017 to the newer version and performed the same method, but the problem persists.

            I would like to know if anyone have any solutions to my situation, if I should try reinstalling Visual Studio, try to reinstall Unity or just use another Script Editor.

            edit: Just to inform, the version of Unity I was using was 2021.2.8f1. But I don't know if it matters since the bug didn't seem to depend on the Unity version.

            ...

            ANSWER

            Answered 2022-Jan-17 at 23:36

            I managed to fix the issue by installing Visual Studio 2022

            Source https://stackoverflow.com/questions/70715245

            QUESTION

            F# on Visual Studio 2022 very slow
            Asked 2022-Jan-06 at 11:02

            This only applies to Visual Studio 2022. I had uninstalled VS2019 and Preview where F# worked absolutely fine (F# 5.0). I am using VS2022 to use F# 6.0 and do not want to go back to F# 5.0.

            The issue is specific to F#. I also use C# and I have no issues running the latest C# under VS2022.

            There are near continual DevEnv processes running consuming anywhere from 1 to 4 of my CPU's 4 Hyperthreads. I have switched off all experimental options I can find in F# settings.

            Sometimes there are 2 or more background processes running , sometimes paused and sometimes none - there appears to be no correlation between this and the background CPU consumption

            Sometimes I have a pop up Dialog about waiting to complete an editor process or a compile process.

            When devenev.exe is consuming CPU cycles under the properties I see there is always one clr.dllCoUnInitializeEE+0x6790 that is the culprit. I though this was meant to be a short-lived process? Sometimes there are two or three of these consuming most of a HyperThread (There are identical others but with very low or no CPU consumption). The stack on the guilty thread is as follows:

            ...

            ANSWER

            Answered 2021-Dec-17 at 08:49

            Please report to Microsoft either using the people app in windows or the visual studio installer.

            for now, there is only one option: use visual studio 2019. or try finding alternatives. there should be somewhere around the net

            I suggest using Rider IDE instead(until the devs fix the bug):Download Rider IDE

            I'm not really trying to advertise here, just suggesting an IDE Too compile and run you rprogram.

            Source https://stackoverflow.com/questions/70262144

            QUESTION

            Solving conda environment stuck
            Asked 2021-Dec-22 at 18:02

            I'm trying to install conda environment using the command:

            ...

            ANSWER

            Answered 2021-Dec-22 at 18:02

            This solves fine (), but is indeed a complex solve mainly due to:

            • underspecification
            • lack of modularization
            Underspecification

            This particular environment specification ends up installing well over 300 packages. And there isn't a single one of those that are constrained by the specification. That is a huge SAT problem to solve and Conda will struggle with this. Mamba will help solve faster, but providing additional constraints can vastly reduce the solution space.

            At minimum, specify a Python version (major.minor), such as python=3.9. This is the single most effective constraint.

            Beyond that, putting minimum requirements on central packages (those that are dependencies of others) can help, such as minimum NumPy.

            Lack of Modularization

            I assume the name "devenv" means this is a development environment. So, I get that one wants all these tools immediately at hand. However, Conda environment activation is so simple, and most IDE tooling these days (Spyder, VSCode, Jupyter) encourages separation of infrastructure and the execution kernel. Being more thoughtful about how environments (emphasis on the plural) are organized and work together, can go a long way in having a sustainable and painless data science workflow.

            The environment at hand has multiple red flags in my book:

            • conda-build should be in base and only in base
            • snakemake should be in a dedicated environment
            • notebook (i.e., Jupyter) should be in a dedicated environment, co-installed with nb_conda_kernels; all kernel environments need are ipykernel

            I'd probably also have the linting/formatting packages separated, but that's less an issue. The real killer though is snakemake - it's just a massive piece of infrastructure and I'd strongly encourage keeping that separated.

            Source https://stackoverflow.com/questions/70451652

            QUESTION

            VS2017 crashes with 'FileNotFoundEx: System.Runtime.CompilerServices.Unsafe, V=4.0.4.1' upon loading any project
            Asked 2021-Dec-21 at 16:18

            Sorry for a lengthy one, but I'm in dire straits - just trying to provide all details upfront.

            This Fri (2021-Nov-12) after a restart of Visual Studio 2017 it began crashing without notice while opening existing solutions. This worked perfectly fine at least a week ago (after last Win10 Update KB5006670 on 2021-Nov-05 - followed by a reboot). Trying to load old solutions (which haven't been touched for 2+ years) results in exactly the same behavior:
            you get a glimpse of "Loading Project .." windows (not sure if it goes through all projects in a solution), then suddenly the main VS window disappears and .. that's it.

            VStudio's configuration has not been touched at least for a year. No explicit updates/patches or NuGet packages either. By itself VS starts and shows the main window with usual Start page. But I cannot load any solution or project.

            The very first related Event Log entry:

            ...

            ANSWER

            Answered 2021-Dec-21 at 16:18

            Sorry it took so long. Was under a gun to finish a project..

            The root cause of the problem turned out to be ICSharpCode.CodeConverter v.8.4.1.0!
            Wow, of all the pieces installed (which aren't that many)..

            On a hunch (since the problem was local to Visual Studio) I started looking at Tools and Extensions, and noticed on this component the Date Installed being past the most recent Windows Update! The Automatically update this extension checkbox was checked (by default?).
            So it must have silently updated upon VS restart?!

            Granted, updates are useful and sometimes necessary. But they also may introduce problems. Performing updates automatically is one thing. But not informing the user about it is bad!

            Here's an excerpt from the C:\TEMP\VSIXInstaller_f0335270-1a19-4b71-b74b-e50511bcd107.log:

            Source https://stackoverflow.com/questions/69978887

            QUESTION

            Looking for a working example of a VS 2022 extension
            Asked 2021-Dec-18 at 00:55

            So I must be doing something wrong. I created a new VSIX project following the wizard and just added the following two lines into the InitializeAsync method:

            ...

            ANSWER

            Answered 2021-Dec-18 at 00:55

            It sounds like your package simply isn't being loaded. Packages in VS are not loaded until something indicates that they should be; this can either be an explicit call from some other code to tell the VS shell to load your package, or by specifying an automatic loading rule.

            See the documentation for details.

            Source https://stackoverflow.com/questions/70400139

            QUESTION

            How to prevent Visual Studio from changing the solution file in the scenario of using a utility project?
            Asked 2021-Dec-16 at 19:36

            This question is related to How to code a utility msbuild project so that it depends on a "real" C# project?

            So I have a working sample code where there is a utility project depending on a "real" C# project. It works fine when building on the console. Here are the files:

            ...

            ANSWER

            Answered 2021-Dec-16 at 19:36

            I found a solution. 2 files must be changed:

            Subject/Subject.csproj

            This change is necessary because this file is a contrived example of a non SDK style project. Visual Studio is in pain because it does not find something that serves like a marker for it, namely PropertyGroup elements conditional on Configuration and Platform. So, here is the modified content of that project:

            Source https://stackoverflow.com/questions/70371493

            QUESTION

            MSBuild /p:BuildProjectReferences=false causes fatal error C1192: #using failed
            Asked 2021-Nov-19 at 17:42

            Currently trying to re-implement our build processes on our build server using MSBuild in place of devenv so that we don't need to have the full VS IDE installed. Having encountered quite a few issues with using MSBuild (race conditions, skipping shared resources instead of blocking, platform inconsistencies between parent and child, etc), I have settled upon building each project in separate tasks one by one to eliminate any concurrency issues and put /p:BuildProjectReferences=false in all the task command line fields to prevent MSBuild from imposing the platform of parent projects upon their heterogeneous children.

            It seems however, that when I set this option to false as it is in devenv, MSBuild looks for the dependencies in the the top folder of the parent rather than in the bin as it should. e.g:

            ProjectB depends on ProjectA

            ProjectA has ..\bin\ProjectA.dll as output.

            ProjectB references ProjectA as ..\bin\ProjectA.dll

            C:\builds\solution\ProjectB\stdafx.cpp : fatal error C1192: #using failed on 'C:\builds\solution\ProjectB\ProjectA.dll'

            Why does MSBuild check for dependency outputs in the parent project directory instead of the bin and what are the options to resolving this? Any insight is appreciated.

            PS.

            After some work I found a partial answer. For C++ I can disable the #using directive pointed at the parent project directory by setting Reference Assembly Output on the project reference in question to false, and then add the path to the Forced #using file field in the parent project configuration under C++ and advanced. This only works for C++ projects though. Still no idea what to do with C# projects.

            It appears that MSBuild completely ignores /p:BuildProjectReferences=false when building a C# project, it then attempts to apply a x86 platform to its children, including C++ projects which have a Win32 platform in place of x86, which in turn somehow causes MSBuild to hunt for v100 (VS 2010) build tools that it won't find.

            I have since learned a few things about the mechanism in MSBuild that governs this. Apparently there is a MSBuild task called AssignProjectConfiguration, which has a parameter labeled ShouldUnsetParentConfigurationAndPlatform. This is set to true in VS and false in MSBuild. It seems that this would be the source of the resulting configuration/platform mismatch. Why it builds dependencies despite my explicit command-line instructions not to and why the configuration/platform mismatch causes it to look for v100 VS 2010 build tools are both a mystery to me. I have a large log of verbose output to look through. I will endeavor to update this as I continue to read through the log.

            ...

            ANSWER

            Answered 2021-Nov-19 at 17:42

            So after struggling with this specific issue over the week, not to mention the struggle over the whole host of MSBuild-related problems over the last 4 months, I have elected to go with devenv. Unfortunately, this will fail to decrease our footprint as we had planned to do.

            It seems to me that an actual solution is possible using tasks, but the time required to learn and experiment with that framework is likely prohibitive. As of writing this, I am not even sure how to begin manipulating that in order to emulate devenv. The sunk human and time costs are already too high and its time to get something working and move on.

            I must admit up front that I am the newest member of my team, but they seem more confused than I am, and they're all seasoned engineers. In their defense, their efforts have been focused elsewhere and have been probably better spent than mine. I have learned a lot though and started to establish my own region of expertise.

            I assume that the industry answer to this question would have been to shovel out some more cash to Microsoft for an Azure DevOps instance. I am sure MSBuild works wonderfully in there. Goes to show that you get what you pay for. We'll probably end up there eventually, but barring an unexpected breakthrough, this will have to do for now.

            Source https://stackoverflow.com/questions/69890394

            QUESTION

            VS2017 loads C++ project that was manually configured to x86 as a VS2010 project
            Asked 2021-Nov-05 at 03:49

            I just changed a vcxproj file (C++) to have x86 as a platform for all solution build configurations instead of Win32, which seems to be the default for all C++ projects. The project loads fine but it shows up as a VS 2010 project in solution explorer. Based on discussions with my coworkers, my underlying assumption is that Win32 is identical to x86, but is an old tag for the platform, and that it would be better to remove it and replace it with x86. I have looked online for similar questions, and while I did find similar issues, the suggestions didn't seem to help.

            The chain of events that prompted making this change is that we are currently starting an effort to modernize our software and processes, and part of this is to prepare for our build process eventually getting pushed onto a virtual machine as I set up a smoke test for the development team. Unfortunately, we have been using devenv.exe on an instance of CruiseControl.NET to do our installer builds; so, for the smoke test I have been tasked with getting MSBuild to work on our software so we can use that directly and not have the full VS IDE loaded on the VM.

            To my horror, I have slowly learned over the last couple months that VS and MSBuild are not consistent with each other. MSBuild without the guiding hand of VS will not honor a build order, and so will often build projects and try to link it's dependencies before building the dependencies. It will also fail when projects try to access the same resource rather than just blocking. These problems together have brought me to break apart our build by project in our CCNet script instead of just building the solution file.

            The place where the particular flavor of the problem in question stems from, is that MSBuild will look in the project references and attempt to build those dependencies with the parent project's configuration and platform super-imposed upon them. It seems that C# projects have x86 as their default platform while C++ has Win32. Our software is a C#/C++/CLI Frankenstein monster, and having inconsistent project platforms is wreaking havoc on my efforts. MSBuild also appears to always try building our x86 platform projects with 2010 build tools for some odd reason. This fails as we don't have those installed and we shouldn't have to.

            I made these changes directly to the xml in a separate text editor by duplicating all the Win32 property groups, changing the platform on the copy to x86, saving the file, switching the configuration for all builds in VS to the new x86 platform, saving the solution, and then removing the old Win32 property groups. This appears to work but I now see the C++ project marked with "Visual Studio 2010", which explains to me why MSBuild keeps trying to use 2010 build tools, but what would be the purpose for this?

            In short the question is this: why is VS loading x86 platform projects as 2010 projects? Any insight is appreciated, keeping in mind that we are wedded to VS as our IDE and MSBuild as our build program, and we want to still have our local devenv building work. Our C++/CLI code is all going to be rewritten to C# and we are moving from CCNet in the future, but we would like this to work with what we have right now.

            ...

            ANSWER

            Answered 2021-Nov-05 at 03:49

            If you modified your .vcxproj Platform references to "x86", it won't work and is an "unknown platform" as far as Visual C++ is concerned. The actual 32-bit Platform name is "Win32" and has been for ages.

            Only the "solution" system was updated to handle "x86" as an alias for "Win32".

            TL;DR: Revert your changes to your vcxproj files. You can modify the SLN to call it "x86" instead of "Win32" in the combobox if you want.

            Source https://stackoverflow.com/questions/69831186

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install devenv

            poetry install this directory in an environment of your choosing and make the dev executable accessible somehow.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/dankilman/devenv.git

          • CLI

            gh repo clone dankilman/devenv

          • sshUrl

            git@github.com:dankilman/devenv.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link