Re: [PR] Fix ide-support for idea [tomcat]

2024-06-11 Thread via GitHub
isapir commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2161659043 I merged the PR and tried to comment out the exclusion lines as agreed above, but that breaks with a different error and does not allow to build. I think that it's best to leave things

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-11 Thread via GitHub
ChristopherSchultz commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2161585676 My preference is for the ide-idea ant target to work for *most people*. _Most people_ are not Tomcat developers, but people who have downloaded our sources and are building them l

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-11 Thread via GitHub
isapir merged PR #731: URL: https://github.com/apache/tomcat/pull/731 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-11 Thread via GitHub
dsoumis commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2160442520 The change we could make so that all opinions are generally satisfied are: 1. Move the exclusions from `res/ide-support/idea/compiler.xml` to `res/ide-support/idea/tomcat.iml` commente

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-11 Thread via GitHub
markt-asf commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2160396222 > Since IDE support is [configured](https://github.com/apache/tomcat/blob/main/build.xml#L3830) with build.java.version, which currently is [17](https://github.com/apache/tomcat/blob/main

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-11 Thread via GitHub
dsoumis commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2160286872 > IMO it is reasonable to expect a user that is developing on the latest version of Tomcat, i.e. the main branch, to be using the latest Java SDK, which will work with the Experimental featu

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-10 Thread via GitHub
isapir commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2159528473 Thank you for your input on this @markt-asf - it makes sense to me, and is consistent with my proposed solution. > - Eclipse is configured to use the same Java version as the build (Jav

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-10 Thread via GitHub
markt-asf commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2157847935 I'm not an Idea user so I have no strong view on this. I'd be happy with whatever consensus the Idea users reach. I am an Eclipse user and the approach I use there (which I think the

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-06 Thread via GitHub
rmannibucau commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2151570300 Assuming using uses the highest java version sounds okish but shouldnt preview mode be enabled if the packages are not excluded, otherwise it leads to the same output: it does not work i

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-06 Thread via GitHub
isapir commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2151559998 @dsoumis Tomcat 11 takes advantage of new technology. The build script checks if the Java version is 22 and if so it compiles the Panama packages. This is for a development environment

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-05 Thread via GitHub
dsoumis commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2151524740 @isapir My expectation was that "ant ide-intellij" should work out of the box without requiring any adjustments. Currently, to use an SDK version lower than 22, you must exclude `/java/o

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-05 Thread via GitHub
isapir commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2150273321 @dsoumis But now you are completely excluding `/java/org/apache/tomcat/util/net/openssl/panama` and `/java/org/apache/tomcat/util/openssl`? It might "work" on Java 17 but new technology woul

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-05 Thread via GitHub
dsoumis commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2149133573 On second thoughts, I believe ide-support should strictly follow build.xml rules. As build.xml [excludes](https://github.com/apache/tomcat/blob/main/build.xml#L1014) openssl and panama

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-03 Thread via GitHub
isapir commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2145709893 Strange, I don't have those settings ![image](https://github.com/apache/tomcat/assets/885907/22b3d25e-3b20-4ede-b80d-60a9da90c081) But OK, I will revert the latest change. Feel

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-03 Thread via GitHub
dsoumis commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2144545354 @isapir It doesn't work for me. After pulling your patch I am getting errors such as: `java: java.lang.foreign.Arena is a preview API and is disabled by default. (use --enable-preview

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-02 Thread via GitHub
isapir commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2144252838 @dsoumis I pushed a patch that sets the Language Level to Experimental: https://github.com/apache/tomcat/commit/f8eecc13b53fdca998565455d3c27e9b9a6cd8dc Can you pull it and check if

Re: [PR] Fix ide-support for idea [tomcat]

2024-06-02 Thread via GitHub
isapir commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2144037801 @dsoumis I got it to work by setting the Project's `Language level` to "X - Experimental features" ![image](https://github.com/apache/tomcat/assets/885907/41c6646c-a767-48d3-ad2b-c8b2d

Re: [PR] Fix ide-support for idea [tomcat]

2024-05-31 Thread via GitHub
markt-asf commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2142686031 That isn't it then. I think we need someone else with Idea (or who can set it up) to test this. -- This is an automated message from the Apache Git Service. To respond to the message, pl

Re: [PR] Fix ide-support for idea [tomcat]

2024-05-31 Thread via GitHub
dsoumis commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2142631865 22.0.1 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsub

Re: [PR] Fix ide-support for idea [tomcat]

2024-05-31 Thread via GitHub
markt-asf commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2142625138 Hmm. Exactly which version of Java 22 are you using? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above

Re: [PR] Fix ide-support for idea [tomcat]

2024-05-31 Thread via GitHub
dsoumis commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2142611198 @markt-asf Compilation errors with Java22 (compile target is 22 as well as Java 22 being used): > > /home/dsoumis/Programs/github/tomcat/java/org/apache/tomcat/util/net/openssl/pa

Re: [PR] Fix ide-support for idea [tomcat]

2024-05-31 Thread via GitHub
markt-asf commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2142584248 I'm not an Idea user but I'd expect that code to compile using Java 22. Not much help I know but those packages aren't showing any errors in Eclipse with Java 22. What is the error

Re: [PR] Fix ide-support for idea [tomcat]

2024-05-31 Thread via GitHub
isapir commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2142552727 @dsoumis I agree that it's weird, but my concern is that it would break other environments that work. Let's wait for Remy/Mark/others to chime in as they are more familiar with how thi

Re: [PR] Fix ide-support for idea [tomcat]

2024-05-31 Thread via GitHub
dsoumis commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2142542693 @isapir It seemed weird to me, but even with Java 22 defined in Intellij the compilation didn't succeed. Maybe something else is missing as well. +1 For adding a comment in the output --

Re: [PR] Fix ide-support for idea [tomcat]

2024-05-31 Thread via GitHub
isapir commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2142532017 @dsoumis It won't compile if the Java version etc. are not compatible with that code. This is not making it useless. Perhaps a better change would be to add a comment about it in the output,

Re: [PR] Fix ide-support for idea [tomcat]

2024-05-31 Thread via GitHub
dsoumis commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2142501404 Intellij won't compile the sources if those exclusions are not made, making the "ant ide-intellij" step useless. In case it's not the right thing to do, we should redefine the support for

Re: [PR] Fix ide-support for idea [tomcat]

2024-05-31 Thread via GitHub
isapir commented on PR #731: URL: https://github.com/apache/tomcat/pull/731#issuecomment-2142442782 These lines were commented out on purpose, so that they are available if you need them but not enabled by default. I am not sure that uncommenting them is the right thing to do. The fi

[PR] Fix ide-support for idea [tomcat]

2024-05-31 Thread via GitHub
dsoumis opened a new pull request, #731: URL: https://github.com/apache/tomcat/pull/731 (no comment) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: