Ionic is not recognized in `command prompt` - npm

I have installed Ionic v2 using npm install -g ionic#alpha.
Then it has successfully installed. But i cannot use the ionic command.

The install progress may not add the path to the System environment.
Try the following step:
Navigate to : C:\Users\[User]\AppData\Roaming\npm\ionic.cmd Check if the file ionic.cmd is existed.
Open up the System Environment from:
Control Panel -> System -> Advanced system settings -> Select Advance tab
Click on Environment Variables...
Seek for Path variable in the System variables section.
Double click and add the path C:\Users\[User]\AppData\Roaming\npm\ionic.cmd at the end of that string.
OK -> OK -> OK
Restart the command line and try again with ionic command.

Related

'npm' is not recognized as internal or external command, in windows 11

when I'm typing commands which starts with npm, it shows the massage of ,
"'npm' is not recognized as internal or external command"
Download node.js
First of all Download and install node.js from here Nodejs.org
In windows 11
There are two ways to do this
the short way is,
1. Go to settings
2. Now you are on System window, click About
3. Next, Click on Advanced system settings button
4. Then, Click Environment Variable on the dialogue box
5. From Environment Variable, Select Path6. And then click Edit
7. click New
8. At the text box, add ; C:\Program Files\node.js\
9. Click Ok all the open dialogue box
Reference: Fix ~ npm not recognized as internal or external command (Note: this is my own blog[include images also)

Sigasi in Eclipse

I have just installed the Sigasi Studio pluginin Eclipse (version: Eclipse IDE 2018-12). When I try to launch it,to make a new VHDL file, I get the following:
The selected wizard could not be started. org/eclipse/lsp4j/Range
(occurred in com.sigasi.hdt.vhdl.ui.VhdlExecutableExtensionFactory)
org/eclipse/lsp4j/Range
How I could solve it, please?
Thank you in advance.
Thanks to the Sigasi support, I was able to solve the problem. They wrote me:
The lsp4j plugin version is to recent for the xtext version that ships
with Sigasi Studio 4.2. This issue has been resolved in the preview
channel of release 4.3. Therefore - if you wish to use the plugin
version of Sigasi Studio - I recommend to install the 4.3 preview
following the steps explained on
http://insights.sigasi.com/tech/preview.html.
That's all. Now, I would like to configure Sigasi with GHDL (as a compiler, when I run the project) and GTKWAVE (ad a waves viewer). How can I do that?
Thanks in advance.
SIGASI + GHDL + GTKWAVE (all in one)
It is very powerful combo that you can set up. ATTENTION i use macOS 10.13.6:
Step 1
Make sure you have both installed GHDL and GTKWAVE typing
$ which gtkwave
/usr/local/bin/gtkwave
$ which ghdl
/usr/local/bin/ghdl
Step 2
Open Sigasi an make new Project and create an additional compile.sh file with:
#!/bin/sh
PROJECT_NAME="PWM_Generator"
PROJECT_NAME_TB="PWM_Generator_tb"
WORKING_DIR="/Users/imeksbank/Dropbox/UMHDL"
/usr/local/bin/ghdl -a --workdir=$WORKING_DIR/work.ghdl $WORKING_DIR/$PROJECT_NAME/$PROJECT_NAME.vhd;
/usr/local/bin/ghdl -a --workdir=$WORKING_DIR/work.ghdl $WORKING_DIR/$PROJECT_NAME/$PROJECT_NAME_TB.vhd;
/usr/local/bin/ghdl -e --workdir=$WORKING_DIR/work.ghdl $PROJECT_NAME_TB;
/usr/local/bin/ghdl -r --workdir=$WORKING_DIR/work.ghdl $PROJECT_NAME_TB --vcd=$WORKING_DIR/$PROJECT_NAME/simulation.vcd;
now, be aware, for each project you create your own variables like
PROJECT_NAME
PROJECT_NAME_TB
WORKING_DIR
I use always Dropbox for such approach because then i can access via Windows as well.
And of course, there is a possibility to create custom variables in Sigasi -> External Tool Configurator -> Program -> compile_sh -> environment to pass them to make compile.sh independent. Here you have to deal with it by yourself =)
Step 3 .
Set up you External Tools Configurations to let shell script be executed by Sigasi Studio and create the .vcd file for gtkwave:
Click on currently created Project (in my case it is the PWM_Generator).
After that click on Run -> External Tools -> External Tools Configurations ....
Then go to the left sidebar and under Program create your own anchor like compile_sh.
Finally you have your route :
Program
--compile_sh
And now extend this anchor by a custom created shell script :
Main->Location gets ${workspace_loc:/PWM_Generator/compile.sh}
Main->Working Directory gets ${workspace_loc:/PWM_Generator}
Click Apply and Run and that's it !!! After this you can program VHDL / Verilog and compile via Run -> External Tools -> compile_sh having created .vcd. In your project appears the gtkwave file and there just double click and it starts. =)

Flow in JetBrains/IntelliJ IDEA

It seems like JetBrains supports Flow type checker but I'm not seeing the flow error in the IDE.
Is there a way to enable it?
Flow Type Checker is not yet supported, please follow WEB-14254 for updates.
Idea just supports Flow syntax (static typing). See http://blog.jetbrains.com/webstorm/2015/09/webstorm-11-eap-142-5255/
I've put together an experimental plugin integrating Flow error reports into IDEA/WebStorm as error annotations:
https://github.com/dsilva/webstorm-plugin-flow-typecheck/releases
#lena is correct.
As an aside, I run flow through the npm panel. As long as flow is a script in your package.json, I run in by right-clicking on package.json and Show npm scripts. Then just double click on flow or re-run it as needed in the Run panel.
As of Nov 2016 Jetbrains Webstorm / IntelliJ IDEA now supports Flow:
https://blog.jetbrains.com/webstorm/2016/11/using-flow-in-webstorm/
In Settings -> Languages & Frameworks -> Javascript select Flow
Running Flow Server in WebStorm
check the version of your flow-bin, only 0.59.0 works with WebStorm.
run this command to install flow-bin globally:
npm i -g flow-bin#0.59.0
Adding flow config file to your project
npm flow init
finding node-modules global path : copy this path , We will use it in WebStorm settings.
npm list -g
WebStorm Setting :
Go to here :
File > Settings > languages and Frameworks > Javascript
Select flow in drop-down menu.
In Flow executable paste global path of flow-bin (local path doesn't work). and with three dots button select the proper folder for your operating system.
In Use-Flow-server-for section tick Type checking box and then hit Apply button.
Find this section in settings :
Editor > Inspections > Javascript > Flow Type Checker
ensure Flow errors check box is active
Hit Apply and Ok
After that flow server should be started when you open project in Webstorm.
Don't forget to put
// #flow
at top of your files.

When I add a new column in my private folder, its effect not come to database

I installed the openerp from this link:www.theopensourcerer.com/tag/openerp
when I add a new column in my private modules, and add this column to xml then,
its give me error, xml arch problem
Problem generated because when i add new column it not updated in tabble of object
Hope I able to explain
If you change:
One code file (.py) you must RESTART THE SERVER. If your change implies a model schema modification (like add or modify a column, sql_constraint, etc..) you must ALSO upgrade your module.
A view, workflow, data or report definition (.xml) you should upgrade your module.
In order to restart the openerp-service:
If you have openerp installed like a linux service:
/etc/init.d/openerp-server restart
If you have openerp installed like a ubuntu service:
sudo service openerp-server restart
If you have openerp installed like a windows service:
net stop openerp-server && net start openerp-server
In order to upgrade a module:
Log in to OpenERP as Administrator
Go to Settings -> Modules -> Installed Modules
Select your module on the Module List
Press the UPGRADE button.
if your module is not in the list (OpenERP <7.0):
Go to Settings -> Modules -> Upgrade Module List
if Upgrade Module List option is not visible:
Go to Settings -> Users
Select Administrator
Press the EDIT button
Go to Access Right
Check the Technical Features option
Refresh the browser (F5 or CTRL+R)
The option Settings -> Modules -> Upgrade Module List should be available now
First kill all your process of openerp.
try this command: ps aux|grep openerp
It will list openerp process , use command: sudo kill -9 process id
Second use thin command on terminal: sudo su - openerp -s /bin/bash
Third use this command to update: python /opt/openerp/server/openerp-server -c /etc/openerp-server.conf -u all -d (database name)
Thanks

How do I install uncrustify?

How do I install uncrustify? I followed the instruction to install uncrustify but when I run it, it does not work. Can anyone give me some help installing this tool? I want to run it on objective-c code in xcode 4. Thanks in adavance
On OS X Mavericks 10.9.1 :
1- to install brew, open a terminal windows and type :
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
It will ask you to download some other files, answer OK for all (for more information see : http://brew.sh/index_fr.html).
2 - to install uncrusify, open a terminal windows an type :
brew install uncrustify
3 - to make your code beautiful, download BBUncrustifyPlugin-Xcode available at https://github.com/benoitsan/BBUncrustifyPlugin-Xcode
You will just have to :
compile the project
copy the file uncrusify.cfg in your home directory
restart Xcode.
NB : With BBUncrustifyPlugin, you don't need to use Automator.
4 - After restarting Xcode, use the menu Edit > Uncrustify Selected Files to uncrustify the selected items in the project navigator.
Your code is now beautiful! That's magic!
post-scriptum : You can easily change your uncrusify configuration file by using :
https://github.com/ryanmaxwell/UncrustifyX
http://universalindent.sourceforge.net (better in my case)
I hope that this will help!
I setup Uncrustify with Xcode 4 like so: http://blog.carbonfive.com/2011/03/10/code-formatting-in-xcode-4/
Can you explain what you tried to do, what you expected to happen, and how it didn't work?
Download zip
On Windows, download the latest version of Uncrustify here: https://sourceforge.net/projects/uncrustify/files/latest/download
Extract zip
The program is a standalone exe, so just extract the downloaded uncrustify-...-win32.zip file anywhere. For this example, I'll use C:\Uncrustify. So, the uncrustify.exe would be in that directory.
Add directory to PATH System Environment Variable
In Windows 7+: Type Winkey + env - Select "Edit the system environment variables"
On the Advanced tab, click the Environment Variables button at the bottom.
In the System variables section at the bottom, click the Path variable, then click the Edit... button.
Click the New button, and type C:\Uncrustify, or the directory that you extracted uncrustify.exe to.
Important: Click OK to close the dialog boxes or your change will not save.
Verify
In a CMD window, typing where uncrustify should return the path to the uncrustify.exe.
In my case it shows C:\Uncrustify\uncrustify.exe
Close Atom and reopen it. Now you should be able to atom-beautify and it will use Uncrustify to format your selection