How to add a file to PbxGroupPsiElement - AppCode plugin development - intellij-plugin

I have a reference to PbxGroupPsiElement, and I'm trying to create a file inside using an action. To create a file I'm using following command: PbxGroupPsiElement.getDirectoryPsiElement().createFile("Test.swift");
It does create a file in directory, but in AppCode is not attached. How I can add it automatically to PbxGroupPsiElement?
Thank you.

Related

How not create a Chrome_headless.xml file after angular test?

After i use the command:
ng teste --code-coverage
in my angular project, the folder with the reports of the tests are created in the root, but also file called ut_report-Chrome_Headless_104.0.5112.101_(Linux_x86_64).xml
I want to know how not create this file when i type the command. I using angular 13 and Karma.
link to the picture of the file that i dont wanna to be create

Automatically add a set .gitignore file to a New Project folder location when creating a New Project in IntelliJ

I would like to have a certain .gitignore file created in the directory of a New Project when I create it in IntelliJ. Is there a way to set this up to automatically happen?
You can use project templates for that. See https://www.jetbrains.com/help/idea/saving-project-as-template.html

Play Framework with IntelliJ, no option to create 'Java File'

I got the IntelliJ IDEA Ultimate edition, and tried creating Play Framework Project. But something is wrong.
Create New - Project - Java - Play 2.x. Project gets created. When I want to create a new Java File, I right clicked on Package - New - (no option to create Java file) - File, Directory, Html File, Stylesheet, Javascript etc. No option to Create Java File is shown.
I know that a folder has to be marked as Sources by doing right click - Mark Directory as - Sources.
However when I do that, my other files report saying folder is not under the declared package name.
This is specific to Play framework. Appreciate assistance :)
In the Project view, is the ´app´ folder marked in blue as in the image?
Alternatively, create the project from the command line with ´activator new ´. In IntelliJ, you can then select either the root folder or the build.sbt to open the project.
In both cases, app should be marked in blue, indicating it's a source directory.
It's also possible you tried to create the Java file while IntelliJ was still initializing the project - during this time, it's not possible to create source files of any type.

How to add new file to Go project

I am using the Go plugin for IntelliJ Idea.
I'm not sure how I got my project working like this but I am able to run my Main.go file and it includes all my other files in the project that I can reference. That is perfect.
The problem now is that when I go and create a new "*.go" file it's not included in the IDE build and I get compiled errors wherever I refer to the contents of that file.
How can I fix this?
i think you can set GOPATH in the ~/.bash_profile, e.g.
GOPATH=~/code/go
export GOPATH
and source ~/.bash_profile or restart the terminal. it will go to effect;
then put *.go or go project related with the main.go under the GOPATH.
finally, main.go will find the *.go.
There are two types of run configurations for Go applications:
- Go Single file -> which is the equivalent of go run file.go
- Go Application -> which is the equivalent of go build file / package and run the binary
By the sound of it, you want to run a Go Application with Run kind set to package. There you'll need to type the full package name, for example: github.com/dlsniper/demo/cmd/democmd
At the moment support for running multiple files / building a directory is not present (there are some issues opened for it)

Creating an executable file using INNO SETUP Compiler 5.3.8

i have a problem when i create an executable file of my application created using VisualStudio 2010 and MSAccess 2010. I instal the application and I create a shortcut but when i run the application an error is generated saying that the Data Base file is not found in the same directory of the shortcut (when i create a shortcut in desktop : BD.accdb not found in C:\Users\Achraf\Desktop\BD.accdb or when i run the application from Start-> all programs-> MyApp :BD.accdb not found in C:\Windows\System32\BD.accdb) .
Please check the working directory set for the shortcut. This is set in the "Start In" property when you view the properties of the shortcut
Make sure you provide the full path to the file using {app}:
Filename: {app}\BD.accdb; WorkingDir: {app}