Intellij Idea does not recognize ivy.xsd - intellij-idea

Why my IDE does not recognize xsd by URI ?
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"

You will need to download the schema first. IntelliJ allows to do that using intentions. Set cursor on the red marked fragment, press Alt+Enter and select 'Fetch External Resource'. Schema should be downloaded and you will start getting element suggestions in the file.
Sometimes automatic resource fetching may not work and the location will remain red marked. In such case you will need to download the schema to some location to disk and select 'Manually Setup External Resource' from intentions menu. Point to the downloaded file and you should get it working.

Related

How to enable longer file path in IntelliJ's find in path preview panel

Using 'Find in Path' in intelliJ we can preview search results easily by looking into files found. Is it possible to make upper panel (one that displays files found) show longer(deeper) source path.
Currently it shows
parentFolder\fileFound
or
parentsParentFolder\[..]\fileFound
if intelliJ find parentFolder to be a common name.
I want to make preview panel showed me file source up to n-th level like
n-thParentFolder\n-1-thParentFolder\...\parentFolder\fileFound
Is it possible?
EDIT: providing screenshot for better understanding
Looking into screenshot provided, I cannot tell the difference between 1st-4th row and 3th-6th row.
That's not currently possible: https://youtrack.jetbrains.com/issue/IDEA-174542 -- watch this ticket (star/vote/comment) to get notified of any progress.

Accurev: change package merge required

I've got a workspace backed to my collaboration stream (CS), the CS has a parent stream (Parent).
In my workspace I changed a file with version Parent/1 and then promoted it to the collaboration stream some times. Its version became CS/2.
Then I got an update from the Parent and found that I don't need to keep my changes in that file and purged it on the CS. Its version became "CS/2*" on the CS and "Parent/2" in my workspace.
Now I'm trying to make some changes in the file in my workspace and promote it to the CS again, but I've got the message "change package merge required" for the file.
If I understand correctly, it can't be promoted due to the file version in my workspace is not derived from CS/2. How can I resolve the issue and promote new changes to the CS?
P.S. Moreover I have a pack of such files - about 70 files. How can I resolve the problem for the whole pack of files?
Open the issue you are associating your promotion with.
Click on Changes tab.
Select the file from the list in changes tab.
Right click -> Remove.
Now promote using this issue.
the only way that i have found to fix this is to use the "send to>issue (specifying ancestor)" command from the version browser tree.
open accurev
view>view streams (pick your depot)
click the "active issues" icon in the upper-right corner
click the "show active issues" icon under the problem stream
right-click>"send to change palatte" on the source issue
right-click>"browse versions" on the problem file
select "everything" in the "show" dropdown
right-click>"send to">"issue (specifying basis)" on the latest version in the current stream
click on the earliest ancestor (this should be a common ancestor of all versions)
enter the target ticket number and click "ok"
these steps should work for any source/target issue, even "unaffiliated" changes. technically, you shouldn't have to "show everything" and choose the oldest version. you really just need to get back to a common ancestor.

Adding a third tab in Android studio xml editor

I want to write an Android Studio IDE plugin which will add a third tab (After "Design" and "Text" tab) in the XML file editor view.
What I am trying to accomplish is to have a different representation of the layout XML files.
I tried going through the files present under this page but I could not find anything useful.
Can anyone help me please ?
EDIT:
This screenshot shows what I am trying to do.
This third tab will show the layout in JSON format , the JSON being constructed by my plugin.
The main purpose of this tab being this : Once the user approves the JSON structure, the plugin will upload the JSON to my server to store my layout on the cloud.
I have gone through IntelliJ plugin creation process. But since I am building a plugin on top of Android's plugin, I am not able to find any good starting point.
If someone can point me to the source code for the XML layout editor view, I can work from there.
This solution works for me :) and I guess this is simple... you can now make you external tool and distribute for install. In my case when the ViewText windows is deactivated or loses focus, I just close the window automatically...

Accurev: Cannot remove workspace/stream

I'm trying to remove a workspace (or clone it to look like the parent, but I can't seem to do either). When I try, however, I get this message: Cannot remove workspace test_workspace, because it has a non-empty default group.
From what I've read, it means that there are active files (as shown by the 3 little green dots to the right of stream). I've tried everything to get those to go away but they just seem to stick around and therefore result in me being unable to remove the stream.
Alternatively, I could completely wipe out the stream and replace with the parent version, but I can't seem to do that either.
Any help would be greatly appreciated.
You need to purge the active files in this workspace.
Open the workspace and click on the "Default Group" filter -> select the files -> right click -> revert to backed.
If no files appear in the "Default Group" filter, click on the stranded filter and do the same as above to revert those files.
If you are using AccuRev 6.x, click on the outgoing mode and click on "Member" and "Stranded" to get a list of the active files.
Once you have done that, you can remove the workspace.
Similar problem here, fixed it following #jstanley's comment.
Open Workspace-> select it-> right click-> Edit.
In that prompt, I set the Location path to where I wanted it to put it on my local machine. For some reason, it was unable to "create a folder" and threw errors, so make sure Append Workspace name is unchecked and you select a folder that already exists.
It then populated the folder on my local machine attached to the workspace. And revert to basis worked, so afterwards I could remove the workspace and delete the folder.

How to let IntelliJ IDEA's Local History ignore Plugins' temporary change and restore to document?

I am writing a IntelliJ IDEA plugin at here like AceJump, which is used for fast move caret in IDE.
like following, by apply TextAttributes to all 'i' occurrences, and give each 'i' an index char.
after user press 'H', the caret will move to 'i' in the "private".
then change all Markup chars to original 'i'
PROBLEMS
This action will change the Document contents during jump.
so there will be a history change like below. Is there a way to ignore the changes in Local History management?
After press Cmd-z, there is a dialog says "Cannot Undo". how to avoid this?
Instead of changing the document contents, you should paint your navigation markers over the document using, for example, the HintManager class.
If you change the actual document contents, this will have many more consequences besides breaking undo and local history - for example, the document will be reparsed causing false syntax errors to be displayed; any other plugin or IntelliJ IDEA component watching for changes to the document will react to this; the document will be checked out from the VCS if the user is using a VCS such as Perforce that requires an explicit checkout operation; etc. TL/DR: don't do that.
In case someone google and find here. following is my final solution.
I using Swing graphics drawing to show the markers, works great.
please refer for details: https://github.com/whunmr/emacsIDEAs/blob/master/src/org/hunmr/acejump/marker/MarkersPanel.java