[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-11 Thread Dinesh Joshi (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16815844#comment-16815844
 ] 

Dinesh Joshi commented on CASSANDRA-15073:
--

LGTM, +1 Thank you for working on this, [~michaelsembwever].

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
> Attachments: netbeans-errors-2.png, netbeans-errors.png, 
> netbeans-ss.png
>
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-11 Thread mck (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16815843#comment-16815843
 ] 

mck commented on CASSANDRA-15073:
-

bq. Could we make it so that it makes it easier for the user to run Cassandra 
daemon? I am sorry I am expanding the scope of this ticket, but I think it 
would be a very useful addition from a developer's perspective. If it is too 
complicated, we can document it and move on.

Agreed with [~djoshi3] that it's ok to pull this out to a separate ticket, and 
to take the approach of an ant task executing the {{`bin/cassandra`}} script. 
This should work smoothly with debugging, profiling, as well as the existing 
NetBeans Cassandra plugin¹. 

--
¹ NetCassandraBeans plugin – 
http://plugins.netbeans.org/plugin/59444/netcassandrabeans

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
> Attachments: netbeans-errors-2.png, netbeans-errors.png, 
> netbeans-ss.png
>
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-11 Thread mck (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16815837#comment-16815837
 ] 

mck commented on CASSANDRA-15073:
-

bq. No errors in the actual files but the top level project still has an error 
icon but everything else works as expected. I think the error icon is a bug. 

I think it's a bug too, or it just takes a long time for it to resolve and 
disappear. On both mac and linux the error badge on the project is now gone for 
me, but it took some time.

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
> Attachments: netbeans-errors-2.png, netbeans-errors.png, 
> netbeans-ss.png
>
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-11 Thread Dinesh Joshi (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16815834#comment-16815834
 ] 

Dinesh Joshi commented on CASSANDRA-15073:
--

[~michaelsembwever] looks a lot better now. No errors in the actual files but 
the top level project still has an error icon but everything else works as 
expected. I think the error icon is a bug. I couldn't find an explanation for 
it. Anyway, I was able to execute the {{CassandraDaemon}} class.

 !netbeans-ss.png! 

I was also able to get {{CassandraDaemon}} to start up but had to add a few 
jvmargs in the {{ide-file-target.xml}}. Not an expert in this but here are the 
arguments –
 
{code:xml}
   












{code}

Could we make it so that it makes it easier for the user to run Cassandra 
daemon? I am sorry I am expanding the scope of this ticket, but I think it 
would be a very useful addition from a developer's perspective. If it is too 
complicated, we can document it and move on.

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
> Attachments: netbeans-errors-2.png, netbeans-errors.png, 
> netbeans-ss.png
>
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-11 Thread mck (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16815118#comment-16815118
 ] 

mck commented on CASSANDRA-15073:
-

The {{`JAVA8_HOME`}} hack has been removed. And the docs updated to be a bit 
more specific about having built the project first.

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
> Attachments: netbeans-errors-2.png, netbeans-errors.png
>
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-10 Thread mck (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16814931#comment-16814931
 ] 

mck commented on CASSANDRA-15073:
-

bq. After setting it, it at least builds but I still see errors in the IDE. 

How did you set the {{`JAVA8_HOME`}} variable? And did you do a {{right click 
-> Build}} on the project after the variable was set?
What files exist in {{ide/nbproject/private}} ?

bq. Reimporting did not help. 

FTR… netbeans doesn't "import" or setup a project. Everything is just about 
getting the classpath correct (netbeans just re-uses the classpath locations 
that the ant build script creates/uses). The Cassandra codebase relies on jar 
files in {{build/lib/jars/}}. And getting the classpath to a specific JDK 
version in a cross-OS friendly way is a bit awkward, hence the hack against the 
{{`JAVA8_HOME`}} variable. Running the "Build" from inside Netbeans still 
builds Cassandra using ant on the command line in the same way, but in addition 
it picks up the java8 jdk classes it needs in the cassandra classpath.

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
> Attachments: netbeans-errors-2.png, netbeans-errors.png
>
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-10 Thread Dinesh Joshi (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16814889#comment-16814889
 ] 

Dinesh Joshi commented on CASSANDRA-15073:
--

I did set the {{JAVA8_HOME}}. See my original comment. The build succeeded but 
the project still shows "parsing errors".

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
> Attachments: netbeans-errors-2.png, netbeans-errors.png
>
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-10 Thread mck (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16814865#comment-16814865
 ] 

mck commented on CASSANDRA-15073:
-

It is a requirement that the {{`JAVA8_HOME`}} system variable is set, eg in 
your {{~/.bashrc}}
I re-used this to simplify the {{jdk.xml}}, as it's also required to build 
Cassandra on the command line.

Let me go back to the drawing board on this one. Might need to do the jdk 
classpath the normal netbeans way for freeform projects…

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
> Attachments: netbeans-errors-2.png, netbeans-errors.png
>
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-10 Thread Dinesh Joshi (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16814562#comment-16814562
 ] 

Dinesh Joshi commented on CASSANDRA-15073:
--

See the attached screenshot. I get that with a fresh checkout.

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
> Attachments: netbeans-errors.png
>
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-09 Thread mck (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16813317#comment-16813317
 ] 

mck commented on CASSANDRA-15073:
-

bq. Actually that shouldn't be necessary anymore, as the `build` task was added 
to the project.xml

My bad [~djoshi3], you do need to do a "right click on project -> Build" 
manually before all the errors will go away. And I've pushed a small fix (and 
updated the docs).

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-09 Thread mck (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16813067#comment-16813067
 ] 

mck commented on CASSANDRA-15073:
-

Thanks for taking a look [~djoshi3]!

{quote} I get classpath errors and the following error was in the notifications 
panel -
{noformat}java.lang.ClassNotFoundException: 
org.netbeans.modules.groovy.editor.api.parser.GroovyLanguage{noformat}
{quote}
That's NETBEANS-2289 and not related to the c* project opening in nb. 

bq. Another minor point is to update instructions in ide.rst. It says there is 
no setup required for Netbeans where as we actually need to run ant prior to 
opening the project. A minor but important detail that needs to be added.

Actually that shouldn't be necessary anymore, as the `build` task was added to 
the project.xml

So it *should* now work without any setup or generation.

bq. I get classpath errors

What were these? Can you provide a screenshot? If you opened the files badged 
red what lines report what errors?
(It can take time for the classpath and internal scanning to complete and all 
error badges to resolve and disappear.)

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-08 Thread Dinesh Joshi (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16812917#comment-16812917
 ] 

Dinesh Joshi commented on CASSANDRA-15073:
--

[~michaelsembwever] unfortunately this patch doesn't seem to be working for me. 
I tested this by downloading the latest netbeans (
Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319). I 
get classpath errors and the following error was in the notifications panel -

{code:java}
java.lang.ClassNotFoundException: 
org.netbeans.modules.groovy.editor.api.parser.GroovyLanguage
at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:197)
Caused: java.lang.ClassNotFoundException: 
org.netbeans.modules.groovy.editor.api.parser.GroovyLanguage starting from 
SystemClassLoader[531 modules] with possible defining loaders null and declared 
parents [org.netbeans.MainImpl$BootClassLoader@20322d26, 
org.netbeans.JarClassLoader@51f1b2be, 
ModuleCL@6c3b0979[org.netbeans.api.annotations.common], 
ModuleCL@6a8ebda8[org.openide.awt], 
ModuleCL@3c8c10a4[org.netbeans.api.progress], 
ModuleCL@2dbe4456[org.netbeans.api.progress.nb], 
ModuleCL@3ae0cf02[org.openide.dialogs], ModuleCL@423f11aa[org.openide.nodes], 
ModuleCL@37b552e8[org.openide.windows], 
ModuleCL@73ead5bc[org.netbeans.modules.editor.mimelookup], ...506 more]
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:199)
at 
org.netbeans.ModuleManager$SystemClassLoader.loadClass(ModuleManager.java:769)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
at 
org.openide.loaders.InstanceSupport.findClass(InstanceSupport.java:477)
at 
org.openide.loaders.InstanceSupport.instanceClass(InstanceSupport.java:123)
at 
org.openide.loaders.InstanceDataObject$Ser.instanceClass(InstanceDataObject.java:1347)
at 
org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:189)
at 
org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1417)
at 
org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:821)
[catch] at 
org.netbeans.modules.csl.spi.DefaultDataLoadersBridge.createInstance(DefaultDataLoadersBridge.java:120)
at 
org.netbeans.modules.csl.core.Language.createInstance(Language.java:284)
at 
org.netbeans.modules.csl.core.Language.getGsfLanguage(Language.java:223)
at 
org.netbeans.modules.csl.core.Language.getIndexSearcher(Language.java:692)
at 
org.netbeans.modules.csl.core.TypeAndSymbolProvider.compute(TypeAndSymbolProvider.java:152)
at 
org.netbeans.modules.csl.core.TypeAndSymbolProvider$TypeProviderImpl.computeTypeNames(TypeAndSymbolProvider.java:75)
at 
org.netbeans.modules.jumpto.type.GoToTypeAction$Worker.getTypeNames(GoToTypeAction.java:614)
at 
org.netbeans.modules.jumpto.type.GoToTypeAction$Worker.run(GoToTypeAction.java:522)
at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
{code}

Not sure what I am doing wrong here. When I ran ant, it built successfully.

Another minor point is to update instructions in {{ide.rst}}. It says there is 
no setup required for Netbeans where as we actually need to run {{ant}} prior 
to opening the project. A minor but important detail that needs to be added.

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-03 Thread Wade Chandler (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16808656#comment-16808656
 ] 

Wade Chandler commented on CASSANDRA-15073:
---

I will look at this [~michaelsembwever] to see if I can help any.

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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



[jira] [Commented] (CASSANDRA-15073) Apache NetBeans project files

2019-04-02 Thread mck (JIRA)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-15073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16807567#comment-16807567
 ] 

mck commented on CASSANDRA-15073:
-

Patch in progress at 
https://github.com/thelastpickle/cassandra/tree/mck/trunk_15073

> Apache NetBeans project files
> -
>
> Key: CASSANDRA-15073
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15073
> Project: Cassandra
>  Issue Type: Task
>  Components: Build
>Reporter: mck
>Assignee: mck
>Priority: Low
>
> Provide necessary project files so to be able to open the Cassandra project 
> in Apache NetBeans.
> No additional project functionality is required beyond being able to edit the 
> project's source files. Building the project is still expected to be done via 
> `ant` on the command-line.



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

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