Unnamed: 0
int64
0
832k
id
float64
2.49B
32.1B
type
stringclasses
1 value
created_at
stringlengths
19
19
repo
stringlengths
7
112
repo_url
stringlengths
36
141
action
stringclasses
3 values
title
stringlengths
1
744
labels
stringlengths
4
574
body
stringlengths
9
211k
index
stringclasses
10 values
text_combine
stringlengths
96
211k
label
stringclasses
2 values
text
stringlengths
96
188k
binary_label
int64
0
1
173,180
27,395,953,451
IssuesEvent
2023-02-28 19:43:42
w3c/w3c-website
https://api.github.com/repos/w3c/w3c-website
closed
Color Palette Synchronization
design system
**Describe the issue** Nobody ever responded to https://lists.w3.org/Archives/Public/public-website-redesign/2020Oct/0000.html in the three years since it was posted.
1.0
Color Palette Synchronization - **Describe the issue** Nobody ever responded to https://lists.w3.org/Archives/Public/public-website-redesign/2020Oct/0000.html in the three years since it was posted.
non_process
color palette synchronization describe the issue nobody ever responded to in the three years since it was posted
0
138,742
12,828,044,529
IssuesEvent
2020-07-06 19:43:45
softlayer/softlayer.github.io
https://api.github.com/repos/softlayer/softlayer.github.io
closed
Add short python tickets scripts in a single file.
documentation
Add short network gateway java api examples in a single file. 1.- https://sldn.softlayer.com/python/create_ticket/. 2.- https://sldn.softlayer.com/python/create_standard_ticket_getting_subject_and_users.py/. 3.- https://sldn.softlayer.com/python/createTicketAttachedFileEncode.py/. 4.- https://sldn.softlayer.com/python/createTicketAttachedFile.py/. 5.- https://sldn.softlayer.com/python/list_tickets.py/.
1.0
Add short python tickets scripts in a single file. - Add short network gateway java api examples in a single file. 1.- https://sldn.softlayer.com/python/create_ticket/. 2.- https://sldn.softlayer.com/python/create_standard_ticket_getting_subject_and_users.py/. 3.- https://sldn.softlayer.com/python/createTicketAttachedFileEncode.py/. 4.- https://sldn.softlayer.com/python/createTicketAttachedFile.py/. 5.- https://sldn.softlayer.com/python/list_tickets.py/.
non_process
add short python tickets scripts in a single file add short network gateway java api examples in a single file
0
249,162
21,105,346,879
IssuesEvent
2022-04-04 18:11:25
elastic/beats
https://api.github.com/repos/elastic/beats
closed
Run kubernetes autodiscover E2E tests in CI
:Testing Team:Integrations Team:Automation
Changes in the main kubernetes-related packages should trigger autodiscover E2E tests in CI. These tests were added in https://github.com/elastic/e2e-testing/pull/1064 Main packages related to this feature are: ``` ./libbeat/autodiscover ./metricbeat/autodiscover ./heartbeat/autodiscover ./filebeat/autodiscover ./x-pack/libbeat/autodiscover ./libbeat/common/kubernetes ``` More generally this would be: ``` ./*/autodiscover ./x-pack/*/autodiscover ./libbeat/common/kubernetes ``` For agent we should also add the `kubernetes` provider, but there are no E2E test cases yet (https://github.com/elastic/e2e-testing/issues/1090). ``` ./x-pack/elastic-agent/pkg/composable/providers/kubernetes ```
1.0
Run kubernetes autodiscover E2E tests in CI - Changes in the main kubernetes-related packages should trigger autodiscover E2E tests in CI. These tests were added in https://github.com/elastic/e2e-testing/pull/1064 Main packages related to this feature are: ``` ./libbeat/autodiscover ./metricbeat/autodiscover ./heartbeat/autodiscover ./filebeat/autodiscover ./x-pack/libbeat/autodiscover ./libbeat/common/kubernetes ``` More generally this would be: ``` ./*/autodiscover ./x-pack/*/autodiscover ./libbeat/common/kubernetes ``` For agent we should also add the `kubernetes` provider, but there are no E2E test cases yet (https://github.com/elastic/e2e-testing/issues/1090). ``` ./x-pack/elastic-agent/pkg/composable/providers/kubernetes ```
non_process
run kubernetes autodiscover tests in ci changes in the main kubernetes related packages should trigger autodiscover tests in ci these tests were added in main packages related to this feature are libbeat autodiscover metricbeat autodiscover heartbeat autodiscover filebeat autodiscover x pack libbeat autodiscover libbeat common kubernetes more generally this would be autodiscover x pack autodiscover libbeat common kubernetes for agent we should also add the kubernetes provider but there are no test cases yet x pack elastic agent pkg composable providers kubernetes
0
218,350
16,985,627,534
IssuesEvent
2021-06-30 14:06:04
brave/brave-browser
https://api.github.com/repos/brave/brave-browser
closed
Service key should be added to requests being parsed by BraveRequestHandler
OS/Desktop QA/Test-Plan-Specified QA/Yes release-notes/exclude
## Description Requests to download extensions use the `BraveRequestHandler`. Service key should be present in order to access the go-update server. ## Test Plan Specified here: https://github.com/brave/internal/issues/784
1.0
Service key should be added to requests being parsed by BraveRequestHandler - ## Description Requests to download extensions use the `BraveRequestHandler`. Service key should be present in order to access the go-update server. ## Test Plan Specified here: https://github.com/brave/internal/issues/784
non_process
service key should be added to requests being parsed by braverequesthandler description requests to download extensions use the braverequesthandler service key should be present in order to access the go update server test plan specified here
0
9,179
12,227,152,562
IssuesEvent
2020-05-03 14:08:13
labnote-ant/labnote
https://api.github.com/repos/labnote-ant/labnote
opened
UI for Chemical & Process view
chemical-view process-view
They look ugly :( The layouts for chemical and process view needs to be changed. Let me try 🤔
1.0
UI for Chemical & Process view - They look ugly :( The layouts for chemical and process view needs to be changed. Let me try 🤔
process
ui for chemical process view they look ugly the layouts for chemical and process view needs to be changed let me try 🤔
1
18,354
5,625,895,421
IssuesEvent
2017-04-04 20:31:22
Theano/Theano
https://api.github.com/repos/Theano/Theano
closed
DTYPE_OUTPUT_1 used on the CPU, while in the kernel, we need to use DYTPE_o1. Idem for input
C Code GPU - New back-end Interface
We define the macros DTYPE_{INPUT,OUTPUT}_N on the CPU, but in the kernel, we define the macros DTYPE_{i,o}N. We should reuse the same macro everywhere. As it is the new back-end that add DTYPE_{i,o}N, I would add in the kernel that new macro and modify the current Theano code to use it.
1.0
DTYPE_OUTPUT_1 used on the CPU, while in the kernel, we need to use DYTPE_o1. Idem for input - We define the macros DTYPE_{INPUT,OUTPUT}_N on the CPU, but in the kernel, we define the macros DTYPE_{i,o}N. We should reuse the same macro everywhere. As it is the new back-end that add DTYPE_{i,o}N, I would add in the kernel that new macro and modify the current Theano code to use it.
non_process
dtype output used on the cpu while in the kernel we need to use dytpe idem for input we define the macros dtype input output n on the cpu but in the kernel we define the macros dtype i o n we should reuse the same macro everywhere as it is the new back end that add dtype i o n i would add in the kernel that new macro and modify the current theano code to use it
0
22,572
31,794,340,287
IssuesEvent
2023-09-13 06:56:21
MicrosoftDocs/azure-docs
https://api.github.com/repos/MicrosoftDocs/azure-docs
reopened
Issue with Graphical Runbook Example
automation/svc triaged assigned-to-author doc-enhancement process-automation/subsvc Pri1
This documentation does not appear to be accurate with what is seen in the portal. There is no User Code section within the Connect-AzAccount cmdlet. Additionally, Az cmdlets can not be run concurrently with the RM modules called in the example Graphical Runbook (StartAzureV2Vm). It is not possible to simply change the connection method here, all RM modules would need to be updated to the Az equivalents as well to prevent implementation errors. ![image](https://user-images.githubusercontent.com/86189383/221017972-1400bba7-86a7-4ce7-afe3-475df8fd1b52.png) ![image](https://user-images.githubusercontent.com/86189383/221018495-cb2b96f9-bb0d-433d-be11-fbac9dbc972b.png) --- #### Document Details ⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.* * ID: 3eedb810-487f-bc9c-89f5-d5fdbcc5d796 * Version Independent ID: 329e9ec7-d9ea-518b-625b-d39880365e80 * Content: [Migrate from a Run As account to Managed identities](https://learn.microsoft.com/en-us/azure/automation/migrate-run-as-accounts-managed-identity?tabs=run-as-account) * Content Source: [articles/automation/migrate-run-as-accounts-managed-identity.md](https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/automation/migrate-run-as-accounts-managed-identity.md) * Service: **automation** * Sub-service: **process-automation** * GitHub Login: @SnehaSudhirG * Microsoft Alias: **sudhirsneha**
1.0
Issue with Graphical Runbook Example - This documentation does not appear to be accurate with what is seen in the portal. There is no User Code section within the Connect-AzAccount cmdlet. Additionally, Az cmdlets can not be run concurrently with the RM modules called in the example Graphical Runbook (StartAzureV2Vm). It is not possible to simply change the connection method here, all RM modules would need to be updated to the Az equivalents as well to prevent implementation errors. ![image](https://user-images.githubusercontent.com/86189383/221017972-1400bba7-86a7-4ce7-afe3-475df8fd1b52.png) ![image](https://user-images.githubusercontent.com/86189383/221018495-cb2b96f9-bb0d-433d-be11-fbac9dbc972b.png) --- #### Document Details ⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.* * ID: 3eedb810-487f-bc9c-89f5-d5fdbcc5d796 * Version Independent ID: 329e9ec7-d9ea-518b-625b-d39880365e80 * Content: [Migrate from a Run As account to Managed identities](https://learn.microsoft.com/en-us/azure/automation/migrate-run-as-accounts-managed-identity?tabs=run-as-account) * Content Source: [articles/automation/migrate-run-as-accounts-managed-identity.md](https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/automation/migrate-run-as-accounts-managed-identity.md) * Service: **automation** * Sub-service: **process-automation** * GitHub Login: @SnehaSudhirG * Microsoft Alias: **sudhirsneha**
process
issue with graphical runbook example this documentation does not appear to be accurate with what is seen in the portal there is no user code section within the connect azaccount cmdlet additionally az cmdlets can not be run concurrently with the rm modules called in the example graphical runbook it is not possible to simply change the connection method here all rm modules would need to be updated to the az equivalents as well to prevent implementation errors document details ⚠ do not edit this section it is required for learn microsoft com ➟ github issue linking id version independent id content content source service automation sub service process automation github login snehasudhirg microsoft alias sudhirsneha
1
20,415
27,075,836,042
IssuesEvent
2023-02-14 10:30:23
billingran/Newsletter
https://api.github.com/repos/billingran/Newsletter
closed
Ajout de cases à cocher pour sélectionner ses centres d’intérêt.
processing... Brief 2
- [ ] Ajout de cases à cocher pour sélectionner ses centres d’intérêt.
1.0
Ajout de cases à cocher pour sélectionner ses centres d’intérêt. - - [ ] Ajout de cases à cocher pour sélectionner ses centres d’intérêt.
process
ajout de cases à cocher pour sélectionner ses centres d’intérêt ajout de cases à cocher pour sélectionner ses centres d’intérêt
1
12,354
14,885,992,679
IssuesEvent
2021-01-20 16:22:47
arunkumar9t2/scabbard
https://api.github.com/repos/arunkumar9t2/scabbard
closed
Bump to Kotlin 1.4.20
module:gradle-plugin module:processor
My project uses Kotlin 1.4.20 (latest release). After I installed Scabbard, project was built successfully. However, IDE started to show error "Kotlin plugin version is not the same as library version”. It seems that Scabbard indeed uses Kotlin 1.3.72: https://github.com/arunkumar9t2/scabbard/blob/0.4.0/constants.gradle
1.0
Bump to Kotlin 1.4.20 - My project uses Kotlin 1.4.20 (latest release). After I installed Scabbard, project was built successfully. However, IDE started to show error "Kotlin plugin version is not the same as library version”. It seems that Scabbard indeed uses Kotlin 1.3.72: https://github.com/arunkumar9t2/scabbard/blob/0.4.0/constants.gradle
process
bump to kotlin my project uses kotlin latest release after i installed scabbard project was built successfully however ide started to show error kotlin plugin version is not the same as library version” it seems that scabbard indeed uses kotlin
1
11,193
13,957,700,156
IssuesEvent
2020-10-24 08:12:55
alexanderkotsev/geoportal
https://api.github.com/repos/alexanderkotsev/geoportal
opened
DE: harvesting status
DE - Germany Geoportal Harvesting process
From: EC-INSPIRE-INFO@ec.europa.eu Sent: 03 July 2018 09:14:33 (UTC+01:00) Brussels, Copenhagen, Madrid, Paris To: marco.hohmann@uba.de; JRC INSPIRE SUPPORT Subject: [THEMATIC VIEWER Support] Geoportal Thematic Viewer: Harvesting Status Dear INSPIRE Geoportal Thematic viewer team, Dear Sir or Madam, we are called upon to set keywords for INSPIRE proirity datasets in our metadata catalogue, with the result that the Thematic Viewer can filter these datasets correctly. Now I have seen, that the status of harvesting of Germanys Geoportal was updated last on June 18th. So I can not check out, if the keywords are correct in our metadata. Is the harvesting status correct? Alternatively, is it planned to harvest Germanys Geoportal in the next days? http://inspire-geoportal.ec.europa.eu/thematicviewer/HarvestingStatus.action Thank you very much. Best regards Marco Hohmann Best regards, Marco Hohmann
1.0
DE: harvesting status - From: EC-INSPIRE-INFO@ec.europa.eu Sent: 03 July 2018 09:14:33 (UTC+01:00) Brussels, Copenhagen, Madrid, Paris To: marco.hohmann@uba.de; JRC INSPIRE SUPPORT Subject: [THEMATIC VIEWER Support] Geoportal Thematic Viewer: Harvesting Status Dear INSPIRE Geoportal Thematic viewer team, Dear Sir or Madam, we are called upon to set keywords for INSPIRE proirity datasets in our metadata catalogue, with the result that the Thematic Viewer can filter these datasets correctly. Now I have seen, that the status of harvesting of Germanys Geoportal was updated last on June 18th. So I can not check out, if the keywords are correct in our metadata. Is the harvesting status correct? Alternatively, is it planned to harvest Germanys Geoportal in the next days? http://inspire-geoportal.ec.europa.eu/thematicviewer/HarvestingStatus.action Thank you very much. Best regards Marco Hohmann Best regards, Marco Hohmann
process
de harvesting status from ec inspire info ec europa eu sent july utc brussels copenhagen madrid paris to marco hohmann uba de jrc inspire support subject geoportal thematic viewer harvesting status dear inspire geoportal thematic viewer team dear sir or madam we are called upon to set keywords for inspire proirity datasets in our metadata catalogue with the result that the thematic viewer can filter these datasets correctly now i have seen that the status of harvesting of germanys geoportal was updated last on june so i can not check out if the keywords are correct in our metadata is the harvesting status correct alternatively is it planned to harvest germanys geoportal in the next days thank you very much best regards marco hohmann best regards marco hohmann
1
12,608
15,008,322,778
IssuesEvent
2021-01-31 09:34:01
qgis/QGIS
https://api.github.com/repos/qgis/QGIS
closed
All installed plugins should be loaded by qgis_process if running headless
Feature Request Processing
**Feature description.** <!-- A clear and concise description of what you want to happen. Ex. QGIS would rock even more if [...] --> I'm attempting to install the [UMEP for Processing](https://plugins.qgis.org/plugins/processing_umep/) plugin into a docker container to be used via qgis_process. After unzipping the plugin into the plugins directory, it appears when running `qgis_process plugins` but is not "loaded". ``` [root@c4da1ff0ffde /]# qgis_process plugins QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' <string>:1: DeprecationWarning: setapi() is deprecated /usr/lib/python3.9/site-packages/qgis/utils.py:792: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses mod = _builtin_import(name, globals, locals, fromlist, level) Problem with GRASS installation: GRASS was not found or is not correctly installed Problem with SAGA installation: SAGA was not found or is not correctly installed Available plugins (* indicates loaded plugins which implement Processing providers) processing_umep * processing ``` I see that there was a change forcing the `processing` plugin to always be loaded, but only that plugin. If qgis_process is running headless, should all plugins be loaded automatically? Alternatively, if other configuration is required to make it load, the help message could be clearer (it isn't obvious if the plugin hasn't been loaded, or does not implement Processing provider). **Additional context** <!-- Add any other context or screenshots about the feature request here. Open source is community driven, please consider a way to support this work either by hiring developers, supporting the QGIS project, find someone to submit a pull request. If the change required is important, you should consider writing a [QGIS Enhancement Proposal](https://github.com/qgis/QGIS-Enhancement-Proposals/issues) (QEP) or hiring someone to, and announce your work on the lists. --> This is the dockerfile, in case its of any use: ```Dockerfile FROM lopsided/archlinux RUN pacman -Syy && pacman --noconfirm -S qgis python-pip python-pandas python-scipy unzip ENV QT_QPA_PLATFORM offscreen RUN mkdir -p ~/.local/share/QGIS/QGIS3/profiles/default/QGIS && \ echo "[PythonPlugins]\nprocessing=true\nprocessing_umap=true" > ~/.local/share/QGIS/QGIS3/profiles/default/QGIS/QGIS3.ini && \ curl https://plugins.qgis.org/plugins/processing_umep/version/0.5/download/ --output umep-processing.zip && \ mkdir -p ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins && \ unzip umep-processing.zip -d ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins && \ rm umep-processing.zip ```
1.0
All installed plugins should be loaded by qgis_process if running headless - **Feature description.** <!-- A clear and concise description of what you want to happen. Ex. QGIS would rock even more if [...] --> I'm attempting to install the [UMEP for Processing](https://plugins.qgis.org/plugins/processing_umep/) plugin into a docker container to be used via qgis_process. After unzipping the plugin into the plugins directory, it appears when running `qgis_process plugins` but is not "loaded". ``` [root@c4da1ff0ffde /]# qgis_process plugins QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' <string>:1: DeprecationWarning: setapi() is deprecated /usr/lib/python3.9/site-packages/qgis/utils.py:792: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses mod = _builtin_import(name, globals, locals, fromlist, level) Problem with GRASS installation: GRASS was not found or is not correctly installed Problem with SAGA installation: SAGA was not found or is not correctly installed Available plugins (* indicates loaded plugins which implement Processing providers) processing_umep * processing ``` I see that there was a change forcing the `processing` plugin to always be loaded, but only that plugin. If qgis_process is running headless, should all plugins be loaded automatically? Alternatively, if other configuration is required to make it load, the help message could be clearer (it isn't obvious if the plugin hasn't been loaded, or does not implement Processing provider). **Additional context** <!-- Add any other context or screenshots about the feature request here. Open source is community driven, please consider a way to support this work either by hiring developers, supporting the QGIS project, find someone to submit a pull request. If the change required is important, you should consider writing a [QGIS Enhancement Proposal](https://github.com/qgis/QGIS-Enhancement-Proposals/issues) (QEP) or hiring someone to, and announce your work on the lists. --> This is the dockerfile, in case its of any use: ```Dockerfile FROM lopsided/archlinux RUN pacman -Syy && pacman --noconfirm -S qgis python-pip python-pandas python-scipy unzip ENV QT_QPA_PLATFORM offscreen RUN mkdir -p ~/.local/share/QGIS/QGIS3/profiles/default/QGIS && \ echo "[PythonPlugins]\nprocessing=true\nprocessing_umap=true" > ~/.local/share/QGIS/QGIS3/profiles/default/QGIS/QGIS3.ini && \ curl https://plugins.qgis.org/plugins/processing_umep/version/0.5/download/ --output umep-processing.zip && \ mkdir -p ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins && \ unzip umep-processing.zip -d ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins && \ rm umep-processing.zip ```
process
all installed plugins should be loaded by qgis process if running headless feature description i m attempting to install the plugin into a docker container to be used via qgis process after unzipping the plugin into the plugins directory it appears when running qgis process plugins but is not loaded qgis process plugins qstandardpaths xdg runtime dir not set defaulting to tmp runtime root deprecationwarning setapi is deprecated usr lib site packages qgis utils py deprecationwarning the imp module is deprecated in favour of importlib see the module s documentation for alternative uses mod builtin import name globals locals fromlist level problem with grass installation grass was not found or is not correctly installed problem with saga installation saga was not found or is not correctly installed available plugins indicates loaded plugins which implement processing providers processing umep processing i see that there was a change forcing the processing plugin to always be loaded but only that plugin if qgis process is running headless should all plugins be loaded automatically alternatively if other configuration is required to make it load the help message could be clearer it isn t obvious if the plugin hasn t been loaded or does not implement processing provider additional context add any other context or screenshots about the feature request here open source is community driven please consider a way to support this work either by hiring developers supporting the qgis project find someone to submit a pull request if the change required is important you should consider writing a qep or hiring someone to and announce your work on the lists this is the dockerfile in case its of any use dockerfile from lopsided archlinux run pacman syy pacman noconfirm s qgis python pip python pandas python scipy unzip env qt qpa platform offscreen run mkdir p local share qgis profiles default qgis echo nprocessing true nprocessing umap true local share qgis profiles default qgis ini curl output umep processing zip mkdir p local share qgis profiles default python plugins unzip umep processing zip d local share qgis profiles default python plugins rm umep processing zip
1
172,643
27,309,747,227
IssuesEvent
2023-02-24 11:10:32
equinor/design-system
https://api.github.com/repos/equinor/design-system
closed
Menu / List item upgrade shown in Sandbox
design figma 💡 feature request 🛑 on hold
After discussion with Echo Team on the [menu item](https://www.figma.com/file/0bGXR2sCwMVSDNyyzu5BXrO5/UI%E2%80%94User-Interface?node-id=17627%3A3322) component, we can see that our user would have the need to have different variants: ![Screenshot 2022-03-02 at 11.07.10.png](https://images.zenhubusercontent.com/608123fcbee65b40f5b36b26/c9533c2d-593b-4673-baf5-8d6486e092a3) Echo team has already implemented the new version in their system and is a really good starting point for us to implement in EDS. Here are some scenarios: ![Screenshot 2022-03-02 at 11.12.28.png](https://images.zenhubusercontent.com/608123fcbee65b40f5b36b26/761e79a9-60f0-4567-a1f9-5332e5a58845)
1.0
Menu / List item upgrade shown in Sandbox - After discussion with Echo Team on the [menu item](https://www.figma.com/file/0bGXR2sCwMVSDNyyzu5BXrO5/UI%E2%80%94User-Interface?node-id=17627%3A3322) component, we can see that our user would have the need to have different variants: ![Screenshot 2022-03-02 at 11.07.10.png](https://images.zenhubusercontent.com/608123fcbee65b40f5b36b26/c9533c2d-593b-4673-baf5-8d6486e092a3) Echo team has already implemented the new version in their system and is a really good starting point for us to implement in EDS. Here are some scenarios: ![Screenshot 2022-03-02 at 11.12.28.png](https://images.zenhubusercontent.com/608123fcbee65b40f5b36b26/761e79a9-60f0-4567-a1f9-5332e5a58845)
non_process
menu list item upgrade shown in sandbox after discussion with echo team on the component we can see that our user would have the need to have different variants echo team has already implemented the new version in their system and is a really good starting point for us to implement in eds here are some scenarios
0
7,473
10,567,599,815
IssuesEvent
2019-10-06 06:01:00
KerasKorea/KerasObjectDetector
https://api.github.com/repos/KerasKorea/KerasObjectDetector
opened
[Preprocessing] Object Detection Tutorial(used by Keras API)
preprocessing
[] Explain Obeject Detection concept [] Explain Obeject Detection Model([Faster R-CNN](https://arxiv.org/pdf/1506.01497.pdf)) ➡️ DateSet([Deepfashion2](https://arxiv.org/pdf/1901.07973.pdf)) [] Coding Tutorial Code ➡️ Explain Code [] Output
1.0
[Preprocessing] Object Detection Tutorial(used by Keras API) - [] Explain Obeject Detection concept [] Explain Obeject Detection Model([Faster R-CNN](https://arxiv.org/pdf/1506.01497.pdf)) ➡️ DateSet([Deepfashion2](https://arxiv.org/pdf/1901.07973.pdf)) [] Coding Tutorial Code ➡️ Explain Code [] Output
process
object detection tutorial used by keras api explain obeject detection concept explain obeject detection model ➡️ dateset coding tutorial code ➡️ explain code output
1
6,814
7,759,389,032
IssuesEvent
2018-05-31 23:15:18
Microsoft/visualfsharp
https://api.github.com/repos/Microsoft/visualfsharp
closed
[From VSTS] Semantic highlighting is off for precision formatting
Area-IDE Language Service Urgency-Later bug
![format-bad](https://user-images.githubusercontent.com/6309070/31303834-83e2de44-aac9-11e7-8f69-3d5f654db830.PNG) Note that the first line loses the teal coloring for `%.`. This seems to be caused when `.` is encountered.
1.0
[From VSTS] Semantic highlighting is off for precision formatting - ![format-bad](https://user-images.githubusercontent.com/6309070/31303834-83e2de44-aac9-11e7-8f69-3d5f654db830.PNG) Note that the first line loses the teal coloring for `%.`. This seems to be caused when `.` is encountered.
non_process
semantic highlighting is off for precision formatting note that the first line loses the teal coloring for this seems to be caused when is encountered
0
20,721
27,420,726,550
IssuesEvent
2023-03-01 16:32:21
ESMValGroup/ESMValCore
https://api.github.com/repos/ESMValGroup/ESMValCore
closed
Behaviour of `extract_volume` - allow extraction on closed or mixed intervals
enhancement preprocessor
**Is your feature request related to a problem? Please describe.** Currently, `extract_volume` is just able to extract a range in the z-axis with an open interval given by `(z_min, z_max)`. It would be useful to be able to also extract closed or mixed intervals `[z_min, z_max]`, `[z_min, z_max)`, `(z_min, z_max]` . It would also be useful to have the option to extract a range considering the closest coordinate values to z_min and z_max. For example, in a coordinate with points: ``` lev = 0.505760014057159, 1.55585527420044, 2.66768169403076, 3.8562798500061, 5.14036130905151, 6.54303359985352, 8.09251880645752, 9.82275009155273, 11.7736797332764, 13.9910383224487, 16.5253219604492, 19.429801940918, 22.7576160430908, 26.5583000183105, 30.8745613098145, 35.7402038574219, 41.1800231933594, 47.2118949890137, 53.8506355285645, 61.1128387451172, 69.0216827392578, 77.6111602783203, 86.9294281005859, 97.0413131713867, 108.030281066895, 120, 133.075820922852, 147.40625, 163.164459228516, 180.549926757812, 199.789962768555, 221.141174316406, 244.890625, 271.356384277344, 300.887512207031, ... ``` if `z_max: 300`, it should be able to select the last level as well because 300.89 is closer to 300 than the previous level of 271.36 . These changes could be implemented so that the current behaviour is the default one, in order to make them backward compatible. **Would you be able to help out?** Yes
1.0
Behaviour of `extract_volume` - allow extraction on closed or mixed intervals - **Is your feature request related to a problem? Please describe.** Currently, `extract_volume` is just able to extract a range in the z-axis with an open interval given by `(z_min, z_max)`. It would be useful to be able to also extract closed or mixed intervals `[z_min, z_max]`, `[z_min, z_max)`, `(z_min, z_max]` . It would also be useful to have the option to extract a range considering the closest coordinate values to z_min and z_max. For example, in a coordinate with points: ``` lev = 0.505760014057159, 1.55585527420044, 2.66768169403076, 3.8562798500061, 5.14036130905151, 6.54303359985352, 8.09251880645752, 9.82275009155273, 11.7736797332764, 13.9910383224487, 16.5253219604492, 19.429801940918, 22.7576160430908, 26.5583000183105, 30.8745613098145, 35.7402038574219, 41.1800231933594, 47.2118949890137, 53.8506355285645, 61.1128387451172, 69.0216827392578, 77.6111602783203, 86.9294281005859, 97.0413131713867, 108.030281066895, 120, 133.075820922852, 147.40625, 163.164459228516, 180.549926757812, 199.789962768555, 221.141174316406, 244.890625, 271.356384277344, 300.887512207031, ... ``` if `z_max: 300`, it should be able to select the last level as well because 300.89 is closer to 300 than the previous level of 271.36 . These changes could be implemented so that the current behaviour is the default one, in order to make them backward compatible. **Would you be able to help out?** Yes
process
behaviour of extract volume allow extraction on closed or mixed intervals is your feature request related to a problem please describe currently extract volume is just able to extract a range in the z axis with an open interval given by z min z max it would be useful to be able to also extract closed or mixed intervals it would also be useful to have the option to extract a range considering the closest coordinate values to z min and z max for example in a coordinate with points lev if z max it should be able to select the last level as well because is closer to than the previous level of these changes could be implemented so that the current behaviour is the default one in order to make them backward compatible would you be able to help out yes
1
36,976
12,453,537,669
IssuesEvent
2020-05-27 13:59:45
rediris-es/idpref-installer-updater
https://api.github.com/repos/rediris-es/idpref-installer-updater
opened
CVE-2015-9251 (Medium) detected in jquery-1.8.3.min.js
security vulnerability
## CVE-2015-9251 - Medium Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Library - <b>jquery-1.8.3.min.js</b></p></summary> <p>JavaScript library for DOM operations</p> <p>Library home page: <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js">https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js</a></p> <p>Path to vulnerable library: /idpref-installer-updater/simplesamlphp20200527135914/www/resources/jquery-1.8.js</p> <p> Dependency Hierarchy: - :x: **jquery-1.8.3.min.js** (Vulnerable Library) <p>Found in HEAD commit: <a href="https://github.com/rediris-es/idpref-installer-updater/commit/a04e6d0ed85fd1ec4cf1291c116f70e0c40a495c">a04e6d0ed85fd1ec4cf1291c116f70e0c40a495c</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png' width=19 height=20> Vulnerability Details</summary> <p> jQuery before 3.0.0 is vulnerable to Cross-site Scripting (XSS) attacks when a cross-domain Ajax request is performed without the dataType option, causing text/javascript responses to be executed. <p>Publish Date: 2018-01-18 <p>URL: <a href=https://vuln.whitesourcesoftware.com/vulnerability/CVE-2015-9251>CVE-2015-9251</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 3 Score Details (<b>6.1</b>)</summary> <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/suggested_fix.png' width=19 height=20> Suggested Fix</summary> <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://nvd.nist.gov/vuln/detail/CVE-2015-9251">https://nvd.nist.gov/vuln/detail/CVE-2015-9251</a></p> <p>Release Date: 2018-01-18</p> <p>Fix Resolution: jQuery - v3.0.0</p> </p> </details> <p></p> *** Step up your Open Source Security Game with WhiteSource [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
True
CVE-2015-9251 (Medium) detected in jquery-1.8.3.min.js - ## CVE-2015-9251 - Medium Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Library - <b>jquery-1.8.3.min.js</b></p></summary> <p>JavaScript library for DOM operations</p> <p>Library home page: <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js">https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js</a></p> <p>Path to vulnerable library: /idpref-installer-updater/simplesamlphp20200527135914/www/resources/jquery-1.8.js</p> <p> Dependency Hierarchy: - :x: **jquery-1.8.3.min.js** (Vulnerable Library) <p>Found in HEAD commit: <a href="https://github.com/rediris-es/idpref-installer-updater/commit/a04e6d0ed85fd1ec4cf1291c116f70e0c40a495c">a04e6d0ed85fd1ec4cf1291c116f70e0c40a495c</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png' width=19 height=20> Vulnerability Details</summary> <p> jQuery before 3.0.0 is vulnerable to Cross-site Scripting (XSS) attacks when a cross-domain Ajax request is performed without the dataType option, causing text/javascript responses to be executed. <p>Publish Date: 2018-01-18 <p>URL: <a href=https://vuln.whitesourcesoftware.com/vulnerability/CVE-2015-9251>CVE-2015-9251</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 3 Score Details (<b>6.1</b>)</summary> <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/suggested_fix.png' width=19 height=20> Suggested Fix</summary> <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://nvd.nist.gov/vuln/detail/CVE-2015-9251">https://nvd.nist.gov/vuln/detail/CVE-2015-9251</a></p> <p>Release Date: 2018-01-18</p> <p>Fix Resolution: jQuery - v3.0.0</p> </p> </details> <p></p> *** Step up your Open Source Security Game with WhiteSource [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
non_process
cve medium detected in jquery min js cve medium severity vulnerability vulnerable library jquery min js javascript library for dom operations library home page a href path to vulnerable library idpref installer updater www resources jquery js dependency hierarchy x jquery min js vulnerable library found in head commit a href vulnerability details jquery before is vulnerable to cross site scripting xss attacks when a cross domain ajax request is performed without the datatype option causing text javascript responses to be executed publish date url a href cvss score details base score metrics exploitability metrics attack vector network attack complexity low privileges required none user interaction required scope changed impact metrics confidentiality impact low integrity impact low availability impact none for more information on scores click a href suggested fix type upgrade version origin a href release date fix resolution jquery step up your open source security game with whitesource
0
317,740
27,263,384,061
IssuesEvent
2023-02-22 16:18:21
ubtue/tuefind
https://api.github.com/repos/ubtue/tuefind
closed
Normdatenanzeige bei Kongressen ist unvollständig
ready for testing authority
https://www.ixtheo.de/Authority/1743278748 111 2 $aSessione di formazione ecumenica$n56a$d2019$cAssisi Im Normsatz **$n** nicht angezeigt: Sessione di formazione ecumenica. Assisi (2019) Im Titelsatz wird angezeigt: Sessione di formazione ecumenica 56a 2019, Assisi https://www.ixtheo.de/Authority/1827061774 111 2 $aMormonen$eHerbst-Generalkonferenz$n192.$d2022$cSalt Lake City, Utah Im Normsatz werden **$e** und **$n** nicht angezeigt: Mormonen. Salt Lake City, Utah (2022) Im Titelsatz wird angezeigt: Mormonen 192. 2022, Salt Lake City, Utah (hier fehlt auch $e! Ebenso in der Facette "Autor".)
1.0
Normdatenanzeige bei Kongressen ist unvollständig - https://www.ixtheo.de/Authority/1743278748 111 2 $aSessione di formazione ecumenica$n56a$d2019$cAssisi Im Normsatz **$n** nicht angezeigt: Sessione di formazione ecumenica. Assisi (2019) Im Titelsatz wird angezeigt: Sessione di formazione ecumenica 56a 2019, Assisi https://www.ixtheo.de/Authority/1827061774 111 2 $aMormonen$eHerbst-Generalkonferenz$n192.$d2022$cSalt Lake City, Utah Im Normsatz werden **$e** und **$n** nicht angezeigt: Mormonen. Salt Lake City, Utah (2022) Im Titelsatz wird angezeigt: Mormonen 192. 2022, Salt Lake City, Utah (hier fehlt auch $e! Ebenso in der Facette "Autor".)
non_process
normdatenanzeige bei kongressen ist unvollständig asessione di formazione ecumenica cassisi im normsatz n nicht angezeigt sessione di formazione ecumenica assisi im titelsatz wird angezeigt sessione di formazione ecumenica assisi amormonen eherbst generalkonferenz csalt lake city utah im normsatz werden e und n nicht angezeigt mormonen salt lake city utah im titelsatz wird angezeigt mormonen salt lake city utah hier fehlt auch e ebenso in der facette autor
0
507,040
14,678,912,149
IssuesEvent
2020-12-31 05:05:17
whimsicalraps/wslash
https://api.github.com/repos/whimsicalraps/wslash
closed
SD card access priority scheduling
PRIORITY enhancement
This issue is about reducing likelihood of SD card access misses. There is a big stack of buffered SD pages, filled with the predicted next piece of audio. This includes a long-buffer ahead (in the direction of play) of the playhead, a short buffer behind (in case of reversing tape direction), and small buffers at the loop points to enable sample-accurate looping & random-access jumps to them. There is a finite amount of RAM to work with, so we have to be smart about which pages are loaded in on the fly. Some informative data points: * writes take 3-10x as long as reads * changing from read to write incurs a time penalty * accessing sequential pages (in memory) is fast, while random-access is slow * average read times are ~2ms per page * average write times are ~8ms per page * worst case write times (random access) can reach 150ms (single page, generally not in a row) In order to avoid issues where a slow SD page access causes a read-miss, we should prioritize *read* operations over writes. as reads are so much faster, we should make sure to get them loaded into RAM in case of a worst-case high-latency write operation. the memory that the page is read into, and written out of, are the same! So all *writes* come from reads. ### fill all the pages! This suggests that we should fill *all* of the RAM pages with predicted reads, and only run writes when there are no pages left to read into. The main challenge then becomes how to best predict the movement of the playhead. ### random access jumps Jumping at a loop point (or with a GOTO / SEEK) command, is a moment where there is high potential for SD traffic. Acting smartly we can deal with this effortlessly though: 1) Make an ordered list of the new predicted pages 2) Look at the read-request list (including any concurrent access), and cancel all requests that are not *exactly* the first page in the new predicted list. Free the buffers that were awaiting those reads. (this is particularly important if receiving a number of GOTO requests in quick succession, as re-buffering to a new random location will likely take upward of 100ms before it's back to low-pressure zone). 3) If there is an ongoing write, cancel & requeue it (so it waits until after the new read buffer is built) 4) Go through existing buffered pages, and drop any page that is not dirty & is now out of range. This will free a number of pages if there is a lot of predicted future reads based on the playhead. They won't have hit the playhead yet, so they can just be dropped from memory altogether (ready for a new page). 5) Read-request the predicted playhead list. This can be prioritized, filling up the numerous memory slots that were opened 6) Go through the existing buffered pages that *are* dirty, and check if they are no-longer predicted. if so, queue them for writing. ///////////////////////////////////////////////////////// This will work if we keep 2-5 uncommitted pages for queued writes. Making sure a read access is prioritized is essential for *overdub* mode. When a page miss occurs: * it's better to have a gap in an overdub (but retain the old audio), than to cut out the old audio and only have the overdub * if a page hasn't finished reading, it might cause a recording to be thrown away, or at least overwrite the portion of the page pre-read-complete So essentially, *READs are the most important thing*. A scheduler would: * Keep separate list of read & write requests * Know how many free pages are left * Always prioritize reads ( maintain 2/3 pages ahead of tape head) * (in future) combine adjacent reads into single access * If free-pages count drops below some limit (2?), prioritize a write * If there's no reads to do, check for any writes that need to happen Basically this boils down to, reads are king, writes only matter if we're out of memory to store a new read.
1.0
SD card access priority scheduling - This issue is about reducing likelihood of SD card access misses. There is a big stack of buffered SD pages, filled with the predicted next piece of audio. This includes a long-buffer ahead (in the direction of play) of the playhead, a short buffer behind (in case of reversing tape direction), and small buffers at the loop points to enable sample-accurate looping & random-access jumps to them. There is a finite amount of RAM to work with, so we have to be smart about which pages are loaded in on the fly. Some informative data points: * writes take 3-10x as long as reads * changing from read to write incurs a time penalty * accessing sequential pages (in memory) is fast, while random-access is slow * average read times are ~2ms per page * average write times are ~8ms per page * worst case write times (random access) can reach 150ms (single page, generally not in a row) In order to avoid issues where a slow SD page access causes a read-miss, we should prioritize *read* operations over writes. as reads are so much faster, we should make sure to get them loaded into RAM in case of a worst-case high-latency write operation. the memory that the page is read into, and written out of, are the same! So all *writes* come from reads. ### fill all the pages! This suggests that we should fill *all* of the RAM pages with predicted reads, and only run writes when there are no pages left to read into. The main challenge then becomes how to best predict the movement of the playhead. ### random access jumps Jumping at a loop point (or with a GOTO / SEEK) command, is a moment where there is high potential for SD traffic. Acting smartly we can deal with this effortlessly though: 1) Make an ordered list of the new predicted pages 2) Look at the read-request list (including any concurrent access), and cancel all requests that are not *exactly* the first page in the new predicted list. Free the buffers that were awaiting those reads. (this is particularly important if receiving a number of GOTO requests in quick succession, as re-buffering to a new random location will likely take upward of 100ms before it's back to low-pressure zone). 3) If there is an ongoing write, cancel & requeue it (so it waits until after the new read buffer is built) 4) Go through existing buffered pages, and drop any page that is not dirty & is now out of range. This will free a number of pages if there is a lot of predicted future reads based on the playhead. They won't have hit the playhead yet, so they can just be dropped from memory altogether (ready for a new page). 5) Read-request the predicted playhead list. This can be prioritized, filling up the numerous memory slots that were opened 6) Go through the existing buffered pages that *are* dirty, and check if they are no-longer predicted. if so, queue them for writing. ///////////////////////////////////////////////////////// This will work if we keep 2-5 uncommitted pages for queued writes. Making sure a read access is prioritized is essential for *overdub* mode. When a page miss occurs: * it's better to have a gap in an overdub (but retain the old audio), than to cut out the old audio and only have the overdub * if a page hasn't finished reading, it might cause a recording to be thrown away, or at least overwrite the portion of the page pre-read-complete So essentially, *READs are the most important thing*. A scheduler would: * Keep separate list of read & write requests * Know how many free pages are left * Always prioritize reads ( maintain 2/3 pages ahead of tape head) * (in future) combine adjacent reads into single access * If free-pages count drops below some limit (2?), prioritize a write * If there's no reads to do, check for any writes that need to happen Basically this boils down to, reads are king, writes only matter if we're out of memory to store a new read.
non_process
sd card access priority scheduling this issue is about reducing likelihood of sd card access misses there is a big stack of buffered sd pages filled with the predicted next piece of audio this includes a long buffer ahead in the direction of play of the playhead a short buffer behind in case of reversing tape direction and small buffers at the loop points to enable sample accurate looping random access jumps to them there is a finite amount of ram to work with so we have to be smart about which pages are loaded in on the fly some informative data points writes take as long as reads changing from read to write incurs a time penalty accessing sequential pages in memory is fast while random access is slow average read times are per page average write times are per page worst case write times random access can reach single page generally not in a row in order to avoid issues where a slow sd page access causes a read miss we should prioritize read operations over writes as reads are so much faster we should make sure to get them loaded into ram in case of a worst case high latency write operation the memory that the page is read into and written out of are the same so all writes come from reads fill all the pages this suggests that we should fill all of the ram pages with predicted reads and only run writes when there are no pages left to read into the main challenge then becomes how to best predict the movement of the playhead random access jumps jumping at a loop point or with a goto seek command is a moment where there is high potential for sd traffic acting smartly we can deal with this effortlessly though make an ordered list of the new predicted pages look at the read request list including any concurrent access and cancel all requests that are not exactly the first page in the new predicted list free the buffers that were awaiting those reads this is particularly important if receiving a number of goto requests in quick succession as re buffering to a new random location will likely take upward of before it s back to low pressure zone if there is an ongoing write cancel requeue it so it waits until after the new read buffer is built go through existing buffered pages and drop any page that is not dirty is now out of range this will free a number of pages if there is a lot of predicted future reads based on the playhead they won t have hit the playhead yet so they can just be dropped from memory altogether ready for a new page read request the predicted playhead list this can be prioritized filling up the numerous memory slots that were opened go through the existing buffered pages that are dirty and check if they are no longer predicted if so queue them for writing this will work if we keep uncommitted pages for queued writes making sure a read access is prioritized is essential for overdub mode when a page miss occurs it s better to have a gap in an overdub but retain the old audio than to cut out the old audio and only have the overdub if a page hasn t finished reading it might cause a recording to be thrown away or at least overwrite the portion of the page pre read complete so essentially reads are the most important thing a scheduler would keep separate list of read write requests know how many free pages are left always prioritize reads maintain pages ahead of tape head in future combine adjacent reads into single access if free pages count drops below some limit prioritize a write if there s no reads to do check for any writes that need to happen basically this boils down to reads are king writes only matter if we re out of memory to store a new read
0
570,152
17,019,839,075
IssuesEvent
2021-07-02 17:05:37
zephyrproject-rtos/zephyr
https://api.github.com/repos/zephyrproject-rtos/zephyr
closed
Occasionally unable to scan for extended advertisements when connected
area: Bluetooth area: Bluetooth Controller bug has-pr priority: low
**Describe the bug** If connected to another BLE device, scanning for extended advertisements occasionally does not work, in the sense that the host does not receive any advertisement reports from the device advertising extended advertisements. **To Reproduce** This requires 3 devices and be reproduced using the BT shell: First device (legacy advertiser) 1. Build and flash the BT shell and run the following commands: 2. `bt init` 3. `bt advertise on` Second device (extended advertiser) 1. Build and flash the BT shell and run the following commands: 2. `bt init` 3. `bt adv-create nconn-nscan ext-adv name` 4. `bt adv-start` Third device (scanner/initiator) 1. Build and flash the BT shell and run the following commands: 2. `bt init` 3. `bt scan on` 4. Verify that advertisements from both advertisers are visible 5. `bt scan off` 6. Connect to legacy advertiser 7. `bt scan on` 8. Verify that advertisements from the extended advertiser is visible Step 8 occasionally fails, and it can be verified that it does in fact advertise by scanning with the legacy advertiser device, or a 4th device. If the advertisements from the extended advertiser does not show, then they will continue to not showing even after disconnecting with the legacy advertiser. Step 8 fails roughly 30% of the time, but can fail 100% in a BabbleSIM test implying that it's a timing issue (as the issue can be remove in a BabbleSIM test by introducing a delay using k_sleep). **Expected behavior** Expected behavior is that extended advertisements from the second device will always reach the host. **Impact** Low as this is still experimental. **Logs and console output** N/A **Environment (please complete the following information):** - Toolchain: Zephyr SDK 0.12.4 - Commit SHA or Version used: 5719e545af4d70262654c7b1d385911eb052925f **Additional context** N/A
1.0
Occasionally unable to scan for extended advertisements when connected - **Describe the bug** If connected to another BLE device, scanning for extended advertisements occasionally does not work, in the sense that the host does not receive any advertisement reports from the device advertising extended advertisements. **To Reproduce** This requires 3 devices and be reproduced using the BT shell: First device (legacy advertiser) 1. Build and flash the BT shell and run the following commands: 2. `bt init` 3. `bt advertise on` Second device (extended advertiser) 1. Build and flash the BT shell and run the following commands: 2. `bt init` 3. `bt adv-create nconn-nscan ext-adv name` 4. `bt adv-start` Third device (scanner/initiator) 1. Build and flash the BT shell and run the following commands: 2. `bt init` 3. `bt scan on` 4. Verify that advertisements from both advertisers are visible 5. `bt scan off` 6. Connect to legacy advertiser 7. `bt scan on` 8. Verify that advertisements from the extended advertiser is visible Step 8 occasionally fails, and it can be verified that it does in fact advertise by scanning with the legacy advertiser device, or a 4th device. If the advertisements from the extended advertiser does not show, then they will continue to not showing even after disconnecting with the legacy advertiser. Step 8 fails roughly 30% of the time, but can fail 100% in a BabbleSIM test implying that it's a timing issue (as the issue can be remove in a BabbleSIM test by introducing a delay using k_sleep). **Expected behavior** Expected behavior is that extended advertisements from the second device will always reach the host. **Impact** Low as this is still experimental. **Logs and console output** N/A **Environment (please complete the following information):** - Toolchain: Zephyr SDK 0.12.4 - Commit SHA or Version used: 5719e545af4d70262654c7b1d385911eb052925f **Additional context** N/A
non_process
occasionally unable to scan for extended advertisements when connected describe the bug if connected to another ble device scanning for extended advertisements occasionally does not work in the sense that the host does not receive any advertisement reports from the device advertising extended advertisements to reproduce this requires devices and be reproduced using the bt shell first device legacy advertiser build and flash the bt shell and run the following commands bt init bt advertise on second device extended advertiser build and flash the bt shell and run the following commands bt init bt adv create nconn nscan ext adv name bt adv start third device scanner initiator build and flash the bt shell and run the following commands bt init bt scan on verify that advertisements from both advertisers are visible bt scan off connect to legacy advertiser bt scan on verify that advertisements from the extended advertiser is visible step occasionally fails and it can be verified that it does in fact advertise by scanning with the legacy advertiser device or a device if the advertisements from the extended advertiser does not show then they will continue to not showing even after disconnecting with the legacy advertiser step fails roughly of the time but can fail in a babblesim test implying that it s a timing issue as the issue can be remove in a babblesim test by introducing a delay using k sleep expected behavior expected behavior is that extended advertisements from the second device will always reach the host impact low as this is still experimental logs and console output n a environment please complete the following information toolchain zephyr sdk commit sha or version used additional context n a
0
7,495
10,583,349,192
IssuesEvent
2019-10-08 13:33:29
Altinn/altinn-studio
https://api.github.com/repos/Altinn/altinn-studio
opened
End user navigation between process tasks (and SBL)
analysis app-frontend process
## Description When we give the app developers more possible tasks in a process, including the ability to define what tasks are possible to move between, we need to show the end user using the app in altinn.no how to navigate between the tasks. ## In scope - To what degree do we need / want to show the user how far in a process they have gotten? - How do we enable navigating to the next / previous task? ## Out of scope This analysis should not define new possible tasks in a process - use tasks already identified at the start of the analysis as foundation. ## Constraints TBA ## Analysis TBD ## Conclusion TBD ## Tasks - [ ] Is this issue labeled with a correct area label? - [ ] QA has been done
1.0
End user navigation between process tasks (and SBL) - ## Description When we give the app developers more possible tasks in a process, including the ability to define what tasks are possible to move between, we need to show the end user using the app in altinn.no how to navigate between the tasks. ## In scope - To what degree do we need / want to show the user how far in a process they have gotten? - How do we enable navigating to the next / previous task? ## Out of scope This analysis should not define new possible tasks in a process - use tasks already identified at the start of the analysis as foundation. ## Constraints TBA ## Analysis TBD ## Conclusion TBD ## Tasks - [ ] Is this issue labeled with a correct area label? - [ ] QA has been done
process
end user navigation between process tasks and sbl description when we give the app developers more possible tasks in a process including the ability to define what tasks are possible to move between we need to show the end user using the app in altinn no how to navigate between the tasks in scope to what degree do we need want to show the user how far in a process they have gotten how do we enable navigating to the next previous task out of scope this analysis should not define new possible tasks in a process use tasks already identified at the start of the analysis as foundation constraints tba analysis tbd conclusion tbd tasks is this issue labeled with a correct area label qa has been done
1
7,903
11,089,519,713
IssuesEvent
2019-12-14 19:05:10
threefoldtech/jumpscaleX_builders
https://api.github.com/repos/threefoldtech/jumpscaleX_builders
closed
start lapis builder doesn't work
process_wontfix type_bug
## Steps - j.builders.web.lapis.build() - j.builders.web.lapis.install() - j.builders.web.lapis.start() ## issue start doesn't do anything , and doesn't star lapis
1.0
start lapis builder doesn't work - ## Steps - j.builders.web.lapis.build() - j.builders.web.lapis.install() - j.builders.web.lapis.start() ## issue start doesn't do anything , and doesn't star lapis
process
start lapis builder doesn t work steps j builders web lapis build j builders web lapis install j builders web lapis start issue start doesn t do anything and doesn t star lapis
1
2,422
5,201,775,195
IssuesEvent
2017-01-24 06:45:14
jlm2017/jlm-video-subtitles
https://api.github.com/repos/jlm2017/jlm-video-subtitles
closed
[subtitles] [eng] TAFTA : pour nous, c'est non !
Language: English Process: [6] Approved
# Video title TAFTA : pour nous, c'est non ! # URL https://www.youtube.com/watch?v=0XbJppR51-w # Youtube subtitle language Anglais # Duration 4:22 # URL subtitles https://www.youtube.com/timedtext_editor?tab=captions&lang=en&ref=player&action_mde_edit_form=1&ui=hd&bl=vmp&v=0XbJppR51-w
1.0
[subtitles] [eng] TAFTA : pour nous, c'est non ! - # Video title TAFTA : pour nous, c'est non ! # URL https://www.youtube.com/watch?v=0XbJppR51-w # Youtube subtitle language Anglais # Duration 4:22 # URL subtitles https://www.youtube.com/timedtext_editor?tab=captions&lang=en&ref=player&action_mde_edit_form=1&ui=hd&bl=vmp&v=0XbJppR51-w
process
tafta pour nous c est non video title tafta pour nous c est non url youtube subtitle language anglais duration url subtitles
1
19,571
25,891,911,486
IssuesEvent
2022-12-14 18:41:26
pytorch/pytorch
https://api.github.com/repos/pytorch/pytorch
closed
DISABLED test_success (__main__.ForkTest)
module: multiprocessing triaged module: flaky-tests skipped
Platforms: linux This test was disabled because it is failing in CI. See [recent examples](http://torch-ci.com/failure/test_success%2C%20ForkTest) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/6082340629). Over the past 3 hours, it has been determined flaky in 1 workflow(s) with 1 red and 3 green. cc @VitalyFedyunin
1.0
DISABLED test_success (__main__.ForkTest) - Platforms: linux This test was disabled because it is failing in CI. See [recent examples](http://torch-ci.com/failure/test_success%2C%20ForkTest) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/6082340629). Over the past 3 hours, it has been determined flaky in 1 workflow(s) with 1 red and 3 green. cc @VitalyFedyunin
process
disabled test success main forktest platforms linux this test was disabled because it is failing in ci see and the most recent trunk over the past hours it has been determined flaky in workflow s with red and green cc vitalyfedyunin
1
66,215
7,975,977,491
IssuesEvent
2018-07-17 11:06:28
mysociety/alaveteli
https://api.github.com/repos/mysociety/alaveteli
closed
Add Bilme Hakki to http://alaveteli.org/deployments/
improvement t:design
The Turkish deployment of Alaveteli: http://bilmehakki.org/ It was never officially launched, but it has got recent successful requests on it, so it is running live and seems to be working.
1.0
Add Bilme Hakki to http://alaveteli.org/deployments/ - The Turkish deployment of Alaveteli: http://bilmehakki.org/ It was never officially launched, but it has got recent successful requests on it, so it is running live and seems to be working.
non_process
add bilme hakki to the turkish deployment of alaveteli it was never officially launched but it has got recent successful requests on it so it is running live and seems to be working
0
10,741
13,535,811,095
IssuesEvent
2020-09-16 08:08:45
hashicorp/packer
https://api.github.com/repos/hashicorp/packer
closed
Variables inside vagrantfile_template of vagrant postprocessor not replaced
bug post-processor/vagrant
## Overview of the Issue Variables inside the file pointed by the vagrantfile_template are not replaced during box creation #### Reproduction Steps - Add a docker provider - Add a vagrant post processor - Create a vagrantfile template with a variable inside for example config.vm.box = {{.Name}} - Run the build - Extract the vagrantfile from the box and see that variables are still there. ### Packer version 1.6.2` ### Simplified Packer Buildfile { "builders": [ { "type": "docker", "image": "ubuntu:latest", "commit": "true", "pull": "false", "run_command": ["-d", "-i", "-t", "--entrypoint=/bin/bash", "--", "{{.Image}}"] } ], "post-processors": [ { "type": "vagrant", "keep_input_artifact": true, "vagrantfile_template": "Vagrantfile.template" } ] } ### Operating system and Environment details Ubuntu 20.04 ### Log Fragments and crash.log files Unavailable
1.0
Variables inside vagrantfile_template of vagrant postprocessor not replaced - ## Overview of the Issue Variables inside the file pointed by the vagrantfile_template are not replaced during box creation #### Reproduction Steps - Add a docker provider - Add a vagrant post processor - Create a vagrantfile template with a variable inside for example config.vm.box = {{.Name}} - Run the build - Extract the vagrantfile from the box and see that variables are still there. ### Packer version 1.6.2` ### Simplified Packer Buildfile { "builders": [ { "type": "docker", "image": "ubuntu:latest", "commit": "true", "pull": "false", "run_command": ["-d", "-i", "-t", "--entrypoint=/bin/bash", "--", "{{.Image}}"] } ], "post-processors": [ { "type": "vagrant", "keep_input_artifact": true, "vagrantfile_template": "Vagrantfile.template" } ] } ### Operating system and Environment details Ubuntu 20.04 ### Log Fragments and crash.log files Unavailable
process
variables inside vagrantfile template of vagrant postprocessor not replaced overview of the issue variables inside the file pointed by the vagrantfile template are not replaced during box creation reproduction steps add a docker provider add a vagrant post processor create a vagrantfile template with a variable inside for example config vm box name run the build extract the vagrantfile from the box and see that variables are still there packer version simplified packer buildfile builders type docker image ubuntu latest commit true pull false run command post processors type vagrant keep input artifact true vagrantfile template vagrantfile template operating system and environment details ubuntu log fragments and crash log files unavailable
1
7,053
10,211,248,399
IssuesEvent
2019-08-14 16:27:53
googleapis/google-cloud-cpp
https://api.github.com/repos/googleapis/google-cloud-cpp
opened
Cache Docker images for kokoro/docker builds.
type: process
Most of the Docker images build relatively fast (a few minutes), but the `Dockerfile.*-install` builds take a long time to build, and can be cached effectively. We should cache these images just like we cache the ones in `kokoro/readme/*` and `kokoro/install/*`.
1.0
Cache Docker images for kokoro/docker builds. - Most of the Docker images build relatively fast (a few minutes), but the `Dockerfile.*-install` builds take a long time to build, and can be cached effectively. We should cache these images just like we cache the ones in `kokoro/readme/*` and `kokoro/install/*`.
process
cache docker images for kokoro docker builds most of the docker images build relatively fast a few minutes but the dockerfile install builds take a long time to build and can be cached effectively we should cache these images just like we cache the ones in kokoro readme and kokoro install
1
12,766
15,145,878,245
IssuesEvent
2021-02-11 05:49:49
GoogleCloudPlatform/fda-mystudies
https://api.github.com/repos/GoogleCloudPlatform/fda-mystudies
closed
Participant Manager work flow is failing
Bug P3 Participant manager Process: Fixed
We are seeing below error, when PM work flow is running **Actual behavior** Please click on this link to access the logs https://github.com/boston-tech/develop-fda-mystudies/actions/runs/552879212 **Expected behavior** PM Workflow check should pass every time
1.0
Participant Manager work flow is failing - We are seeing below error, when PM work flow is running **Actual behavior** Please click on this link to access the logs https://github.com/boston-tech/develop-fda-mystudies/actions/runs/552879212 **Expected behavior** PM Workflow check should pass every time
process
participant manager work flow is failing we are seeing below error when pm work flow is running actual behavior please click on this link to access the logs expected behavior pm workflow check should pass every time
1
583,826
17,399,365,896
IssuesEvent
2021-08-02 17:20:08
ngageoint/hootenanny
https://api.github.com/repos/ngageoint/hootenanny
closed
GDAL branch regression test failures
Category: Core Priority: Medium Status: In Progress Type: Maintenance
~~network/unifying perty-1/2 - projection (think Ben was working on this)~~ ~~power-lines 5 - lower score~~ ~~poi/poly c (both) - lower score~~ ~~unifying/network city-edge - lower score~~ ~~unifying gnarly jerusalem - lower score~~
1.0
GDAL branch regression test failures - ~~network/unifying perty-1/2 - projection (think Ben was working on this)~~ ~~power-lines 5 - lower score~~ ~~poi/poly c (both) - lower score~~ ~~unifying/network city-edge - lower score~~ ~~unifying gnarly jerusalem - lower score~~
non_process
gdal branch regression test failures network unifying perty projection think ben was working on this power lines lower score poi poly c both lower score unifying network city edge lower score unifying gnarly jerusalem lower score
0
297,355
22,352,041,065
IssuesEvent
2022-06-15 12:54:05
kitodo/kitodo-production
https://api.github.com/repos/kitodo/kitodo-production
closed
3.0: Automatic Tasks and Scripts
3.x documentation
I have a problem understanding how automatic tasks are thought to work. My goal is to automatically run a (shell) script every time a task is finished or startet. I thought I could do it with automatic tasks but I can't figure out how to do it. When creating a workflow, for a certain task I can check the "automatic task" checkbox. I guess, by this, you can e.g. automate generation of derivatives if you also check "generate images". Is there also the possibility to assign a script (Kitodoscript or shell script) that should be run automatically by this task? On the process list I can manually select some processes and run a Kitodo script on them. But this is manual trigger and independent of the current task of a process.
1.0
3.0: Automatic Tasks and Scripts - I have a problem understanding how automatic tasks are thought to work. My goal is to automatically run a (shell) script every time a task is finished or startet. I thought I could do it with automatic tasks but I can't figure out how to do it. When creating a workflow, for a certain task I can check the "automatic task" checkbox. I guess, by this, you can e.g. automate generation of derivatives if you also check "generate images". Is there also the possibility to assign a script (Kitodoscript or shell script) that should be run automatically by this task? On the process list I can manually select some processes and run a Kitodo script on them. But this is manual trigger and independent of the current task of a process.
non_process
automatic tasks and scripts i have a problem understanding how automatic tasks are thought to work my goal is to automatically run a shell script every time a task is finished or startet i thought i could do it with automatic tasks but i can t figure out how to do it when creating a workflow for a certain task i can check the automatic task checkbox i guess by this you can e g automate generation of derivatives if you also check generate images is there also the possibility to assign a script kitodoscript or shell script that should be run automatically by this task on the process list i can manually select some processes and run a kitodo script on them but this is manual trigger and independent of the current task of a process
0
218,740
7,332,376,189
IssuesEvent
2018-03-05 16:09:55
Microsoft/vscode-cordova
https://api.github.com/repos/Microsoft/vscode-cordova
closed
Getting "No handler found for the command: 'cordova.build'" when Cordova project is in subfolder
copiedtobacklog enhancement priority-medium triaged
I have a project running Cordova in a subfolder, not in project root and I get the following error when trying to build Cordova project: `No handler found for the command: 'cordova.build'. An extension might be missing an activation event.` <img width="1680" alt="capture d ecran 2016-06-01 a 09 16 03" src="https://cloud.githubusercontent.com/assets/674667/15699934/7e066eba-27d9-11e6-80d6-a47325f9e435.png"> I think there should be some configuration where I can tell which is my cordova project.
1.0
Getting "No handler found for the command: 'cordova.build'" when Cordova project is in subfolder - I have a project running Cordova in a subfolder, not in project root and I get the following error when trying to build Cordova project: `No handler found for the command: 'cordova.build'. An extension might be missing an activation event.` <img width="1680" alt="capture d ecran 2016-06-01 a 09 16 03" src="https://cloud.githubusercontent.com/assets/674667/15699934/7e066eba-27d9-11e6-80d6-a47325f9e435.png"> I think there should be some configuration where I can tell which is my cordova project.
non_process
getting no handler found for the command cordova build when cordova project is in subfolder i have a project running cordova in a subfolder not in project root and i get the following error when trying to build cordova project no handler found for the command cordova build an extension might be missing an activation event img width alt capture d ecran a src i think there should be some configuration where i can tell which is my cordova project
0
19,743
14,518,879,528
IssuesEvent
2020-12-14 01:12:39
kbandla/dpkt
https://api.github.com/repos/kbandla/dpkt
opened
Review relative imports
critical usability
The current dpkt package seems oddly setup IMO. Issues I see/struggle with... 1) The __init__.py pulls in the universe, I like the simplicity of having an empty __init__.py that does nothiing 2) The dpkt.py file that in dpkt/dpkt/dpkt.py means there's a naming conflict when trying to import the dpkt package 3) The code is full of relative imports which means you can't just run a file/test with $ python <blah.py> Would be nice if @kbandla, @obormot and I could maybe meet up and discuss how to go forward here, this feels like a fairly big issue IMO but we'd need to talk/agree/team up to make the changes. Resources: - https://stackoverflow.com/questions/16981921/relative-imports-in-python-3
True
Review relative imports - The current dpkt package seems oddly setup IMO. Issues I see/struggle with... 1) The __init__.py pulls in the universe, I like the simplicity of having an empty __init__.py that does nothiing 2) The dpkt.py file that in dpkt/dpkt/dpkt.py means there's a naming conflict when trying to import the dpkt package 3) The code is full of relative imports which means you can't just run a file/test with $ python <blah.py> Would be nice if @kbandla, @obormot and I could maybe meet up and discuss how to go forward here, this feels like a fairly big issue IMO but we'd need to talk/agree/team up to make the changes. Resources: - https://stackoverflow.com/questions/16981921/relative-imports-in-python-3
non_process
review relative imports the current dpkt package seems oddly setup imo issues i see struggle with the init py pulls in the universe i like the simplicity of having an empty init py that does nothiing the dpkt py file that in dpkt dpkt dpkt py means there s a naming conflict when trying to import the dpkt package the code is full of relative imports which means you can t just run a file test with python would be nice if kbandla obormot and i could maybe meet up and discuss how to go forward here this feels like a fairly big issue imo but we d need to talk agree team up to make the changes resources
0
230,929
18,725,166,846
IssuesEvent
2021-11-03 15:36:31
cockroachdb/cockroach
https://api.github.com/repos/cockroachdb/cockroach
closed
roachtest: sqlsmith/setup=seed/setting=no-mutations failed
C-test-failure O-robot O-roachtest release-blocker branch-release-21.1 T-sql-queries
roachtest.sqlsmith/setup=seed/setting=no-mutations [failed](https://teamcity.cockroachdb.com/viewLog.html?buildId=3674565&tab=buildLog) with [artifacts](https://teamcity.cockroachdb.com/viewLog.html?buildId=3674565&tab=artifacts#/sqlsmith/setup=seed/setting=no-mutations) on release-21.1 @ [25cc6e0e794274178f6e37691ba2165e0d999c0f](https://github.com/cockroachdb/cockroach/commits/25cc6e0e794274178f6e37691ba2165e0d999c0f): ``` The test failed on branch=release-21.1, cloud=gce: test artifacts and logs in: /home/agent/work/.go/src/github.com/cockroachdb/cockroach/artifacts/sqlsmith/setup=seed/setting=no-mutations/run_1 sqlsmith.go:211,sqlsmith.go:236,test_runner.go:733: error: pq: inbox communication error: rpc error: code = Canceled desc = context canceled stmt: SELECT tab_6561._interval AS col_15588, tab_6560._bytes AS col_15589, set_masklen((WITH with_2730 (col_15590) AS (SELECT * FROM (VALUES (B'11110001100010000100100110100110')) AS tab_6563 (col_15590)), with_2731 (col_15591) AS (SELECT * FROM (VALUES (CASE WHEN false THEN B'1010000000111101000111000011' ELSE B'0000110001101011100010111010' END), (NULL), (B'0100010010010101000100111000'), (B'0001011111100100111111111010'), (NULL)) AS tab_6564 (col_15591)), with_2732 (col_15593) AS (SELECT * FROM (VALUES ((SELECT '0101000000AFF6CD361B05F0C15CF2B2AA8A5B0242':::GEOMETRY AS col_15592 LIMIT 1:::INT8)), ('0103000000010000000D000000B43DDE32E82B01C2CE33B8EA999FE7C19EE000004F7402C23E4925501AD0FCC122C273C4CE4AF1C133969671A0A0F1C1408A175EF010D3411AC86B52014502C27CD0AE2A124AF0412AE87FCDFC6EFDC174C64866DCAFE9415833FA27C370F6C1AC3DBCF8D03DFD4198DE1C933AE8D1414CABE53E1E68FD41A23D64ED88D2F041CC86C67D85C4EE415AAE8AB2C968F641E14FA578041CF0C11C8B84FA6934FD41BDEDA4C29B64F1C1D06F99A5A96CC54162F025F8ADCDF0C1B0065A391B19C1C1B43DDE32E82B01C2CE33B8EA999FE7C1':::GEOMETRY)) AS tab_6565 (col_15593)) SELECT tab_6560._inet AS col_15594 FROM with_2732 AS cte_ref_805 WHERE false ORDER BY cte_ref_805.col_15593 DESC LIMIT 1:::INT8)::INET, (-3811214165918047353):::INT8::INT8)::INET AS col_15595, '2016-02-29 22:56:32.000069':::TIMESTAMP AS col_15596 FROM defaultdb.public.seed@[0] AS tab_6559, defaultdb.public.seed@[0] AS tab_6560 JOIN defaultdb.public.seed@seed__int8__float8__date_idx AS tab_6561 LEFT JOIN defaultdb.public.seed@seed__int8__float8__date_idx AS tab_6562 ON experimental_strftime('2017-09-14 19:27:03.00061+00:00':::TIMESTAMPTZ::TIMESTAMPTZ, gateway_region()::STRING::STRING)::STRING ~* ('BOX(-0.22395283397517773 -0.9774610515272433,0.401883449750707 0.1163625715668)':::BOX2D::BOX2D || e')\nkq$b':::STRING::STRING)::STRING ON (tab_6560._int4) = (tab_6562._int4) WHERE '':::STRING SIMILAR TO tab_6562._string ORDER BY tab_6561.tableoid DESC, tab_6562._timestamptz DESC, tab_6560._int4 ASC, tab_6559._enum DESC, tab_6560._float8 ASC LIMIT 7:::INT8; ``` <details><summary>Reproduce</summary> <p> <p>To reproduce, try: ```bash # From https://go.crdb.dev/p/roachstress, perhaps edited lightly. caffeinate ./roachstress.sh sqlsmith/setup=seed/setting=no-mutations ``` </p> </p> </details> <details><summary>Same failure on other branches</summary> <p> - #71918 roachtest: sqlsmith/setup=seed/setting=no-mutations failed [C-test-failure O-roachtest O-robot T-sql-queries branch-master release-blocker] </p> </details> /cc @cockroachdb/sql-queries <sub> [This test on roachdash](https://roachdash.crdb.dev/?filter=status:open%20t:.*sqlsmith/setup=seed/setting=no-mutations.*&sort=title+created&display=lastcommented+project) | [Improve this report!](https://github.com/cockroachdb/cockroach/tree/master/pkg/cmd/internal/issues) </sub>
2.0
roachtest: sqlsmith/setup=seed/setting=no-mutations failed - roachtest.sqlsmith/setup=seed/setting=no-mutations [failed](https://teamcity.cockroachdb.com/viewLog.html?buildId=3674565&tab=buildLog) with [artifacts](https://teamcity.cockroachdb.com/viewLog.html?buildId=3674565&tab=artifacts#/sqlsmith/setup=seed/setting=no-mutations) on release-21.1 @ [25cc6e0e794274178f6e37691ba2165e0d999c0f](https://github.com/cockroachdb/cockroach/commits/25cc6e0e794274178f6e37691ba2165e0d999c0f): ``` The test failed on branch=release-21.1, cloud=gce: test artifacts and logs in: /home/agent/work/.go/src/github.com/cockroachdb/cockroach/artifacts/sqlsmith/setup=seed/setting=no-mutations/run_1 sqlsmith.go:211,sqlsmith.go:236,test_runner.go:733: error: pq: inbox communication error: rpc error: code = Canceled desc = context canceled stmt: SELECT tab_6561._interval AS col_15588, tab_6560._bytes AS col_15589, set_masklen((WITH with_2730 (col_15590) AS (SELECT * FROM (VALUES (B'11110001100010000100100110100110')) AS tab_6563 (col_15590)), with_2731 (col_15591) AS (SELECT * FROM (VALUES (CASE WHEN false THEN B'1010000000111101000111000011' ELSE B'0000110001101011100010111010' END), (NULL), (B'0100010010010101000100111000'), (B'0001011111100100111111111010'), (NULL)) AS tab_6564 (col_15591)), with_2732 (col_15593) AS (SELECT * FROM (VALUES ((SELECT '0101000000AFF6CD361B05F0C15CF2B2AA8A5B0242':::GEOMETRY AS col_15592 LIMIT 1:::INT8)), ('0103000000010000000D000000B43DDE32E82B01C2CE33B8EA999FE7C19EE000004F7402C23E4925501AD0FCC122C273C4CE4AF1C133969671A0A0F1C1408A175EF010D3411AC86B52014502C27CD0AE2A124AF0412AE87FCDFC6EFDC174C64866DCAFE9415833FA27C370F6C1AC3DBCF8D03DFD4198DE1C933AE8D1414CABE53E1E68FD41A23D64ED88D2F041CC86C67D85C4EE415AAE8AB2C968F641E14FA578041CF0C11C8B84FA6934FD41BDEDA4C29B64F1C1D06F99A5A96CC54162F025F8ADCDF0C1B0065A391B19C1C1B43DDE32E82B01C2CE33B8EA999FE7C1':::GEOMETRY)) AS tab_6565 (col_15593)) SELECT tab_6560._inet AS col_15594 FROM with_2732 AS cte_ref_805 WHERE false ORDER BY cte_ref_805.col_15593 DESC LIMIT 1:::INT8)::INET, (-3811214165918047353):::INT8::INT8)::INET AS col_15595, '2016-02-29 22:56:32.000069':::TIMESTAMP AS col_15596 FROM defaultdb.public.seed@[0] AS tab_6559, defaultdb.public.seed@[0] AS tab_6560 JOIN defaultdb.public.seed@seed__int8__float8__date_idx AS tab_6561 LEFT JOIN defaultdb.public.seed@seed__int8__float8__date_idx AS tab_6562 ON experimental_strftime('2017-09-14 19:27:03.00061+00:00':::TIMESTAMPTZ::TIMESTAMPTZ, gateway_region()::STRING::STRING)::STRING ~* ('BOX(-0.22395283397517773 -0.9774610515272433,0.401883449750707 0.1163625715668)':::BOX2D::BOX2D || e')\nkq$b':::STRING::STRING)::STRING ON (tab_6560._int4) = (tab_6562._int4) WHERE '':::STRING SIMILAR TO tab_6562._string ORDER BY tab_6561.tableoid DESC, tab_6562._timestamptz DESC, tab_6560._int4 ASC, tab_6559._enum DESC, tab_6560._float8 ASC LIMIT 7:::INT8; ``` <details><summary>Reproduce</summary> <p> <p>To reproduce, try: ```bash # From https://go.crdb.dev/p/roachstress, perhaps edited lightly. caffeinate ./roachstress.sh sqlsmith/setup=seed/setting=no-mutations ``` </p> </p> </details> <details><summary>Same failure on other branches</summary> <p> - #71918 roachtest: sqlsmith/setup=seed/setting=no-mutations failed [C-test-failure O-roachtest O-robot T-sql-queries branch-master release-blocker] </p> </details> /cc @cockroachdb/sql-queries <sub> [This test on roachdash](https://roachdash.crdb.dev/?filter=status:open%20t:.*sqlsmith/setup=seed/setting=no-mutations.*&sort=title+created&display=lastcommented+project) | [Improve this report!](https://github.com/cockroachdb/cockroach/tree/master/pkg/cmd/internal/issues) </sub>
non_process
roachtest sqlsmith setup seed setting no mutations failed roachtest sqlsmith setup seed setting no mutations with on release the test failed on branch release cloud gce test artifacts and logs in home agent work go src github com cockroachdb cockroach artifacts sqlsmith setup seed setting no mutations run sqlsmith go sqlsmith go test runner go error pq inbox communication error rpc error code canceled desc context canceled stmt select tab interval as col tab bytes as col set masklen with with col as select from values b as tab col with col as select from values case when false then b else b end null b b null as tab col with col as select from values select geometry as col limit geometry as tab col select tab inet as col from with as cte ref where false order by cte ref col desc limit inet inet as col timestamp as col from defaultdb public seed as tab defaultdb public seed as tab join defaultdb public seed seed date idx as tab left join defaultdb public seed seed date idx as tab on experimental strftime timestamptz timestamptz gateway region string string string box e nkq b string string string on tab tab where string similar to tab string order by tab tableoid desc tab timestamptz desc tab asc tab enum desc tab asc limit reproduce to reproduce try bash from perhaps edited lightly caffeinate roachstress sh sqlsmith setup seed setting no mutations same failure on other branches roachtest sqlsmith setup seed setting no mutations failed cc cockroachdb sql queries
0
284,341
8,737,385,380
IssuesEvent
2018-12-11 22:24:19
aowen87/TicketTester
https://api.github.com/repos/aowen87/TicketTester
closed
amr: need some way to access block and level info
enhancement priority reviewed
There is a growing need to overcome the blocks vs levels limitation for AMR meshes. Recall: blocks, levels, and domains are all distinct concepts in this case. Even if we don't fix the subsetting issues completely, but just provide an expression to display the blocks as a scalar var for a pseudocolor plot, that would help users of block-based AMR codes debug their problems. -----------------------REDMINE MIGRATION----------------------- This ticket was migrated from Redmine. As such, not all information was able to be captured in the transition. Below is a complete record of the original redmine ticket. Ticket number: 2513 Status: Resolved Project: VisIt Tracker: Feature Priority: High Subject: amr: need some way to access block and level info Assigned to: Mark Miller Category: Target version: 2.10.3 Author: Cyrus Harrison Start: 01/22/2016 Due date: % Done: 0 Estimated time: Created: 01/22/2016 02:04 pm Updated: 12/19/2016 07:29 pm Likelihood: Severity: Found in version: Impact: 3 - Medium Expected Use: 4 - Common OS: All Support Group: Any Description: There is a growing need to overcome the blocks vs levels limitation for AMR meshes. Recall: blocks, levels, and domains are all distinct concepts in this case. Even if we don't fix the subsetting issues completely, but just provide an expression to display the blocks as a scalar var for a pseudocolor plot, that would help users of block-based AMR codes debug their problems. Comments: We should talk to Mike Wickett to get more information about this. I have added logic to the Silo plugin to, under certain conditions, add the block decomposition as a variable. This will happen whenever the relevant data is available and there is a single mesh or multimesh in "/". Users can use the somewhat awkward approach of using the Threshold operator and threshold based on this variable to obtain selections based on the block decomposition. And, it can be married with level and domain selections with the subset controls window. Mark what is the name of the var that gets created in this case? Cyrus Harrison wrote:Mark what is the name of the var that gets created in this case?It is a catentation of meshName + "_block_nums"
1.0
amr: need some way to access block and level info - There is a growing need to overcome the blocks vs levels limitation for AMR meshes. Recall: blocks, levels, and domains are all distinct concepts in this case. Even if we don't fix the subsetting issues completely, but just provide an expression to display the blocks as a scalar var for a pseudocolor plot, that would help users of block-based AMR codes debug their problems. -----------------------REDMINE MIGRATION----------------------- This ticket was migrated from Redmine. As such, not all information was able to be captured in the transition. Below is a complete record of the original redmine ticket. Ticket number: 2513 Status: Resolved Project: VisIt Tracker: Feature Priority: High Subject: amr: need some way to access block and level info Assigned to: Mark Miller Category: Target version: 2.10.3 Author: Cyrus Harrison Start: 01/22/2016 Due date: % Done: 0 Estimated time: Created: 01/22/2016 02:04 pm Updated: 12/19/2016 07:29 pm Likelihood: Severity: Found in version: Impact: 3 - Medium Expected Use: 4 - Common OS: All Support Group: Any Description: There is a growing need to overcome the blocks vs levels limitation for AMR meshes. Recall: blocks, levels, and domains are all distinct concepts in this case. Even if we don't fix the subsetting issues completely, but just provide an expression to display the blocks as a scalar var for a pseudocolor plot, that would help users of block-based AMR codes debug their problems. Comments: We should talk to Mike Wickett to get more information about this. I have added logic to the Silo plugin to, under certain conditions, add the block decomposition as a variable. This will happen whenever the relevant data is available and there is a single mesh or multimesh in "/". Users can use the somewhat awkward approach of using the Threshold operator and threshold based on this variable to obtain selections based on the block decomposition. And, it can be married with level and domain selections with the subset controls window. Mark what is the name of the var that gets created in this case? Cyrus Harrison wrote:Mark what is the name of the var that gets created in this case?It is a catentation of meshName + "_block_nums"
non_process
amr need some way to access block and level info there is a growing need to overcome the blocks vs levels limitation for amr meshes recall blocks levels and domains are all distinct concepts in this case even if we don t fix the subsetting issues completely but just provide an expression to display the blocks as a scalar var for a pseudocolor plot that would help users of block based amr codes debug their problems redmine migration this ticket was migrated from redmine as such not all information was able to be captured in the transition below is a complete record of the original redmine ticket ticket number status resolved project visit tracker feature priority high subject amr need some way to access block and level info assigned to mark miller category target version author cyrus harrison start due date done estimated time created pm updated pm likelihood severity found in version impact medium expected use common os all support group any description there is a growing need to overcome the blocks vs levels limitation for amr meshes recall blocks levels and domains are all distinct concepts in this case even if we don t fix the subsetting issues completely but just provide an expression to display the blocks as a scalar var for a pseudocolor plot that would help users of block based amr codes debug their problems comments we should talk to mike wickett to get more information about this i have added logic to the silo plugin to under certain conditions add the block decomposition as a variable this will happen whenever the relevant data is available and there is a single mesh or multimesh in users can use the somewhat awkward approach of using the threshold operator and threshold based on this variable to obtain selections based on the block decomposition and it can be married with level and domain selections with the subset controls window mark what is the name of the var that gets created in this case cyrus harrison wrote mark what is the name of the var that gets created in this case it is a catentation of meshname block nums
0
22,626
31,849,990,367
IssuesEvent
2023-09-15 00:14:46
easysoft/zentaopms
https://api.github.com/repos/easysoft/zentaopms
closed
禅道18.7版本产品-研发需求列表数据显示及样式问题
bug processing
![image](https://github.com/easysoft/zentaopms/assets/19635623/c6c716a3-6768-4613-8f15-f07bea94b1c8) 问题一:升级到18.7 [创建者]【创建日期】【最后修改日期】列表字段数据不显示,18.6版本都是正常的 问题二:升级到18.7后列表研发需求名称内容无法正常显示,18.6版本都是正常的,【执行】【任务】列表同样的问题 PS:最近几个版本升级后都有基础功能之前正常的,升级后出现低级问题。
1.0
禅道18.7版本产品-研发需求列表数据显示及样式问题 - ![image](https://github.com/easysoft/zentaopms/assets/19635623/c6c716a3-6768-4613-8f15-f07bea94b1c8) 问题一:升级到18.7 [创建者]【创建日期】【最后修改日期】列表字段数据不显示,18.6版本都是正常的 问题二:升级到18.7后列表研发需求名称内容无法正常显示,18.6版本都是正常的,【执行】【任务】列表同样的问题 PS:最近几个版本升级后都有基础功能之前正常的,升级后出现低级问题。
process
研发需求列表数据显示及样式问题 问题一: 【创建日期】【最后修改日期】列表字段数据不显示, 问题二: , ,【执行】【任务】列表同样的问题 ps:最近几个版本升级后都有基础功能之前正常的,升级后出现低级问题。
1
4,553
7,388,020,391
IssuesEvent
2018-03-16 00:02:36
MicrosoftDocs/azure-docs
https://api.github.com/repos/MicrosoftDocs/azure-docs
closed
Maximum number of ADLA accounts is per region
cxp data-lake-analytics doc-enhancement in-process triaged
Please change to "Maximum number of ADLA accounts __per region__ per subscription: 5" --- #### Document Details ⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.* * ID: 3b6da17d-60c8-8992-d959-0c794a08c19b * Version Independent ID: 785930e5-6074-2756-c294-a42e9de36e9f * Content: [Azure Data Lake Analytics Quota Limits | Microsoft Docs](https://docs.microsoft.com/en-us/azure/data-lake-analytics/data-lake-analytics-quota-limits) * Content Source: [articles/data-lake-analytics/data-lake-analytics-quota-limits.md](https://github.com/Microsoft/azure-docs/blob/master/articles/data-lake-analytics/data-lake-analytics-quota-limits.md) * Service: **data-lake-analytics** * GitHub Login: @omidm1 * Microsoft Alias: **omidm**
1.0
Maximum number of ADLA accounts is per region - Please change to "Maximum number of ADLA accounts __per region__ per subscription: 5" --- #### Document Details ⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.* * ID: 3b6da17d-60c8-8992-d959-0c794a08c19b * Version Independent ID: 785930e5-6074-2756-c294-a42e9de36e9f * Content: [Azure Data Lake Analytics Quota Limits | Microsoft Docs](https://docs.microsoft.com/en-us/azure/data-lake-analytics/data-lake-analytics-quota-limits) * Content Source: [articles/data-lake-analytics/data-lake-analytics-quota-limits.md](https://github.com/Microsoft/azure-docs/blob/master/articles/data-lake-analytics/data-lake-analytics-quota-limits.md) * Service: **data-lake-analytics** * GitHub Login: @omidm1 * Microsoft Alias: **omidm**
process
maximum number of adla accounts is per region please change to maximum number of adla accounts per region per subscription document details ⚠ do not edit this section it is required for docs microsoft com ➟ github issue linking id version independent id content content source service data lake analytics github login microsoft alias omidm
1
263,985
28,084,078,315
IssuesEvent
2023-03-30 08:36:58
RG4421/grafana
https://api.github.com/repos/RG4421/grafana
opened
CVE-2023-26118 (Medium) detected in angular-1.8.2.tgz
Mend: dependency security vulnerability
## CVE-2023-26118 - Medium Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Library - <b>angular-1.8.2.tgz</b></p></summary> <p>HTML enhanced for web apps</p> <p>Library home page: <a href="https://registry.npmjs.org/angular/-/angular-1.8.2.tgz">https://registry.npmjs.org/angular/-/angular-1.8.2.tgz</a></p> <p>Path to dependency file: /package.json</p> <p>Path to vulnerable library: /node_modules/angular</p> <p> Dependency Hierarchy: - :x: **angular-1.8.2.tgz** (Vulnerable Library) <p>Found in HEAD commit: <a href="https://github.com/RG4421/grafana/commit/ec817a5e348ac0cae2aa8950a6cd386b9a378f92">ec817a5e348ac0cae2aa8950a6cd386b9a378f92</a></p> <p>Found in base branch: <b>main</b></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png' width=19 height=20> Vulnerability Details</summary> <p> All versions of the package angular are vulnerable to Regular Expression Denial of Service (ReDoS) via the <input type="url"> element due to the usage of an insecure regular expression in the input[url] functionality. Exploiting this vulnerability is possible by a large carefully-crafted input, which can result in catastrophic backtracking. <p>Publish Date: 2023-03-30 <p>URL: <a href=https://www.mend.io/vulnerability-database/CVE-2023-26118>CVE-2023-26118</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 3 Score Details (<b>5.5</b>)</summary> <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> </details> <p></p>
True
CVE-2023-26118 (Medium) detected in angular-1.8.2.tgz - ## CVE-2023-26118 - Medium Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Library - <b>angular-1.8.2.tgz</b></p></summary> <p>HTML enhanced for web apps</p> <p>Library home page: <a href="https://registry.npmjs.org/angular/-/angular-1.8.2.tgz">https://registry.npmjs.org/angular/-/angular-1.8.2.tgz</a></p> <p>Path to dependency file: /package.json</p> <p>Path to vulnerable library: /node_modules/angular</p> <p> Dependency Hierarchy: - :x: **angular-1.8.2.tgz** (Vulnerable Library) <p>Found in HEAD commit: <a href="https://github.com/RG4421/grafana/commit/ec817a5e348ac0cae2aa8950a6cd386b9a378f92">ec817a5e348ac0cae2aa8950a6cd386b9a378f92</a></p> <p>Found in base branch: <b>main</b></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png' width=19 height=20> Vulnerability Details</summary> <p> All versions of the package angular are vulnerable to Regular Expression Denial of Service (ReDoS) via the <input type="url"> element due to the usage of an insecure regular expression in the input[url] functionality. Exploiting this vulnerability is possible by a large carefully-crafted input, which can result in catastrophic backtracking. <p>Publish Date: 2023-03-30 <p>URL: <a href=https://www.mend.io/vulnerability-database/CVE-2023-26118>CVE-2023-26118</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 3 Score Details (<b>5.5</b>)</summary> <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> </details> <p></p>
non_process
cve medium detected in angular tgz cve medium severity vulnerability vulnerable library angular tgz html enhanced for web apps library home page a href path to dependency file package json path to vulnerable library node modules angular dependency hierarchy x angular tgz vulnerable library found in head commit a href found in base branch main vulnerability details all versions of the package angular are vulnerable to regular expression denial of service redos via the element due to the usage of an insecure regular expression in the input functionality exploiting this vulnerability is possible by a large carefully crafted input which can result in catastrophic backtracking publish date url a href cvss score details base score metrics exploitability metrics attack vector local attack complexity low privileges required none user interaction required scope unchanged impact metrics confidentiality impact none integrity impact none availability impact high for more information on scores click a href
0
10,587
27,119,785,483
IssuesEvent
2023-02-15 21:44:49
Azure/azure-sdk
https://api.github.com/repos/Azure/azure-sdk
closed
Board Review: Azure Maps SDK Sing Off
architecture board-review
Thank you for submitting this review request. Thorough review of your client library ensures that your APIs are consistent with the guidelines and the consumers of your client library have a consistently good experience when using Azure. **The Architecture Board reviews [Track 2 libraries](https://azure.github.io/azure-sdk/general_introduction.html) only.** If your library does not meet this requirement, please reach out to [Architecture Board](adparch@microsoft.com) before creating the issue. Please reference our [review process guidelines](https://azure.github.io/azure-sdk/policies_reviewprocess.html) to understand what is being asked for in the issue template. To ensure consistency, all Tier-1 languages (C#, TypeScript, Java, Python) will generally be reviewed together. In expansive libraries, we will pair dynamic languages (Python, TypeScript) together, and strongly typed languages (C#, Java) together in separate meetings. For Tier-2 languages (C, C++, Go, Android, iOS), the review will be on an as-needed basis. **Before submitting, ensure you adjust the title of the issue appropriately.** **Note that the required material must be included before a meeting can be scheduled.** ## Contacts and Timeline * Responsible service team: Azure Maps * Main contacts: charlie.chen@ * Expected code complete date: July/2022 * Expected release date: July/2022 ## About the Service * Link to documentation introducing/describing the service: https://docs.microsoft.com/en-us/azure/azure-maps/ * Link to the service REST APIs: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/maps/data-plane * Link to GitHub issue for previous review sessions, if applicable: #4186 ## About the client library * Name of the client library: Azure Maps SDK - Search (Java, Python), Route (Java), Render (Java) modules. * Languages for this review: Java, Python ## Artifacts required (per language) Please read through “API Review” section [here](https://azure.github.io/azure-sdk/policies_reviewprocess.html) to understand how these artifacts are generated. **It is critical that these artifacts are present and are in the right format. If not, the language architects cannot review them with the SDK Team’s API review tool.** ### Java Search - https://apiview.dev/Assemblies/Review/7126eaeacfe3458da0692fa889d49b40 Route - https://apiview.dev/Assemblies/Review/251e3859259341b29cd7913cbfcb4a29 Render - https://apiview.dev/Assemblies/Review/c37782e6bdd94f71849bae52e7150b92 Quick start examples: https://github.com/daniel-rocha/azure-sdk-for-java/blob/maps/onboarding/search-route-render/sdk/maps/azure-maps-search/src/samples/java/com/azure/maps/search/samples/BuilderSamples.java ### Python Search - https://apiview.dev/Assemblies/Review/0ab748be5297432eaf27d512e2d1b998 Quick start examples: https://github.com/alextts627/azure-sdk-for-python/blob/maps/onboarding/search/sdk/maps/azure-maps-search/samples/search.py For all other languages, send a request to the Architecture Board to discuss the best format on individual basis. ## Thank you!
1.0
Board Review: Azure Maps SDK Sing Off - Thank you for submitting this review request. Thorough review of your client library ensures that your APIs are consistent with the guidelines and the consumers of your client library have a consistently good experience when using Azure. **The Architecture Board reviews [Track 2 libraries](https://azure.github.io/azure-sdk/general_introduction.html) only.** If your library does not meet this requirement, please reach out to [Architecture Board](adparch@microsoft.com) before creating the issue. Please reference our [review process guidelines](https://azure.github.io/azure-sdk/policies_reviewprocess.html) to understand what is being asked for in the issue template. To ensure consistency, all Tier-1 languages (C#, TypeScript, Java, Python) will generally be reviewed together. In expansive libraries, we will pair dynamic languages (Python, TypeScript) together, and strongly typed languages (C#, Java) together in separate meetings. For Tier-2 languages (C, C++, Go, Android, iOS), the review will be on an as-needed basis. **Before submitting, ensure you adjust the title of the issue appropriately.** **Note that the required material must be included before a meeting can be scheduled.** ## Contacts and Timeline * Responsible service team: Azure Maps * Main contacts: charlie.chen@ * Expected code complete date: July/2022 * Expected release date: July/2022 ## About the Service * Link to documentation introducing/describing the service: https://docs.microsoft.com/en-us/azure/azure-maps/ * Link to the service REST APIs: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/maps/data-plane * Link to GitHub issue for previous review sessions, if applicable: #4186 ## About the client library * Name of the client library: Azure Maps SDK - Search (Java, Python), Route (Java), Render (Java) modules. * Languages for this review: Java, Python ## Artifacts required (per language) Please read through “API Review” section [here](https://azure.github.io/azure-sdk/policies_reviewprocess.html) to understand how these artifacts are generated. **It is critical that these artifacts are present and are in the right format. If not, the language architects cannot review them with the SDK Team’s API review tool.** ### Java Search - https://apiview.dev/Assemblies/Review/7126eaeacfe3458da0692fa889d49b40 Route - https://apiview.dev/Assemblies/Review/251e3859259341b29cd7913cbfcb4a29 Render - https://apiview.dev/Assemblies/Review/c37782e6bdd94f71849bae52e7150b92 Quick start examples: https://github.com/daniel-rocha/azure-sdk-for-java/blob/maps/onboarding/search-route-render/sdk/maps/azure-maps-search/src/samples/java/com/azure/maps/search/samples/BuilderSamples.java ### Python Search - https://apiview.dev/Assemblies/Review/0ab748be5297432eaf27d512e2d1b998 Quick start examples: https://github.com/alextts627/azure-sdk-for-python/blob/maps/onboarding/search/sdk/maps/azure-maps-search/samples/search.py For all other languages, send a request to the Architecture Board to discuss the best format on individual basis. ## Thank you!
non_process
board review azure maps sdk sing off thank you for submitting this review request thorough review of your client library ensures that your apis are consistent with the guidelines and the consumers of your client library have a consistently good experience when using azure the architecture board reviews only if your library does not meet this requirement please reach out to adparch microsoft com before creating the issue please reference our to understand what is being asked for in the issue template to ensure consistency all tier languages c typescript java python will generally be reviewed together in expansive libraries we will pair dynamic languages python typescript together and strongly typed languages c java together in separate meetings for tier languages c c go android ios the review will be on an as needed basis before submitting ensure you adjust the title of the issue appropriately note that the required material must be included before a meeting can be scheduled contacts and timeline responsible service team azure maps main contacts charlie chen expected code complete date july expected release date july about the service link to documentation introducing describing the service link to the service rest apis link to github issue for previous review sessions if applicable about the client library name of the client library azure maps sdk search java python route java render java modules languages for this review java python artifacts required per language please read through “api review” section to understand how these artifacts are generated it is critical that these artifacts are present and are in the right format if not the language architects cannot review them with the sdk team’s api review tool java search route render quick start examples python search quick start examples for all other languages send a request to the architecture board to discuss the best format on individual basis thank you
0
320,894
9,790,796,284
IssuesEvent
2019-06-10 13:38:47
webcompat/web-bugs
https://api.github.com/repos/webcompat/web-bugs
closed
geocar.sdf1.org - can't scroll to bottom of content
browser-firefox browser-firefox-mobile engine-gecko priority-normal severity-critical status-first-contact
<!-- @browser: Firefox Mobile 64.0 --> <!-- @ua_header: Mozilla/5.0 (Android 8.1.0; Mobile; rv:64.0) Gecko/64.0 Firefox/64.0 --> <!-- @reported_with: mobile-reporter --> **URL**: http://geocar.sdf1.org/numbers.html **Browser / Version**: Firefox Mobile 64.0 **Operating System**: Android 8.1.0 **Tested Another Browser**: No **Problem type**: Site is not usable **Description**: Cannot scroll to the bottom of the content **Steps to Reproduce**: Scroll down <details> <summary>Browser Configuration</summary> <ul> <li>None</li> </ul> </details> _From [webcompat.com](https://webcompat.com/) with ❤️_
1.0
geocar.sdf1.org - can't scroll to bottom of content - <!-- @browser: Firefox Mobile 64.0 --> <!-- @ua_header: Mozilla/5.0 (Android 8.1.0; Mobile; rv:64.0) Gecko/64.0 Firefox/64.0 --> <!-- @reported_with: mobile-reporter --> **URL**: http://geocar.sdf1.org/numbers.html **Browser / Version**: Firefox Mobile 64.0 **Operating System**: Android 8.1.0 **Tested Another Browser**: No **Problem type**: Site is not usable **Description**: Cannot scroll to the bottom of the content **Steps to Reproduce**: Scroll down <details> <summary>Browser Configuration</summary> <ul> <li>None</li> </ul> </details> _From [webcompat.com](https://webcompat.com/) with ❤️_
non_process
geocar org can t scroll to bottom of content url browser version firefox mobile operating system android tested another browser no problem type site is not usable description cannot scroll to the bottom of the content steps to reproduce scroll down browser configuration none from with ❤️
0
15,512
19,703,266,807
IssuesEvent
2022-01-12 18:52:19
googleapis/java-dataproc-metastore
https://api.github.com/repos/googleapis/java-dataproc-metastore
opened
Your .repo-metadata.json file has a problem 🤒
type: process repo-metadata: lint
You have a problem with your .repo-metadata.json file: Result of scan 📈: * release_level must be equal to one of the allowed values in .repo-metadata.json * api_shortname 'dataproc-metastore' invalid in .repo-metadata.json ☝️ Once you correct these problems, you can close this issue. Reach out to **go/github-automation** if you have any questions.
1.0
Your .repo-metadata.json file has a problem 🤒 - You have a problem with your .repo-metadata.json file: Result of scan 📈: * release_level must be equal to one of the allowed values in .repo-metadata.json * api_shortname 'dataproc-metastore' invalid in .repo-metadata.json ☝️ Once you correct these problems, you can close this issue. Reach out to **go/github-automation** if you have any questions.
process
your repo metadata json file has a problem 🤒 you have a problem with your repo metadata json file result of scan 📈 release level must be equal to one of the allowed values in repo metadata json api shortname dataproc metastore invalid in repo metadata json ☝️ once you correct these problems you can close this issue reach out to go github automation if you have any questions
1
9,921
12,961,902,464
IssuesEvent
2020-07-20 16:19:32
opencybersecurityalliance/stix-shifter
https://api.github.com/repos/opencybersecurityalliance/stix-shifter
opened
CCB Minutes and Process Improvement
process
** CCB Tracking *** Start Pattern of Minute Tracking in Wiki ** Define Template for Process Improvement ** (Label Process in Git) (Template for Issues
1.0
CCB Minutes and Process Improvement - ** CCB Tracking *** Start Pattern of Minute Tracking in Wiki ** Define Template for Process Improvement ** (Label Process in Git) (Template for Issues
process
ccb minutes and process improvement ccb tracking start pattern of minute tracking in wiki define template for process improvement label process in git template for issues
1
7,866
11,042,383,252
IssuesEvent
2019-12-09 09:02:56
qgis/QGIS-Documentation
https://api.github.com/repos/qgis/QGIS-Documentation
closed
Make the target crs optional in gdal warp algorithm [needs-docs]
3.8 Automatic new feature Easy Processing Alg
Original commit: https://github.com/qgis/QGIS/commit/1e2b59afc461e0c760e587e623ed607de1aaa8e4 by nyalldawson Unfortunately this naughty coder did not write a description... :-(
1.0
Make the target crs optional in gdal warp algorithm [needs-docs] - Original commit: https://github.com/qgis/QGIS/commit/1e2b59afc461e0c760e587e623ed607de1aaa8e4 by nyalldawson Unfortunately this naughty coder did not write a description... :-(
process
make the target crs optional in gdal warp algorithm original commit by nyalldawson unfortunately this naughty coder did not write a description
1
61,841
25,755,331,118
IssuesEvent
2022-12-08 16:00:41
Azure/azure-sdk-for-java
https://api.github.com/repos/Azure/azure-sdk-for-java
opened
Support for additional primitive types for Event Hubs and Service Bus
Event Hubs Service Bus Client feature-request
Currently, a subset of the primitive types are supported in the EH and SB client library due to logic in EventHubMessageSerializer. This is to add support for other primitive types in AMQP that can be mapped to a class in the Java SDK.
1.0
Support for additional primitive types for Event Hubs and Service Bus - Currently, a subset of the primitive types are supported in the EH and SB client library due to logic in EventHubMessageSerializer. This is to add support for other primitive types in AMQP that can be mapped to a class in the Java SDK.
non_process
support for additional primitive types for event hubs and service bus currently a subset of the primitive types are supported in the eh and sb client library due to logic in eventhubmessageserializer this is to add support for other primitive types in amqp that can be mapped to a class in the java sdk
0
21,466
29,501,363,121
IssuesEvent
2023-06-02 22:18:28
mrdoob/three.js
https://api.github.com/repos/mrdoob/three.js
closed
Opacity issue when using SSAARenderPass in r139
Enhancement Examples Post-processing
**Describe the bug** Using SSAARenderPass is buggy in r139 over non-black backgrounds. Something funky happens with the opacity, and the resulting image appears to have the opacity of a single layer instead of an opacity of 1.0. This works in r138 and I assume the breaking change was #23671 **To Reproduce** Steps to reproduce the behavior: 1. Go on https://threejs.org/examples/?q=ssaa#webgl_postprocessing_ssaa 2. Change the HTML body background to e.g. red 3. Play around with the # of samples: 0 looks normal, and increasing looks broken. **Expected behavior** The non-transparent part of the rendering should not bleed the background colour. **Screenshots** <img width="569" alt="bug0" src="https://user-images.githubusercontent.com/1927071/161576359-e3cc1faa-245c-48e6-a9b3-bed75dd9599c.png"> <img width="468" alt="bug1" src="https://user-images.githubusercontent.com/1927071/161576380-a8c41e45-8c0a-48d9-aefc-82b61392b50d.png"> <img width="555" alt="bug2" src="https://user-images.githubusercontent.com/1927071/161576383-d91126fe-1ee9-4247-87dd-58f23d4bbd10.png"> **Platform:** - Device: Desktop - OS: MacOS - Browser: confirmed in Chrome & Safari - Three.js version: r139, likely dev as well. Worked in r138
1.0
Opacity issue when using SSAARenderPass in r139 - **Describe the bug** Using SSAARenderPass is buggy in r139 over non-black backgrounds. Something funky happens with the opacity, and the resulting image appears to have the opacity of a single layer instead of an opacity of 1.0. This works in r138 and I assume the breaking change was #23671 **To Reproduce** Steps to reproduce the behavior: 1. Go on https://threejs.org/examples/?q=ssaa#webgl_postprocessing_ssaa 2. Change the HTML body background to e.g. red 3. Play around with the # of samples: 0 looks normal, and increasing looks broken. **Expected behavior** The non-transparent part of the rendering should not bleed the background colour. **Screenshots** <img width="569" alt="bug0" src="https://user-images.githubusercontent.com/1927071/161576359-e3cc1faa-245c-48e6-a9b3-bed75dd9599c.png"> <img width="468" alt="bug1" src="https://user-images.githubusercontent.com/1927071/161576380-a8c41e45-8c0a-48d9-aefc-82b61392b50d.png"> <img width="555" alt="bug2" src="https://user-images.githubusercontent.com/1927071/161576383-d91126fe-1ee9-4247-87dd-58f23d4bbd10.png"> **Platform:** - Device: Desktop - OS: MacOS - Browser: confirmed in Chrome & Safari - Three.js version: r139, likely dev as well. Worked in r138
process
opacity issue when using ssaarenderpass in describe the bug using ssaarenderpass is buggy in over non black backgrounds something funky happens with the opacity and the resulting image appears to have the opacity of a single layer instead of an opacity of this works in and i assume the breaking change was to reproduce steps to reproduce the behavior go on change the html body background to e g red play around with the of samples looks normal and increasing looks broken expected behavior the non transparent part of the rendering should not bleed the background colour screenshots img width alt src img width alt src img width alt src platform device desktop os macos browser confirmed in chrome safari three js version likely dev as well worked in
1
8,962
12,069,374,475
IssuesEvent
2020-04-16 15:59:09
ORNL-AMO/AMO-Tools-Desktop
https://api.github.com/repos/ORNL-AMO/AMO-Tools-Desktop
closed
Explore Opps - All assessments
Fans Process Heating Pumps Steam enhancement
right now we see the BL field as a dropdown that is greyed out. I like that we see the BL, but the fact that it still looks like user input is confusing. Can we make it more like a result? Can they be side by side instead of stacked?
1.0
Explore Opps - All assessments - right now we see the BL field as a dropdown that is greyed out. I like that we see the BL, but the fact that it still looks like user input is confusing. Can we make it more like a result? Can they be side by side instead of stacked?
process
explore opps all assessments right now we see the bl field as a dropdown that is greyed out i like that we see the bl but the fact that it still looks like user input is confusing can we make it more like a result can they be side by side instead of stacked
1
120,247
10,111,331,300
IssuesEvent
2019-07-30 12:31:23
wsi-cogs/frontend
https://api.github.com/repos/wsi-cogs/frontend
closed
List of programmes is incorrect
user-testing
> Malaria and Infection Genomics are listed as programmes, whereas we are now collectively the Parasites and Microbes programme. Also, there will be the Tree of Life programme to add to the list. The programmes are treated as a mostly-opaque list of `|`-separated strings on the backend, so this is likely to be a frontend-only change.
1.0
List of programmes is incorrect - > Malaria and Infection Genomics are listed as programmes, whereas we are now collectively the Parasites and Microbes programme. Also, there will be the Tree of Life programme to add to the list. The programmes are treated as a mostly-opaque list of `|`-separated strings on the backend, so this is likely to be a frontend-only change.
non_process
list of programmes is incorrect malaria and infection genomics are listed as programmes whereas we are now collectively the parasites and microbes programme also there will be the tree of life programme to add to the list the programmes are treated as a mostly opaque list of separated strings on the backend so this is likely to be a frontend only change
0
760,289
26,636,062,221
IssuesEvent
2023-01-24 22:04:22
Tedeapolis/development
https://api.github.com/repos/Tedeapolis/development
closed
[FEATURE]: Cooldown zetten op kleur veranderen voertuig.
enhancement accepted high priority
### Contact Details [TDA] Johnny Flodder#3559 ### Beschrijf zo duidelijk mogelijk de feature Zoals besproken in staff overleg, een cooldown zetten op het kleur veranderen van je voetuig. Besproken: Zo instellen dat je na het aanpassen van je kleur, 5 minuten bedenktijd hebt. Na deze 5 minuten kan je geen nieuwe kleur meer aanpassen voor de komende 3 uren. ### Wat lost deze feature op? Zorgt er voor dat mensen niet 10x veranderen van kleur in ene korte tijd.
1.0
[FEATURE]: Cooldown zetten op kleur veranderen voertuig. - ### Contact Details [TDA] Johnny Flodder#3559 ### Beschrijf zo duidelijk mogelijk de feature Zoals besproken in staff overleg, een cooldown zetten op het kleur veranderen van je voetuig. Besproken: Zo instellen dat je na het aanpassen van je kleur, 5 minuten bedenktijd hebt. Na deze 5 minuten kan je geen nieuwe kleur meer aanpassen voor de komende 3 uren. ### Wat lost deze feature op? Zorgt er voor dat mensen niet 10x veranderen van kleur in ene korte tijd.
non_process
cooldown zetten op kleur veranderen voertuig contact details johnny flodder beschrijf zo duidelijk mogelijk de feature zoals besproken in staff overleg een cooldown zetten op het kleur veranderen van je voetuig besproken zo instellen dat je na het aanpassen van je kleur minuten bedenktijd hebt na deze minuten kan je geen nieuwe kleur meer aanpassen voor de komende uren wat lost deze feature op zorgt er voor dat mensen niet veranderen van kleur in ene korte tijd
0
17,080
22,583,386,002
IssuesEvent
2022-06-28 13:29:58
Azure/bicep
https://api.github.com/repos/Azure/bicep
closed
Built-in function to sort an array
enhancement story: list processing
**Is your feature request related to a problem? Please describe.** Declarative deployments require consistent inputs for idempotency. I have a bicep template where a part of a blob name is computed using `uniqueString(array)`. I'd like to ensure within the template that the array is always sorted to yield the same results for the same inputs. **Describe the solution you'd like** Given that ARM functions already have a defined [compare functions](https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-comparison?tabs=json), add a `sort(` function that would sort an array. Somewhat related to #2082
1.0
Built-in function to sort an array - **Is your feature request related to a problem? Please describe.** Declarative deployments require consistent inputs for idempotency. I have a bicep template where a part of a blob name is computed using `uniqueString(array)`. I'd like to ensure within the template that the array is always sorted to yield the same results for the same inputs. **Describe the solution you'd like** Given that ARM functions already have a defined [compare functions](https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-comparison?tabs=json), add a `sort(` function that would sort an array. Somewhat related to #2082
process
built in function to sort an array is your feature request related to a problem please describe declarative deployments require consistent inputs for idempotency i have a bicep template where a part of a blob name is computed using uniquestring array i d like to ensure within the template that the array is always sorted to yield the same results for the same inputs describe the solution you d like given that arm functions already have a defined add a sort function that would sort an array somewhat related to
1
27,551
5,367,455,711
IssuesEvent
2017-02-22 04:19:36
zulip/zulip
https://api.github.com/repos/zulip/zulip
closed
initalize-database suggests reading prod-health-check-debug.md, which doesn't exist
area: documentation (production) in progress
Is `prod-troubleshooting.md` a complete replacement, or should there be additional docs referenced? After you run `initialize-database`, you get this message: ``` Congratulations! You have successfully configured your Zulip database. If you haven't already, you should configure email in /etc/zulip/settings.py. Then create your organization and user by opening the link to your Zulip instance generated by ./manage.py generate_realm_creation_link. See docs/prod-health-check-debug.md for instructions on how to confirm your Zulip install is healthy, change your realm's domain, debug common issues, and otherwise finish setting things up. ``` `prod-health-check-debug.md` was renamed `prod-troubleshooting.md`: commit: https://github.com/zulip/zulip/commit/c0e68d59cb7b507bddb349b9c3cbcd1d6f9e1b6e The renamed document doesn't discuss how to "change your realm's domain," nor is it mentioned in other docs. This text was added in the process of removing references to `ADMIN_DOMAIN` but I don't know what instructions it might have referred to. commit: https://github.com/zulip/zulip/commit/a7ead9e99db332e49991e4aaf04758f2c994b69c
1.0
initalize-database suggests reading prod-health-check-debug.md, which doesn't exist - Is `prod-troubleshooting.md` a complete replacement, or should there be additional docs referenced? After you run `initialize-database`, you get this message: ``` Congratulations! You have successfully configured your Zulip database. If you haven't already, you should configure email in /etc/zulip/settings.py. Then create your organization and user by opening the link to your Zulip instance generated by ./manage.py generate_realm_creation_link. See docs/prod-health-check-debug.md for instructions on how to confirm your Zulip install is healthy, change your realm's domain, debug common issues, and otherwise finish setting things up. ``` `prod-health-check-debug.md` was renamed `prod-troubleshooting.md`: commit: https://github.com/zulip/zulip/commit/c0e68d59cb7b507bddb349b9c3cbcd1d6f9e1b6e The renamed document doesn't discuss how to "change your realm's domain," nor is it mentioned in other docs. This text was added in the process of removing references to `ADMIN_DOMAIN` but I don't know what instructions it might have referred to. commit: https://github.com/zulip/zulip/commit/a7ead9e99db332e49991e4aaf04758f2c994b69c
non_process
initalize database suggests reading prod health check debug md which doesn t exist is prod troubleshooting md a complete replacement or should there be additional docs referenced after you run initialize database you get this message congratulations you have successfully configured your zulip database if you haven t already you should configure email in etc zulip settings py then create your organization and user by opening the link to your zulip instance generated by manage py generate realm creation link see docs prod health check debug md for instructions on how to confirm your zulip install is healthy change your realm s domain debug common issues and otherwise finish setting things up prod health check debug md was renamed prod troubleshooting md commit the renamed document doesn t discuss how to change your realm s domain nor is it mentioned in other docs this text was added in the process of removing references to admin domain but i don t know what instructions it might have referred to commit
0
91,962
15,856,787,362
IssuesEvent
2021-04-08 03:11:09
criticalstack/ui
https://api.github.com/repos/criticalstack/ui
opened
CVE-2021-21272 (High) detected in github.com/deislabs/oras/pkg/content-v0.9.0
security vulnerability
## CVE-2021-21272 - High Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Library - <b>github.com/deislabs/oras/pkg/content-v0.9.0</b></p></summary> <p>OCI Registry As Storage</p> <p> Dependency Hierarchy: - helm.sh/helm/v3/pkg/action-v3.5.2 (Root Library) - helm.sh/helm/v3/internal/experimental/registry-v3.5.2 - :x: **github.com/deislabs/oras/pkg/content-v0.9.0** (Vulnerable Library) <p>Found in base branch: <b>main</b></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/high_vul.png' width=19 height=20> Vulnerability Details</summary> <p> ORAS is open source software which enables a way to push OCI Artifacts to OCI Conformant registries. ORAS is both a CLI for initial testing and a Go Module. In ORAS from version 0.4.0 and before version 0.9.0, there is a "zip-slip" vulnerability. The directory support feature allows the downloaded gzipped tarballs to be automatically extracted to the user-specified directory where the tarball can have symbolic links and hard links. A well-crafted tarball or tarballs allow malicious artifact providers linking, writing, or overwriting specific files on the host filesystem outside of the user-specified directory unexpectedly with the same permissions as the user who runs `oras pull`. Users of the affected versions are impacted if they are `oras` CLI users who runs `oras pull`, or if they are Go programs, which invoke `github.com/deislabs/oras/pkg/content.FileStore`. The problem has been fixed in version 0.9.0. For `oras` CLI users, there is no workarounds other than pulling from a trusted artifact provider. For `oras` package users, the workaround is to not use `github.com/deislabs/oras/pkg/content.FileStore`, and use other content stores instead, or pull from a trusted artifact provider. <p>Publish Date: 2021-01-25 <p>URL: <a href=https://vuln.whitesourcesoftware.com/vulnerability/CVE-2021-21272>CVE-2021-21272</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 3 Score Details (<b>7.7</b>)</summary> <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Changed - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: High - Availability Impact: None </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/suggested_fix.png' width=19 height=20> Suggested Fix</summary> <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx">https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx</a></p> <p>Release Date: 2021-01-25</p> <p>Fix Resolution: v0.9.0</p> </p> </details> <p></p> *** Step up your Open Source Security Game with WhiteSource [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
True
CVE-2021-21272 (High) detected in github.com/deislabs/oras/pkg/content-v0.9.0 - ## CVE-2021-21272 - High Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Library - <b>github.com/deislabs/oras/pkg/content-v0.9.0</b></p></summary> <p>OCI Registry As Storage</p> <p> Dependency Hierarchy: - helm.sh/helm/v3/pkg/action-v3.5.2 (Root Library) - helm.sh/helm/v3/internal/experimental/registry-v3.5.2 - :x: **github.com/deislabs/oras/pkg/content-v0.9.0** (Vulnerable Library) <p>Found in base branch: <b>main</b></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/high_vul.png' width=19 height=20> Vulnerability Details</summary> <p> ORAS is open source software which enables a way to push OCI Artifacts to OCI Conformant registries. ORAS is both a CLI for initial testing and a Go Module. In ORAS from version 0.4.0 and before version 0.9.0, there is a "zip-slip" vulnerability. The directory support feature allows the downloaded gzipped tarballs to be automatically extracted to the user-specified directory where the tarball can have symbolic links and hard links. A well-crafted tarball or tarballs allow malicious artifact providers linking, writing, or overwriting specific files on the host filesystem outside of the user-specified directory unexpectedly with the same permissions as the user who runs `oras pull`. Users of the affected versions are impacted if they are `oras` CLI users who runs `oras pull`, or if they are Go programs, which invoke `github.com/deislabs/oras/pkg/content.FileStore`. The problem has been fixed in version 0.9.0. For `oras` CLI users, there is no workarounds other than pulling from a trusted artifact provider. For `oras` package users, the workaround is to not use `github.com/deislabs/oras/pkg/content.FileStore`, and use other content stores instead, or pull from a trusted artifact provider. <p>Publish Date: 2021-01-25 <p>URL: <a href=https://vuln.whitesourcesoftware.com/vulnerability/CVE-2021-21272>CVE-2021-21272</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 3 Score Details (<b>7.7</b>)</summary> <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Changed - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: High - Availability Impact: None </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/suggested_fix.png' width=19 height=20> Suggested Fix</summary> <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx">https://github.com/deislabs/oras/security/advisories/GHSA-g5v4-5x39-vwhx</a></p> <p>Release Date: 2021-01-25</p> <p>Fix Resolution: v0.9.0</p> </p> </details> <p></p> *** Step up your Open Source Security Game with WhiteSource [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
non_process
cve high detected in github com deislabs oras pkg content cve high severity vulnerability vulnerable library github com deislabs oras pkg content oci registry as storage dependency hierarchy helm sh helm pkg action root library helm sh helm internal experimental registry x github com deislabs oras pkg content vulnerable library found in base branch main vulnerability details oras is open source software which enables a way to push oci artifacts to oci conformant registries oras is both a cli for initial testing and a go module in oras from version and before version there is a zip slip vulnerability the directory support feature allows the downloaded gzipped tarballs to be automatically extracted to the user specified directory where the tarball can have symbolic links and hard links a well crafted tarball or tarballs allow malicious artifact providers linking writing or overwriting specific files on the host filesystem outside of the user specified directory unexpectedly with the same permissions as the user who runs oras pull users of the affected versions are impacted if they are oras cli users who runs oras pull or if they are go programs which invoke github com deislabs oras pkg content filestore the problem has been fixed in version for oras cli users there is no workarounds other than pulling from a trusted artifact provider for oras package users the workaround is to not use github com deislabs oras pkg content filestore and use other content stores instead or pull from a trusted artifact provider publish date url a href cvss score details base score metrics exploitability metrics attack vector network attack complexity low privileges required low user interaction none scope changed impact metrics confidentiality impact none integrity impact high availability impact none for more information on scores click a href suggested fix type upgrade version origin a href release date fix resolution step up your open source security game with whitesource
0
17,901
23,874,169,591
IssuesEvent
2022-09-07 17:21:29
microsoft/vscode
https://api.github.com/repos/microsoft/vscode
closed
false positive terminal launch failure notifications
info-needed terminal-process
Type: <b>Bug</b> using Ctrl+D to close a terminal where the last command exited with a non-zero exit code causes VSCode to notify the user of a [terminal launch failure](https://code.visualstudio.com/docs/supporting/troubleshoot-terminal-launch) even though no failure occurred e.g. ```console % echo hello | grep goodbye % # press Ctrl+D ``` should I be closing terminal some other way? can VSCode detect the terminal being closed by the user and not report launch failures? VS Code version: Code 1.71.0 (784b0177c56c607789f9638da7b6bf3230d47a8c, 2022-09-01T07:25:25.516Z) OS version: Darwin arm64 21.6.0 Modes: Sandboxed: No <details> <summary>System Info</summary> |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 24)| |GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off| |Load (avg)|2, 3, 3| |Memory (System)|16.00GB (0.07GB free)| |Process Argv|--crash-reporter-id 0132e674-27df-435e-9fa2-562b1adbdb94| |Screen Reader|no| |VM|0%| </details><details><summary>Extensions (47)</summary> Extension|Author (truncated)|Version ---|---|--- cucumberautocomplete|ale|2.15.2 color-info|bie|0.7.0 comment-tagged-templates|bie|0.3.1 docs-view|bie|0.0.11 emojisense|bie|0.9.1 folder-source-actions|bie|0.2.1 gif-player|bie|0.0.2 github-markdown-preview|bie|0.3.0 jsdoc-markdown-highlighting|bie|0.0.1 markdown-checkbox|bie|0.3.2 markdown-emoji|bie|0.3.0 markdown-footnotes|bie|0.0.7 markdown-image-size|bie|0.0.4 markdown-mermaid|bie|1.15.2 markdown-preview-github-styles|bie|1.0.1 markdown-prism|bie|0.0.5 markdown-shiki|bie|0.1.1 markdown-yaml-preamble|bie|0.1.0 react-native-ios-pack|bie|0.0.3 speech|bie|0.1.0 scratchpads|bue|0.0.8 vscode-markdownlint|Dav|0.48.1 vscode-eslint|dba|2.2.6 vscode-deno|den|3.13.1 gitlens|eam|12.2.2 prettier-vscode|esb|9.8.0 vscode-pull-request-github|Git|0.50.0 vscode-graphql|Gra|0.7.4 vscode-graphql-syntax|Gra|1.0.4 rest-client|hum|0.25.1 swift|Kas|0.2.0 vscode-clang|mit|0.2.4 vscode-postgresql|ms-|0.3.0 live-server|ms-|0.4.0 test-adapter-converter|ms-|0.1.6 vsliveshare|ms-|1.0.5711 vsliveshare-audio|ms-|0.1.91 vsliveshare-pack|ms-|0.4.0 vscode-react-native|msj|1.9.2 vscode-xml|red|0.21.2022062916 vscode-yaml|red|1.10.1 stately-vscode|sta|1.9.3 code-spell-checker|str|2.7.2 es6-string-html|Tob|2.12.0 vscode-import-cost|wix|3.3.0 clang-format|xav|1.9.0 local-history|xyz|1.8.1 </details><details> <summary>A/B Experiments</summary> ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30557514 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vscaac:30438847 pylanb8912:30545647 vsclangdf:30486550 c4g48928:30535728 hb751961:30553087 dsvsc012cf:30540253 azure-dev_surveyone:30548225 2144e591:30553903 ``` </details> <!-- generated by issue reporter -->
1.0
false positive terminal launch failure notifications - Type: <b>Bug</b> using Ctrl+D to close a terminal where the last command exited with a non-zero exit code causes VSCode to notify the user of a [terminal launch failure](https://code.visualstudio.com/docs/supporting/troubleshoot-terminal-launch) even though no failure occurred e.g. ```console % echo hello | grep goodbye % # press Ctrl+D ``` should I be closing terminal some other way? can VSCode detect the terminal being closed by the user and not report launch failures? VS Code version: Code 1.71.0 (784b0177c56c607789f9638da7b6bf3230d47a8c, 2022-09-01T07:25:25.516Z) OS version: Darwin arm64 21.6.0 Modes: Sandboxed: No <details> <summary>System Info</summary> |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 24)| |GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off| |Load (avg)|2, 3, 3| |Memory (System)|16.00GB (0.07GB free)| |Process Argv|--crash-reporter-id 0132e674-27df-435e-9fa2-562b1adbdb94| |Screen Reader|no| |VM|0%| </details><details><summary>Extensions (47)</summary> Extension|Author (truncated)|Version ---|---|--- cucumberautocomplete|ale|2.15.2 color-info|bie|0.7.0 comment-tagged-templates|bie|0.3.1 docs-view|bie|0.0.11 emojisense|bie|0.9.1 folder-source-actions|bie|0.2.1 gif-player|bie|0.0.2 github-markdown-preview|bie|0.3.0 jsdoc-markdown-highlighting|bie|0.0.1 markdown-checkbox|bie|0.3.2 markdown-emoji|bie|0.3.0 markdown-footnotes|bie|0.0.7 markdown-image-size|bie|0.0.4 markdown-mermaid|bie|1.15.2 markdown-preview-github-styles|bie|1.0.1 markdown-prism|bie|0.0.5 markdown-shiki|bie|0.1.1 markdown-yaml-preamble|bie|0.1.0 react-native-ios-pack|bie|0.0.3 speech|bie|0.1.0 scratchpads|bue|0.0.8 vscode-markdownlint|Dav|0.48.1 vscode-eslint|dba|2.2.6 vscode-deno|den|3.13.1 gitlens|eam|12.2.2 prettier-vscode|esb|9.8.0 vscode-pull-request-github|Git|0.50.0 vscode-graphql|Gra|0.7.4 vscode-graphql-syntax|Gra|1.0.4 rest-client|hum|0.25.1 swift|Kas|0.2.0 vscode-clang|mit|0.2.4 vscode-postgresql|ms-|0.3.0 live-server|ms-|0.4.0 test-adapter-converter|ms-|0.1.6 vsliveshare|ms-|1.0.5711 vsliveshare-audio|ms-|0.1.91 vsliveshare-pack|ms-|0.4.0 vscode-react-native|msj|1.9.2 vscode-xml|red|0.21.2022062916 vscode-yaml|red|1.10.1 stately-vscode|sta|1.9.3 code-spell-checker|str|2.7.2 es6-string-html|Tob|2.12.0 vscode-import-cost|wix|3.3.0 clang-format|xav|1.9.0 local-history|xyz|1.8.1 </details><details> <summary>A/B Experiments</summary> ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30557514 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vscaac:30438847 pylanb8912:30545647 vsclangdf:30486550 c4g48928:30535728 hb751961:30553087 dsvsc012cf:30540253 azure-dev_surveyone:30548225 2144e591:30553903 ``` </details> <!-- generated by issue reporter -->
process
false positive terminal launch failure notifications type bug using ctrl d to close a terminal where the last command exited with a non zero exit code causes vscode to notify the user of a even though no failure occurred e g console echo hello grep goodbye press ctrl d should i be closing terminal some other way can vscode detect the terminal being closed by the user and not report launch failures vs code version code os version darwin modes sandboxed no system info item value cpus apple pro x gpu status canvas enabled canvas oop rasterization disabled off direct rendering display compositor disabled off ok gpu compositing enabled metal disabled off multiple raster threads enabled on opengl enabled on rasterization enabled raw draw disabled off ok skia renderer enabled on video decode enabled video encode enabled vulkan disabled off webgl enabled enabled webgpu disabled off load avg memory system free process argv crash reporter id screen reader no vm extensions extension author truncated version cucumberautocomplete ale color info bie comment tagged templates bie docs view bie emojisense bie folder source actions bie gif player bie github markdown preview bie jsdoc markdown highlighting bie markdown checkbox bie markdown emoji bie markdown footnotes bie markdown image size bie markdown mermaid bie markdown preview github styles bie markdown prism bie markdown shiki bie markdown yaml preamble bie react native ios pack bie speech bie scratchpads bue vscode markdownlint dav vscode eslint dba vscode deno den gitlens eam prettier vscode esb vscode pull request github git vscode graphql gra vscode graphql syntax gra rest client hum swift kas vscode clang mit vscode postgresql ms live server ms test adapter converter ms vsliveshare ms vsliveshare audio ms vsliveshare pack ms vscode react native msj vscode xml red vscode yaml red stately vscode sta code spell checker str string html tob vscode import cost wix clang format xav local history xyz a b experiments pythontb pythonptprofiler pythondataviewer cmake cppdebug vscaac vsclangdf azure dev surveyone
1
13,915
16,674,557,944
IssuesEvent
2021-06-07 14:45:23
scikit-learn/scikit-learn
https://api.github.com/repos/scikit-learn/scikit-learn
closed
SplineTransformer raises when passing knots explicity for n_knots=None
Enhancement module:preprocessing
On master, ```python import numpy as np from sklearn.preprocessing import SplineTransformer X = np.linspace(0, 1, 10)[:, None] splt = SplineTransformer( knots=[[0], [1], [2], [3], [4]], n_knots=None, degree=3 ) splt.fit(X) ``` currently raises ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-5-86bffa93d84e> in <module> 10 ) 11 ---> 12 splt.fit(X) ~/code/scikit-learn/sklearn/preprocessing/_polynomial.py in fit(self, X, y) 226 isinstance(self.n_knots, numbers.Integral) and self.n_knots >= 2 227 ): --> 228 raise ValueError("n_knots must be a positive integer >= 2.") 229 230 if isinstance(self.knots, str) and self.knots in [ ValueError: n_knots must be a positive integer >= 2. ``` IMO the `n_knots` argument should be allowed to be `None` (or any other value) if the `knots` are passed explicity. cc: @lorentzenchr @ogrisel xref #18368 and #19483
1.0
SplineTransformer raises when passing knots explicity for n_knots=None - On master, ```python import numpy as np from sklearn.preprocessing import SplineTransformer X = np.linspace(0, 1, 10)[:, None] splt = SplineTransformer( knots=[[0], [1], [2], [3], [4]], n_knots=None, degree=3 ) splt.fit(X) ``` currently raises ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-5-86bffa93d84e> in <module> 10 ) 11 ---> 12 splt.fit(X) ~/code/scikit-learn/sklearn/preprocessing/_polynomial.py in fit(self, X, y) 226 isinstance(self.n_knots, numbers.Integral) and self.n_knots >= 2 227 ): --> 228 raise ValueError("n_knots must be a positive integer >= 2.") 229 230 if isinstance(self.knots, str) and self.knots in [ ValueError: n_knots must be a positive integer >= 2. ``` IMO the `n_knots` argument should be allowed to be `None` (or any other value) if the `knots` are passed explicity. cc: @lorentzenchr @ogrisel xref #18368 and #19483
process
splinetransformer raises when passing knots explicity for n knots none on master python import numpy as np from sklearn preprocessing import splinetransformer x np linspace splt splinetransformer knots n knots none degree splt fit x currently raises valueerror traceback most recent call last in splt fit x code scikit learn sklearn preprocessing polynomial py in fit self x y isinstance self n knots numbers integral and self n knots raise valueerror n knots must be a positive integer if isinstance self knots str and self knots in valueerror n knots must be a positive integer imo the n knots argument should be allowed to be none or any other value if the knots are passed explicity cc lorentzenchr ogrisel xref and
1
7,786
10,927,090,188
IssuesEvent
2019-11-22 15:58:57
18F/aws-admin
https://api.github.com/repos/18F/aws-admin
closed
experiment with Cloud Custodian
Continuous Process Improvement epic: cloud service provider management epic: security/compliance
https://cloudcustodian.io/ @JJediny I feel like I remember you having some example configuration somewhere—that ring a bell?
1.0
experiment with Cloud Custodian - https://cloudcustodian.io/ @JJediny I feel like I remember you having some example configuration somewhere—that ring a bell?
process
experiment with cloud custodian jjediny i feel like i remember you having some example configuration somewhere—that ring a bell
1
140,722
21,189,830,838
IssuesEvent
2022-04-08 16:08:28
hackforla/design-systems
https://api.github.com/repos/hackforla/design-systems
closed
Design a Cover for Figma Foundations
size: 1pts P - Feature - Figma Foundation role: Design
### Overview We need to create a cover for the Figma Foundations so that users can easily identify it in 'Recently Viewed' in their Figma account. ### Action Items - [x] Review how the Design Systems Team Cover can differ from the Figma Foundations Tutorials and Templates cover. - [x] Create a new cover for the Figma Foundation. ### Resources/Instructions <img width="634" alt="Screenshot 2021-09-22 at 16 42 22" src="https://user-images.githubusercontent.com/6236085/134436241-5a67e504-1b32-4957-a79f-6e49cbcd1677.png"> [Figma File ](https://www.figma.com/file/ly2kOpJc98oPbSIc181F2l/UX-UI-Community-of-Practice?node-id=882%3A3934)
1.0
Design a Cover for Figma Foundations - ### Overview We need to create a cover for the Figma Foundations so that users can easily identify it in 'Recently Viewed' in their Figma account. ### Action Items - [x] Review how the Design Systems Team Cover can differ from the Figma Foundations Tutorials and Templates cover. - [x] Create a new cover for the Figma Foundation. ### Resources/Instructions <img width="634" alt="Screenshot 2021-09-22 at 16 42 22" src="https://user-images.githubusercontent.com/6236085/134436241-5a67e504-1b32-4957-a79f-6e49cbcd1677.png"> [Figma File ](https://www.figma.com/file/ly2kOpJc98oPbSIc181F2l/UX-UI-Community-of-Practice?node-id=882%3A3934)
non_process
design a cover for figma foundations overview we need to create a cover for the figma foundations so that users can easily identify it in recently viewed in their figma account action items review how the design systems team cover can differ from the figma foundations tutorials and templates cover create a new cover for the figma foundation resources instructions img width alt screenshot at src
0
15,960
20,175,934,750
IssuesEvent
2022-02-10 14:32:24
GoogleCloudPlatform/fda-mystudies
https://api.github.com/repos/GoogleCloudPlatform/fda-mystudies
closed
iOS 15 > UI > Opacity issue on top portion of screen across the app
Bug P2 iOS UI Process: Fixed Process: Tested dev
Steps: 1. Install iOS app with iOS 15+ compatible version 2. Navigate across the screens Actual: Opacity issue on top portion of screen in below screens: 1. Click on Get started > Studies list 2. Resources and it's subsequent sub sections 3. Reach out and it's subsequent sub sections 4. Notifications 5. Signin page 6. My Account and other screens etc.. Expected: UI should be as per design 1. iOS Version: 15.0.1 2. Issue was not observed in < iOS 15 versions Refer attached video: https://user-images.githubusercontent.com/60386291/135838921-8b0fcdaf-1eff-4b78-a434-862e162c45cd.MOV
2.0
iOS 15 > UI > Opacity issue on top portion of screen across the app - Steps: 1. Install iOS app with iOS 15+ compatible version 2. Navigate across the screens Actual: Opacity issue on top portion of screen in below screens: 1. Click on Get started > Studies list 2. Resources and it's subsequent sub sections 3. Reach out and it's subsequent sub sections 4. Notifications 5. Signin page 6. My Account and other screens etc.. Expected: UI should be as per design 1. iOS Version: 15.0.1 2. Issue was not observed in < iOS 15 versions Refer attached video: https://user-images.githubusercontent.com/60386291/135838921-8b0fcdaf-1eff-4b78-a434-862e162c45cd.MOV
process
ios ui opacity issue on top portion of screen across the app steps install ios app with ios compatible version navigate across the screens actual opacity issue on top portion of screen in below screens click on get started studies list resources and it s subsequent sub sections reach out and it s subsequent sub sections notifications signin page my account and other screens etc expected ui should be as per design ios version issue was not observed in ios versions refer attached video
1
714,946
24,581,603,074
IssuesEvent
2022-10-13 16:01:33
Cotalker/documentation
https://api.github.com/repos/Cotalker/documentation
closed
Bug report: Theres a number of schemaNodes big enough to crash the admin
Bug report Bug high priority
### Affected system Cotalker Web Application ### Affected system (other) Admin ### Affected environment Production, Staging, Development ### Affected environment (other) _No response_ ### App version 15.0.0 ### Details When a propertyType has around 70 or 100 schemaNodes, the /collections/edit/:id page starts to become unresponsive. In some cases with more nodes the browser throws the Not Responding dialog <img width="1509" alt="image" src="https://user-images.githubusercontent.com/45186006/194661469-0ba4baf3-e891-4586-b673-7eae64d26474.png"> And the page crashes after that. This becomes a barrier of use for collections with a large number of fields. ### Steps to reproduce Generate a propertyType with schemaNode ~100 schemaNodes. Check response time and loading time of the edition section of the collection ### Expected result Page not crashing ### Additional data _No response_
1.0
Bug report: Theres a number of schemaNodes big enough to crash the admin - ### Affected system Cotalker Web Application ### Affected system (other) Admin ### Affected environment Production, Staging, Development ### Affected environment (other) _No response_ ### App version 15.0.0 ### Details When a propertyType has around 70 or 100 schemaNodes, the /collections/edit/:id page starts to become unresponsive. In some cases with more nodes the browser throws the Not Responding dialog <img width="1509" alt="image" src="https://user-images.githubusercontent.com/45186006/194661469-0ba4baf3-e891-4586-b673-7eae64d26474.png"> And the page crashes after that. This becomes a barrier of use for collections with a large number of fields. ### Steps to reproduce Generate a propertyType with schemaNode ~100 schemaNodes. Check response time and loading time of the edition section of the collection ### Expected result Page not crashing ### Additional data _No response_
non_process
bug report theres a number of schemanodes big enough to crash the admin affected system cotalker web application affected system other admin affected environment production staging development affected environment other no response app version details when a propertytype has around or schemanodes the collections edit id page starts to become unresponsive in some cases with more nodes the browser throws the not responding dialog img width alt image src and the page crashes after that this becomes a barrier of use for collections with a large number of fields steps to reproduce generate a propertytype with schemanode schemanodes check response time and loading time of the edition section of the collection expected result page not crashing additional data no response
0
93,741
11,801,864,491
IssuesEvent
2020-03-18 20:20:38
DataONEorg/dataone-web
https://api.github.com/repos/DataONEorg/dataone-web
closed
Create a features table
design page content
- The features in the table should link to the associated features pages - Information for the table should be stored in the [data folder](https://github.com/DataONEorg/dataone-web/tree/preview/data) in `TOML`, `YAML`, `JSON` or `CSV` format (More on [hugo data-driven content](https://gohugo.io/templates/data-templates/)) - The layout for the table should be stored in the [blocks directory](https://github.com/DataONEorg/dataone-web/tree/preview/themes/dataone/layouts/partials/blocks) - This table could eventually form the basis of the pricing table
1.0
Create a features table - - The features in the table should link to the associated features pages - Information for the table should be stored in the [data folder](https://github.com/DataONEorg/dataone-web/tree/preview/data) in `TOML`, `YAML`, `JSON` or `CSV` format (More on [hugo data-driven content](https://gohugo.io/templates/data-templates/)) - The layout for the table should be stored in the [blocks directory](https://github.com/DataONEorg/dataone-web/tree/preview/themes/dataone/layouts/partials/blocks) - This table could eventually form the basis of the pricing table
non_process
create a features table the features in the table should link to the associated features pages information for the table should be stored in the in toml yaml json or csv format more on the layout for the table should be stored in the this table could eventually form the basis of the pricing table
0
167,042
6,330,986,952
IssuesEvent
2017-07-26 08:54:51
Nebo15/ehealth.api
https://api.github.com/repos/Nebo15/ehealth.api
opened
Update Get legal entity details WS
epic/legal-entity kind/task priority/medium project/reimbursement status/specs
Update Get legal entity details WS according to requirements Requirements: [https://docs.google.com/document..](https://docs.google.com/document/d/15qqew84E9PdDb0LS6mhCagOLqcnNa6wmxenR5kHrUPg/edit) - [ ] Update WS [spec](http://docs.ehealthapi1.apiary.io/#reference/public.-medical-service-provider-integration-layer/legal-entities/get-legal-entity-by-id) - [ ] Update WS logic: * MIS context * Pharmacy context * NHS context - [ ] Implement - [ ] Deploy - [ ] Improve test scenarios
1.0
Update Get legal entity details WS - Update Get legal entity details WS according to requirements Requirements: [https://docs.google.com/document..](https://docs.google.com/document/d/15qqew84E9PdDb0LS6mhCagOLqcnNa6wmxenR5kHrUPg/edit) - [ ] Update WS [spec](http://docs.ehealthapi1.apiary.io/#reference/public.-medical-service-provider-integration-layer/legal-entities/get-legal-entity-by-id) - [ ] Update WS logic: * MIS context * Pharmacy context * NHS context - [ ] Implement - [ ] Deploy - [ ] Improve test scenarios
non_process
update get legal entity details ws update get legal entity details ws according to requirements requirements update ws update ws logic mis context pharmacy context nhs context implement deploy improve test scenarios
0
132,038
18,266,053,472
IssuesEvent
2021-10-04 08:35:21
artsking/linux-3.0.35_CVE-2020-15436_withPatch
https://api.github.com/repos/artsking/linux-3.0.35_CVE-2020-15436_withPatch
closed
CVE-2014-0155 (Medium) detected in linux-stable-rtv3.8.6 - autoclosed
security vulnerability
## CVE-2014-0155 - Medium Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Library - <b>linux-stable-rtv3.8.6</b></p></summary> <p> <p>Julia Cartwright's fork of linux-stable-rt.git</p> <p>Library home page: <a href=https://git.kernel.org/pub/scm/linux/kernel/git/julia/linux-stable-rt.git>https://git.kernel.org/pub/scm/linux/kernel/git/julia/linux-stable-rt.git</a></p> <p>Found in HEAD commit: <a href="https://github.com/artsking/linux-3.0.35_CVE-2020-15436_withPatch/commit/594a70cb9871ddd73cf61197bb1a2a1b1777a7ae">594a70cb9871ddd73cf61197bb1a2a1b1777a7ae</a></p> <p>Found in base branch: <b>master</b></p></p> </details> </p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Source Files (1)</summary> <p></p> <p> </p> </details> <p></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png' width=19 height=20> Vulnerability Details</summary> <p> The ioapic_deliver function in virt/kvm/ioapic.c in the Linux kernel through 3.14.1 does not properly validate the kvm_irq_delivery_to_apic return value, which allows guest OS users to cause a denial of service (host OS crash) via a crafted entry in the redirection table of an I/O APIC. NOTE: the affected code was moved to the ioapic_service function before the vulnerability was announced. <p>Publish Date: 2014-04-14 <p>URL: <a href=https://vuln.whitesourcesoftware.com/vulnerability/CVE-2014-0155>CVE-2014-0155</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 2 Score Details (<b>5.5</b>)</summary> <p> Base Score Metrics not available</p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/suggested_fix.png' width=19 height=20> Suggested Fix</summary> <p> <p>Type: Upgrade version</p> <p>Origin: <a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-0155">http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-0155</a></p> <p>Release Date: 2014-04-14</p> <p>Fix Resolution: v3.15-rc2</p> </p> </details> <p></p> *** Step up your Open Source Security Game with WhiteSource [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
True
CVE-2014-0155 (Medium) detected in linux-stable-rtv3.8.6 - autoclosed - ## CVE-2014-0155 - Medium Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Library - <b>linux-stable-rtv3.8.6</b></p></summary> <p> <p>Julia Cartwright's fork of linux-stable-rt.git</p> <p>Library home page: <a href=https://git.kernel.org/pub/scm/linux/kernel/git/julia/linux-stable-rt.git>https://git.kernel.org/pub/scm/linux/kernel/git/julia/linux-stable-rt.git</a></p> <p>Found in HEAD commit: <a href="https://github.com/artsking/linux-3.0.35_CVE-2020-15436_withPatch/commit/594a70cb9871ddd73cf61197bb1a2a1b1777a7ae">594a70cb9871ddd73cf61197bb1a2a1b1777a7ae</a></p> <p>Found in base branch: <b>master</b></p></p> </details> </p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Source Files (1)</summary> <p></p> <p> </p> </details> <p></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png' width=19 height=20> Vulnerability Details</summary> <p> The ioapic_deliver function in virt/kvm/ioapic.c in the Linux kernel through 3.14.1 does not properly validate the kvm_irq_delivery_to_apic return value, which allows guest OS users to cause a denial of service (host OS crash) via a crafted entry in the redirection table of an I/O APIC. NOTE: the affected code was moved to the ioapic_service function before the vulnerability was announced. <p>Publish Date: 2014-04-14 <p>URL: <a href=https://vuln.whitesourcesoftware.com/vulnerability/CVE-2014-0155>CVE-2014-0155</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 2 Score Details (<b>5.5</b>)</summary> <p> Base Score Metrics not available</p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/suggested_fix.png' width=19 height=20> Suggested Fix</summary> <p> <p>Type: Upgrade version</p> <p>Origin: <a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-0155">http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-0155</a></p> <p>Release Date: 2014-04-14</p> <p>Fix Resolution: v3.15-rc2</p> </p> </details> <p></p> *** Step up your Open Source Security Game with WhiteSource [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
non_process
cve medium detected in linux stable autoclosed cve medium severity vulnerability vulnerable library linux stable julia cartwright s fork of linux stable rt git library home page a href found in head commit a href found in base branch master vulnerable source files vulnerability details the ioapic deliver function in virt kvm ioapic c in the linux kernel through does not properly validate the kvm irq delivery to apic return value which allows guest os users to cause a denial of service host os crash via a crafted entry in the redirection table of an i o apic note the affected code was moved to the ioapic service function before the vulnerability was announced publish date url a href cvss score details base score metrics not available suggested fix type upgrade version origin a href release date fix resolution step up your open source security game with whitesource
0
15,444
19,660,264,164
IssuesEvent
2022-01-10 16:20:21
prisma/prisma
https://api.github.com/repos/prisma/prisma
opened
Reformatting crashes during show&tell
bug/2-confirmed kind/bug process/candidate team/migrations
```prisma datasource db { provider = "sqlserver" url = env("DATABASE_URL") } generator client { provider = "prisma-client-js" } /// Post including an author and content. model Post { id Int @id @default(autoincrement()) content String? @default(map: "") published Boolean @default(false) author User? @relation(fields: [authorId], references: [id], onDelete: ) authorId Int? } // Documentation for this model. model User { id Int @id @default(autoincrement()) email String @unique name String? posts Post[] } ```
1.0
Reformatting crashes during show&tell - ```prisma datasource db { provider = "sqlserver" url = env("DATABASE_URL") } generator client { provider = "prisma-client-js" } /// Post including an author and content. model Post { id Int @id @default(autoincrement()) content String? @default(map: "") published Boolean @default(false) author User? @relation(fields: [authorId], references: [id], onDelete: ) authorId Int? } // Documentation for this model. model User { id Int @id @default(autoincrement()) email String @unique name String? posts Post[] } ```
process
reformatting crashes during show tell prisma datasource db provider sqlserver url env database url generator client provider prisma client js post including an author and content model post id int id default autoincrement content string default map published boolean default false author user relation fields references ondelete authorid int documentation for this model model user id int id default autoincrement email string unique name string posts post
1
12,629
15,016,065,307
IssuesEvent
2021-02-01 09:06:47
GoogleCloudPlatform/fda-mystudies
https://api.github.com/repos/GoogleCloudPlatform/fda-mystudies
closed
User is not redirecting to the Login page after creating a user account
Bug P1 Participant manager Process: Fixed Process: Release 2 Process: Tested dev
Steps 1. Login as userA and add userB 2. Create a userB account successfuly using activation link 3. After creating the account user should be redirected to the login page AR : Currently user is getting navigated to the Dashboard screen in signed in state ER : After creating the account, a new user should be redirected to the Sign-in page of the application
3.0
User is not redirecting to the Login page after creating a user account - Steps 1. Login as userA and add userB 2. Create a userB account successfuly using activation link 3. After creating the account user should be redirected to the login page AR : Currently user is getting navigated to the Dashboard screen in signed in state ER : After creating the account, a new user should be redirected to the Sign-in page of the application
process
user is not redirecting to the login page after creating a user account steps login as usera and add userb create a userb account successfuly using activation link after creating the account user should be redirected to the login page ar currently user is getting navigated to the dashboard screen in signed in state er after creating the account a new user should be redirected to the sign in page of the application
1
57,066
8,139,499,238
IssuesEvent
2018-08-20 17:55:01
AladW/aurutils
https://api.github.com/repos/AladW/aurutils
closed
aursearch: inconsistency between man page and programme
documentation
Hello, I just installed aurutils. The first thing I did was `man aursearch`, where I found: ``` aursearch [-brvmd] [-F string] [-P pattern] string ``` And, in parcitular, the part I was interested in: ``` -d Search by package name and description. ``` This option, however, looks unsupported by the programme: ``` $ aursearch -d whatever usage: aursearch [-PFbrvmn] ```
1.0
aursearch: inconsistency between man page and programme - Hello, I just installed aurutils. The first thing I did was `man aursearch`, where I found: ``` aursearch [-brvmd] [-F string] [-P pattern] string ``` And, in parcitular, the part I was interested in: ``` -d Search by package name and description. ``` This option, however, looks unsupported by the programme: ``` $ aursearch -d whatever usage: aursearch [-PFbrvmn] ```
non_process
aursearch inconsistency between man page and programme hello i just installed aurutils the first thing i did was man aursearch where i found aursearch string and in parcitular the part i was interested in d search by package name and description this option however looks unsupported by the programme aursearch d whatever usage aursearch
0
62
2,521,535,466
IssuesEvent
2015-01-19 15:14:00
MozillaFoundation/plan
https://api.github.com/repos/MozillaFoundation/plan
opened
Clarify how to find meta vs. granular issues
process
We have a lot of meta bugs to track overall initiatives and prioritize during TPS, but it's not clear how to get into the granular issues from the meta issues. I think most project owners are using separate milestones to track those? Perhaps we can ask that project owners document inside the Meta issues how to find the granular issues? Or, should all owners be using another label that lists ALL issues for a sprint? I definitely don't want to triage every single issue during TPS! I'm :confounded: :weary: :fearful: though. This is one of those things that seemed easier in Bugzilla with the use of whiteboards and filtering, but is blocking me from feeling super comfortable in the new process. Maybe there is a workflow I'm just not aware of, yet? cc @thisandagain @davidascher @simonwex @OpenMatt
1.0
Clarify how to find meta vs. granular issues - We have a lot of meta bugs to track overall initiatives and prioritize during TPS, but it's not clear how to get into the granular issues from the meta issues. I think most project owners are using separate milestones to track those? Perhaps we can ask that project owners document inside the Meta issues how to find the granular issues? Or, should all owners be using another label that lists ALL issues for a sprint? I definitely don't want to triage every single issue during TPS! I'm :confounded: :weary: :fearful: though. This is one of those things that seemed easier in Bugzilla with the use of whiteboards and filtering, but is blocking me from feeling super comfortable in the new process. Maybe there is a workflow I'm just not aware of, yet? cc @thisandagain @davidascher @simonwex @OpenMatt
process
clarify how to find meta vs granular issues we have a lot of meta bugs to track overall initiatives and prioritize during tps but it s not clear how to get into the granular issues from the meta issues i think most project owners are using separate milestones to track those perhaps we can ask that project owners document inside the meta issues how to find the granular issues or should all owners be using another label that lists all issues for a sprint i definitely don t want to triage every single issue during tps i m confounded weary fearful though this is one of those things that seemed easier in bugzilla with the use of whiteboards and filtering but is blocking me from feeling super comfortable in the new process maybe there is a workflow i m just not aware of yet cc thisandagain davidascher simonwex openmatt
1
113,712
11,812,666,691
IssuesEvent
2020-03-19 20:37:41
ExpDev07/coronavirus-tracker-api
https://api.github.com/repos/ExpDev07/coronavirus-tracker-api
closed
Add __version__ for versioning of package
documentation
Follow PEP396 and add __version__ to module for version. I will create PR
1.0
Add __version__ for versioning of package - Follow PEP396 and add __version__ to module for version. I will create PR
non_process
add version for versioning of package follow and add version to module for version i will create pr
0
20,150
26,701,861,783
IssuesEvent
2023-01-27 15:00:10
ORNL-AMO/AMO-Tools-Desktop
https://api.github.com/repos/ORNL-AMO/AMO-Tools-Desktop
closed
Stack temperature copied field
bug Process Heating Steam
Ambient is there twice for solid/liquid fuels. ![image.png](https://images.zenhubusercontent.com/5cd48a2af8cffa5a19122d27/f09647e5-f32e-40d1-b850-734d11837c19) I'm guessing at some point the second one was either combustion air temp or fuel temp and a label was changed when actually the field was supposed to be hidden and the value sent to the suite be the same as ambient... ![image.png](https://images.zenhubusercontent.com/5cd48a2af8cffa5a19122d27/05b0c954-a705-4e5c-8fe9-a0b5886ce05e)
1.0
Stack temperature copied field - Ambient is there twice for solid/liquid fuels. ![image.png](https://images.zenhubusercontent.com/5cd48a2af8cffa5a19122d27/f09647e5-f32e-40d1-b850-734d11837c19) I'm guessing at some point the second one was either combustion air temp or fuel temp and a label was changed when actually the field was supposed to be hidden and the value sent to the suite be the same as ambient... ![image.png](https://images.zenhubusercontent.com/5cd48a2af8cffa5a19122d27/05b0c954-a705-4e5c-8fe9-a0b5886ce05e)
process
stack temperature copied field ambient is there twice for solid liquid fuels i m guessing at some point the second one was either combustion air temp or fuel temp and a label was changed when actually the field was supposed to be hidden and the value sent to the suite be the same as ambient
1
16,985
22,350,750,190
IssuesEvent
2022-06-15 11:50:51
camunda/zeebe
https://api.github.com/repos/camunda/zeebe
closed
FEEL engine fails to evaluate some valid expressions
kind/bug scope/broker severity/mid area/ux team/process-automation
**Describe the bug** Some FEEL expressions which were valid in versions of Zeebe up through 1.3.0 are no longer processed correctly as of Zeebe 1.3.2. **To Reproduce** *It is not currently known exactly which expressions may cause this bug, or whether other conditions are necessary in order for it to be triggered.* The specific expressions from our BPMN diagrams which were formerly working are output mappings on a Message Start Event: * `= caterer_ever_responded or (last_message_initiated_by = "caterer_account")` * `= customer_ever_responded or (last_message_initiated_by = "customer")` On Zeebe 1.3.0, these expressions work as expected (they evaluate to true if either the first term is true or the parenthetical expression is true). **We have not tested on Zeebe 1.3.1,** but on Zeebe 1.3.2, these expressions fail to evaluate, and any running process instance receives an incident. The incident has type IO_MAPPING_ERROR and the error message: > failed to evaluate expression '{message:if (message = null) then {id: message_id,initiator_type: last_message_initiated_by,status: message_status,content: content} else put all(message,{id: message_id,initiator_type: last_message_initiated_by,status: message_status,content: content}),caterer_ever_responded: caterer_ever_responded or (last_message_initiated_by = "caterer_account"),customer_ever_responded: customer_ever_responded or (last_message_initiated_by = "customer")}': no function found with name 'caterer_ever_responded or' and 1 parameters We strongly suspect that this change may be due to the update of the feel-engine dependency in #8529 which was shipped in Zeebe 1.3.1. **Expected Behavior** 1. Zeebe should correctly parse and process all valid FEEL expressions. 2. If a FEEL expression is invalid (or the FEEL engine cannot correctly parse and process it), the deployment of the process definition containing that expression should fail, so that the error can be caught before a process instance is created. 3. Unit and/or integration tests in the Zeebe codebase should verify that there have been no changes in how FEEL expressions are parsed and processed between versions of the feel-engine dependency (or that any changes present are expected by the Zeebe team). 4. Dependency updates which contain breaking changes should not be included in patch version releases, but instead should result in minor or major version increments. **Log/Stacktrace** No stacktrace as this bug results in incidents in running instances, rather than in Java exceptions. **Environment:** - OS: Debian GNU/Linux 10 in a Docker container - Zeebe Version: v1.3.2 - Configuration: zeebe-kafka-exporter v3.0.0
1.0
FEEL engine fails to evaluate some valid expressions - **Describe the bug** Some FEEL expressions which were valid in versions of Zeebe up through 1.3.0 are no longer processed correctly as of Zeebe 1.3.2. **To Reproduce** *It is not currently known exactly which expressions may cause this bug, or whether other conditions are necessary in order for it to be triggered.* The specific expressions from our BPMN diagrams which were formerly working are output mappings on a Message Start Event: * `= caterer_ever_responded or (last_message_initiated_by = "caterer_account")` * `= customer_ever_responded or (last_message_initiated_by = "customer")` On Zeebe 1.3.0, these expressions work as expected (they evaluate to true if either the first term is true or the parenthetical expression is true). **We have not tested on Zeebe 1.3.1,** but on Zeebe 1.3.2, these expressions fail to evaluate, and any running process instance receives an incident. The incident has type IO_MAPPING_ERROR and the error message: > failed to evaluate expression '{message:if (message = null) then {id: message_id,initiator_type: last_message_initiated_by,status: message_status,content: content} else put all(message,{id: message_id,initiator_type: last_message_initiated_by,status: message_status,content: content}),caterer_ever_responded: caterer_ever_responded or (last_message_initiated_by = "caterer_account"),customer_ever_responded: customer_ever_responded or (last_message_initiated_by = "customer")}': no function found with name 'caterer_ever_responded or' and 1 parameters We strongly suspect that this change may be due to the update of the feel-engine dependency in #8529 which was shipped in Zeebe 1.3.1. **Expected Behavior** 1. Zeebe should correctly parse and process all valid FEEL expressions. 2. If a FEEL expression is invalid (or the FEEL engine cannot correctly parse and process it), the deployment of the process definition containing that expression should fail, so that the error can be caught before a process instance is created. 3. Unit and/or integration tests in the Zeebe codebase should verify that there have been no changes in how FEEL expressions are parsed and processed between versions of the feel-engine dependency (or that any changes present are expected by the Zeebe team). 4. Dependency updates which contain breaking changes should not be included in patch version releases, but instead should result in minor or major version increments. **Log/Stacktrace** No stacktrace as this bug results in incidents in running instances, rather than in Java exceptions. **Environment:** - OS: Debian GNU/Linux 10 in a Docker container - Zeebe Version: v1.3.2 - Configuration: zeebe-kafka-exporter v3.0.0
process
feel engine fails to evaluate some valid expressions describe the bug some feel expressions which were valid in versions of zeebe up through are no longer processed correctly as of zeebe to reproduce it is not currently known exactly which expressions may cause this bug or whether other conditions are necessary in order for it to be triggered the specific expressions from our bpmn diagrams which were formerly working are output mappings on a message start event caterer ever responded or last message initiated by caterer account customer ever responded or last message initiated by customer on zeebe these expressions work as expected they evaluate to true if either the first term is true or the parenthetical expression is true we have not tested on zeebe but on zeebe these expressions fail to evaluate and any running process instance receives an incident the incident has type io mapping error and the error message failed to evaluate expression message if message null then id message id initiator type last message initiated by status message status content content else put all message id message id initiator type last message initiated by status message status content content caterer ever responded caterer ever responded or last message initiated by caterer account customer ever responded customer ever responded or last message initiated by customer no function found with name caterer ever responded or and parameters we strongly suspect that this change may be due to the update of the feel engine dependency in which was shipped in zeebe expected behavior zeebe should correctly parse and process all valid feel expressions if a feel expression is invalid or the feel engine cannot correctly parse and process it the deployment of the process definition containing that expression should fail so that the error can be caught before a process instance is created unit and or integration tests in the zeebe codebase should verify that there have been no changes in how feel expressions are parsed and processed between versions of the feel engine dependency or that any changes present are expected by the zeebe team dependency updates which contain breaking changes should not be included in patch version releases but instead should result in minor or major version increments log stacktrace no stacktrace as this bug results in incidents in running instances rather than in java exceptions environment os debian gnu linux in a docker container zeebe version configuration zeebe kafka exporter
1
297,792
9,181,704,903
IssuesEvent
2019-03-05 10:52:18
xlayers/xlayers
https://api.github.com/repos/xlayers/xlayers
opened
Update @types/sketchapp
Priority: High Scope: Parser State: accepted type: enhancement
**Is your feature request related to a problem? Please describe.** Update the typings. Cc @Shikanime
1.0
Update @types/sketchapp - **Is your feature request related to a problem? Please describe.** Update the typings. Cc @Shikanime
non_process
update types sketchapp is your feature request related to a problem please describe update the typings cc shikanime
0
12,267
14,787,877,167
IssuesEvent
2021-01-12 08:22:37
OBKoro1/web_accumulate
https://api.github.com/repos/OBKoro1/web_accumulate
opened
从零开始带你写一个运行命令行的终端[手把手教学] | electron
Electron启动入口index-创建窗口 web 从零开始带你写一个运行命令行的终端[手把手教学] 初始化项目 前言 命令行面板做了哪些事情 核心方法:child_process.spawn-执行命令行监听命令行的输出 目录 窗口html页面-命令行面板 终端效果 进程通信类-processMessage 项目目录结构
### [博客链接](http://obkoro1.com/web_accumulate/accumulate/electron/electron-terminal-demo.html?code=3e1708e01fdd04daf01d#%E5%90%AF%E5%8A%A8%E4%B8%8E%E8%B0%83%E8%AF%95) <h1 id="从零开始带你写一个运行命令行的终端-手把手教学"><a class="header-anchor" href="#从零开始带你写一个运行命令行的终端-手把手教学" aria-hidden="true">#</a> 从零开始带你写一个运行命令行的终端[手把手教学]</h1> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-img.jpg" alt=""></p> <h3 id="前言"><a class="header-anchor" href="#前言" aria-hidden="true">#</a> 前言</h3> <p><code>Electron</code>很出名,很多人可能了解过,知道它是用来开发桌面端的应用,但是一直没有在项目中实践过,缺乏练手的实践项目。</p> <p>很多开源的命令行终端都是使用<code>Electron</code>来开发的,本文将从零开始手把手的教大家用<code>Electron</code>写一个命令行终端。</p> <p>作为一个完整的实战项目示例,该终端demo也将集成到<code>Electron</code>开源学习项目<a href="https://github.com/tal-tech/electron-playground" target="_blank" rel="noopener noreferrer">electron-playground<OutboundLink/></a>中,目前这个项目拥有700+ Star⭐️,它最大的特点是所见即所得的演示<code>Electron</code>的各种特性,帮助大家快速学习、上手<code>Electron</code>。</p> <p>大家跟着本文一起来试试Electron吧~</p> <h2 id="终端效果"><a class="header-anchor" href="#终端效果" aria-hidden="true">#</a> 终端效果</h2> <p>开源地址: <a href="https://github.com/OBKoro1/electron-terminal-demo" target="_blank" rel="noopener noreferrer">electron-terminal-demo<OutboundLink/></a></p> <p><strong>giit提交代码演示</strong></p> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-git.gif" alt=""></p> <h3 id="目录"><a class="header-anchor" href="#目录" aria-hidden="true">#</a> 目录</h3> <ol> <li> <p>初始化项目。</p> </li> <li> <p>项目目录结构</p> </li> <li> <p>Electron启动入口index-创建窗口</p> </li> <li> <p>进程通信类-processMessage。</p> </li> <li> <p>窗口html页面-命令行面板</p> </li> <li> <p>命令行面板做了哪些事情</p> <ul> <li>核心方法:child_process.spawn-执行命令行监听命令行的输出</li> <li>stderr不能直接识别为命令行执行错误</li> <li>命令行终端执行命令保存输出信息的核心代码</li> <li>html完整代码</li> <li>命令行终端的更多细节</li> </ul> </li> <li> <p>下载试玩</p> <ul> <li>项目演示</li> <li>项目地址</li> <li>启动与调试</li> </ul> </li> <li> <p>小结</p> </li> </ol> <h3 id="初始化项目"><a class="header-anchor" href="#初始化项目" aria-hidden="true">#</a> 初始化项目</h3> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code>npm init npm install electron <span class="token operator">-</span><span class="token constant">D</span> </code></pre> <!--beforeend--></div><!--afterend--><p>如果Electron安装不上去,需要添加一个<code>.npmrc</code>文件,来修改<code>Electron</code>的安装地址,文件内容如下:</p> <!--beforebegin--><div class="language- line-numbers-mode"><!--afterbegin--><pre v-pre class="language-text"><code>registry=https://registry.npm.taobao.org/ electron_mirror=https://npm.taobao.org/mirrors/electron/ chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriver </code></pre> <!--beforeend--></div><!--afterend--><p>修改一下<code>package.json</code>的入口<code>main</code>和<code>scripts</code>选项, 现在<code>package.json</code>长这样,很简洁:</p> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code><span class="token punctuation">{</span> <span class="token string">"name"</span><span class="token punctuation">:</span> <span class="token string">"electron-terminal"</span><span class="token punctuation">,</span> <span class="token string">"version"</span><span class="token punctuation">:</span> <span class="token string">"1.0.0"</span><span class="token punctuation">,</span> <span class="token string">"main"</span><span class="token punctuation">:</span> <span class="token string">"./src/index.js"</span><span class="token punctuation">,</span> <span class="token string">"scripts"</span><span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token string">"start"</span><span class="token punctuation">:</span> <span class="token string">"electron ."</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token string">"devDependencies"</span><span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token string">"electron"</span><span class="token punctuation">:</span> <span class="token string">"^11.1.1"</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span> </code></pre> <!--beforeend--></div><!--afterend--><h3 id="项目目录结构"><a class="header-anchor" href="#项目目录结构" aria-hidden="true">#</a> 项目目录结构</h3> <p>我们最终实现的项目将是下面这样子的,页面css文件不算的话,我们只需要实现src下面的三个文件即可。</p> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code><span class="token punctuation">.</span> ├── <span class="token punctuation">.</span>vscode <span class="token comment">// 使用vscode的调试功能启动项目</span> ├── node_dodules ├── src │ ├── index<span class="token punctuation">.</span>js <span class="token comment">// Electron启动入口-创建窗口</span> │ └── processMessage<span class="token punctuation">.</span>js <span class="token comment">// 主进程和渲染进程通信类-进程通信、监听时间</span> │ └── index<span class="token punctuation">.</span>html <span class="token comment">// 窗口html页面-命令行面板、执行命令并监听输出</span> │ └── index<span class="token punctuation">.</span>css <span class="token comment">// 窗口html的css样式 这部分不写</span> ├── <span class="token keyword">package</span><span class="token punctuation">.</span>json └── <span class="token punctuation">.</span>npmrc <span class="token comment">// 修改npm安装包的地址</span> └── <span class="token punctuation">.</span>gitignore </code></pre> <!--beforeend--></div><!--afterend--><h3 id="electron启动入口index-创建窗口"><a class="header-anchor" href="#electron启动入口index-创建窗口" aria-hidden="true">#</a> Electron启动入口index-创建窗口</h3> <ol> <li>创建窗口, 赋予窗口直接使用node的能力。</li> <li>窗口加载本地html页面</li> <li>加载主线程和渲染进程通信逻辑</li> </ol> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code><span class="token comment">// ./src/index.js</span> <span class="token keyword">const</span> <span class="token punctuation">{</span> app<span class="token punctuation">,</span> BrowserWindow <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'electron'</span><span class="token punctuation">)</span> <span class="token keyword">const</span> processMessage <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'./processMessage'</span><span class="token punctuation">)</span> <span class="token comment">// 创建窗口</span> <span class="token keyword">function</span> <span class="token function">createWindow</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 创建窗口</span> <span class="token keyword">const</span> win <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">BrowserWindow</span><span class="token punctuation">(</span><span class="token punctuation">{</span> width<span class="token punctuation">:</span> <span class="token number">800</span><span class="token punctuation">,</span> height<span class="token punctuation">:</span> <span class="token number">600</span><span class="token punctuation">,</span> webPreferences<span class="token punctuation">:</span> <span class="token punctuation">{</span> nodeIntegration<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 页面直接使用node的能力 用于引入node模块 执行命令</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 加载本地页面</span> win<span class="token punctuation">.</span><span class="token function">loadFile</span><span class="token punctuation">(</span><span class="token string">'./src/index.html'</span><span class="token punctuation">)</span> win<span class="token punctuation">.</span>webContents<span class="token punctuation">.</span><span class="token function">openDevTools</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// 打开控制台</span> <span class="token comment">// 主线程和渲染进程通信</span> <span class="token keyword">const</span> ProcessMessage <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">processMessage</span><span class="token punctuation">(</span>win<span class="token punctuation">)</span> ProcessMessage<span class="token punctuation">.</span><span class="token function">init</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token comment">// app ready 创建窗口</span> app<span class="token punctuation">.</span><span class="token function">whenReady</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span>createWindow<span class="token punctuation">)</span> </code></pre> <!--beforeend--></div><!--afterend--><h3 id="进程通信类-processmessage"><a class="header-anchor" href="#进程通信类-processmessage" aria-hidden="true">#</a> 进程通信类-processMessage</h3> <p>electron分为主进程和渲染进程,因为进程不同,在各种事件发生的对应时机需要相互通知来执行一些功能。</p> <p>这个类就是用于它们之间的通信的,electron通信这部分封装的很简洁了,照着用就可以了。</p> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code><span class="token comment">// ./src/processMessage.js</span> <span class="token keyword">const</span> <span class="token punctuation">{</span> ipcMain <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'electron'</span><span class="token punctuation">)</span> <span class="token keyword">class</span> <span class="token class-name">ProcessMessage</span> <span class="token punctuation">{</span> <span class="token comment">/** * 进程通信 * @param {*} win 创建的窗口 */</span> <span class="token function">constructor</span><span class="token punctuation">(</span>win<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>win <span class="token operator">=</span> win <span class="token punctuation">}</span> <span class="token function">init</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">watch</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token comment">// 监听渲染进程事件通信</span> <span class="token function">watch</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 页面准备好了</span> ipcMain<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'page-ready'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">sendFocus</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token comment">// 监听窗口、app、等模块的事件</span> <span class="token function">on</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 监听窗口是否聚焦</span> <span class="token keyword">this</span><span class="token punctuation">.</span>win<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'focus'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">sendFocus</span><span class="token punctuation">(</span><span class="token boolean">true</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>win<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'blur'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">sendFocus</span><span class="token punctuation">(</span><span class="token boolean">false</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token comment">/** * 窗口聚焦事件发送 * @param {*} isActive 是否聚焦 */</span> <span class="token function">sendFocus</span><span class="token punctuation">(</span>isActive<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 主线程发送事件给窗口</span> <span class="token keyword">this</span><span class="token punctuation">.</span>win<span class="token punctuation">.</span>webContents<span class="token punctuation">.</span><span class="token function">send</span><span class="token punctuation">(</span><span class="token string">'win-focus'</span><span class="token punctuation">,</span> isActive<span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span> module<span class="token punctuation">.</span>exports <span class="token operator">=</span> ProcessMessage </code></pre> <!--beforeend--></div><!--afterend--><h2 id="窗口html页面-命令行面板"><a class="header-anchor" href="#窗口html页面-命令行面板" aria-hidden="true">#</a> 窗口html页面-命令行面板</h2> <p>在创建窗口的时候,我们赋予了窗口使用node的能力, 可以在html中直接使用node模块。</p> <p>所以我们不需要通过进程通信的方式来执行命令和渲染输出,可以直接在一个文件里面完成。</p> <p><strong>终端的核心在于执行命令,渲染命令行输出,保存命令行的输出</strong>。</p> <p>这些都在这个文件里面实现了,代码行数不到250行。</p> <h2 id="命令行面板做了哪些事情"><a class="header-anchor" href="#命令行面板做了哪些事情" aria-hidden="true">#</a> 命令行面板做了哪些事情</h2> <ul> <li> <p>页面: 引入vue、element,css文件来处理页面</p> </li> <li> <p>template模板-渲染当前命令行执行的输出以及历史命令行的执行输出</p> </li> <li> <p><strong>核心</strong>:执行命令监听命令行输出</p> <ul> <li>执行命令并监听执行命令的输出,同步渲染输出。</li> <li>执行完毕,保存命令行输出的信息。</li> <li>渲染历史命令行输出。</li> <li>对一些命令进行特殊处理,比如下面的细节处理。</li> </ul> </li> <li> <p>围绕执行命令行的细节处理</p> <ul> <li>识别cd,根据系统保存cd路径</li> <li>识别clear清空所有输出。</li> <li>执行成功与失败的箭头图标展示。</li> <li>聚焦窗口,聚焦输入。</li> <li>命令执行完毕滚动底部。</li> <li>等等细节。</li> </ul> </li> </ul> <h3 id="核心方法:child-process-spawn-执行命令行监听命令行的输出"><a class="header-anchor" href="#核心方法:child-process-spawn-执行命令行监听命令行的输出" aria-hidden="true">#</a> 核心方法:child_process.spawn-执行命令行监听命令行的输出</h3> <h4 id="child-process-spawn介绍"><a class="header-anchor" href="#child-process-spawn介绍" aria-hidden="true">#</a> child_process.spawn介绍</h4> <p><code>spawn</code>是node子进程模块<code>child_process</code>提供的一个异步方法。</p> <p><strong>它的作用是执行命令并且可以实时监听命令行执行的输出</strong>。</p> <p>当我第一次知道这个API的时候,我就感觉这个方法简直是为命令行终端量身定做的。</p> <p>终端的核心也是执行命令行,并且实时输出命令行执行期间的信息。</p> <p>下面就来看看它的使用方式。</p> <h4 id="使用方式"><a class="header-anchor" href="#使用方式" aria-hidden="true">#</a> 使用方式</h4> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code><span class="token keyword">const</span> <span class="token punctuation">{</span> spawn <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'child_process'</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token keyword">const</span> ls <span class="token operator">=</span> <span class="token function">spawn</span><span class="token punctuation">(</span><span class="token string">'ls'</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> encoding<span class="token punctuation">:</span> <span class="token string">'utf8'</span><span class="token punctuation">,</span> cwd<span class="token punctuation">:</span> process<span class="token punctuation">.</span><span class="token function">cwd</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token comment">// 执行命令路径</span> shell<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 使用shell命令</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 监听标准输出</span> ls<span class="token punctuation">.</span>stdout<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'data'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>data<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stdout: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>data<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// 监听标准错误</span> ls<span class="token punctuation">.</span>stderr<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'data'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>data<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> console<span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stderr: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>data<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// 子进程关闭事件</span> ls<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'close'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>code<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`子进程退出,退出码 </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>code<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> </code></pre> <!--beforeend--></div><!--afterend--><p>api的使用很简单,但是终端信息的输出,需要很多细节的处理,比如下面这个。</p> <h3 id="stderr不能直接识别为命令行执行错误"><a class="header-anchor" href="#stderr不能直接识别为命令行执行错误" aria-hidden="true">#</a> stderr不能直接识别为命令行执行错误</h3> <p><code>stderr</code>虽然是标准错误输出,但里面的信息不全是错误的信息,不同的工具会有不同的处理。</p> <p>对于<code>git</code>来说,有很多命令行操作的输出信息都输出在<code>stederr</code>上。</p> <p>比如<code>git clone</code>、<code>git push</code>等,信息输出在<code>stederr</code>中,我们不能将其视为错误。</p> <p><code>git</code>总是将<strong>详细的状态信息和进度报告</strong>,以及只读信息,发送给<code>stederr</code>。</p> <p>具体细节可以查看<a href="https://juejin.cn/post/6844903676792815629" target="_blank" rel="noopener noreferrer">git stderr(错误流)探秘<OutboundLink/></a>等资料。</p> <p>暂时还不清楚其他工具/命令行也有没有类似的操作,但是很明显我们不能将<code>stederr</code>的信息视为错误的信息。</p> <p>PS: 对于git如果想提供更好的支持,需要根据不同的<code>git</code>命令进行特殊处理,比如对下面<code>clear</code>命令和<code>cd</code>命令的特殊处理。</p> <p><strong>根据子进程close事件判断命令行是否执行成功</strong></p> <p>我们应该检测<code>close</code>事件的退出码<code>code</code>, 如果<code>code</code>为0则表示命令行执行成功,否则即为失败。</p> <h3 id="命令行终端执行命令保存输出信息的核心代码"><a class="header-anchor" href="#命令行终端执行命令保存输出信息的核心代码" aria-hidden="true">#</a> 命令行终端执行命令保存输出信息的核心代码</h3> <p>下面这段是命令行面板的核心代码,我贴一下大家重点看一下,</p> <p>其他部分都是一些细节、优化体验、状态处理这样的代码,下面会将完整的html贴上来。</p> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code><span class="token keyword">const</span> <span class="token punctuation">{</span> spawn <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'child_process'</span><span class="token punctuation">)</span> <span class="token comment">// 使用node child_process模块</span> <span class="token comment">// 执行命令行</span> <span class="token function">actionCommand</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 处理command命令 </span> <span class="token keyword">const</span> command <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>command<span class="token punctuation">.</span><span class="token function">trim</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">isClear</span><span class="token punctuation">(</span>command<span class="token punctuation">)</span> <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>command <span class="token operator">===</span> <span class="token string">''</span><span class="token punctuation">)</span> <span class="token keyword">return</span> <span class="token comment">// 执行命令行</span> <span class="token keyword">this</span><span class="token punctuation">.</span>action <span class="token operator">=</span> <span class="token boolean">true</span> <span class="token keyword">this</span><span class="token punctuation">.</span>handleCommand <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">cdCommand</span><span class="token punctuation">(</span>command<span class="token punctuation">)</span> <span class="token keyword">const</span> ls <span class="token operator">=</span> <span class="token function">spawn</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>handleCommand<span class="token punctuation">,</span> <span class="token punctuation">{</span> encoding<span class="token punctuation">:</span> <span class="token string">'utf8'</span><span class="token punctuation">,</span> cwd<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>path<span class="token punctuation">,</span> <span class="token comment">// 执行命令路径</span> shell<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 使用shell命令</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 监听命令行执行过程的输出</span> ls<span class="token punctuation">.</span>stdout<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'data'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>data<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">const</span> value <span class="token operator">=</span> data<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">trim</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>value<span class="token punctuation">)</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stdout: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>value<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> ls<span class="token punctuation">.</span>stderr<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'data'</span><span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span>stderrMsgHandle<span class="token punctuation">)</span> ls<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'close'</span><span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span>closeCommandAction<span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 错误或详细状态进度报告 比如 git push</span> <span class="token function">stderrMsgHandle</span><span class="token punctuation">(</span>data<span class="token punctuation">)</span> <span class="token punctuation">{</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stderr: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>data<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stderr: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>data<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 执行完毕 保存信息 更新状态</span> <span class="token function">closeCommandAction</span><span class="token punctuation">(</span>code<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 保存执行信息</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandArr<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> code<span class="token punctuation">,</span> <span class="token comment">// 是否执行成功</span> path<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>path<span class="token punctuation">,</span> <span class="token comment">// 执行路径</span> command<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>command<span class="token punctuation">,</span> <span class="token comment">// 执行命令</span> commandMsg<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span><span class="token function">join</span><span class="token punctuation">(</span><span class="token string">'\r'</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token comment">// 执行信息</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 清空</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">updatePath</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>handleCommand<span class="token punctuation">,</span> code<span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">commandFinish</span><span class="token punctuation">(</span><span class="token punctuation">)</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span> <span class="token template-string"><span class="token string">`子进程退出,退出码 </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>code<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">, 运行</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>code <span class="token operator">===</span> <span class="token number">0</span> <span class="token operator">?</span> <span class="token string">'成功'</span> <span class="token punctuation">:</span> <span class="token string">'失败'</span><span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span> <span class="token punctuation">)</span> <span class="token punctuation">}</span> </code></pre> <!--beforeend--></div><!--afterend--><h4 id="html完整代码"><a class="header-anchor" href="#html完整代码" aria-hidden="true">#</a> html完整代码</h4> <p>这里是html的完整代码,代码中有详细注释,建议根据上面的<strong>命令行面板做了哪些事情</strong>,来阅读源码。</p> <!--beforebegin--><div class="language-html line-numbers-mode"><!--afterbegin--><pre v-pre class="language-html"><code><span class="token doctype">&lt;!DOCTYPE html></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>html</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>head</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">charset</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>UTF-8<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>viewport<span class="token punctuation">"</span></span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>width=device-width, initial-scale=1.0<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>title</span><span class="token punctuation">></span></span>极简electron终端<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>title</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>link</span> <span class="token attr-name">rel</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>stylesheet<span class="token punctuation">"</span></span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>https://unpkg.com/element-ui/lib/theme-chalk/index.css<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>https://unpkg.com/vue<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token script language-javascript"></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 引入element --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>https://unpkg.com/element-ui/lib/index.js<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token script language-javascript"></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- css --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>link</span> <span class="token attr-name">rel</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>stylesheet<span class="token punctuation">"</span></span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>./index.css<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>head</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>body</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">id</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>app<span class="token punctuation">"</span></span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>main-class<span class="token punctuation">"</span></span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 渲染过往的命令行 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">v-for</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>item in commandArr<span class="token punctuation">"</span></span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>command-action<span class="token punctuation">"</span></span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 执行成功或者失败图标切换 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>i</span> <span class="token attr-name">:class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>[<span class="token punctuation">'</span>el-icon-right<span class="token punctuation">'</span>, <span class="token punctuation">'</span>command-action-icon<span class="token punctuation">'</span>, { <span class="token punctuation">'</span>error-icon<span class="token punctuation">'</span>: item.code !== 0 }]<span class="token punctuation">"</span></span> <span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>i</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 过往执行地址和命令行、信息 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>command-action-path<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>{{ item.path }} $<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>command-action-contenteditable<span class="token punctuation">"</span></span> <span class="token punctuation">></span></span>{{ item.command }}<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span> <span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>output-command<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>{{ item.commandMsg }}<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 当前输入的命令行 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>command-action command-action-editor<span class="token punctuation">"</span></span> <span class="token attr-name">@mouseup</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>timeoutFocusInput<span class="token punctuation">"</span></span> <span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>i</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>el-icon-right command-action-icon<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>i</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 执行地址 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>command-action-path<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>{{ path }} $<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 命令行输入 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">:contenteditable</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>action ? false : <span class="token punctuation">'</span>plaintext-only<span class="token punctuation">'</span><span class="token punctuation">"</span></span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>command-action-contenteditable<span class="token punctuation">"</span></span> <span class="token attr-name">@input</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>onDivInput($event)<span class="token punctuation">"</span></span> <span class="token attr-name">@keydown</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>keyFn<span class="token punctuation">"</span></span> <span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 当前命令行输出 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>output-command<span class="token punctuation">"</span></span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">v-for</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>item in commandMsg<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>{{item}}<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span><span class="token punctuation">></span></span><span class="token script language-javascript"> <span class="token keyword">const</span> <span class="token punctuation">{</span> ipcRenderer <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'electron'</span><span class="token punctuation">)</span> <span class="token keyword">const</span> <span class="token punctuation">{</span> spawn <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'child_process'</span><span class="token punctuation">)</span> <span class="token keyword">const</span> path <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'path'</span><span class="token punctuation">)</span> <span class="token keyword">var</span> app <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Vue</span><span class="token punctuation">(</span><span class="token punctuation">{</span> el<span class="token punctuation">:</span> <span class="token string">'#app'</span><span class="token punctuation">,</span> data<span class="token punctuation">:</span> <span class="token punctuation">{</span> path<span class="token punctuation">:</span> <span class="token string">''</span><span class="token punctuation">,</span> <span class="token comment">// 命令行目录</span> command<span class="token punctuation">:</span> <span class="token string">''</span><span class="token punctuation">,</span> <span class="token comment">// 用户输入命令</span> handleCommand<span class="token punctuation">:</span> <span class="token string">''</span><span class="token punctuation">,</span> <span class="token comment">// 经过处理的用户命令 比如清除首尾空格、添加获取路径的命令</span> commandMsg<span class="token punctuation">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// 当前命令信息</span> commandArr<span class="token punctuation">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// 过往命令行输出保存</span> isActive<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 终端是否聚焦</span> action<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// 是否正在执行命令</span> inputDom<span class="token punctuation">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> <span class="token comment">// 输入框dom</span> addPath<span class="token punctuation">:</span> <span class="token string">''</span><span class="token punctuation">,</span> <span class="token comment">// 不同系统 获取路径的命令 mac是pwd window是chdir</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token function">mounted</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">addGetPath</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>inputDom <span class="token operator">=</span> document<span class="token punctuation">.</span><span class="token function">querySelector</span><span class="token punctuation">(</span> <span class="token string">'.command-action-contenteditable'</span> <span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>path <span class="token operator">=</span> process<span class="token punctuation">.</span><span class="token function">cwd</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// 初始化路径</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">watchFocus</span><span class="token punctuation">(</span><span class="token punctuation">)</span> ipcRenderer<span class="token punctuation">.</span><span class="token function">send</span><span class="token punctuation">(</span><span class="token string">'page-ready'</span><span class="token punctuation">)</span> <span class="token comment">// 告诉主进程页面准备好了</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> methods<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">// 回车执行命令</span> <span class="token function">keyFn</span><span class="token punctuation">(</span>e<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>e<span class="token punctuation">.</span>keyCode <span class="token operator">==</span> <span class="token number">13</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">actionCommand</span><span class="token punctuation">(</span><span class="token punctuation">)</span> e<span class="token punctuation">.</span><span class="token function">preventDefault</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 执行命令</span> <span class="token function">actionCommand</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> command <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>command<span class="token punctuation">.</span><span class="token function">trim</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">isClear</span><span class="token punctuation">(</span>command<span class="token punctuation">)</span> <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>command <span class="token operator">===</span> <span class="token string">''</span><span class="token punctuation">)</span> <span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span>action <span class="token operator">=</span> <span class="token boolean">true</span> <span class="token keyword">this</span><span class="token punctuation">.</span>handleCommand <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">cdCommand</span><span class="token punctuation">(</span>command<span class="token punctuation">)</span> <span class="token keyword">const</span> ls <span class="token operator">=</span> <span class="token function">spawn</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>handleCommand<span class="token punctuation">,</span> <span class="token punctuation">{</span> encoding<span class="token punctuation">:</span> <span class="token string">'utf8'</span><span class="token punctuation">,</span> cwd<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>path<span class="token punctuation">,</span> <span class="token comment">// 执行命令路径</span> shell<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 使用shell命令</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 监听命令行执行过程的输出</span> ls<span class="token punctuation">.</span>stdout<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'data'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>data<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">const</span> value <span class="token operator">=</span> data<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">trim</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>value<span class="token punctuation">)</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stdout: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>value<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 错误或详细状态进度报告 比如 git push、 git clone </span> ls<span class="token punctuation">.</span>stderr<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'data'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>data<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">const</span> value <span class="token operator">=</span> data<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">trim</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stderr: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>data<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stderr: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>data<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 子进程关闭事件 保存信息 更新状态</span> ls<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'close'</span><span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span>closeCommandAction<span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 执行完毕 保存信息 更新状态</span> <span class="token function">closeCommandAction</span><span class="token punctuation">(</span>code<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 保存执行信息</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandArr<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> code<span class="token punctuation">,</span> <span class="token comment">// 是否执行成功</span> path<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>path<span class="token punctuation">,</span> <span class="token comment">// 执行路径</span> command<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>command<span class="token punctuation">,</span> <span class="token comment">// 执行命令</span> commandMsg<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span><span class="token function">join</span><span class="token punctuation">(</span><span class="token string">'\r'</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token comment">// 执行信息</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 清空</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">updatePath</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>handleCommand<span class="token punctuation">,</span> code<span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">commandFinish</span><span class="token punctuation">(</span><span class="token punctuation">)</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span> <span class="token template-string"><span class="token string">`子进程退出,退出码 </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>code<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">, 运行</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>code <span class="token operator">===</span> <span class="token number">0</span> <span class="token operator">?</span> <span class="token string">'成功'</span> <span class="token punctuation">:</span> <span class="token string">'失败'</span><span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span> <span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// cd命令处理</span> <span class="token function">cdCommand</span><span class="token punctuation">(</span>command<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">let</span> pathCommand <span class="token operator">=</span> <span class="token string">''</span> <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>command<span class="token punctuation">.</span><span class="token function">startsWith</span><span class="token punctuation">(</span><span class="token string">'cd '</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> pathCommand <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>addPath <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>command<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">' cd '</span><span class="token punctuation">)</span> <span class="token operator">!==</span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> pathCommand <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>addPath <span class="token punctuation">}</span> <span class="token keyword">return</span> command <span class="token operator">+</span> pathCommand <span class="token comment">// 目录自动联想...等很多细节功能 可以做但没必要2</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 清空历史</span> <span class="token function">isClear</span><span class="token punctuation">(</span>command<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>command <span class="token operator">===</span> <span class="token string">'clear'</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandArr <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">commandFinish</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 获取不同系统下的路径</span> <span class="token function">addGetPath</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> systemName <span class="token operator">=</span> <span class="token function">getOsInfo</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>systemName <span class="token operator">===</span> <span class="token string">'Mac'</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>addPath <span class="token operator">=</span> <span class="token string">' &amp;&amp; pwd'</span> <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>systemName <span class="token operator">===</span> <span class="token string">'Windows'</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>addPath <span class="token operator">=</span> <span class="token string">' &amp;&amp; chdir'</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 命令执行完毕 重置参数</span> <span class="token function">commandFinish</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span> <span class="token keyword">this</span><span class="token punctuation">.</span>command <span class="token operator">=</span> <span class="token string">''</span> <span class="token keyword">this</span><span class="token punctuation">.</span>inputDom<span class="token punctuation">.</span>textContent <span class="token operator">=</span> <span class="token string">''</span> <span class="token keyword">this</span><span class="token punctuation">.</span>action <span class="token operator">=</span> <span class="token boolean">false</span> <span class="token comment">// 激活编辑器</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$nextTick</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">focusInput</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">scrollBottom</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 判断命令是否添加过addPath</span> <span class="token function">updatePath</span><span class="token punctuation">(</span>command<span class="token punctuation">,</span> code<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>code <span class="token operator">!==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token keyword">return</span> <span class="token keyword">const</span> isPathChange <span class="token operator">=</span> command<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>addPath<span class="token punctuation">)</span> <span class="token operator">!==</span> <span class="token operator">-</span><span class="token number">1</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>isPathChange<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>path <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span>length <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 保存输入的命令行</span> <span class="token function">onDivInput</span><span class="token punctuation">(</span>e<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>command <span class="token operator">=</span> e<span class="token punctuation">.</span>target<span class="token punctuation">.</span>textContent <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 点击div</span> <span class="token function">timeoutFocusInput</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token function">setTimeout</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">focusInput</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token number">200</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 聚焦输入</span> <span class="token function">focusInput</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>inputDom<span class="token punctuation">.</span><span class="token function">focus</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">//解决ff不获取焦点无法定位问题</span> <span class="token keyword">var</span> range <span class="token operator">=</span> window<span class="token punctuation">.</span><span class="token function">getSelection</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">//创建range</span> range<span class="token punctuation">.</span><span class="token function">selectAllChildren</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>inputDom<span class="token punctuation">)</span> <span class="token comment">//range 选择obj下所有子内容</span> range<span class="token punctuation">.</span><span class="token function">collapseToEnd</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">//光标移至最后</span> <span class="token keyword">this</span><span class="token punctuation">.</span>inputDom<span class="token punctuation">.</span><span class="token function">focus</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 滚动到底部</span> <span class="token function">scrollBottom</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">let</span> dom <span class="token operator">=</span> document<span class="token punctuation">.</span><span class="token function">querySelector</span><span class="token punctuation">(</span><span class="token string">'#app'</span><span class="token punctuation">)</span> dom<span class="token punctuation">.</span>scrollTop <span class="token operator">=</span> dom<span class="token punctuation">.</span>scrollHeight <span class="token comment">// 滚动高度</span> dom <span class="token operator">=</span> <span class="token keyword">null</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 监听窗口聚焦、失焦</span> <span class="token function">watchFocus</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> ipcRenderer<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'win-focus'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>event<span class="token punctuation">,</span> message<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>isActive <span class="token operator">=</span> message <span class="token keyword">if</span> <span class="token punctuation">(</span>message<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">focusInput</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 获取操作系统信息</span> <span class="token keyword">function</span> <span class="token function">getOsInfo</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">var</span> userAgent <span class="token operator">=</span> navigator<span class="token punctuation">.</span>userAgent<span class="token punctuation">.</span><span class="token function">toLowerCase</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">var</span> name <span class="token operator">=</span> <span class="token string">'Unknown'</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'win'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> name <span class="token operator">=</span> <span class="token string">'Windows'</span> <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'iphone'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> name <span class="token operator">=</span> <span class="token string">'iPhone'</span> <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'mac'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> name <span class="token operator">=</span> <span class="token string">'Mac'</span> <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span> userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'x11'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span> <span class="token operator">||</span> userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'unix'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span> <span class="token operator">||</span> userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'sunname'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span> <span class="token operator">||</span> userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'bsd'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span> <span class="token punctuation">)</span> <span class="token punctuation">{</span> name <span class="token operator">=</span> <span class="token string">'Unix'</span> <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'linux'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'android'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> name <span class="token operator">=</span> <span class="token string">'Android'</span> <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span> name <span class="token operator">=</span> <span class="token string">'Linux'</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span> <span class="token keyword">return</span> name <span class="token punctuation">}</span> </span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>body</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>html</span><span class="token punctuation">></span></span> </code></pre> <!--beforeend--></div><!--afterend--><p>以上就是整个项目的代码实现,总共只有三个文件。</p> <p><strong>更多细节</strong></p> <p>本项目终究是一个简单的demo,如果想要做成一个完整的开源项目,还需要补充很多细节。</p> <p>还会有各种各样奇奇怪怪的需求和需要定制的地方,比如下面这些:</p> <ul> <li><code>command+c</code>终止命令</li> <li><code>cd</code>目录自动补全</li> <li>命令保存上下键滑动</li> <li>git等常用功能单独特殊处理。</li> <li>输出信息颜色变化</li> <li>等等</li> </ul> <h2 id="下载试玩"><a class="header-anchor" href="#下载试玩" aria-hidden="true">#</a> 下载试玩</h2> <p>即使这个终端demo的代码量很少,注释足够详细,但还是需要上手体验一下一个Electron项目运行的细节。</p> <h3 id="项目演示"><a class="header-anchor" href="#项目演示" aria-hidden="true">#</a> 项目演示</h3> <p><strong>clear命令演示</strong></p> <p>实际上就是将历史命令行输出的数组重置为空数组。</p> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-clear.gif" alt=""></p> <p><strong>执行失败箭头切换</strong></p> <p>根据子进程<code>close</code>事件,判断执行是否成功,切换一下图标。</p> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-error.gif" alt=""></p> <p><strong>cd命令</strong></p> <p>识别<code>cd</code>命令,根据系统添加获取路径(<code>pwd</code>/<code>chdir</code>)的命令,再将获取到的路径,更改为最终路径。</p> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-cd.gif" alt=""></p> <p><strong>giit提交代码演示</strong></p> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-git.gif" alt=""></p> <h3 id="项目地址"><a class="header-anchor" href="#项目地址" aria-hidden="true">#</a> 项目地址</h3> <p>开源地址: <a href="https://github.com/OBKoro1/electron-terminal-demo" target="_blank" rel="noopener noreferrer">electron-terminal-demo<OutboundLink/></a></p> <h3 id="启动与调试"><a class="header-anchor" href="#启动与调试" aria-hidden="true">#</a> 启动与调试</h3> <p><strong>安装</strong></p> <!--beforebegin--><div class="language- line-numbers-mode"><!--afterbegin--><pre v-pre class="language-text"><code>npm install </code></pre> <!--beforeend--></div><!--afterend--><p><strong>启动</strong></p> <ol> <li> <p>通过vscode的调试运行项目,这种形式可以直接在VSCode中进行debugger调试。</p> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-vscode-config.jpg" alt=""></p> </li> <li> <p>如果不是使用vscode编辑器, 也可以通过使用命令行启动。</p> </li> </ol> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code>npm run start </code></pre> <!--beforeend--></div><!--afterend--><h2 id="小结"><a class="header-anchor" href="#小结" aria-hidden="true">#</a> 小结</h2> <p>命令行终端的实现原理就是这样啦,强烈推荐各位下载体验一下这个项目,最好单步调试一下,这样会更熟悉<code>Electron</code>。</p> <p>文章idea诞生于我们团队开源的另一个开源项目:<a href="https://github.com/tal-tech/electron-playground" target="_blank" rel="noopener noreferrer">electron-playground<OutboundLink/></a>, 目的是为了让小伙伴学习<code>electron</code>实战项目。</p> <p>electron-playground是用来帮助前端小伙伴们更好、更快的学习和理解前端桌面端技术Electron, 尽量少走弯路。</p> <p>它通过如下方式让我们快速学习electron。</p> <ol> <li>带有gif示例和可操作的demo的教程文章。</li> <li>系统性的整理了Electron相关的api和功能。</li> <li>搭配演练场,自己动手尝试electron的各种特性。</li> </ol> <p><a href="http://obkoro1.com/web_accumulate/" target="_blank" rel="noopener noreferrer">前端进阶积累<OutboundLink/></a>、<a href="https://user-gold-cdn.xitu.io/2018/5/1/1631b6f52f7e7015?w=344&amp;h=344&amp;f=jpeg&amp;s=8317" target="_blank" rel="noopener noreferrer">公众号<OutboundLink/></a>、<a href="https://github.com/OBKoro1" target="_blank" rel="noopener noreferrer">GitHub<OutboundLink/></a>、wx:OBkoro1、邮箱:obkoro1@foxmail.com</p> <p>以上2021/01/12 <!-- 特殊字符串:用于修改/删除markdown的结尾提示语-OBKoro1 --></p> <h3 id="点个star支持我一下"><a class="header-anchor" href="#点个star支持我一下" aria-hidden="true">#</a> 点个<a href="https://github.com/OBKoro1/web_accumulate" target="_blank" rel="noopener noreferrer">Star<OutboundLink/></a>支持我一下~</h3> <!-- '特殊字符串:用于删除编译后的issue组件-OBKoro1 --> [博客链接](http://obkoro1.com/web_accumulate/accumulate/electron/electron-terminal-demo.html?code=3e1708e01fdd04daf01d#%E5%90%AF%E5%8A%A8%E4%B8%8E%E8%B0%83%E8%AF%95)
2.0
从零开始带你写一个运行命令行的终端[手把手教学] | electron - ### [博客链接](http://obkoro1.com/web_accumulate/accumulate/electron/electron-terminal-demo.html?code=3e1708e01fdd04daf01d#%E5%90%AF%E5%8A%A8%E4%B8%8E%E8%B0%83%E8%AF%95) <h1 id="从零开始带你写一个运行命令行的终端-手把手教学"><a class="header-anchor" href="#从零开始带你写一个运行命令行的终端-手把手教学" aria-hidden="true">#</a> 从零开始带你写一个运行命令行的终端[手把手教学]</h1> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-img.jpg" alt=""></p> <h3 id="前言"><a class="header-anchor" href="#前言" aria-hidden="true">#</a> 前言</h3> <p><code>Electron</code>很出名,很多人可能了解过,知道它是用来开发桌面端的应用,但是一直没有在项目中实践过,缺乏练手的实践项目。</p> <p>很多开源的命令行终端都是使用<code>Electron</code>来开发的,本文将从零开始手把手的教大家用<code>Electron</code>写一个命令行终端。</p> <p>作为一个完整的实战项目示例,该终端demo也将集成到<code>Electron</code>开源学习项目<a href="https://github.com/tal-tech/electron-playground" target="_blank" rel="noopener noreferrer">electron-playground<OutboundLink/></a>中,目前这个项目拥有700+ Star⭐️,它最大的特点是所见即所得的演示<code>Electron</code>的各种特性,帮助大家快速学习、上手<code>Electron</code>。</p> <p>大家跟着本文一起来试试Electron吧~</p> <h2 id="终端效果"><a class="header-anchor" href="#终端效果" aria-hidden="true">#</a> 终端效果</h2> <p>开源地址: <a href="https://github.com/OBKoro1/electron-terminal-demo" target="_blank" rel="noopener noreferrer">electron-terminal-demo<OutboundLink/></a></p> <p><strong>giit提交代码演示</strong></p> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-git.gif" alt=""></p> <h3 id="目录"><a class="header-anchor" href="#目录" aria-hidden="true">#</a> 目录</h3> <ol> <li> <p>初始化项目。</p> </li> <li> <p>项目目录结构</p> </li> <li> <p>Electron启动入口index-创建窗口</p> </li> <li> <p>进程通信类-processMessage。</p> </li> <li> <p>窗口html页面-命令行面板</p> </li> <li> <p>命令行面板做了哪些事情</p> <ul> <li>核心方法:child_process.spawn-执行命令行监听命令行的输出</li> <li>stderr不能直接识别为命令行执行错误</li> <li>命令行终端执行命令保存输出信息的核心代码</li> <li>html完整代码</li> <li>命令行终端的更多细节</li> </ul> </li> <li> <p>下载试玩</p> <ul> <li>项目演示</li> <li>项目地址</li> <li>启动与调试</li> </ul> </li> <li> <p>小结</p> </li> </ol> <h3 id="初始化项目"><a class="header-anchor" href="#初始化项目" aria-hidden="true">#</a> 初始化项目</h3> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code>npm init npm install electron <span class="token operator">-</span><span class="token constant">D</span> </code></pre> <!--beforeend--></div><!--afterend--><p>如果Electron安装不上去,需要添加一个<code>.npmrc</code>文件,来修改<code>Electron</code>的安装地址,文件内容如下:</p> <!--beforebegin--><div class="language- line-numbers-mode"><!--afterbegin--><pre v-pre class="language-text"><code>registry=https://registry.npm.taobao.org/ electron_mirror=https://npm.taobao.org/mirrors/electron/ chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriver </code></pre> <!--beforeend--></div><!--afterend--><p>修改一下<code>package.json</code>的入口<code>main</code>和<code>scripts</code>选项, 现在<code>package.json</code>长这样,很简洁:</p> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code><span class="token punctuation">{</span> <span class="token string">"name"</span><span class="token punctuation">:</span> <span class="token string">"electron-terminal"</span><span class="token punctuation">,</span> <span class="token string">"version"</span><span class="token punctuation">:</span> <span class="token string">"1.0.0"</span><span class="token punctuation">,</span> <span class="token string">"main"</span><span class="token punctuation">:</span> <span class="token string">"./src/index.js"</span><span class="token punctuation">,</span> <span class="token string">"scripts"</span><span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token string">"start"</span><span class="token punctuation">:</span> <span class="token string">"electron ."</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token string">"devDependencies"</span><span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token string">"electron"</span><span class="token punctuation">:</span> <span class="token string">"^11.1.1"</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span> </code></pre> <!--beforeend--></div><!--afterend--><h3 id="项目目录结构"><a class="header-anchor" href="#项目目录结构" aria-hidden="true">#</a> 项目目录结构</h3> <p>我们最终实现的项目将是下面这样子的,页面css文件不算的话,我们只需要实现src下面的三个文件即可。</p> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code><span class="token punctuation">.</span> ├── <span class="token punctuation">.</span>vscode <span class="token comment">// 使用vscode的调试功能启动项目</span> ├── node_dodules ├── src │ ├── index<span class="token punctuation">.</span>js <span class="token comment">// Electron启动入口-创建窗口</span> │ └── processMessage<span class="token punctuation">.</span>js <span class="token comment">// 主进程和渲染进程通信类-进程通信、监听时间</span> │ └── index<span class="token punctuation">.</span>html <span class="token comment">// 窗口html页面-命令行面板、执行命令并监听输出</span> │ └── index<span class="token punctuation">.</span>css <span class="token comment">// 窗口html的css样式 这部分不写</span> ├── <span class="token keyword">package</span><span class="token punctuation">.</span>json └── <span class="token punctuation">.</span>npmrc <span class="token comment">// 修改npm安装包的地址</span> └── <span class="token punctuation">.</span>gitignore </code></pre> <!--beforeend--></div><!--afterend--><h3 id="electron启动入口index-创建窗口"><a class="header-anchor" href="#electron启动入口index-创建窗口" aria-hidden="true">#</a> Electron启动入口index-创建窗口</h3> <ol> <li>创建窗口, 赋予窗口直接使用node的能力。</li> <li>窗口加载本地html页面</li> <li>加载主线程和渲染进程通信逻辑</li> </ol> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code><span class="token comment">// ./src/index.js</span> <span class="token keyword">const</span> <span class="token punctuation">{</span> app<span class="token punctuation">,</span> BrowserWindow <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'electron'</span><span class="token punctuation">)</span> <span class="token keyword">const</span> processMessage <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'./processMessage'</span><span class="token punctuation">)</span> <span class="token comment">// 创建窗口</span> <span class="token keyword">function</span> <span class="token function">createWindow</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 创建窗口</span> <span class="token keyword">const</span> win <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">BrowserWindow</span><span class="token punctuation">(</span><span class="token punctuation">{</span> width<span class="token punctuation">:</span> <span class="token number">800</span><span class="token punctuation">,</span> height<span class="token punctuation">:</span> <span class="token number">600</span><span class="token punctuation">,</span> webPreferences<span class="token punctuation">:</span> <span class="token punctuation">{</span> nodeIntegration<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 页面直接使用node的能力 用于引入node模块 执行命令</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 加载本地页面</span> win<span class="token punctuation">.</span><span class="token function">loadFile</span><span class="token punctuation">(</span><span class="token string">'./src/index.html'</span><span class="token punctuation">)</span> win<span class="token punctuation">.</span>webContents<span class="token punctuation">.</span><span class="token function">openDevTools</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// 打开控制台</span> <span class="token comment">// 主线程和渲染进程通信</span> <span class="token keyword">const</span> ProcessMessage <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">processMessage</span><span class="token punctuation">(</span>win<span class="token punctuation">)</span> ProcessMessage<span class="token punctuation">.</span><span class="token function">init</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token comment">// app ready 创建窗口</span> app<span class="token punctuation">.</span><span class="token function">whenReady</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span>createWindow<span class="token punctuation">)</span> </code></pre> <!--beforeend--></div><!--afterend--><h3 id="进程通信类-processmessage"><a class="header-anchor" href="#进程通信类-processmessage" aria-hidden="true">#</a> 进程通信类-processMessage</h3> <p>electron分为主进程和渲染进程,因为进程不同,在各种事件发生的对应时机需要相互通知来执行一些功能。</p> <p>这个类就是用于它们之间的通信的,electron通信这部分封装的很简洁了,照着用就可以了。</p> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code><span class="token comment">// ./src/processMessage.js</span> <span class="token keyword">const</span> <span class="token punctuation">{</span> ipcMain <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'electron'</span><span class="token punctuation">)</span> <span class="token keyword">class</span> <span class="token class-name">ProcessMessage</span> <span class="token punctuation">{</span> <span class="token comment">/** * 进程通信 * @param {*} win 创建的窗口 */</span> <span class="token function">constructor</span><span class="token punctuation">(</span>win<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>win <span class="token operator">=</span> win <span class="token punctuation">}</span> <span class="token function">init</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">watch</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token comment">// 监听渲染进程事件通信</span> <span class="token function">watch</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 页面准备好了</span> ipcMain<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'page-ready'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">sendFocus</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token comment">// 监听窗口、app、等模块的事件</span> <span class="token function">on</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 监听窗口是否聚焦</span> <span class="token keyword">this</span><span class="token punctuation">.</span>win<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'focus'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">sendFocus</span><span class="token punctuation">(</span><span class="token boolean">true</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>win<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'blur'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">sendFocus</span><span class="token punctuation">(</span><span class="token boolean">false</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token comment">/** * 窗口聚焦事件发送 * @param {*} isActive 是否聚焦 */</span> <span class="token function">sendFocus</span><span class="token punctuation">(</span>isActive<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 主线程发送事件给窗口</span> <span class="token keyword">this</span><span class="token punctuation">.</span>win<span class="token punctuation">.</span>webContents<span class="token punctuation">.</span><span class="token function">send</span><span class="token punctuation">(</span><span class="token string">'win-focus'</span><span class="token punctuation">,</span> isActive<span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span> module<span class="token punctuation">.</span>exports <span class="token operator">=</span> ProcessMessage </code></pre> <!--beforeend--></div><!--afterend--><h2 id="窗口html页面-命令行面板"><a class="header-anchor" href="#窗口html页面-命令行面板" aria-hidden="true">#</a> 窗口html页面-命令行面板</h2> <p>在创建窗口的时候,我们赋予了窗口使用node的能力, 可以在html中直接使用node模块。</p> <p>所以我们不需要通过进程通信的方式来执行命令和渲染输出,可以直接在一个文件里面完成。</p> <p><strong>终端的核心在于执行命令,渲染命令行输出,保存命令行的输出</strong>。</p> <p>这些都在这个文件里面实现了,代码行数不到250行。</p> <h2 id="命令行面板做了哪些事情"><a class="header-anchor" href="#命令行面板做了哪些事情" aria-hidden="true">#</a> 命令行面板做了哪些事情</h2> <ul> <li> <p>页面: 引入vue、element,css文件来处理页面</p> </li> <li> <p>template模板-渲染当前命令行执行的输出以及历史命令行的执行输出</p> </li> <li> <p><strong>核心</strong>:执行命令监听命令行输出</p> <ul> <li>执行命令并监听执行命令的输出,同步渲染输出。</li> <li>执行完毕,保存命令行输出的信息。</li> <li>渲染历史命令行输出。</li> <li>对一些命令进行特殊处理,比如下面的细节处理。</li> </ul> </li> <li> <p>围绕执行命令行的细节处理</p> <ul> <li>识别cd,根据系统保存cd路径</li> <li>识别clear清空所有输出。</li> <li>执行成功与失败的箭头图标展示。</li> <li>聚焦窗口,聚焦输入。</li> <li>命令执行完毕滚动底部。</li> <li>等等细节。</li> </ul> </li> </ul> <h3 id="核心方法:child-process-spawn-执行命令行监听命令行的输出"><a class="header-anchor" href="#核心方法:child-process-spawn-执行命令行监听命令行的输出" aria-hidden="true">#</a> 核心方法:child_process.spawn-执行命令行监听命令行的输出</h3> <h4 id="child-process-spawn介绍"><a class="header-anchor" href="#child-process-spawn介绍" aria-hidden="true">#</a> child_process.spawn介绍</h4> <p><code>spawn</code>是node子进程模块<code>child_process</code>提供的一个异步方法。</p> <p><strong>它的作用是执行命令并且可以实时监听命令行执行的输出</strong>。</p> <p>当我第一次知道这个API的时候,我就感觉这个方法简直是为命令行终端量身定做的。</p> <p>终端的核心也是执行命令行,并且实时输出命令行执行期间的信息。</p> <p>下面就来看看它的使用方式。</p> <h4 id="使用方式"><a class="header-anchor" href="#使用方式" aria-hidden="true">#</a> 使用方式</h4> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code><span class="token keyword">const</span> <span class="token punctuation">{</span> spawn <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'child_process'</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token keyword">const</span> ls <span class="token operator">=</span> <span class="token function">spawn</span><span class="token punctuation">(</span><span class="token string">'ls'</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> encoding<span class="token punctuation">:</span> <span class="token string">'utf8'</span><span class="token punctuation">,</span> cwd<span class="token punctuation">:</span> process<span class="token punctuation">.</span><span class="token function">cwd</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token comment">// 执行命令路径</span> shell<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 使用shell命令</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 监听标准输出</span> ls<span class="token punctuation">.</span>stdout<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'data'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>data<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stdout: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>data<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// 监听标准错误</span> ls<span class="token punctuation">.</span>stderr<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'data'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>data<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> console<span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stderr: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>data<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// 子进程关闭事件</span> ls<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'close'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>code<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`子进程退出,退出码 </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>code<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> </code></pre> <!--beforeend--></div><!--afterend--><p>api的使用很简单,但是终端信息的输出,需要很多细节的处理,比如下面这个。</p> <h3 id="stderr不能直接识别为命令行执行错误"><a class="header-anchor" href="#stderr不能直接识别为命令行执行错误" aria-hidden="true">#</a> stderr不能直接识别为命令行执行错误</h3> <p><code>stderr</code>虽然是标准错误输出,但里面的信息不全是错误的信息,不同的工具会有不同的处理。</p> <p>对于<code>git</code>来说,有很多命令行操作的输出信息都输出在<code>stederr</code>上。</p> <p>比如<code>git clone</code>、<code>git push</code>等,信息输出在<code>stederr</code>中,我们不能将其视为错误。</p> <p><code>git</code>总是将<strong>详细的状态信息和进度报告</strong>,以及只读信息,发送给<code>stederr</code>。</p> <p>具体细节可以查看<a href="https://juejin.cn/post/6844903676792815629" target="_blank" rel="noopener noreferrer">git stderr(错误流)探秘<OutboundLink/></a>等资料。</p> <p>暂时还不清楚其他工具/命令行也有没有类似的操作,但是很明显我们不能将<code>stederr</code>的信息视为错误的信息。</p> <p>PS: 对于git如果想提供更好的支持,需要根据不同的<code>git</code>命令进行特殊处理,比如对下面<code>clear</code>命令和<code>cd</code>命令的特殊处理。</p> <p><strong>根据子进程close事件判断命令行是否执行成功</strong></p> <p>我们应该检测<code>close</code>事件的退出码<code>code</code>, 如果<code>code</code>为0则表示命令行执行成功,否则即为失败。</p> <h3 id="命令行终端执行命令保存输出信息的核心代码"><a class="header-anchor" href="#命令行终端执行命令保存输出信息的核心代码" aria-hidden="true">#</a> 命令行终端执行命令保存输出信息的核心代码</h3> <p>下面这段是命令行面板的核心代码,我贴一下大家重点看一下,</p> <p>其他部分都是一些细节、优化体验、状态处理这样的代码,下面会将完整的html贴上来。</p> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code><span class="token keyword">const</span> <span class="token punctuation">{</span> spawn <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'child_process'</span><span class="token punctuation">)</span> <span class="token comment">// 使用node child_process模块</span> <span class="token comment">// 执行命令行</span> <span class="token function">actionCommand</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 处理command命令 </span> <span class="token keyword">const</span> command <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>command<span class="token punctuation">.</span><span class="token function">trim</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">isClear</span><span class="token punctuation">(</span>command<span class="token punctuation">)</span> <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>command <span class="token operator">===</span> <span class="token string">''</span><span class="token punctuation">)</span> <span class="token keyword">return</span> <span class="token comment">// 执行命令行</span> <span class="token keyword">this</span><span class="token punctuation">.</span>action <span class="token operator">=</span> <span class="token boolean">true</span> <span class="token keyword">this</span><span class="token punctuation">.</span>handleCommand <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">cdCommand</span><span class="token punctuation">(</span>command<span class="token punctuation">)</span> <span class="token keyword">const</span> ls <span class="token operator">=</span> <span class="token function">spawn</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>handleCommand<span class="token punctuation">,</span> <span class="token punctuation">{</span> encoding<span class="token punctuation">:</span> <span class="token string">'utf8'</span><span class="token punctuation">,</span> cwd<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>path<span class="token punctuation">,</span> <span class="token comment">// 执行命令路径</span> shell<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 使用shell命令</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 监听命令行执行过程的输出</span> ls<span class="token punctuation">.</span>stdout<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'data'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>data<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">const</span> value <span class="token operator">=</span> data<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">trim</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>value<span class="token punctuation">)</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stdout: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>value<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> ls<span class="token punctuation">.</span>stderr<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'data'</span><span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span>stderrMsgHandle<span class="token punctuation">)</span> ls<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'close'</span><span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span>closeCommandAction<span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 错误或详细状态进度报告 比如 git push</span> <span class="token function">stderrMsgHandle</span><span class="token punctuation">(</span>data<span class="token punctuation">)</span> <span class="token punctuation">{</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stderr: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>data<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stderr: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>data<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 执行完毕 保存信息 更新状态</span> <span class="token function">closeCommandAction</span><span class="token punctuation">(</span>code<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 保存执行信息</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandArr<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> code<span class="token punctuation">,</span> <span class="token comment">// 是否执行成功</span> path<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>path<span class="token punctuation">,</span> <span class="token comment">// 执行路径</span> command<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>command<span class="token punctuation">,</span> <span class="token comment">// 执行命令</span> commandMsg<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span><span class="token function">join</span><span class="token punctuation">(</span><span class="token string">'\r'</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token comment">// 执行信息</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 清空</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">updatePath</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>handleCommand<span class="token punctuation">,</span> code<span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">commandFinish</span><span class="token punctuation">(</span><span class="token punctuation">)</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span> <span class="token template-string"><span class="token string">`子进程退出,退出码 </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>code<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">, 运行</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>code <span class="token operator">===</span> <span class="token number">0</span> <span class="token operator">?</span> <span class="token string">'成功'</span> <span class="token punctuation">:</span> <span class="token string">'失败'</span><span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span> <span class="token punctuation">)</span> <span class="token punctuation">}</span> </code></pre> <!--beforeend--></div><!--afterend--><h4 id="html完整代码"><a class="header-anchor" href="#html完整代码" aria-hidden="true">#</a> html完整代码</h4> <p>这里是html的完整代码,代码中有详细注释,建议根据上面的<strong>命令行面板做了哪些事情</strong>,来阅读源码。</p> <!--beforebegin--><div class="language-html line-numbers-mode"><!--afterbegin--><pre v-pre class="language-html"><code><span class="token doctype">&lt;!DOCTYPE html></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>html</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>head</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">charset</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>UTF-8<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>viewport<span class="token punctuation">"</span></span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>width=device-width, initial-scale=1.0<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>title</span><span class="token punctuation">></span></span>极简electron终端<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>title</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>link</span> <span class="token attr-name">rel</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>stylesheet<span class="token punctuation">"</span></span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>https://unpkg.com/element-ui/lib/theme-chalk/index.css<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>https://unpkg.com/vue<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token script language-javascript"></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 引入element --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>https://unpkg.com/element-ui/lib/index.js<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token script language-javascript"></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- css --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>link</span> <span class="token attr-name">rel</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>stylesheet<span class="token punctuation">"</span></span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>./index.css<span class="token punctuation">"</span></span> <span class="token punctuation">/></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>head</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>body</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">id</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>app<span class="token punctuation">"</span></span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>main-class<span class="token punctuation">"</span></span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 渲染过往的命令行 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">v-for</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>item in commandArr<span class="token punctuation">"</span></span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>command-action<span class="token punctuation">"</span></span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 执行成功或者失败图标切换 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>i</span> <span class="token attr-name">:class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>[<span class="token punctuation">'</span>el-icon-right<span class="token punctuation">'</span>, <span class="token punctuation">'</span>command-action-icon<span class="token punctuation">'</span>, { <span class="token punctuation">'</span>error-icon<span class="token punctuation">'</span>: item.code !== 0 }]<span class="token punctuation">"</span></span> <span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>i</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 过往执行地址和命令行、信息 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>command-action-path<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>{{ item.path }} $<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>command-action-contenteditable<span class="token punctuation">"</span></span> <span class="token punctuation">></span></span>{{ item.command }}<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span> <span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>output-command<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>{{ item.commandMsg }}<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 当前输入的命令行 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>command-action command-action-editor<span class="token punctuation">"</span></span> <span class="token attr-name">@mouseup</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>timeoutFocusInput<span class="token punctuation">"</span></span> <span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>i</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>el-icon-right command-action-icon<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>i</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 执行地址 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>command-action-path<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>{{ path }} $<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 命令行输入 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">:contenteditable</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>action ? false : <span class="token punctuation">'</span>plaintext-only<span class="token punctuation">'</span><span class="token punctuation">"</span></span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>command-action-contenteditable<span class="token punctuation">"</span></span> <span class="token attr-name">@input</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>onDivInput($event)<span class="token punctuation">"</span></span> <span class="token attr-name">@keydown</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>keyFn<span class="token punctuation">"</span></span> <span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token comment">&lt;!-- 当前命令行输出 --></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>output-command<span class="token punctuation">"</span></span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">v-for</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>item in commandMsg<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>{{item}}<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span><span class="token punctuation">></span></span><span class="token script language-javascript"> <span class="token keyword">const</span> <span class="token punctuation">{</span> ipcRenderer <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'electron'</span><span class="token punctuation">)</span> <span class="token keyword">const</span> <span class="token punctuation">{</span> spawn <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'child_process'</span><span class="token punctuation">)</span> <span class="token keyword">const</span> path <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">'path'</span><span class="token punctuation">)</span> <span class="token keyword">var</span> app <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Vue</span><span class="token punctuation">(</span><span class="token punctuation">{</span> el<span class="token punctuation">:</span> <span class="token string">'#app'</span><span class="token punctuation">,</span> data<span class="token punctuation">:</span> <span class="token punctuation">{</span> path<span class="token punctuation">:</span> <span class="token string">''</span><span class="token punctuation">,</span> <span class="token comment">// 命令行目录</span> command<span class="token punctuation">:</span> <span class="token string">''</span><span class="token punctuation">,</span> <span class="token comment">// 用户输入命令</span> handleCommand<span class="token punctuation">:</span> <span class="token string">''</span><span class="token punctuation">,</span> <span class="token comment">// 经过处理的用户命令 比如清除首尾空格、添加获取路径的命令</span> commandMsg<span class="token punctuation">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// 当前命令信息</span> commandArr<span class="token punctuation">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// 过往命令行输出保存</span> isActive<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 终端是否聚焦</span> action<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// 是否正在执行命令</span> inputDom<span class="token punctuation">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> <span class="token comment">// 输入框dom</span> addPath<span class="token punctuation">:</span> <span class="token string">''</span><span class="token punctuation">,</span> <span class="token comment">// 不同系统 获取路径的命令 mac是pwd window是chdir</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token function">mounted</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">addGetPath</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>inputDom <span class="token operator">=</span> document<span class="token punctuation">.</span><span class="token function">querySelector</span><span class="token punctuation">(</span> <span class="token string">'.command-action-contenteditable'</span> <span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>path <span class="token operator">=</span> process<span class="token punctuation">.</span><span class="token function">cwd</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// 初始化路径</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">watchFocus</span><span class="token punctuation">(</span><span class="token punctuation">)</span> ipcRenderer<span class="token punctuation">.</span><span class="token function">send</span><span class="token punctuation">(</span><span class="token string">'page-ready'</span><span class="token punctuation">)</span> <span class="token comment">// 告诉主进程页面准备好了</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> methods<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">// 回车执行命令</span> <span class="token function">keyFn</span><span class="token punctuation">(</span>e<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>e<span class="token punctuation">.</span>keyCode <span class="token operator">==</span> <span class="token number">13</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">actionCommand</span><span class="token punctuation">(</span><span class="token punctuation">)</span> e<span class="token punctuation">.</span><span class="token function">preventDefault</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 执行命令</span> <span class="token function">actionCommand</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> command <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>command<span class="token punctuation">.</span><span class="token function">trim</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">isClear</span><span class="token punctuation">(</span>command<span class="token punctuation">)</span> <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>command <span class="token operator">===</span> <span class="token string">''</span><span class="token punctuation">)</span> <span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span>action <span class="token operator">=</span> <span class="token boolean">true</span> <span class="token keyword">this</span><span class="token punctuation">.</span>handleCommand <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">cdCommand</span><span class="token punctuation">(</span>command<span class="token punctuation">)</span> <span class="token keyword">const</span> ls <span class="token operator">=</span> <span class="token function">spawn</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>handleCommand<span class="token punctuation">,</span> <span class="token punctuation">{</span> encoding<span class="token punctuation">:</span> <span class="token string">'utf8'</span><span class="token punctuation">,</span> cwd<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>path<span class="token punctuation">,</span> <span class="token comment">// 执行命令路径</span> shell<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 使用shell命令</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 监听命令行执行过程的输出</span> ls<span class="token punctuation">.</span>stdout<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'data'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>data<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">const</span> value <span class="token operator">=</span> data<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">trim</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>value<span class="token punctuation">)</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stdout: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>value<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 错误或详细状态进度报告 比如 git push、 git clone </span> ls<span class="token punctuation">.</span>stderr<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'data'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>data<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">const</span> value <span class="token operator">=</span> data<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">trim</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stderr: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>data<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token template-string"><span class="token string">`stderr: </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>data<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 子进程关闭事件 保存信息 更新状态</span> ls<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'close'</span><span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span>closeCommandAction<span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 执行完毕 保存信息 更新状态</span> <span class="token function">closeCommandAction</span><span class="token punctuation">(</span>code<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// 保存执行信息</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandArr<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> code<span class="token punctuation">,</span> <span class="token comment">// 是否执行成功</span> path<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>path<span class="token punctuation">,</span> <span class="token comment">// 执行路径</span> command<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>command<span class="token punctuation">,</span> <span class="token comment">// 执行命令</span> commandMsg<span class="token punctuation">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span><span class="token function">join</span><span class="token punctuation">(</span><span class="token string">'\r'</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token comment">// 执行信息</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 清空</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">updatePath</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>handleCommand<span class="token punctuation">,</span> code<span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">commandFinish</span><span class="token punctuation">(</span><span class="token punctuation">)</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span> <span class="token template-string"><span class="token string">`子进程退出,退出码 </span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>code<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">, 运行</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>code <span class="token operator">===</span> <span class="token number">0</span> <span class="token operator">?</span> <span class="token string">'成功'</span> <span class="token punctuation">:</span> <span class="token string">'失败'</span><span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span> <span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// cd命令处理</span> <span class="token function">cdCommand</span><span class="token punctuation">(</span>command<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">let</span> pathCommand <span class="token operator">=</span> <span class="token string">''</span> <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>command<span class="token punctuation">.</span><span class="token function">startsWith</span><span class="token punctuation">(</span><span class="token string">'cd '</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> pathCommand <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>addPath <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>command<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">' cd '</span><span class="token punctuation">)</span> <span class="token operator">!==</span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> pathCommand <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>addPath <span class="token punctuation">}</span> <span class="token keyword">return</span> command <span class="token operator">+</span> pathCommand <span class="token comment">// 目录自动联想...等很多细节功能 可以做但没必要2</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 清空历史</span> <span class="token function">isClear</span><span class="token punctuation">(</span>command<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>command <span class="token operator">===</span> <span class="token string">'clear'</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandArr <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">commandFinish</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 获取不同系统下的路径</span> <span class="token function">addGetPath</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> systemName <span class="token operator">=</span> <span class="token function">getOsInfo</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>systemName <span class="token operator">===</span> <span class="token string">'Mac'</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>addPath <span class="token operator">=</span> <span class="token string">' &amp;&amp; pwd'</span> <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>systemName <span class="token operator">===</span> <span class="token string">'Windows'</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>addPath <span class="token operator">=</span> <span class="token string">' &amp;&amp; chdir'</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 命令执行完毕 重置参数</span> <span class="token function">commandFinish</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span> <span class="token keyword">this</span><span class="token punctuation">.</span>command <span class="token operator">=</span> <span class="token string">''</span> <span class="token keyword">this</span><span class="token punctuation">.</span>inputDom<span class="token punctuation">.</span>textContent <span class="token operator">=</span> <span class="token string">''</span> <span class="token keyword">this</span><span class="token punctuation">.</span>action <span class="token operator">=</span> <span class="token boolean">false</span> <span class="token comment">// 激活编辑器</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$nextTick</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">focusInput</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">scrollBottom</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 判断命令是否添加过addPath</span> <span class="token function">updatePath</span><span class="token punctuation">(</span>command<span class="token punctuation">,</span> code<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>code <span class="token operator">!==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token keyword">return</span> <span class="token keyword">const</span> isPathChange <span class="token operator">=</span> command<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>addPath<span class="token punctuation">)</span> <span class="token operator">!==</span> <span class="token operator">-</span><span class="token number">1</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>isPathChange<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>path <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>commandMsg<span class="token punctuation">.</span>length <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 保存输入的命令行</span> <span class="token function">onDivInput</span><span class="token punctuation">(</span>e<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>command <span class="token operator">=</span> e<span class="token punctuation">.</span>target<span class="token punctuation">.</span>textContent <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 点击div</span> <span class="token function">timeoutFocusInput</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token function">setTimeout</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">focusInput</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token number">200</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 聚焦输入</span> <span class="token function">focusInput</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>inputDom<span class="token punctuation">.</span><span class="token function">focus</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">//解决ff不获取焦点无法定位问题</span> <span class="token keyword">var</span> range <span class="token operator">=</span> window<span class="token punctuation">.</span><span class="token function">getSelection</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">//创建range</span> range<span class="token punctuation">.</span><span class="token function">selectAllChildren</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>inputDom<span class="token punctuation">)</span> <span class="token comment">//range 选择obj下所有子内容</span> range<span class="token punctuation">.</span><span class="token function">collapseToEnd</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">//光标移至最后</span> <span class="token keyword">this</span><span class="token punctuation">.</span>inputDom<span class="token punctuation">.</span><span class="token function">focus</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 滚动到底部</span> <span class="token function">scrollBottom</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">let</span> dom <span class="token operator">=</span> document<span class="token punctuation">.</span><span class="token function">querySelector</span><span class="token punctuation">(</span><span class="token string">'#app'</span><span class="token punctuation">)</span> dom<span class="token punctuation">.</span>scrollTop <span class="token operator">=</span> dom<span class="token punctuation">.</span>scrollHeight <span class="token comment">// 滚动高度</span> dom <span class="token operator">=</span> <span class="token keyword">null</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// 监听窗口聚焦、失焦</span> <span class="token function">watchFocus</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> ipcRenderer<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">'win-focus'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span>event<span class="token punctuation">,</span> message<span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span>isActive <span class="token operator">=</span> message <span class="token keyword">if</span> <span class="token punctuation">(</span>message<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">focusInput</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// 获取操作系统信息</span> <span class="token keyword">function</span> <span class="token function">getOsInfo</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">var</span> userAgent <span class="token operator">=</span> navigator<span class="token punctuation">.</span>userAgent<span class="token punctuation">.</span><span class="token function">toLowerCase</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">var</span> name <span class="token operator">=</span> <span class="token string">'Unknown'</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'win'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> name <span class="token operator">=</span> <span class="token string">'Windows'</span> <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'iphone'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> name <span class="token operator">=</span> <span class="token string">'iPhone'</span> <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'mac'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> name <span class="token operator">=</span> <span class="token string">'Mac'</span> <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span> userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'x11'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span> <span class="token operator">||</span> userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'unix'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span> <span class="token operator">||</span> userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'sunname'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span> <span class="token operator">||</span> userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'bsd'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span> <span class="token punctuation">)</span> <span class="token punctuation">{</span> name <span class="token operator">=</span> <span class="token string">'Unix'</span> <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'linux'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>userAgent<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span><span class="token string">'android'</span><span class="token punctuation">)</span> <span class="token operator">></span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> name <span class="token operator">=</span> <span class="token string">'Android'</span> <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span> name <span class="token operator">=</span> <span class="token string">'Linux'</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span> <span class="token keyword">return</span> name <span class="token punctuation">}</span> </span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>body</span><span class="token punctuation">></span></span> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>html</span><span class="token punctuation">></span></span> </code></pre> <!--beforeend--></div><!--afterend--><p>以上就是整个项目的代码实现,总共只有三个文件。</p> <p><strong>更多细节</strong></p> <p>本项目终究是一个简单的demo,如果想要做成一个完整的开源项目,还需要补充很多细节。</p> <p>还会有各种各样奇奇怪怪的需求和需要定制的地方,比如下面这些:</p> <ul> <li><code>command+c</code>终止命令</li> <li><code>cd</code>目录自动补全</li> <li>命令保存上下键滑动</li> <li>git等常用功能单独特殊处理。</li> <li>输出信息颜色变化</li> <li>等等</li> </ul> <h2 id="下载试玩"><a class="header-anchor" href="#下载试玩" aria-hidden="true">#</a> 下载试玩</h2> <p>即使这个终端demo的代码量很少,注释足够详细,但还是需要上手体验一下一个Electron项目运行的细节。</p> <h3 id="项目演示"><a class="header-anchor" href="#项目演示" aria-hidden="true">#</a> 项目演示</h3> <p><strong>clear命令演示</strong></p> <p>实际上就是将历史命令行输出的数组重置为空数组。</p> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-clear.gif" alt=""></p> <p><strong>执行失败箭头切换</strong></p> <p>根据子进程<code>close</code>事件,判断执行是否成功,切换一下图标。</p> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-error.gif" alt=""></p> <p><strong>cd命令</strong></p> <p>识别<code>cd</code>命令,根据系统添加获取路径(<code>pwd</code>/<code>chdir</code>)的命令,再将获取到的路径,更改为最终路径。</p> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-cd.gif" alt=""></p> <p><strong>giit提交代码演示</strong></p> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-git.gif" alt=""></p> <h3 id="项目地址"><a class="header-anchor" href="#项目地址" aria-hidden="true">#</a> 项目地址</h3> <p>开源地址: <a href="https://github.com/OBKoro1/electron-terminal-demo" target="_blank" rel="noopener noreferrer">electron-terminal-demo<OutboundLink/></a></p> <h3 id="启动与调试"><a class="header-anchor" href="#启动与调试" aria-hidden="true">#</a> 启动与调试</h3> <p><strong>安装</strong></p> <!--beforebegin--><div class="language- line-numbers-mode"><!--afterbegin--><pre v-pre class="language-text"><code>npm install </code></pre> <!--beforeend--></div><!--afterend--><p><strong>启动</strong></p> <ol> <li> <p>通过vscode的调试运行项目,这种形式可以直接在VSCode中进行debugger调试。</p> <p><img src="https://raw.githubusercontent.com/OBKoro1/articleImg_src/master/2021/electron-terminal/electron-terminal-vscode-config.jpg" alt=""></p> </li> <li> <p>如果不是使用vscode编辑器, 也可以通过使用命令行启动。</p> </li> </ol> <!--beforebegin--><div class="language-js line-numbers-mode"><!--afterbegin--><pre v-pre class="language-js"><code>npm run start </code></pre> <!--beforeend--></div><!--afterend--><h2 id="小结"><a class="header-anchor" href="#小结" aria-hidden="true">#</a> 小结</h2> <p>命令行终端的实现原理就是这样啦,强烈推荐各位下载体验一下这个项目,最好单步调试一下,这样会更熟悉<code>Electron</code>。</p> <p>文章idea诞生于我们团队开源的另一个开源项目:<a href="https://github.com/tal-tech/electron-playground" target="_blank" rel="noopener noreferrer">electron-playground<OutboundLink/></a>, 目的是为了让小伙伴学习<code>electron</code>实战项目。</p> <p>electron-playground是用来帮助前端小伙伴们更好、更快的学习和理解前端桌面端技术Electron, 尽量少走弯路。</p> <p>它通过如下方式让我们快速学习electron。</p> <ol> <li>带有gif示例和可操作的demo的教程文章。</li> <li>系统性的整理了Electron相关的api和功能。</li> <li>搭配演练场,自己动手尝试electron的各种特性。</li> </ol> <p><a href="http://obkoro1.com/web_accumulate/" target="_blank" rel="noopener noreferrer">前端进阶积累<OutboundLink/></a>、<a href="https://user-gold-cdn.xitu.io/2018/5/1/1631b6f52f7e7015?w=344&amp;h=344&amp;f=jpeg&amp;s=8317" target="_blank" rel="noopener noreferrer">公众号<OutboundLink/></a>、<a href="https://github.com/OBKoro1" target="_blank" rel="noopener noreferrer">GitHub<OutboundLink/></a>、wx:OBkoro1、邮箱:obkoro1@foxmail.com</p> <p>以上2021/01/12 <!-- 特殊字符串:用于修改/删除markdown的结尾提示语-OBKoro1 --></p> <h3 id="点个star支持我一下"><a class="header-anchor" href="#点个star支持我一下" aria-hidden="true">#</a> 点个<a href="https://github.com/OBKoro1/web_accumulate" target="_blank" rel="noopener noreferrer">Star<OutboundLink/></a>支持我一下~</h3> <!-- '特殊字符串:用于删除编译后的issue组件-OBKoro1 --> [博客链接](http://obkoro1.com/web_accumulate/accumulate/electron/electron-terminal-demo.html?code=3e1708e01fdd04daf01d#%E5%90%AF%E5%8A%A8%E4%B8%8E%E8%B0%83%E8%AF%95)
process
从零开始带你写一个运行命令行的终端 electron 从零开始带你写一个运行命令行的终端 前言 electron 很出名,很多人可能了解过,知道它是用来开发桌面端的应用,但是一直没有在项目中实践过,缺乏练手的实践项目。 很多开源的命令行终端都是使用 electron 来开发的,本文将从零开始手把手的教大家用 electron 写一个命令行终端。 作为一个完整的实战项目示例,该终端demo也将集成到 electron 开源学习项目 electron playground 中, star⭐️,它最大的特点是所见即所得的演示 electron 的各种特性,帮助大家快速学习、上手 electron 。 大家跟着本文一起来试试electron吧 终端效果 开源地址 electron terminal demo giit提交代码演示 目录 初始化项目。 项目目录结构 electron启动入口index 创建窗口 进程通信类 processmessage。 窗口html页面 命令行面板 命令行面板做了哪些事情 核心方法:child process spawn 执行命令行监听命令行的输出 stderr不能直接识别为命令行执行错误 命令行终端执行命令保存输出信息的核心代码 html完整代码 命令行终端的更多细节 下载试玩 项目演示 项目地址 启动与调试 小结 初始化项目 npm init npm install electron d 如果electron安装不上去,需要添加一个 npmrc 文件 来修改 electron 的安装地址 文件内容如下: registry electron mirror chromedriver cdnurl 修改一下 package json 的入口 main 和 scripts 选项 现在 package json 长这样,很简洁 name electron terminal version main src index js scripts start electron devdependencies electron 项目目录结构 我们最终实现的项目将是下面这样子的,页面css文件不算的话,我们只需要实现src下面的三个文件即可。 ├── vscode 使用vscode的调试功能启动项目 ├── node dodules ├── src │ ├── index js electron启动入口 创建窗口 │ └── processmessage js 主进程和渲染进程通信类 进程通信、监听时间 │ └── index html 窗口html页面 命令行面板、执行命令并监听输出 │ └── index css 窗口html的css样式 这部分不写 ├── package json └── npmrc 修改npm安装包的地址 └── gitignore electron启动入口index 创建窗口 创建窗口 赋予窗口直接使用node的能力。 窗口加载本地html页面 加载主线程和渲染进程通信逻辑 src index js const app browserwindow require electron const processmessage require processmessage 创建窗口 function createwindow 创建窗口 const win new browserwindow width height webpreferences nodeintegration true 页面直接使用node的能力 用于引入node模块 执行命令 加载本地页面 win loadfile src index html win webcontents opendevtools 打开控制台 主线程和渲染进程通信 const processmessage new processmessage win processmessage init app ready 创建窗口 app whenready then createwindow 进程通信类 processmessage electron分为主进程和渲染进程,因为进程不同,在各种事件发生的对应时机需要相互通知来执行一些功能。 这个类就是用于它们之间的通信的,electron通信这部分封装的很简洁了,照着用就可以了。 src processmessage js const ipcmain require electron class processmessage 进程通信 param win 创建的窗口 constructor win this win win init this watch this on 监听渲染进程事件通信 watch 页面准备好了 ipcmain on page ready this sendfocus 监听窗口、app、等模块的事件 on 监听窗口是否聚焦 this win on focus this sendfocus true this win on blur this sendfocus false 窗口聚焦事件发送 param isactive 是否聚焦 sendfocus isactive 主线程发送事件给窗口 this win webcontents send win focus isactive module exports processmessage 窗口html页面 命令行面板 在创建窗口的时候,我们赋予了窗口使用node的能力 可以在html中直接使用node模块。 所以我们不需要通过进程通信的方式来执行命令和渲染输出,可以直接在一个文件里面完成。 终端的核心在于执行命令,渲染命令行输出,保存命令行的输出 。 这些都在这个文件里面实现了, 。 命令行面板做了哪些事情 页面 引入vue、element css文件来处理页面 template模板 渲染当前命令行执行的输出以及历史命令行的执行输出 核心 执行命令监听命令行输出 执行命令并监听执行命令的输出,同步渲染输出。 执行完毕,保存命令行输出的信息。 渲染历史命令行输出。 对一些命令进行特殊处理,比如下面的细节处理。 围绕执行命令行的细节处理 识别cd,根据系统保存cd路径 识别clear清空所有输出。 执行成功与失败的箭头图标展示。 聚焦窗口,聚焦输入。 命令执行完毕滚动底部。 等等细节。 核心方法:child process spawn 执行命令行监听命令行的输出 child process spawn介绍 spawn 是node子进程模块 child process 提供的一个异步方法。 它的作用是执行命令并且可以实时监听命令行执行的输出 。 当我第一次知道这个api的时候,我就感觉这个方法简直是为命令行终端量身定做的。 终端的核心也是执行命令行,并且实时输出命令行执行期间的信息。 下面就来看看它的使用方式。 使用方式 const spawn require child process const ls spawn ls encoding cwd process cwd 执行命令路径 shell true 使用shell命令 监听标准输出 ls stdout on data data console log stdout data 监听标准错误 ls stderr on data data console error stderr data 子进程关闭事件 ls on close code console log 子进程退出,退出码 code api的使用很简单,但是终端信息的输出,需要很多细节的处理,比如下面这个。 stderr不能直接识别为命令行执行错误 stderr 虽然是标准错误输出,但里面的信息不全是错误的信息,不同的工具会有不同的处理。 对于 git 来说,有很多命令行操作的输出信息都输出在 stederr 上。 比如 git clone 、 git push 等,信息输出在 stederr 中,我们不能将其视为错误。 git 总是将 详细的状态信息和进度报告 ,以及只读信息,发送给 stederr 。 具体细节可以查看 git stderr 错误流 探秘 等资料。 暂时还不清楚其他工具 命令行也有没有类似的操作,但是很明显我们不能将 stederr 的信息视为错误的信息。 ps 对于git如果想提供更好的支持,需要根据不同的 git 命令进行特殊处理,比如对下面 clear 命令和 cd 命令的特殊处理。 根据子进程close事件判断命令行是否执行成功 我们应该检测 close 事件的退出码 code 如果 code ,否则即为失败。 命令行终端执行命令保存输出信息的核心代码 下面这段是命令行面板的核心代码,我贴一下大家重点看一下, 其他部分都是一些细节、优化体验、状态处理这样的代码,下面会将完整的html贴上来。 const spawn require child process 使用node child process模块 执行命令行 actioncommand 处理command命令 const command this command trim this isclear command if this command return 执行命令行 this action true this handlecommand this cdcommand command const ls spawn this handlecommand encoding cwd this path 执行命令路径 shell true 使用shell命令 监听命令行执行过程的输出 ls stdout on data data const value data tostring trim this commandmsg push value console log stdout value ls stderr on data this stderrmsghandle ls on close this closecommandaction 错误或详细状态进度报告 比如 git push stderrmsghandle data console log stderr data this commandmsg push stderr data 执行完毕 保存信息 更新状态 closecommandaction code 保存执行信息 this commandarr push code 是否执行成功 path this path 执行路径 command this command 执行命令 commandmsg this commandmsg join r 执行信息 清空 this updatepath this handlecommand code this commandfinish console log 子进程退出,退出码 code 运行 code 成功 失败 html完整代码 这里是html的完整代码,代码中有详细注释,建议根据上面的 命令行面板做了哪些事情 ,来阅读源码。 lt doctype html lt html lt head lt meta charset utf lt meta name viewport content width device width initial scale lt title 极简electron终端 lt title lt link rel stylesheet href class token punctuation lt script src class token punctuation lt script lt 引入element lt script src class token punctuation lt script lt css lt link rel stylesheet href index css lt head lt body lt div id app lt div class main class lt 渲染过往的命令行 lt div v for item in commandarr lt div class command action lt 执行成功或者失败图标切换 lt i class lt i lt 过往执行地址和命令行、信息 lt span class command action path item path lt span lt span class command action contenteditable item command lt span lt div lt div class output command item commandmsg lt div lt div lt 当前输入的命令行 lt div class command action command action editor mouseup timeoutfocusinput lt i class el icon right command action icon lt i lt 执行地址 lt span class command action path path lt span lt 命令行输入 lt span contenteditable action false plaintext only class command action contenteditable input ondivinput event keydown keyfn lt span lt div lt 当前命令行输出 lt div class output command lt div v for item in commandmsg item lt div lt div lt div lt div lt script const ipcrenderer require electron const spawn require child process const path require path var app new vue el app data path 命令行目录 command 用户输入命令 handlecommand 经过处理的用户命令 比如清除首尾空格、添加获取路径的命令 commandmsg 当前命令信息 commandarr 过往命令行输出保存 isactive true 终端是否聚焦 action false 是否正在执行命令 inputdom null 输入框dom addpath 不同系统 获取路径的命令 mac是pwd window是chdir mounted this addgetpath this inputdom document queryselector command action contenteditable this path process cwd 初始化路径 this watchfocus ipcrenderer send page ready 告诉主进程页面准备好了 methods 回车执行命令 keyfn e if e keycode this actioncommand e preventdefault 执行命令 actioncommand const command this command trim this isclear command if this command return this action true this handlecommand this cdcommand command const ls spawn this handlecommand encoding cwd this path 执行命令路径 shell true 使用shell命令 监听命令行执行过程的输出 ls stdout on data data const value data tostring trim this commandmsg push value console log stdout value 错误或详细状态进度报告 比如 git push、 git clone ls stderr on data data const value data tostring trim this commandmsg push stderr data console log stderr data 子进程关闭事件 保存信息 更新状态 ls on close this closecommandaction 执行完毕 保存信息 更新状态 closecommandaction code 保存执行信息 this commandarr push code 是否执行成功 path this path 执行路径 command this command 执行命令 commandmsg this commandmsg join r 执行信息 清空 this updatepath this handlecommand code this commandfinish console log 子进程退出,退出码 code 运行 code 成功 失败 cd命令处理 cdcommand command let pathcommand if this command startswith cd pathcommand this addpath else if this command indexof cd pathcommand this addpath return command pathcommand 目录自动联想 等很多细节功能 清空历史 isclear command if command clear this commandarr this commandfinish 获取不同系统下的路径 addgetpath const systemname getosinfo if systemname mac this addpath amp amp pwd else if systemname windows this addpath amp amp chdir 命令执行完毕 重置参数 commandfinish this commandmsg this command this inputdom textcontent this action false 激活编辑器 this nexttick this focusinput this scrollbottom 判断命令是否添加过addpath updatepath command code if code return const ispathchange command indexof this addpath if ispathchange this path this commandmsg 保存输入的命令行 ondivinput e this command e target textcontent 点击div timeoutfocusinput settimeout this focusinput 聚焦输入 focusinput this inputdom focus 解决ff不获取焦点无法定位问题 var range window getselection 创建range range selectallchildren this inputdom range 选择obj下所有子内容 range collapsetoend 光标移至最后 this inputdom focus 滚动到底部 scrollbottom let dom document queryselector app dom scrolltop dom scrollheight 滚动高度 dom null 监听窗口聚焦、失焦 watchfocus ipcrenderer on win focus event message this isactive message if message this focusinput 获取操作系统信息 function getosinfo var useragent navigator useragent tolowercase var name unknown if useragent indexof win name windows else if useragent indexof iphone name iphone else if useragent indexof mac name mac else if useragent indexof useragent indexof unix useragent indexof sunname useragent indexof bsd name unix else if useragent indexof linux if useragent indexof android name android else name linux return name lt script lt body lt html 以上就是整个项目的代码实现,总共只有三个文件。 更多细节 本项目终究是一个简单的demo,如果想要做成一个完整的开源项目,还需要补充很多细节。 还会有各种各样奇奇怪怪的需求和需要定制的地方,比如下面这些: command c 终止命令 cd 目录自动补全 命令保存上下键滑动 git等常用功能单独特殊处理。 输出信息颜色变化 等等 下载试玩 即使这个终端demo的代码量很少,注释足够详细,但还是需要上手体验一下一个electron项目运行的细节。 项目演示 clear命令演示 实际上就是将历史命令行输出的数组重置为空数组。 执行失败箭头切换 根据子进程 close 事件,判断执行是否成功,切换一下图标。 cd命令 识别 cd 命令,根据系统添加获取路径 pwd chdir 的命令,再将获取到的路径,更改为最终路径。 giit提交代码演示 项目地址 开源地址 electron terminal demo 启动与调试 安装 npm install 启动 通过vscode的调试运行项目,这种形式可以直接在vscode中进行debugger调试。 如果不是使用vscode编辑器 也可以通过使用命令行启动。 npm run start 小结 命令行终端的实现原理就是这样啦,强烈推荐各位下载体验一下这个项目,最好单步调试一下,这样会更熟悉 electron 。 文章idea诞生于我们团队开源的另一个开源项目: electron playground 目的是为了让小伙伴学习 electron 实战项目。 electron playground是用来帮助前端小伙伴们更好、更快的学习和理解前端桌面端技术electron 尽量少走弯路。 它通过如下方式让我们快速学习electron。 带有gif示例和可操作的demo的教程文章。 系统性的整理了electron相关的api和功能。 搭配演练场,自己动手尝试electron的各种特性。 前端进阶积累 、 公众号 、 github 、wx 、邮箱: foxmail com 点个 star 支持我一下
1
8,581
11,754,994,541
IssuesEvent
2020-03-13 08:33:49
arcus-azure/arcus.messaging
https://api.github.com/repos/arcus-azure/arcus.messaging
closed
Provide capability to control how JSON messages are deserialization
area:message-processing area:serialization feature
Provide capability to control how JSON messages are deserialization to match customer needs.
1.0
Provide capability to control how JSON messages are deserialization - Provide capability to control how JSON messages are deserialization to match customer needs.
process
provide capability to control how json messages are deserialization provide capability to control how json messages are deserialization to match customer needs
1
5,667
8,552,326,451
IssuesEvent
2018-11-07 20:43:40
material-components/material-components-ios
https://api.github.com/repos/material-components/material-components-ios
closed
Internal issue: b/117869231
[NavigationDrawer] type:Process
This is an internal issue. If you are a Googler, please visit [b/117869231](http://b/117869231) for more details. <!-- Auto-generated content below, do not modify --> --- #### Internal data - Associated internal bug: [b/117869231](http://b/117869231) - Blocked by: https://github.com/material-components/material-components-ios/issues/5599 - Blocked by: https://github.com/material-components/material-components-ios/issues/5600 - Blocked by: - Blocked by: https://github.com/material-components/material-components-ios/issues/5514 - Blocked by: https://github.com/material-components/material-components-ios/issues/5515 - Blocked by: https://github.com/material-components/material-components-ios/issues/5516
1.0
Internal issue: b/117869231 - This is an internal issue. If you are a Googler, please visit [b/117869231](http://b/117869231) for more details. <!-- Auto-generated content below, do not modify --> --- #### Internal data - Associated internal bug: [b/117869231](http://b/117869231) - Blocked by: https://github.com/material-components/material-components-ios/issues/5599 - Blocked by: https://github.com/material-components/material-components-ios/issues/5600 - Blocked by: - Blocked by: https://github.com/material-components/material-components-ios/issues/5514 - Blocked by: https://github.com/material-components/material-components-ios/issues/5515 - Blocked by: https://github.com/material-components/material-components-ios/issues/5516
process
internal issue b this is an internal issue if you are a googler please visit for more details internal data associated internal bug blocked by blocked by blocked by blocked by blocked by blocked by
1
377,173
11,165,484,025
IssuesEvent
2019-12-27 09:33:11
webcompat/web-bugs
https://api.github.com/repos/webcompat/web-bugs
closed
support.google.com - desktop site instead of mobile site
browser-firefox-mobile engine-gecko ml-needsdiagnosis-false priority-critical
<!-- @browser: Firefox Mobile 68.0 --> <!-- @ua_header: Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0 --> <!-- @reported_with: mobile-reporter --> **URL**: https://support.google.com/googlenest/answer/9250906?hl=en **Browser / Version**: Firefox Mobile 68.0 **Operating System**: Android **Tested Another Browser**: No **Problem type**: Desktop site instead of mobile site **Description**: Desktop site instead of mobile site **Steps to Reproduce**: Text is stacked on top of other text. [![Screenshot Description](https://webcompat.com/uploads/2019/12/9fc7a714-1ec8-4e92-bdcc-013f67c775d2-thumb.jpeg)](https://webcompat.com/uploads/2019/12/9fc7a714-1ec8-4e92-bdcc-013f67c775d2.jpeg) <details> <summary>Browser Configuration</summary> <ul> <li>gfx.webrender.all: false</li><li>gfx.webrender.blob-images: true</li><li>gfx.webrender.enabled: false</li><li>image.mem.shared: true</li><li>buildID: 20191224084104</li><li>channel: nightly</li><li>hasTouchScreen: true</li><li>mixed active content blocked: false</li><li>mixed passive content blocked: false</li><li>tracking content blocked: false</li> </ul> </details> [View console log messages](https://webcompat.com/console_logs/2019/12/c468e0a7-e68f-40c7-93f2-d24943e86163) _From [webcompat.com](https://webcompat.com/) with ❤️_
1.0
support.google.com - desktop site instead of mobile site - <!-- @browser: Firefox Mobile 68.0 --> <!-- @ua_header: Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0 --> <!-- @reported_with: mobile-reporter --> **URL**: https://support.google.com/googlenest/answer/9250906?hl=en **Browser / Version**: Firefox Mobile 68.0 **Operating System**: Android **Tested Another Browser**: No **Problem type**: Desktop site instead of mobile site **Description**: Desktop site instead of mobile site **Steps to Reproduce**: Text is stacked on top of other text. [![Screenshot Description](https://webcompat.com/uploads/2019/12/9fc7a714-1ec8-4e92-bdcc-013f67c775d2-thumb.jpeg)](https://webcompat.com/uploads/2019/12/9fc7a714-1ec8-4e92-bdcc-013f67c775d2.jpeg) <details> <summary>Browser Configuration</summary> <ul> <li>gfx.webrender.all: false</li><li>gfx.webrender.blob-images: true</li><li>gfx.webrender.enabled: false</li><li>image.mem.shared: true</li><li>buildID: 20191224084104</li><li>channel: nightly</li><li>hasTouchScreen: true</li><li>mixed active content blocked: false</li><li>mixed passive content blocked: false</li><li>tracking content blocked: false</li> </ul> </details> [View console log messages](https://webcompat.com/console_logs/2019/12/c468e0a7-e68f-40c7-93f2-d24943e86163) _From [webcompat.com](https://webcompat.com/) with ❤️_
non_process
support google com desktop site instead of mobile site url browser version firefox mobile operating system android tested another browser no problem type desktop site instead of mobile site description desktop site instead of mobile site steps to reproduce text is stacked on top of other text browser configuration gfx webrender all false gfx webrender blob images true gfx webrender enabled false image mem shared true buildid channel nightly hastouchscreen true mixed active content blocked false mixed passive content blocked false tracking content blocked false from with ❤️
0
824,677
31,165,987,126
IssuesEvent
2023-08-16 19:44:51
letehaha/budget-tracker-fe
https://api.github.com/repos/letehaha/budget-tracker-fe
closed
Account balance updation breaks balance history
type::bug repo: backend priority-0-highest
After account creation balance history correctly updates, but when we change the balance history only summs, but doesn't change on the correct diff
1.0
Account balance updation breaks balance history - After account creation balance history correctly updates, but when we change the balance history only summs, but doesn't change on the correct diff
non_process
account balance updation breaks balance history after account creation balance history correctly updates but when we change the balance history only summs but doesn t change on the correct diff
0
9,082
12,150,947,935
IssuesEvent
2020-04-24 18:57:33
burnpiro/wod-usage-predictor
https://api.github.com/repos/burnpiro/wod-usage-predictor
closed
task-03 Create TF dataset class to extract data from csv file and fit it into the model
data processing
We need to create TF class which takes CSV files and process them into input for our model https://www.tensorflow.org/guide/data
1.0
task-03 Create TF dataset class to extract data from csv file and fit it into the model - We need to create TF class which takes CSV files and process them into input for our model https://www.tensorflow.org/guide/data
process
task create tf dataset class to extract data from csv file and fit it into the model we need to create tf class which takes csv files and process them into input for our model
1
13,069
15,397,139,076
IssuesEvent
2021-03-03 21:41:06
retaildevcrews/ngsa
https://api.github.com/repos/retaildevcrews/ngsa
closed
Create onboarding checklist / welcome package
Process
Contents? - Working agreement - explanation of board / task mgmt - explanation of point dev - explanation of feature crews - overview of repos - video links - overview of Bill of Materials - overview of application architecture - overview of observability @retaildevcrews/fc-devx
1.0
Create onboarding checklist / welcome package - Contents? - Working agreement - explanation of board / task mgmt - explanation of point dev - explanation of feature crews - overview of repos - video links - overview of Bill of Materials - overview of application architecture - overview of observability @retaildevcrews/fc-devx
process
create onboarding checklist welcome package contents working agreement explanation of board task mgmt explanation of point dev explanation of feature crews overview of repos video links overview of bill of materials overview of application architecture overview of observability retaildevcrews fc devx
1
13,999
16,772,088,914
IssuesEvent
2021-06-14 15:54:52
prisma/prisma
https://api.github.com/repos/prisma/prisma
opened
Internal: Document usage of local client during dev
process/candidate team/client tech/typescript topic: internal
## Problem @millsp mentionned using ``` "prisma": "file:../../prisma/src/packages/cli" "@prisma/client": "file:../../prisma/src/packages/client", ``` But an example in CONTRIBUTING could be great, maybe with a sample fixture?
1.0
Internal: Document usage of local client during dev - ## Problem @millsp mentionned using ``` "prisma": "file:../../prisma/src/packages/cli" "@prisma/client": "file:../../prisma/src/packages/client", ``` But an example in CONTRIBUTING could be great, maybe with a sample fixture?
process
internal document usage of local client during dev problem millsp mentionned using prisma file prisma src packages cli prisma client file prisma src packages client but an example in contributing could be great maybe with a sample fixture
1
13,039
15,384,899,841
IssuesEvent
2021-03-03 05:33:56
GoogleCloudPlatform/fda-mystudies
https://api.github.com/repos/GoogleCloudPlatform/fda-mystudies
closed
[IOS] Replace the current logo with revised image
Bug P1 Process: Fixed Process: Tested dev iOS
For all screens where the logo appears, replace the current logo with a revised image that does not have 'Customer logo' text. Adjust the UI once the image is replaced to ensure it appears vertically and horizontally aligned in the logo area.
2.0
[IOS] Replace the current logo with revised image - For all screens where the logo appears, replace the current logo with a revised image that does not have 'Customer logo' text. Adjust the UI once the image is replaced to ensure it appears vertically and horizontally aligned in the logo area.
process
replace the current logo with revised image for all screens where the logo appears replace the current logo with a revised image that does not have customer logo text adjust the ui once the image is replaced to ensure it appears vertically and horizontally aligned in the logo area
1
9,419
12,416,175,104
IssuesEvent
2020-05-22 17:37:43
Arch666Angel/mods
https://api.github.com/repos/Arch666Angel/mods
closed
MK2 soil recipe
Angels Bio Processing Enhancement
Soil is quite hard to get at this point, as mud is not soo productive if you're consuming a lot of soil, for farming for example. It would be nice if there was a mk2 recipe that would make soil in higher quantities. Existing mk1 recipe: 1 mud + 1 compost -> 1 soil - [x] As 10 mud would produce 150 viscous mud water, an additional mk2 recipe with the same ratio: 15 viscous mud water + 2 sand + 1 compost -> 1 soil An other alternative would be to not use mud at all: 1 sand + 2 compost -> 1 soil This is not overpowered, but it will prevent you for needing to vent excess saline water if you don't want to use it, and since you get sand in high volume, you'll have less buildings on washing. The full washing chain is still usefull early on to get pure saline, as salination plant comes later. - [x] Since we are talking here about salination, the salination plant is mainly hold up by plastics, so at least the salination plant (water washing 3) should depend on the advanced electronics tech.
1.0
MK2 soil recipe - Soil is quite hard to get at this point, as mud is not soo productive if you're consuming a lot of soil, for farming for example. It would be nice if there was a mk2 recipe that would make soil in higher quantities. Existing mk1 recipe: 1 mud + 1 compost -> 1 soil - [x] As 10 mud would produce 150 viscous mud water, an additional mk2 recipe with the same ratio: 15 viscous mud water + 2 sand + 1 compost -> 1 soil An other alternative would be to not use mud at all: 1 sand + 2 compost -> 1 soil This is not overpowered, but it will prevent you for needing to vent excess saline water if you don't want to use it, and since you get sand in high volume, you'll have less buildings on washing. The full washing chain is still usefull early on to get pure saline, as salination plant comes later. - [x] Since we are talking here about salination, the salination plant is mainly hold up by plastics, so at least the salination plant (water washing 3) should depend on the advanced electronics tech.
process
soil recipe soil is quite hard to get at this point as mud is not soo productive if you re consuming a lot of soil for farming for example it would be nice if there was a recipe that would make soil in higher quantities existing recipe mud compost soil as mud would produce viscous mud water an additional recipe with the same ratio viscous mud water sand compost soil an other alternative would be to not use mud at all sand compost soil this is not overpowered but it will prevent you for needing to vent excess saline water if you don t want to use it and since you get sand in high volume you ll have less buildings on washing the full washing chain is still usefull early on to get pure saline as salination plant comes later since we are talking here about salination the salination plant is mainly hold up by plastics so at least the salination plant water washing should depend on the advanced electronics tech
1
163,667
20,364,021,652
IssuesEvent
2022-02-21 01:58:59
artkamote/examples
https://api.github.com/repos/artkamote/examples
opened
CVE-2022-0686 (Medium) detected in multiple libraries
security vulnerability
## CVE-2022-0686 - Medium Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Libraries - <b>url-parse-1.5.3.tgz</b>, <b>url-parse-1.4.4.tgz</b>, <b>url-parse-1.4.1.tgz</b></p></summary> <p> <details><summary><b>url-parse-1.5.3.tgz</b></p></summary> <p>Small footprint URL parser that works seamlessly across Node.js and browser environments</p> <p>Library home page: <a href="https://registry.npmjs.org/url-parse/-/url-parse-1.5.3.tgz">https://registry.npmjs.org/url-parse/-/url-parse-1.5.3.tgz</a></p> <p>Path to dependency file: /aws-node-twilio-send-text-message/package.json</p> <p>Path to vulnerable library: /aws-node-twilio-send-text-message/node_modules/url-parse/package.json,/aws-node-signed-uploads/node_modules/url-parse/package.json</p> <p> Dependency Hierarchy: - twilio-3.71.1.tgz (Root Library) - :x: **url-parse-1.5.3.tgz** (Vulnerable Library) </details> <details><summary><b>url-parse-1.4.4.tgz</b></p></summary> <p>Small footprint URL parser that works seamlessly across Node.js and browser environments</p> <p>Library home page: <a href="https://registry.npmjs.org/url-parse/-/url-parse-1.4.4.tgz">https://registry.npmjs.org/url-parse/-/url-parse-1.4.4.tgz</a></p> <p>Path to dependency file: /aws-node-fullstack/frontend/package.json</p> <p>Path to vulnerable library: /aws-node-fullstack/frontend/node_modules/url-parse/package.json</p> <p> Dependency Hierarchy: - react-scripts-2.1.8.tgz (Root Library) - react-dev-utils-8.0.0.tgz - sockjs-client-1.3.0.tgz - :x: **url-parse-1.4.4.tgz** (Vulnerable Library) </details> <details><summary><b>url-parse-1.4.1.tgz</b></p></summary> <p>Small footprint URL parser that works seamlessly across Node.js and browser environments</p> <p>Library home page: <a href="https://registry.npmjs.org/url-parse/-/url-parse-1.4.1.tgz">https://registry.npmjs.org/url-parse/-/url-parse-1.4.1.tgz</a></p> <p>Path to dependency file: /aws-node-oauth-dropbox-api/package.json</p> <p>Path to vulnerable library: /aws-node-oauth-dropbox-api/node_modules/url-parse/package.json</p> <p> Dependency Hierarchy: - serverless-1.27.3.tgz (Root Library) - fdk-0.5.1.tgz - :x: **url-parse-1.4.1.tgz** (Vulnerable Library) </details> <p>Found in base branch: <b>master</b></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png' width=19 height=20> Vulnerability Details</summary> <p> Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.8. <p>Publish Date: 2022-02-19 <p>URL: <a href=https://vuln.whitesourcesoftware.com/vulnerability/CVE-2022-0686>CVE-2022-0686</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 3 Score Details (<b>6.5</b>)</summary> <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/suggested_fix.png' width=19 height=20> Suggested Fix</summary> <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0686">https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0686</a></p> <p>Release Date: 2022-02-19</p> <p>Fix Resolution: url-parse - 1.5.8</p> </p> </details> <p></p> *** Step up your Open Source Security Game with WhiteSource [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
True
CVE-2022-0686 (Medium) detected in multiple libraries - ## CVE-2022-0686 - Medium Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Libraries - <b>url-parse-1.5.3.tgz</b>, <b>url-parse-1.4.4.tgz</b>, <b>url-parse-1.4.1.tgz</b></p></summary> <p> <details><summary><b>url-parse-1.5.3.tgz</b></p></summary> <p>Small footprint URL parser that works seamlessly across Node.js and browser environments</p> <p>Library home page: <a href="https://registry.npmjs.org/url-parse/-/url-parse-1.5.3.tgz">https://registry.npmjs.org/url-parse/-/url-parse-1.5.3.tgz</a></p> <p>Path to dependency file: /aws-node-twilio-send-text-message/package.json</p> <p>Path to vulnerable library: /aws-node-twilio-send-text-message/node_modules/url-parse/package.json,/aws-node-signed-uploads/node_modules/url-parse/package.json</p> <p> Dependency Hierarchy: - twilio-3.71.1.tgz (Root Library) - :x: **url-parse-1.5.3.tgz** (Vulnerable Library) </details> <details><summary><b>url-parse-1.4.4.tgz</b></p></summary> <p>Small footprint URL parser that works seamlessly across Node.js and browser environments</p> <p>Library home page: <a href="https://registry.npmjs.org/url-parse/-/url-parse-1.4.4.tgz">https://registry.npmjs.org/url-parse/-/url-parse-1.4.4.tgz</a></p> <p>Path to dependency file: /aws-node-fullstack/frontend/package.json</p> <p>Path to vulnerable library: /aws-node-fullstack/frontend/node_modules/url-parse/package.json</p> <p> Dependency Hierarchy: - react-scripts-2.1.8.tgz (Root Library) - react-dev-utils-8.0.0.tgz - sockjs-client-1.3.0.tgz - :x: **url-parse-1.4.4.tgz** (Vulnerable Library) </details> <details><summary><b>url-parse-1.4.1.tgz</b></p></summary> <p>Small footprint URL parser that works seamlessly across Node.js and browser environments</p> <p>Library home page: <a href="https://registry.npmjs.org/url-parse/-/url-parse-1.4.1.tgz">https://registry.npmjs.org/url-parse/-/url-parse-1.4.1.tgz</a></p> <p>Path to dependency file: /aws-node-oauth-dropbox-api/package.json</p> <p>Path to vulnerable library: /aws-node-oauth-dropbox-api/node_modules/url-parse/package.json</p> <p> Dependency Hierarchy: - serverless-1.27.3.tgz (Root Library) - fdk-0.5.1.tgz - :x: **url-parse-1.4.1.tgz** (Vulnerable Library) </details> <p>Found in base branch: <b>master</b></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png' width=19 height=20> Vulnerability Details</summary> <p> Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.8. <p>Publish Date: 2022-02-19 <p>URL: <a href=https://vuln.whitesourcesoftware.com/vulnerability/CVE-2022-0686>CVE-2022-0686</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 3 Score Details (<b>6.5</b>)</summary> <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/suggested_fix.png' width=19 height=20> Suggested Fix</summary> <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0686">https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0686</a></p> <p>Release Date: 2022-02-19</p> <p>Fix Resolution: url-parse - 1.5.8</p> </p> </details> <p></p> *** Step up your Open Source Security Game with WhiteSource [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
non_process
cve medium detected in multiple libraries cve medium severity vulnerability vulnerable libraries url parse tgz url parse tgz url parse tgz url parse tgz small footprint url parser that works seamlessly across node js and browser environments library home page a href path to dependency file aws node twilio send text message package json path to vulnerable library aws node twilio send text message node modules url parse package json aws node signed uploads node modules url parse package json dependency hierarchy twilio tgz root library x url parse tgz vulnerable library url parse tgz small footprint url parser that works seamlessly across node js and browser environments library home page a href path to dependency file aws node fullstack frontend package json path to vulnerable library aws node fullstack frontend node modules url parse package json dependency hierarchy react scripts tgz root library react dev utils tgz sockjs client tgz x url parse tgz vulnerable library url parse tgz small footprint url parser that works seamlessly across node js and browser environments library home page a href path to dependency file aws node oauth dropbox api package json path to vulnerable library aws node oauth dropbox api node modules url parse package json dependency hierarchy serverless tgz root library fdk tgz x url parse tgz vulnerable library found in base branch master vulnerability details authorization bypass through user controlled key in npm url parse prior to publish date url a href cvss score details base score metrics exploitability metrics attack vector network attack complexity low privileges required none user interaction none scope unchanged impact metrics confidentiality impact low integrity impact low availability impact none for more information on scores click a href suggested fix type upgrade version origin a href release date fix resolution url parse step up your open source security game with whitesource
0
10,686
13,465,860,764
IssuesEvent
2020-09-09 21:39:39
GoogleCloudPlatform/cloud-ops-sandbox
https://api.github.com/repos/GoogleCloudPlatform/cloud-ops-sandbox
closed
Redirect website URL in GCP and un-deploy website from GitHub pages
priority: p2 type: process
In order for stackdriver-sandbox.dev to point to the website deployed in App Engine, it is important for the custom domain to be added to our project in App Engine, and then the current website should be un-deployed from GitHub pages. The first step must be done by someone who owns the stackdriver-sandbox.dev domain, and the second step must be done by a stackdriver-sandbox project owner. Steps: 1. Custom domain name is configured in app engine (https://pantheon.corp.google.com/appengine/settings/domains?project=stackdriver-sandbox-230822) 2. stackdriver-sandbox.dev website is "unpublished" from GitHub pages (https://docs.github.com/en/github/working-with-github-pages/unpublishing-a-github-pages-site). **NOTE: The first step must be completed successfully first to ensure that stackdriver-sandbox.dev does not go offline.** Currently, the App Engine version is deployed at this URL: https://stackdriver-sandbox-230822.uc.r.appspot.com/. After this is done, Issue #309 can be completed next.
1.0
Redirect website URL in GCP and un-deploy website from GitHub pages - In order for stackdriver-sandbox.dev to point to the website deployed in App Engine, it is important for the custom domain to be added to our project in App Engine, and then the current website should be un-deployed from GitHub pages. The first step must be done by someone who owns the stackdriver-sandbox.dev domain, and the second step must be done by a stackdriver-sandbox project owner. Steps: 1. Custom domain name is configured in app engine (https://pantheon.corp.google.com/appengine/settings/domains?project=stackdriver-sandbox-230822) 2. stackdriver-sandbox.dev website is "unpublished" from GitHub pages (https://docs.github.com/en/github/working-with-github-pages/unpublishing-a-github-pages-site). **NOTE: The first step must be completed successfully first to ensure that stackdriver-sandbox.dev does not go offline.** Currently, the App Engine version is deployed at this URL: https://stackdriver-sandbox-230822.uc.r.appspot.com/. After this is done, Issue #309 can be completed next.
process
redirect website url in gcp and un deploy website from github pages in order for stackdriver sandbox dev to point to the website deployed in app engine it is important for the custom domain to be added to our project in app engine and then the current website should be un deployed from github pages the first step must be done by someone who owns the stackdriver sandbox dev domain and the second step must be done by a stackdriver sandbox project owner steps custom domain name is configured in app engine stackdriver sandbox dev website is unpublished from github pages note the first step must be completed successfully first to ensure that stackdriver sandbox dev does not go offline currently the app engine version is deployed at this url after this is done issue can be completed next
1
12,666
15,036,546,599
IssuesEvent
2021-02-02 15:22:14
GoogleCloudPlatform/fda-mystudies
https://api.github.com/repos/GoogleCloudPlatform/fda-mystudies
closed
[Mobile] Unable to rejoin close and combined studies in a particular scenario
Bug P0 Process: Tested dev Unknown backend
Issue is observed in automated deployment **Steps**:- 1. Add a participant for the close study for Site A 2. Send invitation 3. Enroll using the token received 4. Withdrawn from the study 5. Add same participant in Site B of same study 6. Send the invitation 7. Try to enroll into the study with new token received and observe A/R- Unable to enroll into the study E/R:- User should able to enroll into study Note:- **Same steps applicable for Combined study ** ![image](https://user-images.githubusercontent.com/60500517/106458263-25723800-64b6-11eb-8575-1f90669d480e.png)
1.0
[Mobile] Unable to rejoin close and combined studies in a particular scenario - Issue is observed in automated deployment **Steps**:- 1. Add a participant for the close study for Site A 2. Send invitation 3. Enroll using the token received 4. Withdrawn from the study 5. Add same participant in Site B of same study 6. Send the invitation 7. Try to enroll into the study with new token received and observe A/R- Unable to enroll into the study E/R:- User should able to enroll into study Note:- **Same steps applicable for Combined study ** ![image](https://user-images.githubusercontent.com/60500517/106458263-25723800-64b6-11eb-8575-1f90669d480e.png)
process
unable to rejoin close and combined studies in a particular scenario issue is observed in automated deployment steps add a participant for the close study for site a send invitation enroll using the token received withdrawn from the study add same participant in site b of same study send the invitation try to enroll into the study with new token received and observe a r unable to enroll into the study e r user should able to enroll into study note same steps applicable for combined study
1
35,286
12,321,156,009
IssuesEvent
2020-05-13 08:15:45
tamirverthim/Finos---perspective
https://api.github.com/repos/tamirverthim/Finos---perspective
opened
CVE-2020-11022 (Medium) detected in multiple libraries
security vulnerability
## CVE-2020-11022 - Medium Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Libraries - <b>jquery-1.11.1.min.js</b>, <b>jquery-3.4.0.min.js</b>, <b>jquery-2.1.0.min.js</b>, <b>jquery-2.1.4.min.js</b></p></summary> <p> <details><summary><b>jquery-1.11.1.min.js</b></p></summary> <p>JavaScript library for DOM operations</p> <p>Library home page: <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js">https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js</a></p> <p>Path to dependency file: /tmp/ws-scm/Finos---perspective/packages/perspective-viewer-highcharts/node_modules/chroma-js/docs/index.html</p> <p>Path to vulnerable library: /Finos---perspective/packages/perspective-viewer-highcharts/node_modules/chroma-js/docs/libs/jquery/jquery-1.11.1.min.js,/Finos---perspective/packages/perspective-cli/node_modules/chroma-js/docs/libs/jquery/jquery-1.11.1.min.js,/Finos---perspective/packages/perspective-phosphor/node_modules/chroma-js/docs/libs/jquery/jquery-1.11.1.min.js</p> <p> Dependency Hierarchy: - :x: **jquery-1.11.1.min.js** (Vulnerable Library) </details> <details><summary><b>jquery-3.4.0.min.js</b></p></summary> <p>JavaScript library for DOM operations</p> <p>Library home page: <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js">https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js</a></p> <p>Path to dependency file: /tmp/ws-scm/Finos---perspective/packages/perspective-phosphor/node_modules/js-base64/test/index.html</p> <p>Path to vulnerable library: /Finos---perspective/packages/perspective-phosphor/node_modules/js-base64/test/index.html</p> <p> Dependency Hierarchy: - :x: **jquery-3.4.0.min.js** (Vulnerable Library) </details> <details><summary><b>jquery-2.1.0.min.js</b></p></summary> <p>JavaScript library for DOM operations</p> <p>Library home page: <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js">https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js</a></p> <p>Path to dependency file: /tmp/ws-scm/Finos---perspective/packages/perspective-cli/node_modules/papaparse/player/player.html</p> <p>Path to vulnerable library: /Finos---perspective/packages/perspective-cli/node_modules/papaparse/player/player.html</p> <p> Dependency Hierarchy: - :x: **jquery-2.1.0.min.js** (Vulnerable Library) </details> <details><summary><b>jquery-2.1.4.min.js</b></p></summary> <p>JavaScript library for DOM operations</p> <p>Library home page: <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js">https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js</a></p> <p>Path to dependency file: /tmp/ws-scm/Finos---perspective/packages/perspective-phosphor/node_modules/js-base64/.attic/test-moment/index.html</p> <p>Path to vulnerable library: /Finos---perspective/packages/perspective-phosphor/node_modules/js-base64/.attic/test-moment/index.html,/Finos---perspective/packages/perspective-cli/node_modules/chroma-js/test/html/cubehelix.html</p> <p> Dependency Hierarchy: - :x: **jquery-2.1.4.min.js** (Vulnerable Library) </details> <p>Found in HEAD commit: <a href="https://api.github.com/repos/tamirverthim/Finos---perspective/commits/1eabee2da40978a4631bc5251e77c5fb9a7fac92">1eabee2da40978a4631bc5251e77c5fb9a7fac92</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png' width=19 height=20> Vulnerability Details</summary> <p> In jQuery versions greater than or equal to 1.2 and before 3.5.0, passing HTML from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0. <p>Publish Date: 2020-04-29 <p>URL: <a href=https://vuln.whitesourcesoftware.com/vulnerability/CVE-2020-11022>CVE-2020-11022</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 3 Score Details (<b>6.1</b>)</summary> <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/suggested_fix.png' width=19 height=20> Suggested Fix</summary> <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/">https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/</a></p> <p>Release Date: 2020-04-29</p> <p>Fix Resolution: jQuery - 3.5.0</p> </p> </details> <p></p> <!-- <REMEDIATE>{"isOpenPROnVulnerability":false,"isPackageBased":true,"isDefaultBranch":true,"packages":[{"packageType":"JavaScript","packageName":"jquery","packageVersion":"1.11.1","isTransitiveDependency":false,"dependencyTree":"jquery:1.11.1","isMinimumFixVersionAvailable":true,"minimumFixVersion":"jQuery - 3.5.0"},{"packageType":"JavaScript","packageName":"jquery","packageVersion":"3.4.0","isTransitiveDependency":false,"dependencyTree":"jquery:3.4.0","isMinimumFixVersionAvailable":true,"minimumFixVersion":"jQuery - 3.5.0"},{"packageType":"JavaScript","packageName":"jquery","packageVersion":"2.1.0","isTransitiveDependency":false,"dependencyTree":"jquery:2.1.0","isMinimumFixVersionAvailable":true,"minimumFixVersion":"jQuery - 3.5.0"},{"packageType":"JavaScript","packageName":"jquery","packageVersion":"2.1.4","isTransitiveDependency":false,"dependencyTree":"jquery:2.1.4","isMinimumFixVersionAvailable":true,"minimumFixVersion":"jQuery - 3.5.0"}],"vulnerabilityIdentifier":"CVE-2020-11022","vulnerabilityDetails":"In jQuery versions greater than or equal to 1.2 and before 3.5.0, passing HTML from untrusted sources - even after sanitizing it - to one of jQuery\u0027s DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0.","vulnerabilityUrl":"https://vuln.whitesourcesoftware.com/vulnerability/CVE-2020-11022","cvss3Severity":"medium","cvss3Score":"6.1","cvss3Metrics":{"A":"None","AC":"Low","PR":"None","S":"Changed","C":"Low","UI":"Required","AV":"Network","I":"Low"},"extraData":{}}</REMEDIATE> -->
True
CVE-2020-11022 (Medium) detected in multiple libraries - ## CVE-2020-11022 - Medium Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Libraries - <b>jquery-1.11.1.min.js</b>, <b>jquery-3.4.0.min.js</b>, <b>jquery-2.1.0.min.js</b>, <b>jquery-2.1.4.min.js</b></p></summary> <p> <details><summary><b>jquery-1.11.1.min.js</b></p></summary> <p>JavaScript library for DOM operations</p> <p>Library home page: <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js">https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js</a></p> <p>Path to dependency file: /tmp/ws-scm/Finos---perspective/packages/perspective-viewer-highcharts/node_modules/chroma-js/docs/index.html</p> <p>Path to vulnerable library: /Finos---perspective/packages/perspective-viewer-highcharts/node_modules/chroma-js/docs/libs/jquery/jquery-1.11.1.min.js,/Finos---perspective/packages/perspective-cli/node_modules/chroma-js/docs/libs/jquery/jquery-1.11.1.min.js,/Finos---perspective/packages/perspective-phosphor/node_modules/chroma-js/docs/libs/jquery/jquery-1.11.1.min.js</p> <p> Dependency Hierarchy: - :x: **jquery-1.11.1.min.js** (Vulnerable Library) </details> <details><summary><b>jquery-3.4.0.min.js</b></p></summary> <p>JavaScript library for DOM operations</p> <p>Library home page: <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js">https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js</a></p> <p>Path to dependency file: /tmp/ws-scm/Finos---perspective/packages/perspective-phosphor/node_modules/js-base64/test/index.html</p> <p>Path to vulnerable library: /Finos---perspective/packages/perspective-phosphor/node_modules/js-base64/test/index.html</p> <p> Dependency Hierarchy: - :x: **jquery-3.4.0.min.js** (Vulnerable Library) </details> <details><summary><b>jquery-2.1.0.min.js</b></p></summary> <p>JavaScript library for DOM operations</p> <p>Library home page: <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js">https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js</a></p> <p>Path to dependency file: /tmp/ws-scm/Finos---perspective/packages/perspective-cli/node_modules/papaparse/player/player.html</p> <p>Path to vulnerable library: /Finos---perspective/packages/perspective-cli/node_modules/papaparse/player/player.html</p> <p> Dependency Hierarchy: - :x: **jquery-2.1.0.min.js** (Vulnerable Library) </details> <details><summary><b>jquery-2.1.4.min.js</b></p></summary> <p>JavaScript library for DOM operations</p> <p>Library home page: <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js">https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js</a></p> <p>Path to dependency file: /tmp/ws-scm/Finos---perspective/packages/perspective-phosphor/node_modules/js-base64/.attic/test-moment/index.html</p> <p>Path to vulnerable library: /Finos---perspective/packages/perspective-phosphor/node_modules/js-base64/.attic/test-moment/index.html,/Finos---perspective/packages/perspective-cli/node_modules/chroma-js/test/html/cubehelix.html</p> <p> Dependency Hierarchy: - :x: **jquery-2.1.4.min.js** (Vulnerable Library) </details> <p>Found in HEAD commit: <a href="https://api.github.com/repos/tamirverthim/Finos---perspective/commits/1eabee2da40978a4631bc5251e77c5fb9a7fac92">1eabee2da40978a4631bc5251e77c5fb9a7fac92</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png' width=19 height=20> Vulnerability Details</summary> <p> In jQuery versions greater than or equal to 1.2 and before 3.5.0, passing HTML from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0. <p>Publish Date: 2020-04-29 <p>URL: <a href=https://vuln.whitesourcesoftware.com/vulnerability/CVE-2020-11022>CVE-2020-11022</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 3 Score Details (<b>6.1</b>)</summary> <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/suggested_fix.png' width=19 height=20> Suggested Fix</summary> <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/">https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/</a></p> <p>Release Date: 2020-04-29</p> <p>Fix Resolution: jQuery - 3.5.0</p> </p> </details> <p></p> <!-- <REMEDIATE>{"isOpenPROnVulnerability":false,"isPackageBased":true,"isDefaultBranch":true,"packages":[{"packageType":"JavaScript","packageName":"jquery","packageVersion":"1.11.1","isTransitiveDependency":false,"dependencyTree":"jquery:1.11.1","isMinimumFixVersionAvailable":true,"minimumFixVersion":"jQuery - 3.5.0"},{"packageType":"JavaScript","packageName":"jquery","packageVersion":"3.4.0","isTransitiveDependency":false,"dependencyTree":"jquery:3.4.0","isMinimumFixVersionAvailable":true,"minimumFixVersion":"jQuery - 3.5.0"},{"packageType":"JavaScript","packageName":"jquery","packageVersion":"2.1.0","isTransitiveDependency":false,"dependencyTree":"jquery:2.1.0","isMinimumFixVersionAvailable":true,"minimumFixVersion":"jQuery - 3.5.0"},{"packageType":"JavaScript","packageName":"jquery","packageVersion":"2.1.4","isTransitiveDependency":false,"dependencyTree":"jquery:2.1.4","isMinimumFixVersionAvailable":true,"minimumFixVersion":"jQuery - 3.5.0"}],"vulnerabilityIdentifier":"CVE-2020-11022","vulnerabilityDetails":"In jQuery versions greater than or equal to 1.2 and before 3.5.0, passing HTML from untrusted sources - even after sanitizing it - to one of jQuery\u0027s DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0.","vulnerabilityUrl":"https://vuln.whitesourcesoftware.com/vulnerability/CVE-2020-11022","cvss3Severity":"medium","cvss3Score":"6.1","cvss3Metrics":{"A":"None","AC":"Low","PR":"None","S":"Changed","C":"Low","UI":"Required","AV":"Network","I":"Low"},"extraData":{}}</REMEDIATE> -->
non_process
cve medium detected in multiple libraries cve medium severity vulnerability vulnerable libraries jquery min js jquery min js jquery min js jquery min js jquery min js javascript library for dom operations library home page a href path to dependency file tmp ws scm finos perspective packages perspective viewer highcharts node modules chroma js docs index html path to vulnerable library finos perspective packages perspective viewer highcharts node modules chroma js docs libs jquery jquery min js finos perspective packages perspective cli node modules chroma js docs libs jquery jquery min js finos perspective packages perspective phosphor node modules chroma js docs libs jquery jquery min js dependency hierarchy x jquery min js vulnerable library jquery min js javascript library for dom operations library home page a href path to dependency file tmp ws scm finos perspective packages perspective phosphor node modules js test index html path to vulnerable library finos perspective packages perspective phosphor node modules js test index html dependency hierarchy x jquery min js vulnerable library jquery min js javascript library for dom operations library home page a href path to dependency file tmp ws scm finos perspective packages perspective cli node modules papaparse player player html path to vulnerable library finos perspective packages perspective cli node modules papaparse player player html dependency hierarchy x jquery min js vulnerable library jquery min js javascript library for dom operations library home page a href path to dependency file tmp ws scm finos perspective packages perspective phosphor node modules js attic test moment index html path to vulnerable library finos perspective packages perspective phosphor node modules js attic test moment index html finos perspective packages perspective cli node modules chroma js test html cubehelix html dependency hierarchy x jquery min js vulnerable library found in head commit a href vulnerability details in jquery versions greater than or equal to and before passing html from untrusted sources even after sanitizing it to one of jquery s dom manipulation methods i e html append and others may execute untrusted code this problem is patched in jquery publish date url a href cvss score details base score metrics exploitability metrics attack vector network attack complexity low privileges required none user interaction required scope changed impact metrics confidentiality impact low integrity impact low availability impact none for more information on scores click a href suggested fix type upgrade version origin a href release date fix resolution jquery isopenpronvulnerability false ispackagebased true isdefaultbranch true packages vulnerabilityidentifier cve vulnerabilitydetails in jquery versions greater than or equal to and before passing html from untrusted sources even after sanitizing it to one of jquery dom manipulation methods i e html append and others may execute untrusted code this problem is patched in jquery vulnerabilityurl
0
16,612
21,671,606,628
IssuesEvent
2022-05-08 03:03:01
qgis/QGIS
https://api.github.com/repos/qgis/QGIS
closed
Error running SAGA fill sink (wang&liu)
Feedback stale Processing Bug macOS
### What is the bug or the crash? QGIS version: 3.24.1-Tisler QGIS code revision: 9d1e5b189a Qt version: 5.15.2 Python version: 3.9.5 GDAL version: 3.3.2 GEOS version: 3.9.1-CAPI-1.14.2 PROJ version: Rel. 8.1.1, September 1st, 2021 PDAL version: 2.3.0 (git-version: Release) Algorithm started at: 2022-03-25T11:24:35 Algorithm 'Fill sinks (wang & liu)' starting… Input parameters: { 'ELEV' : '/Volumes/10_TB-2020/QGIS_Projects/ClipCathyDEM.tif', 'FDIR' : '/Volumes/10_TB-2020/QGIS_Projects/CathyFlowDir.sdat', 'FILLED' : '/Volumes/10_TB-2020/QGIS_Projects/CathyFillSinks.sdat', 'MINSLOPE' : 0.01, 'WSHED' : '/Volumes/10_TB-2020/QGIS_Projects/CathyWatershed.sdat' } io_gdal 0 -TRANSFORM 1 -RESAMPLING 3 -GRIDS "/Volumes/10_TB-2020/qgis/tmp/processing_QoyQtS/d646b8003a2842f09d3ed44ade7bd6c9/ClipCathyDEM.sgrd" -FILES "/Volumes/10_TB-2020/QGIS_Projects/ClipCathyDEM.tif" ta_preprocessor "Fill Sinks (Wang & Liu)" -ELEV "/Volumes/10_TB-2020/qgis/tmp/processing_QoyQtS/d646b8003a2842f09d3ed44ade7bd6c9/ClipCathyDEM.sgrd" -MINSLOPE 0.01 -FILLED "/Volumes/10_TB-2020/QGIS_Projects/CathyFillSinks.sdat" -FDIR "/Volumes/10_TB-2020/QGIS_Projects/CathyFlowDir.sdat" -WSHED "/Volumes/10_TB-2020/QGIS_Projects/CathyWatershed.sdat" dyld: Symbol not found: __ZN20wireless_diagnostics6google8protobuf2io16CodedInputStream24default_recursion_limit_E Referenced from: /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib Expected in: /Applications/QGIS.app/Contents/MacOS/lib/libprotobuf-lite.dylib in /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib /Applications/QGIS.app/Contents/MacOS/bin/saga_cmd: line 9: 73081 Abort trap: 6 "$THISDIR/_saga_cmd" "$@" dyld: Symbol not found: __ZN20wireless_diagnostics6google8protobuf2io16CodedInputStream24default_recursion_limit_E Referenced from: /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib Expected in: /Applications/QGIS.app/Contents/MacOS/lib/libprotobuf-lite.dylib in /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib /Applications/QGIS.app/Contents/MacOS/bin/saga_cmd: line 9: 73086 Abort trap: 6 "$THISDIR/_saga_cmd" "$@" Execution completed in 0.36 seconds ### Steps to reproduce the issue Trying to use SAGA tools 'fill sink (wang & liu). Choose a DEM raster, take default minimum slope = 0.010 error on dyld: Symbol not found: __ZN20wireless_diagnostics6google8protobuf2io16CodedInputStream24default_recursion_limit_E Referenced from: /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib Expected in: /Applications/QGIS.app/Contents/MacOS/lib/libprotobuf-lite.dylib in /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib /Applications/QGIS.app/Contents/MacOS/bin/saga_cmd: line 9: 73081 Abort trap: 6 "$THISDIR/_saga_cmd" "$@" dyld: Symbol not found: __ZN20wireless_diagnostics6google8protobuf2io16CodedInputStream24default_recursion_limit_E Referenced from: /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib Expected in: /Applications/QGIS.app/Contents/MacOS/lib/libprotobuf-lite.dylib in /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib /Applications/QGIS.app/Contents/MacOS/bin/saga_cmd: line 9: 73086 Abort trap: 6 "$THISDIR/_saga_cmd" "$@" ### Versions QGIS version | 3.24.1-Tisler | QGIS code revision | 9d1e5b189a -- | -- | -- | -- Qt version | 5.15.2 Python version | 3.9.5 GDAL/OGR version | 3.3.2 PROJ version | 8.1.1 EPSG Registry database version | v10.028 (2021-07-07) GEOS version | 3.9.1-CAPI-1.14.2 SQLite version | 3.35.2 PDAL version | 2.3.0 PostgreSQL client version | unknown SpatiaLite version | 5.0.1 QWT version | 6.1.6 QScintilla2 version | 2.11.5 OS version | macOS Mojave (10.14)   |   |   |   Active Python plugins numericalDigitize | 0.4.6 QuickOSM | 2.0.1 profiletool | 4.2.2 lines_ranking | 1.0 quick_map_services | 0.19.29 Hy2roresO-master | 0.0.1 LAStools | 1.4 SRTM-Downloader | 3.1.17 latlontools | 3.6.2 qfieldsync | v4.0.0 qgis_resource_sharing | 0.16.0 pointsamplingtool | 0.5.3 GroupStats | 2.2.5 processing | 2.12.99 sagaprovider | 2.12.99 grassprovider | 2.12.99 db_manager | 0.1.20 MetaSearch | 0.3.6 </body></html>QGIS version 3.24.1-Tisler QGIS code revision [9d1e5b189a](https://github.com/qgis/QGIS/commit/9d1e5b189a) Qt version 5.15.2 Python version 3.9.5 GDAL/OGR version 3.3.2 PROJ version 8.1.1 EPSG Registry database version v10.028 (2021-07-07) GEOS version 3.9.1-CAPI-1.14.2 SQLite version 3.35.2 PDAL version 2.3.0 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.6 QScintilla2 version 2.11.5 OS version macOS Mojave (10.14) Active Python plugins numericalDigitize 0.4.6 QuickOSM 2.0.1 profiletool 4.2.2 lines_ranking 1.0 quick_map_services 0.19.29 Hy2roresO-master 0.0.1 LAStools 1.4 SRTM-Downloader 3.1.17 latlontools 3.6.2 qfieldsync v4.0.0 qgis_resource_sharing 0.16.0 pointsamplingtool 0.5.3 GroupStats 2.2.5 processing 2.12.99 sagaprovider 2.12.99 grassprovider 2.12.99 db_manager 0.1.20 MetaSearch 0.3.6 ### Supported QGIS version - [X] I'm running a supported QGIS version according to the roadmap. ### New profile - [ ] I tried with a new QGIS profile ### Additional context System Version: macOS 10.14.6 (18G103) Kernel Version: Darwin 18.7.0 previously had trouble with RASTER clip to layer and had to adjust multiple symlinks in QGIS lib directory due to other missing symbol errors ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libJPEG.dylib libjpeg.dylib ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libTIFF.dylib libtiff.dylib ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libpng.dylib libtpng.dylib ln -s ./local/Cellar/sqlite/3.38.1/lib/libsqlite3.dylib libsqlite3.dylib
1.0
Error running SAGA fill sink (wang&liu) - ### What is the bug or the crash? QGIS version: 3.24.1-Tisler QGIS code revision: 9d1e5b189a Qt version: 5.15.2 Python version: 3.9.5 GDAL version: 3.3.2 GEOS version: 3.9.1-CAPI-1.14.2 PROJ version: Rel. 8.1.1, September 1st, 2021 PDAL version: 2.3.0 (git-version: Release) Algorithm started at: 2022-03-25T11:24:35 Algorithm 'Fill sinks (wang & liu)' starting… Input parameters: { 'ELEV' : '/Volumes/10_TB-2020/QGIS_Projects/ClipCathyDEM.tif', 'FDIR' : '/Volumes/10_TB-2020/QGIS_Projects/CathyFlowDir.sdat', 'FILLED' : '/Volumes/10_TB-2020/QGIS_Projects/CathyFillSinks.sdat', 'MINSLOPE' : 0.01, 'WSHED' : '/Volumes/10_TB-2020/QGIS_Projects/CathyWatershed.sdat' } io_gdal 0 -TRANSFORM 1 -RESAMPLING 3 -GRIDS "/Volumes/10_TB-2020/qgis/tmp/processing_QoyQtS/d646b8003a2842f09d3ed44ade7bd6c9/ClipCathyDEM.sgrd" -FILES "/Volumes/10_TB-2020/QGIS_Projects/ClipCathyDEM.tif" ta_preprocessor "Fill Sinks (Wang & Liu)" -ELEV "/Volumes/10_TB-2020/qgis/tmp/processing_QoyQtS/d646b8003a2842f09d3ed44ade7bd6c9/ClipCathyDEM.sgrd" -MINSLOPE 0.01 -FILLED "/Volumes/10_TB-2020/QGIS_Projects/CathyFillSinks.sdat" -FDIR "/Volumes/10_TB-2020/QGIS_Projects/CathyFlowDir.sdat" -WSHED "/Volumes/10_TB-2020/QGIS_Projects/CathyWatershed.sdat" dyld: Symbol not found: __ZN20wireless_diagnostics6google8protobuf2io16CodedInputStream24default_recursion_limit_E Referenced from: /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib Expected in: /Applications/QGIS.app/Contents/MacOS/lib/libprotobuf-lite.dylib in /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib /Applications/QGIS.app/Contents/MacOS/bin/saga_cmd: line 9: 73081 Abort trap: 6 "$THISDIR/_saga_cmd" "$@" dyld: Symbol not found: __ZN20wireless_diagnostics6google8protobuf2io16CodedInputStream24default_recursion_limit_E Referenced from: /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib Expected in: /Applications/QGIS.app/Contents/MacOS/lib/libprotobuf-lite.dylib in /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib /Applications/QGIS.app/Contents/MacOS/bin/saga_cmd: line 9: 73086 Abort trap: 6 "$THISDIR/_saga_cmd" "$@" Execution completed in 0.36 seconds ### Steps to reproduce the issue Trying to use SAGA tools 'fill sink (wang & liu). Choose a DEM raster, take default minimum slope = 0.010 error on dyld: Symbol not found: __ZN20wireless_diagnostics6google8protobuf2io16CodedInputStream24default_recursion_limit_E Referenced from: /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib Expected in: /Applications/QGIS.app/Contents/MacOS/lib/libprotobuf-lite.dylib in /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib /Applications/QGIS.app/Contents/MacOS/bin/saga_cmd: line 9: 73081 Abort trap: 6 "$THISDIR/_saga_cmd" "$@" dyld: Symbol not found: __ZN20wireless_diagnostics6google8protobuf2io16CodedInputStream24default_recursion_limit_E Referenced from: /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib Expected in: /Applications/QGIS.app/Contents/MacOS/lib/libprotobuf-lite.dylib in /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Versions/A/Libraries/libprotobuf.dylib /Applications/QGIS.app/Contents/MacOS/bin/saga_cmd: line 9: 73086 Abort trap: 6 "$THISDIR/_saga_cmd" "$@" ### Versions QGIS version | 3.24.1-Tisler | QGIS code revision | 9d1e5b189a -- | -- | -- | -- Qt version | 5.15.2 Python version | 3.9.5 GDAL/OGR version | 3.3.2 PROJ version | 8.1.1 EPSG Registry database version | v10.028 (2021-07-07) GEOS version | 3.9.1-CAPI-1.14.2 SQLite version | 3.35.2 PDAL version | 2.3.0 PostgreSQL client version | unknown SpatiaLite version | 5.0.1 QWT version | 6.1.6 QScintilla2 version | 2.11.5 OS version | macOS Mojave (10.14)   |   |   |   Active Python plugins numericalDigitize | 0.4.6 QuickOSM | 2.0.1 profiletool | 4.2.2 lines_ranking | 1.0 quick_map_services | 0.19.29 Hy2roresO-master | 0.0.1 LAStools | 1.4 SRTM-Downloader | 3.1.17 latlontools | 3.6.2 qfieldsync | v4.0.0 qgis_resource_sharing | 0.16.0 pointsamplingtool | 0.5.3 GroupStats | 2.2.5 processing | 2.12.99 sagaprovider | 2.12.99 grassprovider | 2.12.99 db_manager | 0.1.20 MetaSearch | 0.3.6 </body></html>QGIS version 3.24.1-Tisler QGIS code revision [9d1e5b189a](https://github.com/qgis/QGIS/commit/9d1e5b189a) Qt version 5.15.2 Python version 3.9.5 GDAL/OGR version 3.3.2 PROJ version 8.1.1 EPSG Registry database version v10.028 (2021-07-07) GEOS version 3.9.1-CAPI-1.14.2 SQLite version 3.35.2 PDAL version 2.3.0 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.6 QScintilla2 version 2.11.5 OS version macOS Mojave (10.14) Active Python plugins numericalDigitize 0.4.6 QuickOSM 2.0.1 profiletool 4.2.2 lines_ranking 1.0 quick_map_services 0.19.29 Hy2roresO-master 0.0.1 LAStools 1.4 SRTM-Downloader 3.1.17 latlontools 3.6.2 qfieldsync v4.0.0 qgis_resource_sharing 0.16.0 pointsamplingtool 0.5.3 GroupStats 2.2.5 processing 2.12.99 sagaprovider 2.12.99 grassprovider 2.12.99 db_manager 0.1.20 MetaSearch 0.3.6 ### Supported QGIS version - [X] I'm running a supported QGIS version according to the roadmap. ### New profile - [ ] I tried with a new QGIS profile ### Additional context System Version: macOS 10.14.6 (18G103) Kernel Version: Darwin 18.7.0 previously had trouble with RASTER clip to layer and had to adjust multiple symlinks in QGIS lib directory due to other missing symbol errors ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libJPEG.dylib libjpeg.dylib ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libTIFF.dylib libtiff.dylib ln -s /System/Library/Frameworks/ImageIO.framework/Resources/libpng.dylib libtpng.dylib ln -s ./local/Cellar/sqlite/3.38.1/lib/libsqlite3.dylib libsqlite3.dylib
process
error running saga fill sink wang liu what is the bug or the crash qgis version tisler qgis code revision qt version python version gdal version geos version capi proj version rel september pdal version git version release algorithm started at algorithm fill sinks wang liu starting… input parameters elev volumes tb qgis projects clipcathydem tif fdir volumes tb qgis projects cathyflowdir sdat filled volumes tb qgis projects cathyfillsinks sdat minslope wshed volumes tb qgis projects cathywatershed sdat io gdal transform resampling grids volumes tb qgis tmp processing qoyqts clipcathydem sgrd files volumes tb qgis projects clipcathydem tif ta preprocessor fill sinks wang liu elev volumes tb qgis tmp processing qoyqts clipcathydem sgrd minslope filled volumes tb qgis projects cathyfillsinks sdat fdir volumes tb qgis projects cathyflowdir sdat wshed volumes tb qgis projects cathywatershed sdat dyld symbol not found recursion limit e referenced from system library privateframeworks wirelessdiagnostics framework versions a libraries libprotobuf dylib expected in applications qgis app contents macos lib libprotobuf lite dylib in system library privateframeworks wirelessdiagnostics framework versions a libraries libprotobuf dylib applications qgis app contents macos bin saga cmd line abort trap thisdir saga cmd dyld symbol not found recursion limit e referenced from system library privateframeworks wirelessdiagnostics framework versions a libraries libprotobuf dylib expected in applications qgis app contents macos lib libprotobuf lite dylib in system library privateframeworks wirelessdiagnostics framework versions a libraries libprotobuf dylib applications qgis app contents macos bin saga cmd line abort trap thisdir saga cmd execution completed in seconds steps to reproduce the issue trying to use saga tools fill sink wang liu choose a dem raster take default minimum slope error on dyld symbol not found recursion limit e referenced from system library privateframeworks wirelessdiagnostics framework versions a libraries libprotobuf dylib expected in applications qgis app contents macos lib libprotobuf lite dylib in system library privateframeworks wirelessdiagnostics framework versions a libraries libprotobuf dylib applications qgis app contents macos bin saga cmd line abort trap thisdir saga cmd dyld symbol not found recursion limit e referenced from system library privateframeworks wirelessdiagnostics framework versions a libraries libprotobuf dylib expected in applications qgis app contents macos lib libprotobuf lite dylib in system library privateframeworks wirelessdiagnostics framework versions a libraries libprotobuf dylib applications qgis app contents macos bin saga cmd line abort trap thisdir saga cmd versions qgis version tisler qgis code revision qt version python version gdal ogr version proj version epsg registry database version geos version capi sqlite version pdal version postgresql client version unknown spatialite version qwt version version os version macos mojave         active python plugins numericaldigitize quickosm profiletool lines ranking quick map services master lastools srtm downloader latlontools qfieldsync qgis resource sharing pointsamplingtool groupstats processing sagaprovider grassprovider db manager metasearch qgis version tisler qgis code revision qt version python version gdal ogr version proj version epsg registry database version geos version capi sqlite version pdal version postgresql client version unknown spatialite version qwt version version os version macos mojave active python plugins numericaldigitize quickosm profiletool lines ranking quick map services master lastools srtm downloader latlontools qfieldsync qgis resource sharing pointsamplingtool groupstats processing sagaprovider grassprovider db manager metasearch supported qgis version i m running a supported qgis version according to the roadmap new profile i tried with a new qgis profile additional context system version macos kernel version darwin previously had trouble with raster clip to layer and had to adjust multiple symlinks in qgis lib directory due to other missing symbol errors ln s system library frameworks imageio framework resources libjpeg dylib libjpeg dylib ln s system library frameworks imageio framework resources libtiff dylib libtiff dylib ln s system library frameworks imageio framework resources libpng dylib libtpng dylib ln s local cellar sqlite lib dylib dylib
1
412,469
27,859,467,599
IssuesEvent
2023-03-21 04:05:22
emqx/emqx
https://api.github.com/repos/emqx/emqx
closed
What should be known besides the upgrade from 4 - 5 change log
Documentation #triage/stale
### What would you like to be added or enhanced? When upgrading to 2.1.1 and thus 5.0.14 how smooth would the transition be. The updates may have breaking changes and this might not be apparent from how one might expect. In short I don't want to just change the config and install. Can you post or update the documentation to talk about what should be watched for in that type of transition? ### Why is this needed? So that one can prepare for upgrading to 5.0 from the Kubernetes Emqx operator.
1.0
What should be known besides the upgrade from 4 - 5 change log - ### What would you like to be added or enhanced? When upgrading to 2.1.1 and thus 5.0.14 how smooth would the transition be. The updates may have breaking changes and this might not be apparent from how one might expect. In short I don't want to just change the config and install. Can you post or update the documentation to talk about what should be watched for in that type of transition? ### Why is this needed? So that one can prepare for upgrading to 5.0 from the Kubernetes Emqx operator.
non_process
what should be known besides the upgrade from change log what would you like to be added or enhanced when upgrading to and thus how smooth would the transition be the updates may have breaking changes and this might not be apparent from how one might expect in short i don t want to just change the config and install can you post or update the documentation to talk about what should be watched for in that type of transition why is this needed so that one can prepare for upgrading to from the kubernetes emqx operator
0
156,508
24,624,494,424
IssuesEvent
2022-10-16 10:40:08
dotnet/efcore
https://api.github.com/repos/dotnet/efcore
closed
Adding EF 7.0.0-rc1-final and xunit causes - Failed to add reference. System.Collections.Concurrent which was not found in the GAC
closed-by-design
### Steps to reproduce 1. Create a class library new project targeting .Net 4.51 (same problem applies in 4.61). 2. Using NuGet add xunit 2.1.0 3. Using NuGet add EntityFramework.MicrosoftSqlServer 7.0.0-rc1-final ### The issue The following error occurs when adding the EF package. Severity Code Description Project File Line Suppression State Error Failed to add reference. The package 'Microsoft.Extensions.Logging' tried to add a framework reference to 'System.Collections.Concurrent' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance. ### Further technical details A workaround to this problem is to add EF first, then add xunit. Doing that leads to no errors.
1.0
Adding EF 7.0.0-rc1-final and xunit causes - Failed to add reference. System.Collections.Concurrent which was not found in the GAC - ### Steps to reproduce 1. Create a class library new project targeting .Net 4.51 (same problem applies in 4.61). 2. Using NuGet add xunit 2.1.0 3. Using NuGet add EntityFramework.MicrosoftSqlServer 7.0.0-rc1-final ### The issue The following error occurs when adding the EF package. Severity Code Description Project File Line Suppression State Error Failed to add reference. The package 'Microsoft.Extensions.Logging' tried to add a framework reference to 'System.Collections.Concurrent' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance. ### Further technical details A workaround to this problem is to add EF first, then add xunit. Doing that leads to no errors.
non_process
adding ef final and xunit causes failed to add reference system collections concurrent which was not found in the gac steps to reproduce create a class library new project targeting net same problem applies in using nuget add xunit using nuget add entityframework microsoftsqlserver final the issue the following error occurs when adding the ef package severity code description project file line suppression state error failed to add reference the package microsoft extensions logging tried to add a framework reference to system collections concurrent which was not found in the gac this is possibly a bug in the package please contact the package owners for assistance further technical details a workaround to this problem is to add ef first then add xunit doing that leads to no errors
0
6,949
10,113,416,215
IssuesEvent
2019-07-30 16:40:27
pawn-lang/compiler
https://api.github.com/repos/pawn-lang/compiler
opened
Notify users of possibly malformed include guard due to wrong directory separators
area: pre-processor state: discuss type: enhancement
An extract from this page: > This is a little confusing! Also, you might think that `_inc_subdir/include` is not a valid symbol name - and you'd be right, this method slightly bypasses the compiler's normal checks on names, which means you can't do: > ```c > #undef _inc_subdir/include > ``` As I was explaining this to someone for the umpteenth time, I realised, why doesn't the compiler simply apply the same standard constraints to these generated include guard symbols to help aid with the mysterious "my file won't include and I don't know why" issues. I'm not entirely sure what this error/warning might look like or what the possible implications might be, but it's an idea that I'm surprised hasn't been brought up already! (Or maybe it has and I missed it.)
1.0
Notify users of possibly malformed include guard due to wrong directory separators - An extract from this page: > This is a little confusing! Also, you might think that `_inc_subdir/include` is not a valid symbol name - and you'd be right, this method slightly bypasses the compiler's normal checks on names, which means you can't do: > ```c > #undef _inc_subdir/include > ``` As I was explaining this to someone for the umpteenth time, I realised, why doesn't the compiler simply apply the same standard constraints to these generated include guard symbols to help aid with the mysterious "my file won't include and I don't know why" issues. I'm not entirely sure what this error/warning might look like or what the possible implications might be, but it's an idea that I'm surprised hasn't been brought up already! (Or maybe it has and I missed it.)
process
notify users of possibly malformed include guard due to wrong directory separators an extract from this page this is a little confusing also you might think that inc subdir include is not a valid symbol name and you d be right this method slightly bypasses the compiler s normal checks on names which means you can t do c undef inc subdir include as i was explaining this to someone for the umpteenth time i realised why doesn t the compiler simply apply the same standard constraints to these generated include guard symbols to help aid with the mysterious my file won t include and i don t know why issues i m not entirely sure what this error warning might look like or what the possible implications might be but it s an idea that i m surprised hasn t been brought up already or maybe it has and i missed it
1
653,953
21,631,832,009
IssuesEvent
2022-05-05 10:31:06
theRookieCoder/ferium
https://api.github.com/repos/theRookieCoder/ferium
closed
Offer to back up old mod files when creating a profile
enhancement priority
A follow up to https://github.com/theRookieCoder/ferium/issues/17#issuecomment-1114320572 where a user got his previous mods wiped after using Ferium for the first time (`F`s in chat)
1.0
Offer to back up old mod files when creating a profile - A follow up to https://github.com/theRookieCoder/ferium/issues/17#issuecomment-1114320572 where a user got his previous mods wiped after using Ferium for the first time (`F`s in chat)
non_process
offer to back up old mod files when creating a profile a follow up to where a user got his previous mods wiped after using ferium for the first time f s in chat
0
282,654
30,889,393,871
IssuesEvent
2023-08-04 02:39:29
madhans23/linux-4.1.15
https://api.github.com/repos/madhans23/linux-4.1.15
reopened
CVE-2016-9685 (Medium) detected in linux-stable-rtv4.1.33
Mend: dependency security vulnerability
## CVE-2016-9685 - Medium Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Library - <b>linux-stable-rtv4.1.33</b></p></summary> <p> <p>Julia Cartwright's fork of linux-stable-rt.git</p> <p>Library home page: <a href=https://git.kernel.org/pub/scm/linux/kernel/git/julia/linux-stable-rt.git>https://git.kernel.org/pub/scm/linux/kernel/git/julia/linux-stable-rt.git</a></p> <p>Found in base branch: <b>master</b></p></p> </details> </p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Source Files (1)</summary> <p></p> <p> <img src='https://s3.amazonaws.com/wss-public/bitbucketImages/xRedImage.png' width=19 height=20> <b>/fs/xfs/xfs_attr_list.c</b> </p> </details> <p></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png?' width=19 height=20> Vulnerability Details</summary> <p> Multiple memory leaks in error paths in fs/xfs/xfs_attr_list.c in the Linux kernel before 4.5.1 allow local users to cause a denial of service (memory consumption) via crafted XFS filesystem operations. <p>Publish Date: 2016-12-28 <p>URL: <a href=https://www.mend.io/vulnerability-database/CVE-2016-9685>CVE-2016-9685</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 3 Score Details (<b>5.5</b>)</summary> <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/suggested_fix.png' width=19 height=20> Suggested Fix</summary> <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://nvd.nist.gov/vuln/detail/CVE-2016-9685">https://nvd.nist.gov/vuln/detail/CVE-2016-9685</a></p> <p>Release Date: 2016-12-28</p> <p>Fix Resolution: 4.5.1</p> </p> </details> <p></p> *** Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
True
CVE-2016-9685 (Medium) detected in linux-stable-rtv4.1.33 - ## CVE-2016-9685 - Medium Severity Vulnerability <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Library - <b>linux-stable-rtv4.1.33</b></p></summary> <p> <p>Julia Cartwright's fork of linux-stable-rt.git</p> <p>Library home page: <a href=https://git.kernel.org/pub/scm/linux/kernel/git/julia/linux-stable-rt.git>https://git.kernel.org/pub/scm/linux/kernel/git/julia/linux-stable-rt.git</a></p> <p>Found in base branch: <b>master</b></p></p> </details> </p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Source Files (1)</summary> <p></p> <p> <img src='https://s3.amazonaws.com/wss-public/bitbucketImages/xRedImage.png' width=19 height=20> <b>/fs/xfs/xfs_attr_list.c</b> </p> </details> <p></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png?' width=19 height=20> Vulnerability Details</summary> <p> Multiple memory leaks in error paths in fs/xfs/xfs_attr_list.c in the Linux kernel before 4.5.1 allow local users to cause a denial of service (memory consumption) via crafted XFS filesystem operations. <p>Publish Date: 2016-12-28 <p>URL: <a href=https://www.mend.io/vulnerability-database/CVE-2016-9685>CVE-2016-9685</a></p> </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS 3 Score Details (<b>5.5</b>)</summary> <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> </details> <p></p> <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/suggested_fix.png' width=19 height=20> Suggested Fix</summary> <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://nvd.nist.gov/vuln/detail/CVE-2016-9685">https://nvd.nist.gov/vuln/detail/CVE-2016-9685</a></p> <p>Release Date: 2016-12-28</p> <p>Fix Resolution: 4.5.1</p> </p> </details> <p></p> *** Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
non_process
cve medium detected in linux stable cve medium severity vulnerability vulnerable library linux stable julia cartwright s fork of linux stable rt git library home page a href found in base branch master vulnerable source files fs xfs xfs attr list c vulnerability details multiple memory leaks in error paths in fs xfs xfs attr list c in the linux kernel before allow local users to cause a denial of service memory consumption via crafted xfs filesystem operations publish date url a href cvss score details base score metrics exploitability metrics attack vector local attack complexity low privileges required low user interaction none scope unchanged impact metrics confidentiality impact none integrity impact none availability impact high for more information on scores click a href suggested fix type upgrade version origin a href release date fix resolution step up your open source security game with mend
0
72,242
13,795,217,859
IssuesEvent
2020-10-09 17:37:31
joomla/joomla-cms
https://api.github.com/repos/joomla/joomla-cms
closed
[4.0] Beta3 to Beta4 update fails
No Code Attached Yet
### Steps to reproduce the issue Install beat3 and try to update via Updater to Beata4 ### Actual result SQL Error Unknown column 's.inheritable' in 'field list' ![updateerror](https://user-images.githubusercontent.com/12803406/95614269-8046d600-0a66-11eb-8c4d-84ac3a22a88e.jpg)
1.0
[4.0] Beta3 to Beta4 update fails - ### Steps to reproduce the issue Install beat3 and try to update via Updater to Beata4 ### Actual result SQL Error Unknown column 's.inheritable' in 'field list' ![updateerror](https://user-images.githubusercontent.com/12803406/95614269-8046d600-0a66-11eb-8c4d-84ac3a22a88e.jpg)
non_process
to update fails steps to reproduce the issue install and try to update via updater to actual result sql error unknown column s inheritable in field list
0
10,029
13,044,161,485
IssuesEvent
2020-07-29 03:47:23
tikv/tikv
https://api.github.com/repos/tikv/tikv
closed
UCP: Migrate scalar function `AddDateDurationReal` from TiDB
challenge-program-2 component/coprocessor difficulty/easy sig/coprocessor
## Description Port the scalar function `AddDateDurationReal` from TiDB to coprocessor. ## Score * 50 ## Mentor(s) * @sticnarf ## Recommended Skills * Rust programming ## Learning Materials Already implemented expressions ported from TiDB - https://github.com/tikv/tikv/tree/master/components/tidb_query/src/rpn_expr) - https://github.com/tikv/tikv/tree/master/components/tidb_query/src/expr)
2.0
UCP: Migrate scalar function `AddDateDurationReal` from TiDB - ## Description Port the scalar function `AddDateDurationReal` from TiDB to coprocessor. ## Score * 50 ## Mentor(s) * @sticnarf ## Recommended Skills * Rust programming ## Learning Materials Already implemented expressions ported from TiDB - https://github.com/tikv/tikv/tree/master/components/tidb_query/src/rpn_expr) - https://github.com/tikv/tikv/tree/master/components/tidb_query/src/expr)
process
ucp migrate scalar function adddatedurationreal from tidb description port the scalar function adddatedurationreal from tidb to coprocessor score mentor s sticnarf recommended skills rust programming learning materials already implemented expressions ported from tidb
1
18,938
24,899,537,676
IssuesEvent
2022-10-28 19:16:43
Open-Data-Product-Initiative/open-data-product-spec
https://api.github.com/repos/Open-Data-Product-Initiative/open-data-product-spec
closed
Data Product content sample
enhancement unprocessed
**Idea Description** Add element in which a sample of the data can be added. Customers often want to see the data and sample is often enough. Looking at the sample is different compared to looking at Data Product content Schema. Both can however be used in getting more familiar with the data product content. The latter is also suitable for validating the data stream. **Screenshots** None
1.0
Data Product content sample - **Idea Description** Add element in which a sample of the data can be added. Customers often want to see the data and sample is often enough. Looking at the sample is different compared to looking at Data Product content Schema. Both can however be used in getting more familiar with the data product content. The latter is also suitable for validating the data stream. **Screenshots** None
process
data product content sample idea description add element in which a sample of the data can be added customers often want to see the data and sample is often enough looking at the sample is different compared to looking at data product content schema both can however be used in getting more familiar with the data product content the latter is also suitable for validating the data stream screenshots none
1
5,096
7,879,001,032
IssuesEvent
2018-06-26 12:08:25
RustyPanda/zoobot
https://api.github.com/repos/RustyPanda/zoobot
opened
Optimise feeding of batches
Preprocessing enhancement
Reading in examples feels not-quite-right. Currently, I convert the batched dataset to an iterator, call it for a batch, then feed this batch to stratified_sample. The output of stratified_sample becomes the model input. In practice, this means linking together various queues. 1. I think it might be possible to call the sampler directly with the batch iterator: I should see what happens 2. I'm not clear on the difference between rejection and stratified sampling. [The guide](https://www.tensorflow.org/api_guides/python/contrib.training#Online_data_resampling) says: > "To resample data with replacement on a per-example basis, use tf.contrib.training.rejection_sample. [...] Use tf.contrib.training.stratified_sample to resample without replacement." Resampling without replacement causes me to burn through epochs much faster than I'm actually *using* data. If pre-processing is being applied, this is inefficient - but I think it's probably not. *If I stick with stratified, I should set the dataset to repeat n times.* Resampling with replacement would be more efficient if pre-processing is applied, but - I don't think pre-processing is applied - I don't know what happens when a dataset finishes *I should first test if pre-processing is being applied* https://www.tensorflow.org/api_docs/python/tf/contrib/training/rejection_sample Accept function can be init_probs[label] Faster rejection sampler: https://github.com/tensorflow/tensorflow/pull/18730/commits/b1067116c6a2351f4c597a9391b21ad0f513565b
1.0
Optimise feeding of batches - Reading in examples feels not-quite-right. Currently, I convert the batched dataset to an iterator, call it for a batch, then feed this batch to stratified_sample. The output of stratified_sample becomes the model input. In practice, this means linking together various queues. 1. I think it might be possible to call the sampler directly with the batch iterator: I should see what happens 2. I'm not clear on the difference between rejection and stratified sampling. [The guide](https://www.tensorflow.org/api_guides/python/contrib.training#Online_data_resampling) says: > "To resample data with replacement on a per-example basis, use tf.contrib.training.rejection_sample. [...] Use tf.contrib.training.stratified_sample to resample without replacement." Resampling without replacement causes me to burn through epochs much faster than I'm actually *using* data. If pre-processing is being applied, this is inefficient - but I think it's probably not. *If I stick with stratified, I should set the dataset to repeat n times.* Resampling with replacement would be more efficient if pre-processing is applied, but - I don't think pre-processing is applied - I don't know what happens when a dataset finishes *I should first test if pre-processing is being applied* https://www.tensorflow.org/api_docs/python/tf/contrib/training/rejection_sample Accept function can be init_probs[label] Faster rejection sampler: https://github.com/tensorflow/tensorflow/pull/18730/commits/b1067116c6a2351f4c597a9391b21ad0f513565b
process
optimise feeding of batches reading in examples feels not quite right currently i convert the batched dataset to an iterator call it for a batch then feed this batch to stratified sample the output of stratified sample becomes the model input in practice this means linking together various queues i think it might be possible to call the sampler directly with the batch iterator i should see what happens i m not clear on the difference between rejection and stratified sampling says to resample data with replacement on a per example basis use tf contrib training rejection sample use tf contrib training stratified sample to resample without replacement resampling without replacement causes me to burn through epochs much faster than i m actually using data if pre processing is being applied this is inefficient but i think it s probably not if i stick with stratified i should set the dataset to repeat n times resampling with replacement would be more efficient if pre processing is applied but i don t think pre processing is applied i don t know what happens when a dataset finishes i should first test if pre processing is being applied accept function can be init probs faster rejection sampler
1
15,618
8,974,369,981
IssuesEvent
2019-01-30 00:05:37
tensorflow/tensorflow
https://api.github.com/repos/tensorflow/tensorflow
closed
Data Augmentation and pre-processing in tf.data.Dataset
2.0 stat:awaiting tensorflower type:bug/performance
<em>Please make sure that this is a bug. As per our [GitHub Policy](https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md), we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em> **System information** - Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): 16.04 - Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A - TensorFlow installed from (source or binary): binary - TensorFlow version (use command below): tf-2.0-preview - Python version: 3.6 - Bazel version (if compiling from source): - GCC/Compiler version (if compiling from source): - CUDA/cuDNN version: Cuda 10 - GPU model and memory: K80 **Describe the current behavior** Suppose I want to do `transfer learning`. I use the `base model` from `tf.keras.appliactions`, for example, `VGG16`. During transfer learning/fine-tuning, there are two steps that we almost always follow: 1) `Pre-process` each batch. e.g subtract imagenet mean, converting values in range [0,1] or [-1,1] 2) Data Augmentation The actual pipeline looks like this: ```python def get _model() base_model = tf.keras.applications.vgg16.VGG16(...) base_model_output = base_model.output # add new layers x = tf.keras.layers.Flatten()(base_model_output)(x) x = tf.keras.layers.Dense(...)(x) ... model = Model(base_model.input, output) model.compile(..) return model model = get_model() dataset = tf.data.Dataset.from_tensor_slices((filenames, labels)) dataset = dataset.batch(32).repeat() ``` In order to `pre-process` the images and perform `data augmentation`, I can write a function and map the dataset elements to it. For example, ```python def _parse_function(filename, label): image_string = tf.read_file(filename) image_decoded = tf.image.decode_jpeg(image_string) image_resized = tf.image.resize_images(image_decoded, [28, 28]) # preprocess image_resized = tf.expand_dims(image_resized, axis=0) image_resized = vgg.preprocess_input(image_resized) image_resized = tf.squeeze(image_resized) # perform augmentation using tf or some other library like Augmenter image_resized = .... return image_resized, label ``` This works fine but I see two problems with this approach: 1) We are not utilising `vectorization`. In order to preprocess, we expand the dimensions to reshape the image in `[1, H, W, C]` form and then we apply `vgg.preprocess_input()` function. The problem is that we are doing too many extra operations `expand_dims` and `squeeze` whereas `preprocess_input()` can operate on a batch which is the ideal case. 2) Data Augmentation libraries like [Augmentor](https://github.com/mdbloice/Augmentor) or [imgaug](https://github.com/aleju/imgaug) works with batches and performing augmentation on random samples of a batch makes more sense than for each image but there is no way to achieve this if we are using `map` with `datasets`. This is a performance bottleneck IMO. It might be the case that I am missing something here. Please correct me if that's the case.
True
Data Augmentation and pre-processing in tf.data.Dataset - <em>Please make sure that this is a bug. As per our [GitHub Policy](https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md), we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em> **System information** - Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): 16.04 - Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A - TensorFlow installed from (source or binary): binary - TensorFlow version (use command below): tf-2.0-preview - Python version: 3.6 - Bazel version (if compiling from source): - GCC/Compiler version (if compiling from source): - CUDA/cuDNN version: Cuda 10 - GPU model and memory: K80 **Describe the current behavior** Suppose I want to do `transfer learning`. I use the `base model` from `tf.keras.appliactions`, for example, `VGG16`. During transfer learning/fine-tuning, there are two steps that we almost always follow: 1) `Pre-process` each batch. e.g subtract imagenet mean, converting values in range [0,1] or [-1,1] 2) Data Augmentation The actual pipeline looks like this: ```python def get _model() base_model = tf.keras.applications.vgg16.VGG16(...) base_model_output = base_model.output # add new layers x = tf.keras.layers.Flatten()(base_model_output)(x) x = tf.keras.layers.Dense(...)(x) ... model = Model(base_model.input, output) model.compile(..) return model model = get_model() dataset = tf.data.Dataset.from_tensor_slices((filenames, labels)) dataset = dataset.batch(32).repeat() ``` In order to `pre-process` the images and perform `data augmentation`, I can write a function and map the dataset elements to it. For example, ```python def _parse_function(filename, label): image_string = tf.read_file(filename) image_decoded = tf.image.decode_jpeg(image_string) image_resized = tf.image.resize_images(image_decoded, [28, 28]) # preprocess image_resized = tf.expand_dims(image_resized, axis=0) image_resized = vgg.preprocess_input(image_resized) image_resized = tf.squeeze(image_resized) # perform augmentation using tf or some other library like Augmenter image_resized = .... return image_resized, label ``` This works fine but I see two problems with this approach: 1) We are not utilising `vectorization`. In order to preprocess, we expand the dimensions to reshape the image in `[1, H, W, C]` form and then we apply `vgg.preprocess_input()` function. The problem is that we are doing too many extra operations `expand_dims` and `squeeze` whereas `preprocess_input()` can operate on a batch which is the ideal case. 2) Data Augmentation libraries like [Augmentor](https://github.com/mdbloice/Augmentor) or [imgaug](https://github.com/aleju/imgaug) works with batches and performing augmentation on random samples of a batch makes more sense than for each image but there is no way to achieve this if we are using `map` with `datasets`. This is a performance bottleneck IMO. It might be the case that I am missing something here. Please correct me if that's the case.
non_process
data augmentation and pre processing in tf data dataset please make sure that this is a bug as per our we only address code doc bugs performance issues feature requests and build installation issues on github tag bug template system information have i written custom code as opposed to using a stock example script provided in tensorflow no os platform and distribution e g linux ubuntu mobile device e g iphone pixel samsung galaxy if the issue happens on mobile device n a tensorflow installed from source or binary binary tensorflow version use command below tf preview python version bazel version if compiling from source gcc compiler version if compiling from source cuda cudnn version cuda gpu model and memory describe the current behavior suppose i want to do transfer learning i use the base model from tf keras appliactions for example during transfer learning fine tuning there are two steps that we almost always follow pre process each batch e g subtract imagenet mean converting values in range or data augmentation the actual pipeline looks like this python def get model base model tf keras applications base model output base model output add new layers x tf keras layers flatten base model output x x tf keras layers dense x model model base model input output model compile return model model get model dataset tf data dataset from tensor slices filenames labels dataset dataset batch repeat in order to pre process the images and perform data augmentation i can write a function and map the dataset elements to it for example python def parse function filename label image string tf read file filename image decoded tf image decode jpeg image string image resized tf image resize images image decoded preprocess image resized tf expand dims image resized axis image resized vgg preprocess input image resized image resized tf squeeze image resized perform augmentation using tf or some other library like augmenter image resized return image resized label this works fine but i see two problems with this approach we are not utilising vectorization in order to preprocess we expand the dimensions to reshape the image in form and then we apply vgg preprocess input function the problem is that we are doing too many extra operations expand dims and squeeze whereas preprocess input can operate on a batch which is the ideal case data augmentation libraries like or works with batches and performing augmentation on random samples of a batch makes more sense than for each image but there is no way to achieve this if we are using map with datasets this is a performance bottleneck imo it might be the case that i am missing something here please correct me if that s the case
0
42,692
6,995,908,378
IssuesEvent
2017-12-15 21:26:09
vapor-ware/ksync
https://api.github.com/repos/vapor-ware/ksync
closed
Repo description and tags
Documentation good first issue releng
Before release we should add a good (short) description and tags for the repository. <img width="584" alt="screen shot 2017-12-11 at 2 39 24 pm" src="https://user-images.githubusercontent.com/5316117/33857585-22e5af0e-de81-11e7-9e4e-2caf436d03df.png">
1.0
Repo description and tags - Before release we should add a good (short) description and tags for the repository. <img width="584" alt="screen shot 2017-12-11 at 2 39 24 pm" src="https://user-images.githubusercontent.com/5316117/33857585-22e5af0e-de81-11e7-9e4e-2caf436d03df.png">
non_process
repo description and tags before release we should add a good short description and tags for the repository img width alt screen shot at pm src
0
826,080
31,551,457,852
IssuesEvent
2023-09-02 05:21:06
rainlab/pages-plugin
https://api.github.com/repos/rainlab/pages-plugin
closed
Add support for the Trigger API on custom page fields {variable}
Priority: Low Type: Conceptual Enhancement good first issue help wanted
In YML and PHP, we can define a trigger by doing this: ```yml my_field: label: Link span: right trigger: action: show field: my_other_field condition: checked ``` Is there a way to pass a trigger to a custom form element? Such as ``` {variable name="my_field" label="Link" trigger-action="show" trigger-field="my_other_field" trigger-condition="checked" span="right"} {/variable} ```
1.0
Add support for the Trigger API on custom page fields {variable} - In YML and PHP, we can define a trigger by doing this: ```yml my_field: label: Link span: right trigger: action: show field: my_other_field condition: checked ``` Is there a way to pass a trigger to a custom form element? Such as ``` {variable name="my_field" label="Link" trigger-action="show" trigger-field="my_other_field" trigger-condition="checked" span="right"} {/variable} ```
non_process
add support for the trigger api on custom page fields variable in yml and php we can define a trigger by doing this yml my field label link span right trigger action show field my other field condition checked is there a way to pass a trigger to a custom form element such as variable name my field label link trigger action show trigger field my other field trigger condition checked span right variable
0
18,634
24,580,406,598
IssuesEvent
2022-10-13 15:12:50
GoogleCloudPlatform/fda-mystudies
https://api.github.com/repos/GoogleCloudPlatform/fda-mystudies
closed
[Consent API] [PM] Participant Details > Consent History > Recent version should be displayed on top(first row)
Bug P2 Participant manager Process: Fixed Process: Tested QA Process: Tested dev
**AR:** Recent consent pdf (same version or different versions) is displaying in last row **ER:** Recent consent pdf (same version or different versions) should be displayed on first row ![Screenshot (914)](https://user-images.githubusercontent.com/86007179/150731280-a272957b-836e-4232-b5f0-186239a677c6.png)
3.0
[Consent API] [PM] Participant Details > Consent History > Recent version should be displayed on top(first row) - **AR:** Recent consent pdf (same version or different versions) is displaying in last row **ER:** Recent consent pdf (same version or different versions) should be displayed on first row ![Screenshot (914)](https://user-images.githubusercontent.com/86007179/150731280-a272957b-836e-4232-b5f0-186239a677c6.png)
process
participant details consent history recent version should be displayed on top first row ar recent consent pdf same version or different versions is displaying in last row er recent consent pdf same version or different versions should be displayed on first row
1
93,849
10,776,011,309
IssuesEvent
2019-11-03 17:57:21
CartoDB/cartoframes
https://api.github.com/repos/CartoDB/cartoframes
opened
Broken link
documentation
Hi, In the following section the link to download the "arlington" dataset used in the example seems to be broken: cartoframes/docs/developer-center/guides/04-Quickstart-Part-1.md Thanks!
1.0
Broken link - Hi, In the following section the link to download the "arlington" dataset used in the example seems to be broken: cartoframes/docs/developer-center/guides/04-Quickstart-Part-1.md Thanks!
non_process
broken link hi in the following section the link to download the arlington dataset used in the example seems to be broken cartoframes docs developer center guides quickstart part md thanks
0
3,374
6,500,478,801
IssuesEvent
2017-08-23 04:43:40
gaocegege/Processing.R
https://api.github.com/repos/gaocegege/Processing.R
closed
Announce mode
community/processing community/R community/renjin priority/p0 status/done type/enhancement
1. Post an announcement that the Processing.R mode is now available through the PDE Contributions Manager. It should appear in the channel Create & Announce Modes: https://forum.processing.org/two/categories/create-announce-modes 2. Post a comment with a link to the new announcement at the end of the existing Idea forum thread. https://forum.processing.org/two/discussion/21195/idea-r-language-mode-for-processing 3. Post the announcement text to https://groups.google.com/forum/#!forum/renjin-dev ... add a first line: "Announcing a new Processing.R mode built using renjin:" 4. ...anywhere else we should be announcing?
1.0
Announce mode - 1. Post an announcement that the Processing.R mode is now available through the PDE Contributions Manager. It should appear in the channel Create & Announce Modes: https://forum.processing.org/two/categories/create-announce-modes 2. Post a comment with a link to the new announcement at the end of the existing Idea forum thread. https://forum.processing.org/two/discussion/21195/idea-r-language-mode-for-processing 3. Post the announcement text to https://groups.google.com/forum/#!forum/renjin-dev ... add a first line: "Announcing a new Processing.R mode built using renjin:" 4. ...anywhere else we should be announcing?
process
announce mode post an announcement that the processing r mode is now available through the pde contributions manager it should appear in the channel create announce modes post a comment with a link to the new announcement at the end of the existing idea forum thread post the announcement text to add a first line announcing a new processing r mode built using renjin anywhere else we should be announcing
1
614,292
19,178,941,462
IssuesEvent
2021-12-04 03:25:18
hackforla/tdm-calculator
https://api.github.com/repos/hackforla/tdm-calculator
closed
Page 1 Welcome Page Edit
role: front-end level: easy priority: SHOULD HAVE p-Feature - Project Page
Change welcome page text from "on your project" to "about your project" @Dsomers74 @KPHowley @entrotech
1.0
Page 1 Welcome Page Edit - Change welcome page text from "on your project" to "about your project" @Dsomers74 @KPHowley @entrotech
non_process
page welcome page edit change welcome page text from on your project to about your project kphowley entrotech
0
14,068
5,544,275,443
IssuesEvent
2017-03-22 18:45:27
eklogi/idb
https://api.github.com/repos/eklogi/idb
closed
Include blueprint modules in linting and formatting make targets
build
Update make targets `inspect` and `format` to lint and format the blueprint modules.
1.0
Include blueprint modules in linting and formatting make targets - Update make targets `inspect` and `format` to lint and format the blueprint modules.
non_process
include blueprint modules in linting and formatting make targets update make targets inspect and format to lint and format the blueprint modules
0
57,479
11,756,544,094
IssuesEvent
2020-03-13 11:48:56
fac19/week2-hklo
https://api.github.com/repos/fac19/week2-hklo
closed
Chrome gives a cross site cookie warning in the console.
bug code review
It's not urgent but there will be a breaking change in a future release... A cookie associated with a cross-site resource at http://giphy.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
1.0
Chrome gives a cross site cookie warning in the console. - It's not urgent but there will be a breaking change in a future release... A cookie associated with a cross-site resource at http://giphy.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
non_process
chrome gives a cross site cookie warning in the console it s not urgent but there will be a breaking change in a future release a cookie associated with a cross site resource at was set without the samesite attribute a future release of chrome will only deliver cookies with cross site requests if they are set with samesite none and secure you can review cookies in developer tools under application storage cookies and see more details at and
0
425,257
12,337,686,866
IssuesEvent
2020-05-14 15:20:30
jstockwin/py-pdf-parser
https://api.github.com/repos/jstockwin/py-pdf-parser
closed
Publish to PyPI
Component - Meta Difficulty - Easy Priority - Important Type - Enhancement
We should publish to PyPI to allow for `pip3 install py-pdf-parser`. Once this is done, we should update the installation instructions on the documentation.
1.0
Publish to PyPI - We should publish to PyPI to allow for `pip3 install py-pdf-parser`. Once this is done, we should update the installation instructions on the documentation.
non_process
publish to pypi we should publish to pypi to allow for install py pdf parser once this is done we should update the installation instructions on the documentation
0