.SH Files and Developer Tools

For some time now I have noticed that Rider generates files with a .sh extension in the debug folder with content similar to this:

function list_child_processes(){
local ppid=$1;
local current_children=$(pgrep -P $ppid);
local local_child;
if [ $? -eq 0 ];
then
forcurrent_childin$current_children
do
local_child=$current_child;
list_child_processes $local_child;
echo$local_child;
done;
else
return 0;
fi;
}

ps 31103;
while [ $? -eq 0 ];
do
sleep 1;
ps 31103 > /dev/null;
done;

for child in $(list_child_processes 31119);
do
echo killing $child;
kill -s KILL $child;
done;
 
what is this and how to solve it? These are files that are useless.
 

Another thing: whenever I start a project I have to attach the Developer tools. I already tried the command:

sudo /usr/sbin/DevToolsSecurity --enable

but it didn't solve

5 comments
Comment actions Permalink

Hi Silmar Sanches

What is the type of your project? Do you have the same issue with a new sample project?

Could you please remove the Debug folder and check when this file appears: when you build project or when you launch debug? 

Also, please use Rebuild solution with diagnostics from a context menu of the Solution name. Please upload the resulting file to our server or create a new YouTrack issue via `Help | Report a bug` and attach the file there. Both ways are keeping your data privately. 

Thanks! 

0
Comment actions Permalink

Hi Alexandra, thanks for this!

I sent the log files:

Upload id: 2022_07_20_75K194AWtb25zR4XGxpSFm (files: JetBrainsLog.ReSharperBuild_2022_07_20_12_50_51_0342.binlog, JetBrainsLog.ReSharperBuild_2022_07_20_12_50_51_0342.log).

I removed the Debug folder but I had no results. SH files continue to be created. I noticed that it only happens in Debug. Build solution these files are not created.

Regarding this message, what can I do to resolve it? It's bad to have to click on this window every time I run a project for the first time.

 

Thanks! 

0
Comment actions Permalink

Any news about this problem?

0
Comment actions Permalink

Hi Silmar Sanches

sorry for the delay. 

I've created the YouTrack issue for the main problem. Please follow it for further investigation. Could you please also attach Rider logs from `Help | Collect logs`? You can attach them directly to the YouTrack issue. 

As to the second question, it seems like it comes from XCode. Could you please try both commands: 

/usr/sbin/DevToolsSecurity -enable
/usr/sbin/dseditgroup -o edit -t group -a staff _developer

Thanks! 

0
Comment actions Permalink

Hi!

Here is a copy of the developer's answer: 

While googling for the script contents, I found the likely culprit of this: https://github.com/dotnet/aspnetcore/blob/77042af34bde9103b865c6f9a2baa99adc23e6b3/src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs#L250

So, it isn't Rider, but ASP.NET Core's SpaProxyLaunchManager who generates these scripts.

I hope this helps!

0

Please sign in to leave a comment.