MacOS Big Sur + Netbeans : cannot open/create projects - netbeans

After MacOS upgrade to Big Sur and having made changes to 'netbeans_jdkhome' into the netbeans.conf file, the application is opened and running but it is NOT possible to open one of my projects because the box with my project files under "Documents" shows empty content (and of course my files are present there).
Nor is it possible to create a new project, heea some log messages:
cd /Users/bparis/Documents/Netbeans; JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home "/Applications/NetBeans/Apache ....
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
pwd: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
pwd: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
chdir: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
chdir: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
Scanning for projects...
Same issue with Apache NetBeans 11.2 and 12.2.
So I suppose Netbeans is not allowed to access files on disk.
I went into my "System > Preferences > Security and Privacy" to try to change that behavior but Netbeans is not being listed and I can't add it" (+ button non activated).
I can gives Netbeans the permission "Full access" to disk but that does no change.
Thanks for any help,
Bernard

Issue reported to apache devs.
Workaround : start Netbeans from a terminal window:
"/Applications/NetBeans/Apache NetBeans 11.2.app/Contents/Resources/NetBeans/netbeans/bin/netbeans"

Related

Visual Studio Code-Git extension error. Permission denied to initialize repository from file even after publishing the file to git.hub.com

When using VS Code, in the process of using Git as an extension, I try initializng a repository from the files chosen but it gives me this:
2023-01-17 21:01:40.309 [info] > git init [79ms]
2023-01-17 21:01:40.309 [info] C:/Program Files/Git/.git: Permission denied
What should I do or what could be the problem, thank you. I am a beginner in programming 8 days old. Thank you.
I tried publishing the folder I have to git.hub but I still dont have acces to source control features

Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : Two assets found targeting the same path with incompatible asset kinds

C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : Two assets found targeting the same path with incompatible asset kinds: [D:\Migration\XXXXXX\XXXX.App\XXXX.csproj]
C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : ‘D:\Migration\XXXXXX\XXXX.App\wwwroot\assets\images\AAA.png’ with kind ‘All’ [X:\Migration\XXXXXX\XXXX.App\XXXX.csproj]
C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : ‘X:\Migration\XXXXXX\XXXX.App\wwwroot\assets\images\AAA.png’ with kind ‘All’ [D:\Migration\XXXXXX\XXXX.App\XXXX.csproj]
C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : for path ‘assets/images/Cancel.png’ [D:\Migration\XXXXXX\XXXX.App\XXXX.csproj]
0 Warning(s)
1 Error(s)
Error occurs while building the Solution. Not sure why this error is happening in .NET 6, the same copy of wwwroot folder content to output directory works fine in .Netcore3.1. But giving error in .Net 6.
Did initial research on any other alterative for this problem. It only builds if content of wwwroot folder are deleted each time in the project directory location. hence works fine on the first time of clean workspace.
Background: basically need to copy the icons and images used in client to wwwroot folder and also copying this to output directory using
Sample mini project is in git https://github.com/Shruthi1984/StaticWebAssestscopyissue .
Similar error propped up in our project after upgrading to net6.0
Project had a .nuget package reference to said static asset(i.e bootstrap), and also files under wwwroot folder. The duplication made the project to throw error. We removed the reference to package. And that solved the problem.
I had the same problem after updating from .net5.0 to .net6.0. The error happened because I had this command in the project file:
<Content Include="$(ProjectDir)\wwwroot\**\*.*" CopyToPublishDirectory="PreserveNewest" />
After removing it I was finally able to build the project, because in .NET 6 the copying is automatically done and it will try to copy the files twice with this command

(Postgrex.Error) ERROR 58P01 (undefined_file)

** (Postgrex.Error) ERROR 58P01 (undefined_file): could not open extension control file "/usr/local/Cellar/postgresql#9.6/9.6.5/share/postgresql#9.6/extension/postgis.control": No such file or directory
I'm getting this error when I try to run mix ecto.migrate...
Why is it looking at that path? I've tried moving postgis.control
If I run this command find /usr -name postgis.control it gives me this result:
/usr/local/Cellar/postgis/2.4.0_1/share/postgresql/extension/postgis.control
/usr/local/share/postgresql#9.6/extension/postgis.control
Does anybody know how I can move postgis.control or what I could be doing wrong?
The file postgis.control should be in the extension subdirectory of the PostgreSQL share directory. You can find out the location of the share directory by running pg_config --sharedir.
All the other files that belong to the PostGIS extension must also be in place: the SQL files in the same directory as the control file, and the shared libraries in pg_config --libdir.

Eclipse Neon searching for shared libraries in the root folder

I installed Eclipse Neon yesterday and it seemed to be working fine. Installed a few plug-ins and did some work.
Today when I start it I get the following error message:
$ /usr/local/bin/eclipse46
/root/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444: cannot open shared object file: Permission denied
I found some references in the config.ini file to the root folder (I have no idea why). I have correct these and the file now looks like:
#This configuration file was written by: org.eclipse.oomph.p2.internal.core.AgentImpl
#Tue Jul 26 16:10:00 CEST 2016
org.eclipse.update.reconcile=false
eclipse.p2.profile=_opt_eclipse.neon_eclipse
osgi.instance.area.default=#user.home/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.10.102.v20160118-1700.jar
equinox.use.ds=true
eclipse.buildId=4.6.0.I20160606-1100
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.1.200.v20160504-1450.jar#1\:start
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.platform.ide
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
osgi.framework.extensions=reference\:file\:org.eclipse.osgi.compatibility.state_1.0.200.v20160504-1419.jar,reference\:file\:org.eclipse.wst.jsdt.nashorn.extension_1.0.0.v201605131737.jar
osgi.bundles.defaultStartLevel=4
eclipse.p2.data.area=#config.dir/../p2/
eclipse.application=org.eclipse.ui.ide.workbench
However, I am still getting the "permission denied" error. Is there any way of correcting this?
I tried to put my user's folder to eclipse.ini file, and this didn't worked.
--launcher.library ~/.p2/pool/plugin /org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444
seems the best approach for now is to copy the folder inside root home to your user, once its create with the the new installer.

install4j + allow installer to create multiple new directories for installation location

I have issue with Installer generated with install4j. During the "Install files" action it throws error as below
I see these errors in log file:
[INFO] com.install4j.runtime.beans.actions.InstallFilesAction: Before install file: C:\Dir1\Dir2\jre\bin\file.dll; size: 24992 bytes; exists: false
[INFO] fileTime: Mon Mar 28 13:11:06 IST 2016, mode: 644, overwriteMode: Always ask except for update, shared: false, uninstallMode: If created, delayIfNecessary: false
[ERROR] com.install4j.runtime.beans.actions.InstallFilesAction: Install file not successful: C:\Dir1\Dir2\jre\bin\file.dll.dll
[ERROR] com.install4j.runtime.beans.actions.InstallFilesAction: Execute action not successful
On debugging it looks like the installer is unable to create the installation location. The user as admin privileges.
In recent observation I found that the above error occurs only when I use a particular word(calling it "home") in the installation location, like c:\Home\dir2. If I choose any other path it installs fine. I do not understand the behaviour. Can anybody help me out with this.
If I understand you correctly the installer can not create the installation directory, right? Do you using the "Installation location" action provided by the install4j framework? This action handles the creation of the directory automatically depend on the priviliges the user has. Otherwise you have to ensure the dircetory will be created before the "Install files" action will be running.