You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
project rename, resource path is still under old project name #421
Eclipse content assist set auto and prompt more characters.
egg. <link href="css/base.css">
It will prompt "href" and it's value. The former seems supported by jsdt and the latter is by angularjs-eclipse.It's cool.But after I changed the project name, it does not work anymore unless I restart Eclipse.
In Eclipse's "Error Log" view there are some resource path errors which are use old project name.
I find some rename related plugins as follows.But I do not how it works.I guess tern.java need do something,so I report a issue here.
1.Create a new javascript project which named "HelloWorld". In this project, it contains some css files in a folder. The index.html will link the css files.
2. Input the <link> tag, it will prompt the css files path.
3. Rename the project's name as "HH2".
4. The <link> tag cannot prompt the css files path.
5. Then open the Error Log view of eclipse, there are multiple errors. It shows "Error while collecting resource for container css". Resource '/HelloWorld/css/base.css' does not exist.
6. The project name is already "HH2", but the eclipse still tries to find the old path. Perhaps the project's context does not change.
Yes,hello cow force. I fix it by change WebResourcesIndexManager.performAction function to update WebResourcesProjectConfiguration data; and WebResourcesProviderType.collect function to avoid resource not exists.Is it ok?
Activity
angelozerr commentedon Jun 5, 2016
Could you please give a simple and detailled scenario with your problem, please.
whysqwhw commentedon Jun 8, 2016
1.Create a new javascript project which named "HelloWorld". In this project, it contains some css files in a folder. The index.html will link the css files.
2. Input the
<link>tag, it will prompt the css files path.3. Rename the project's name as "HH2".
4. The
<link>tag cannot prompt the css files path.5. Then open the Error Log view of eclipse, there are multiple errors. It shows "Error while collecting resource for container css". Resource '/HelloWorld/css/base.css' does not exist.
6. The project name is already "HH2", but the eclipse still tries to find the old path. Perhaps the project's context does not change.
angelozerr commentedon Jun 8, 2016
This issue is not for tern.java, but for https://github.com/angelozerr/eclipse-wtp-webresources
But I think I will give up this project since @mickaelistria is to move features from https://github.com/angelozerr/eclipse-wtp-webresources to WTP HTML Editor step by step.
whysqwhw commentedon Jun 14, 2016
Yes,hello cow force. I fix it by change WebResourcesIndexManager.performAction function to update WebResourcesProjectConfiguration data; and WebResourcesProviderType.collect function to avoid resource not exists.Is it ok?
mickaelistria commentedon Jun 14, 2016
@whysqwhw Would you rather be interested in contributing those features to Eclipse directly? As @angelozerr explained, we're trying to move/copy those features to Eclipse WTP directly (where the HTML editor lives). See https://bugs.eclipse.org/bugs/show_bug.cgi?id=495132 for example.
whysqwhw commentedon Jun 14, 2016
ok,thanks
mickaelistria commentedon Jun 14, 2016
@whysqwhw a nice contribution would be to try the Gerrit patch I suggested and to report whether it works for your use-case or not ;)