[java] Incorrect cursor position on newline

2021-11-25 Thread Chris Mackey
I'm not sure if I'm missing something stupid, but I've just upgraded
to Netbeans 12.5 and when I take a new line, the cursor position on
the new line is now always at 0. In every previous version of Netbeans
I have used, the cursor position on a new line was automatically
indented to the appropriate position. Is there some option that I'm
missing?

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

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



Re: Updates don't be applied

2019-08-01 Thread Chris Mackey
Perhaps a stupid question, but I see you've verified that the
executable location exists, but have you done the same for the working
directory you're telling ProcessBuilder to use? That is,
"/Applications/ISNet Cube.app/Contents/Resources/isnet/isnet/modules".

On Wed, 31 Jul 2019 at 21:49, Marco Rossi  wrote:
>
>
> Can you open an arbitrary command window and just try to run the command 
> "/Applications/ISNet 
> Cube.app/Contents/PlugIns/jdk8u212-b04-jre/Contents/Home/bin/unpack200"?
>
> It should output some usage help…
>
>
> Yes Joseph, I can see the usage help message:
> mark@MacBookPro:~$ /Applications/ISNet\ 
> Cube.app/Contents/PlugIns/jdk8u212-b04-jre/Contents/Home/bin/unpack200
> Usage:  unpack200 [-opt... | --option=value]... x.pack[.gz] y.jar
> (For more information, run unpack200 --help .)
>
> Assuming the paths do exist and the file is executable, are you sure
> you are not running in some new fancy macOS sandbox that is
> disallowing you to execute external binaries?
>
>
> M, I’m suspecting something similar as Emilian suggested. Damn! :-/
> I’ll take a closer look.
>
> Thank you guys.
>
> Marco
>
>
> -Original Message-
> From: Marco Rossi 
> Sent: Wednesday, July 31, 2019 3:24 PM
> To: List NetBeans Mailing 
> Subject: Re: Updates don't be applied
>
> Hi to all,
> after further investigations I found the following error occurs:
>
> java.io.IOException: error=2, No such file or directory
> at java.lang.UNIXProcess.forkAndExec(Native Method)
> at java.lang.UNIXProcess.(UNIXProcess.java:247)
> at java.lang.ProcessImpl.start(ProcessImpl.java:134)
> at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
> Caused: java.io.IOException: Cannot run program "/Applications/ISNet 
> Cube.app/Contents/PlugIns/jdk8u212-b04-jre/Contents/Home/bin/unpack200" (in 
> directory "/Applications/ISNet 
> Cube.app/Contents/Resources/isnet/isnet/modules"): error=2, No such file or 
> directory
> at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
> [catch] at 
> org.netbeans.updater.ModuleUpdater.unpack200(ModuleUpdater.java:592)
> at org.netbeans.updater.ModuleUpdater.unpack(ModuleUpdater.java:490)
> at org.netbeans.updater.ModuleUpdater.run(ModuleUpdater.java:142)
>
> I’ve verified that there is the executable unpack200 in ../Contents/Home/bin 
> with the right permissions. Maybe is it something related to OpenJDK instead 
> of NetBeans?
>
> Il giorno 30 lug 2019, alle ore 09:04, Marco Rossi  ha 
> scritto:
>
> Hi everybody,
>
> I built my RCP application over platform version 8.2 and create a macOS 
> bundle with JVM 1.8.0_212 OpenJDK 64-Bit Server VM 25.212-b04 that run on my 
> 10.14.6 system.
>
> Now I discovered that my application is unable to apply updates from my 
> custom update center: it download it and asks to restart as usual; updates 
> are then (apparently) installed and then application starts itself again, but 
> it proposes the same updates!
>
> Where are they installed the updates of an RCP application? I’ve already 
> tried to remove the cache folder in my ~/Library/Application Support/ and 
> also already checked permission of my /Applications/AppName.app.
>
> Can someone give me a hand to understand what’s wrong?
>
> Thank you.
>
> Marco Rossi
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

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

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



[java] [gradle] Generated Sources and inexplicably Ignored Folders

2019-07-29 Thread Chris Mackey
I have a gradle project that is generating classes at build time based
off some protobuff definitions. These are being generated in the
folder:

build/generated/source/proto/main/java

The Gradle IDEA plugin is applied to the project, so to my
understanding, it should automatically add the generated folder as a
sourceSet. This used to be the case for the Gradle plugin in the
previous version of NetBeans I used (8.1). This is my first issue, as
it's not clear that the built-in Gradle in NetBeans 11.1 is observing
this, as I do not see the additional sourceSet.

Secondly, even if I add the sourceSet myself in Gradle, and do not
rely on the IDEA plugin to do it for me, it shows up in NetBeans, but
it appears to be ignored. So I can see it, but I can't look at its
contents in the package view. I tried without "build/" being part of
the gitignore file, and "build" is not part of the regex that allows
me to define my own ignored folders. So I'm at a bit of a loss as to
how this folder is still being ignored, and if it is at all
configurable.

I tried moving the generated sources out of build and into:

generated-sources/source/proto/main/java

This and manually adding the updated sourceSet worked, but it's a
change that may affect many others (for whom my explanation will be
met with "Just use IntelliJ"), so I'd rather avoid it if possible.

Any ideas or explanations welcome!

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

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