[ 
https://issues.apache.org/jira/browse/NETBEANS-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16736942#comment-16736942
 ] 

Christian Lenz edited comment on NETBEANS-1802 at 1/8/19 9:55 AM:
------------------------------------------------------------------

TLDR;
{code}
Exactly. I would like to see both because when I choose them maybe 
accidentally, how can I switch it back? Or switching because of using this 
actions and then this actions. I mean it is similar to that what I mentioned 
before. It is like a feature that I activate/deactivate. I activate NodeJS 
support for a HTML5 Project and I can deactivate it. I can activate WordPress 
or Doctrine or Symfony for a PHP project, and I can deactivate it. So here it 
is a bit different but could be similar. If NetBeans see oh there is HTML5 and 
Maven, what would you like to activate? Hm this time, I would like to use 
HTML5. But inside of the properties, I can activate Maven too and it turns into 
a maven project, for example. Or switch it to a while different project.

In IntelliJ there is the feature, where you can add frameworks and tools, to 
your project/module. So there is no specific projecttype at all, but you can 
add this, and that and that, etc. to use it in your module.
{code}

So long story short, yes it would be perfect to switch between projects or 
activate/deactivate features like maven, ant, gradle, whatever, doesn't matter 
what projecttype it is. Or more to talk about my case, when NetBeans see 
different project types. So both options are very needed in my case here.


was (Author: chrizzly):
TLDR;
Exactly. I would like to see both because when I choose them maybe 
accidentally, how can I switch it back? Or switching because of using this 
actions and then this actions. I mean it is similar to that what I mentioned 
before. It is like a feature that I activate/deactivate. I activate NodeJS 
support for a HTML5 Project and I can deactivate it. I can activate WordPress 
or Doctrine or Symfony for a PHP project, and I can deactivate it. So here it 
is a bit different but could be similar. If NetBeans see oh there is HTML5 and 
Maven, what would you like to activate? Hm this time, I would like to use 
HTML5. But inside of the properties, I can activate Maven too and it turns into 
a maven project, for example. Or switch it to a while different project.

In IntelliJ there is the feature, where you can add frameworks and tools, to 
your project/module. So there is no specific projecttype at all, but you can 
add this, and that and that, etc. to use it in your module.


So long story short, yes it would be perfect to switch between projects or 
activate/deactivate features like maven, ant, gradle, whatever, doesn't matter 
what projecttype it is. Or more to talk about my case, when NetBeans see 
different project types. So both options are very needed in my case here.

> Problem with loading a project which has 2 different project files
> ------------------------------------------------------------------
>
>                 Key: NETBEANS-1802
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1802
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: projects - Generic Infrastructure, projects - Generic 
> Projects UI
>    Affects Versions: 8.2, 9.0, 10.0
>            Reporter: Christian Lenz
>            Priority: Critical
>         Attachments: dasaa.7z
>
>
> Most of the comments are inside of the external ticket, but I will summerize 
> it:
> When I have a project, with 2 different project related files like pom.xml 
> and package.json. One is always winning. In my case, pom is winning.
> I had a html5 project, where NetBeans found package.json and everything was 
> fine, because it is a HTML5 project. After some infrastucture changes in my 
> company, using nexus to put artifacts on the repo, we had to add pom.xml 
> files for nexus. Now, after opening NetBeans, the project turns into a maven 
> based project, which is not correct. Only this one file and some 
> infrastructure files, which are not project sourcecode related are needed for 
> nexus.
> Now, because NetBeans things this is a maven project, I can't set the sass 
> compilation anymore or the folder structure is wrong.
> This always happen, if the project loader finds a project specific file and 
> will change the project for that. This happens for pom.xml for example and 
> for this plugin here: https://github.com/tropyx/NetBeansPuppet
> It turns a project into a puppet project and this is even more worse. Here is 
> another discussion about the problem: 
> https://github.com/tropyx/NetBeansPuppet/issues/27
> I know, that NetBeans acts like it was designed but this isn't nice and 
> created problems. I only have one solution which could be ok. Give the user a 
> notification that a project type were found, like for node support and let 
> the user choose whether I want to change the project type or not.
> So for me, I have a HTML5 Project with a package.json file and it should be 
> as it is. If NetBeans found the pom file it should give me the hint whether I 
> want to change it or not.
> If you open NetBeans with a project with two files, I want to choose as what 
> I want to treat the project and it should be saved. Like a project switcher.
> I added a sample project to it to make it clear.
> We can set it back to Major, but I think this is a big problem for multiple 
> project files.
> Cheers
> Chris



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to