PhpStorm autocomplete stopped working when installed node_modules in a specific project.
At the same time, in other projects (or in this specific project when node_modules is not installed) it works correctly...
The project is a Laravel project.
Related
Install Netbeans 12.6 on a Windows 10 machine. I was able to install the CodenameOne plugin with no problem. When creating a project I get the following error message:
Cannot invoke "org.openide.filesystems.FileObject.getFileObject(String)" because "folder" is null
I've been surfing the internet and can't find a way to fix it.
Thank you for your support.
This approach is no longer supported. The plugin is only used for legacy applications and no longer works in newer IDEs due to breaking changes in almost all IDEs.
Starting with Codename One 7.x we moved to maven projects which don't require the plugin and can be created in https://start.codenameone.com/
I have followed the instructions in the manual and it mentions as important:
"Before opening the project in NetBeans, you need to copy the contents of the tools/netbeans directory into the root project directory. These files are required by NetBeans to build, run, and debug the project correctly. "
But I can't find this folder in netbeans version 12.6.
I'm migrating from Netbeans to VSCode, and after some time of use, I don't understand how can I see all my projects into the navigator so I can work in some project I need and sometimes copy files between projects too. Actually, I've just can open some folder or I can just open the root folder of all my projects, okay, but with it, I can't sync each project with some FTP server using the third-party ftp-simple plugin for FTP connections.
This is vscode Version: 1.37.1 using macos.
Since Netbeans is used as my primary editor, and the project is built with angular-cli, this is a cosmetic issue, the project builds and deploys fine using ng serve -o, this is just an annoyance as I like my Netbeans to flag errors in files that actually have errors.
This is a Netbeans specific question, there are many "Cannot find module 'angular2/core'" questions but each requires different IDE configuration (VS, Webstorm, etc) I have not found one that addressed this issue in Netbeans.
To recreate the issue:
(using angular-cli)
ng new example-of-problem
Then opening example-of-problem in Netbeans:
As you can see from the above, a number of files have errors. All of which are resolving paths starting with '#angular' you can see it can resolve local paths fine (./app.component).
Some solutions request adding: "moduleResuolution":"node" to tsconfig.json however this is a standard angular-cli build and that line is of course present.
Versions of software:
Netbeans 8.1, Node 7.7.4, #angular/cli 1.0.0
The solution is to simply upgrade to netbeans 8.2. The typescript support has been fixed and the lines which are flagged above are no longer flagged.
Netbeans should automatically install the TypeScript Editor plugin, and as a matter of convenience install the netbeans-angular2-code-templates plugin.
I tried to install PigPen using the directions here:
http://wiki.apache.org/pig/PigPen
But despite rebooting Eclipse, it doesn't seem to recognize that I put a new jar in the plugins folder.
There is dropins folder on the same level with plugins folder. Eclipse by default configured to pick up new plugins from it.
I have checked out an existing project from SVN into Eclipse as aLiferay project (in fact the checked in project IS a Liferay project).
The problem is that I get an error:
*No Liferay Plugin SDK configured on project Xxx-portlet.*
Opening the project properties I can see under Liferay menue item that indeed there is no SDK selected. Following the Configure SDKs link I can see an existing installed Liferay Plugin SDK and it's already selected. Clicking OK (even after de- and re-selecting the installed Plugin SDK) the input field remains empty.
How can I assign the Liferay Plugin SDK to the project??
Plugins SDK is an ant-based download that relies on your projects to be in common locations: If you just check out one project, you'll need to have this in a subdirectory of the plugins sdk - e.g. if you are working on a portlet (project name "my-portlet"), this should be located in ${plugins-sdk}/portlets/my-portlet.
In eclipse (or Liferay IDE) you should configure your plugins sdk by naming it and pointing to the root of your sdk folders. Then you can choose to create projects into this sdk (or to import from that SDK)
Note that the sourcecode will be located in the SDK directory, not in the eclipse workspace directory.
This is necessary as IDE relies on the ANT infrastructure to be there and the build.xml files reference common build.xml files in the parent directory. Some build processes in Liferay IDE will trigger ANT.
Liferay IDE 2.0 will also support maven, so this requirement will go away (if you use maven)
Ok! I have to check out the project into the {Liferay Plugin SDK}/portlets folder but not into any other folder.