Explore all Editor open source software, libraries, packages, source code, cloud functions and APIs.

Popular New Releases in Editor

marktext

0.17.1

CodeMirror

5.65.3

slate

slate-react@0.77.3

editor.js

v2.23.2

micro

2.0.10

Popular Libraries in Editor

quill

by quilljs doticonjavascriptdoticon

star image 32025 doticonBSD-3-Clause

Quill is a modern WYSIWYG editor built for compatibility and extensibility.

marktext

by marktext doticonjavascriptdoticon

star image 31047 doticonMIT

📝A simple and elegant markdown editor, available for Linux, macOS and Windows.

monaco-editor

by microsoft doticonjavascriptdoticon

star image 28702 doticonMIT

A browser based code editor

CodeMirror

by codemirror doticonjavascriptdoticon

star image 24774 doticonMIT

In-browser code editor

slate

by ianstormtaylor doticontypescriptdoticon

star image 24170 doticonMIT

A completely customizable framework for building rich text editors. (Currently in beta.)

xi-editor

by xi-editor doticonrustdoticon

star image 19184 doticonApache-2.0

A modern editor with a backend written in Rust.

editor.js

by codex-team doticontypescriptdoticon

star image 18656 doticonApache-2.0

A block-styled editor with clean JSON output

micro

by zyedidia doticongodoticon

star image 17610 doticonNOASSERTION

A modern and intuitive terminal-based text editor

theia

by eclipse-theia doticontypescriptdoticon

star image 16718 doticonNOASSERTION

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.

Trending New libraries in Editor

helix

by helix-editor doticonrustdoticon

star image 8142 doticonMPL-2.0

A post-modern modal text editor.

milkdown

by Saul-Mirone doticontypescriptdoticon

star image 6008 doticonMIT

🍼 Plugin driven WYSIWYG markdown editor framework.

bytemd

by bytedance doticontypescriptdoticon

star image 2026 doticonMIT

A hackable Markdown editor component

Graphite

by GraphiteEditor doticonrustdoticon

star image 1211 doticonApache-2.0

2D raster/vector editor that melds traditional layers & tools with a modern node-based procedural workflow.

ParrelSync

by VeriorPies doticoncsharpdoticon

star image 1147 doticonMIT

(Unity3D) Test multiplayer without building

codejar

by antonmedv doticontypescriptdoticon

star image 1122 doticonMIT

An embeddable code editor for the browser 🍯

kibi

by ilai-deutel doticonrustdoticon

star image 748 doticonNOASSERTION

A text editor in ≤1024 lines of code, written in Rust

go-playground

by x1unix doticongodoticon

star image 743 doticonMIT

🇺🇦 Better Go Playground powered by React and Monaco editor

kodbox

by kalcaddle doticonphpdoticon

star image 675 doticon

kodbox is a file manager for web. It is a newly designed product based on kodexplorer. It is also a web code editor, which allows you to develop websites directly within the web browser.You can run kodbox either online or locally,on Linux, Windows or Mac based platforms

Top Authors in Editor

1

baba-s

49 Libraries

star icon412

2

froala

24 Libraries

star icon8193

3

ckeditor

24 Libraries

star icon1727

4

microsoft

17 Libraries

star icon32619

5

ProseMirror

16 Libraries

star icon7045

6

codemirror

16 Libraries

star icon26535

7

editor-js

14 Libraries

star icon614

8

standardnotes

10 Libraries

star icon201

9

GitbookIO

8 Libraries

star icon2090

10

KDE

8 Libraries

star icon481

1

49 Libraries

star icon412

2

24 Libraries

star icon8193

3

24 Libraries

star icon1727

4

17 Libraries

star icon32619

5

16 Libraries

star icon7045

6

16 Libraries

star icon26535

7

14 Libraries

star icon614

8

10 Libraries

star icon201

9

8 Libraries

star icon2090

10

8 Libraries

star icon481

Trending Kits in Editor

A JavaScript HTML editor is a library for editing HTML code on a web page. Any text editor controls the HTML markup in a web page, especially HTML editors. It can offer convenience and added functionality. The Toast UI WYSIWYG text editor features a tool-rich panel and, editor, table manager. It features a checklist creator, a built-in code editor, and Markdown support. It also supports syntax highlighting, a split pane viewer, and an embedded image editor. Open WYSIWYG editor is the textarea replacement rich editor used in WYSIWYG editor.  

 

The JavaScript Text Editor works well with all modern web browsers. Ace is a high-performance code editor for the web, an embeddable code editor. The Epic editor is an embeddable JavaScript Markdown editor. It has split full-screen editing, live previewing, automatic draft saving, and offline support. The Medium Editor is an inline editor, so users can edit HTML content to implement a rich text solution.  

 

A nice way to make HTML content in JavaScript is often through a WYSIWYG editor. Quill is a free, open-source, powerful WYSIWYG editor built for modern web browsers. The HTML editor is a JavaScript-based program with extensive features. It includes a visual table toolset, color options, editing modes, and interface customization. Also, it has a toggle between soft tabs and real tabs. It provides support for TypeScript, JavaScript, and Node.js. It has great accessibility for screen readers and keyboard shortcut support.  

quill:  

  • It is one of the best Free WYSIWYG editing software. It supports all modern tablets, desktops, and phone browsers.  
  • A simple API provides granular access to the editor's content, changes, and events.  
  • Rich text editors are built to help people write text.  
  • It allows you to do custom content and formatting. 

brackets:  

  • Brackets are open source and built with HTML, CSS, and JavaScript.  
  • You can help build the best code editor for the web.  
  • Brackets are in sync with your browser and with Live Preview.  
  • It clutters up your coding environment with many panels and icons. The Quick Edit UI in Brackets puts context-specific code and tools in line. 

ace:  

  • Many cursors and selections.  
  • Cut, copy, and paste functionality.  
  • Drag and drop text using the mouse.  
  • Highlight matching parentheses.  

medium-editor:  

  • It is an inline editor toolbar.  
  • No extra frameworks are required.  
  • The toolbar for Medium Editor is implemented as a built-in extension.  
  • It is displayed whenever the user selects some text.  

wysiwyg-editor:  

  • It has Client framework integrations.  
  • Online documentation is up to date.  
  • Simple to extend - the plugins are all well-commented and simple to use as a basis for your plugins.  
  • It is well maintained - frequent releases. 

EpicEditor:  

  • It is an embeddable JavaScript Markdown editor with split fullscreen editing.  
  • It is live previewing, automatic draft saving, offline support, and more.  
  • For developers, it offers a robust API that can be themed.  
  • It lets you swap out the bundled Markdown parser with anything you throw. 

ContentTools:  

  • It is a WYSIWYG editor for HTML content.  
  • All modern browsers support it.  
  • Offers fast & smart code editing.  
  • Easy and efficient project management.  

Aloha-Editor:  

  • It supports end-user and implementor support requests. 
  • It issues a tracker for developer support requests.  
  • It is a JavaScript content editing library.  
  • Aloha-Editor has a medium support.  

tuesday-js:  

  • It is a simple web-based, free, and open-source visual novel editor.  
  • It is written in JavaScript without using any third-party libraries.  
  • It does not need extra software installation.  
  • The engine uses standard HTML document elements such as div and img. 

editorjs-html:  

  • Extendable for any new or custom editorjs blocks.  
  • Supports basic editorjs blocks which are customizable as well.  
  • Fast, Efficient, and Lightweight.  
  • Fully customizable to the core.  

FAQ:  

1. What is the best HTML editor library for web development?  

Quill is a free, open-source WYSIWYG editor built for modern web development.  

 

2. How does Super simple WYSIWYG editor work, and what features does it provide?  

  • A box you can type your content in.  
  • Text styles.  
  • Font options.  
  • Bold, italics, and underlined.  
  • Bullet points and numbered lists.  
  • Alignment.  
  • Hyperlinks.  
  • Text color and highlighting.  

 

3. Is any JavaScript Markdown library available to help create articles?  

Extensible WYSIWYG Markdown Editor For jQuery is an extensible, full-featured, multi-language WYSIWYG Markdown Editor. It can be implemented in JavaScript or jQuery.  

 

4. What is the best text solution for a JavaScript HTML editor?  

Visual Studio Code is the best code editor by Microsoft. It supports development operations like debugging, version control, and task running. It is one of the most popular and reliable code editors for JavaScript.  

 

5. Who uses JavaScript to develop web pages, and why do they prefer this over other languages?  

  1. JavaScript is easy to learn compared to other programming languages.  
  2. JavaScript is versatile and can create a wide variety of applications.  
  3. All major web browsers support JavaScript, making creating cross-platform applications easier. 

Trending Discussions on Editor

Couldn't start dlv dap

The unauthenticated git protocol on port 9418 is no longer supported

Intellij wont open after update to java 17

Convert multiple lines to single line using RStudio text editor

VS 2022 - Convert to file-scoped namespace in all files

When I reset the style of ::placeholder on a password input it turn into dots on Chrome & Safari browsers

What counts as a newline for Raku *source* files?

Android Studio strange code sub-windows after upgrade to Arctic Fox (2020.3.1)

How do I correct syntax highlight in VS Code for PHP 8.1 Enum Class?

What should `foo.template bar()` do when there's both a template and a non-template overload?

QUESTION

Couldn't start dlv dap

Asked 2022-Mar-27 at 18:53

When I launch in VSCode dlv dap debug, I get this message:

1Couldn't start dlv dap:
2Error:timed out while waiting for DAP server to start
3

I already have launch configurations for the project:

lunch.json:

1Couldn't start dlv dap:
2Error:timed out while waiting for DAP server to start
3{
4"version": "0.2.0",
5"configurations": [
6    {
7        "name": "Launch file",
8        "type": "go",
9        "request": "launch",
10        "mode": "debug",
11        "program": "${workspaceFolder}",
12        "showLog": true,
13        "env": {
14            "GO111MODULE": "on"
15        }
16    }
17]
18}
19

and setting.json is :

1Couldn't start dlv dap:
2Error:timed out while waiting for DAP server to start
3{
4"version": "0.2.0",
5"configurations": [
6    {
7        "name": "Launch file",
8        "type": "go",
9        "request": "launch",
10        "mode": "debug",
11        "program": "${workspaceFolder}",
12        "showLog": true,
13        "env": {
14            "GO111MODULE": "on"
15        }
16    }
17]
18}
19{
20"folders": [
21    {
22        "path": "."
23    }
24],
25"settings": {
26    "go.useCodeSnippetsOnFunctionSuggestWithoutType": true,
27    "go.autocompleteUnimportedPackages": true, 
28    "go.gocodePackageLookupMode": "go",
29    "go.gotoSymbol.includeImports": true,
30    "go.useCodeSnippetsOnFunctionSuggest": true,
31    "explorer.confirmDelete": false,
32    "go.formatTool": "goimports",
33    "go.docsTool": "gogetdoc",
34    "go.buildFlags": [],
35    "explorer.confirmDragAndDrop": false,
36    "window.zoomLevel": 0.8,
37    "editor.minimap.enabled": false,
38    "go.useLanguageServer": true,
39    "go.delveConfig":{
40        "debugAdapter":"dlv-dap"
41        },
42    "[go]": {
43        "editor.snippetSuggestions": "none",
44        "editor.formatOnType": true,
45        "editor.formatOnSave": true,
46        "editor.codeActionsOnSave": {
47            "source.organizeImports": true
48        }
49    },
50    "gopls": {
51        "experimentalWorkspaceModule": true,
52        "usePlaceholders": true, // add parameter placeholders when completing a function
53        "completionDocumentation": true // for documentation in completion items
54    }
55},
56    
57}
58

The structure of the project is shown in the figure:

ANSWER

Answered 2021-Aug-13 at 15:50

You might have some luck switching the delveConfig to use legacy mode:

1Couldn't start dlv dap:
2Error:timed out while waiting for DAP server to start
3{
4"version": "0.2.0",
5"configurations": [
6    {
7        "name": "Launch file",
8        "type": "go",
9        "request": "launch",
10        "mode": "debug",
11        "program": "${workspaceFolder}",
12        "showLog": true,
13        "env": {
14            "GO111MODULE": "on"
15        }
16    }
17]
18}
19{
20"folders": [
21    {
22        "path": "."
23    }
24],
25"settings": {
26    "go.useCodeSnippetsOnFunctionSuggestWithoutType": true,
27    "go.autocompleteUnimportedPackages": true, 
28    "go.gocodePackageLookupMode": "go",
29    "go.gotoSymbol.includeImports": true,
30    "go.useCodeSnippetsOnFunctionSuggest": true,
31    "explorer.confirmDelete": false,
32    "go.formatTool": "goimports",
33    "go.docsTool": "gogetdoc",
34    "go.buildFlags": [],
35    "explorer.confirmDragAndDrop": false,
36    "window.zoomLevel": 0.8,
37    "editor.minimap.enabled": false,
38    "go.useLanguageServer": true,
39    "go.delveConfig":{
40        "debugAdapter":"dlv-dap"
41        },
42    "[go]": {
43        "editor.snippetSuggestions": "none",
44        "editor.formatOnType": true,
45        "editor.formatOnSave": true,
46        "editor.codeActionsOnSave": {
47            "source.organizeImports": true
48        }
49    },
50    "gopls": {
51        "experimentalWorkspaceModule": true,
52        "usePlaceholders": true, // add parameter placeholders when completing a function
53        "completionDocumentation": true // for documentation in completion items
54    }
55},
56    
57}
58    "go.delveConfig":{
59        "debugAdapter":"legacy"
60        }
61

My team and I recently began seeing the same issue after updating VSCode. There's a little more info on this setting here: https://go.googlesource.com/vscode-go/+/HEAD/docs/debugging.md#switching-to-legacy-debug-adapter, but I believe root cause (if this does indeed solve your issue) is going to be your version of Golang is not the version targeted by dlv-dap. Anything below Go version 1.15 needs to use legacy mode, and the latest version of the delve debugger happens to skip legacy mode by default now.

I also needed to kill VSCode before this change took effect. According to the dlv-dap docs, you can also force it into legacy mode by switching launch.json's mode to "remote", so there's likely a few (maybe better) ways to resolve this issue.

Source https://stackoverflow.com/questions/68753251

QUESTION

The unauthenticated git protocol on port 9418 is no longer supported

Asked 2022-Mar-27 at 13:23

I have been using github actions for quite sometime but today my deployments started failing. Below is the error from github action logs

1Command: git
2Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
3Directory: /home/runner/work/stackstream-fe/stackstream-fe
4Output:
5fatal: remote error: 
6  The unauthenticated git protocol on port 9418 is no longer supported.
7

Upon investigation, it appears that below section in my yml file is causing the issue.

1Command: git
2Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
3Directory: /home/runner/work/stackstream-fe/stackstream-fe
4Output:
5fatal: remote error: 
6  The unauthenticated git protocol on port 9418 is no longer supported.
7    - name: Installing modules
8      run: yarn install
9

I have looked into this change log but can't seem to comprehend the issue.

Additional Details: Server: EC2 Instance Github actions steps:

1Command: git
2Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
3Directory: /home/runner/work/stackstream-fe/stackstream-fe
4Output:
5fatal: remote error: 
6  The unauthenticated git protocol on port 9418 is no longer supported.
7    - name: Installing modules
8      run: yarn install
9  steps:
10  - name: Checkout
11    uses: actions/checkout@v2
12
13  - id: vars
14    run: |
15      if [ '${{ github.ref }}' == 'refs/heads/master' ]; then echo "::set-output name=environment::prod_stackstream" ; echo "::set-output name=api-url::api" ; elif [ '${{ github.ref }}' == 'refs/heads/staging' ]; then echo "::set-output name=environment::staging_stackstream"  ; echo "::set-output name=api-url::stagingapi" ; else echo "::set-output name=environment::dev_stackstream" ; echo "::set-output name=api-url::devapi" ; fi
16
17  - uses: pCYSl5EDgo/cat@master
18    id: slack
19    with:
20      path: .github/workflows/slack.txt
21
22  - name: Slack Start Notification
23    uses: 8398a7/action-slack@v3
24    env:
25      SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
26      ENVIRONMENT: '`${{ steps.vars.outputs.environment }}`'
27      COLOR: good
28      STATUS: '`Started`'
29    with:
30      status: custom
31      fields: workflow,job,commit,repo,ref,author,took
32      custom_payload: |
33        ${{ steps.slack.outputs.text }}
34
35  - name: Installing modules
36    env:
37      REACT_APP_API_URL: 'https://${{ steps.vars.outputs.api-url }}mergestack.com/api/v1'
38    run: yarn install
39
40  - name: Create Frontend Build
41    env:
42      REACT_APP_API_URL: 'https://${{ steps.vars.outputs.api-url }}mergestack.com/api/v1'
43    run: yarn build
44
45  - name: Deploy to Frontend Server DEV
46    if: ${{ contains(github.ref, 'dev') }}
47    uses: easingthemes/ssh-deploy@v2.1.5
48    env:
49      SSH_PRIVATE_KEY: ${{ secrets.DEV_KEY }}
50      ARGS: '-rltgoDzvO --delete'
51      SOURCE: 'deploy/'
52      REMOTE_HOST: ${{ secrets.DEV_HOST }}
53      REMOTE_USER: plyfolio-dev
54      TARGET: '/home/plyfolio-dev/${{ steps.vars.outputs.environment }}/fe/deploy'
55

package.json file

1Command: git
2Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
3Directory: /home/runner/work/stackstream-fe/stackstream-fe
4Output:
5fatal: remote error: 
6  The unauthenticated git protocol on port 9418 is no longer supported.
7    - name: Installing modules
8      run: yarn install
9  steps:
10  - name: Checkout
11    uses: actions/checkout@v2
12
13  - id: vars
14    run: |
15      if [ '${{ github.ref }}' == 'refs/heads/master' ]; then echo "::set-output name=environment::prod_stackstream" ; echo "::set-output name=api-url::api" ; elif [ '${{ github.ref }}' == 'refs/heads/staging' ]; then echo "::set-output name=environment::staging_stackstream"  ; echo "::set-output name=api-url::stagingapi" ; else echo "::set-output name=environment::dev_stackstream" ; echo "::set-output name=api-url::devapi" ; fi
16
17  - uses: pCYSl5EDgo/cat@master
18    id: slack
19    with:
20      path: .github/workflows/slack.txt
21
22  - name: Slack Start Notification
23    uses: 8398a7/action-slack@v3
24    env:
25      SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
26      ENVIRONMENT: '`${{ steps.vars.outputs.environment }}`'
27      COLOR: good
28      STATUS: '`Started`'
29    with:
30      status: custom
31      fields: workflow,job,commit,repo,ref,author,took
32      custom_payload: |
33        ${{ steps.slack.outputs.text }}
34
35  - name: Installing modules
36    env:
37      REACT_APP_API_URL: 'https://${{ steps.vars.outputs.api-url }}mergestack.com/api/v1'
38    run: yarn install
39
40  - name: Create Frontend Build
41    env:
42      REACT_APP_API_URL: 'https://${{ steps.vars.outputs.api-url }}mergestack.com/api/v1'
43    run: yarn build
44
45  - name: Deploy to Frontend Server DEV
46    if: ${{ contains(github.ref, 'dev') }}
47    uses: easingthemes/ssh-deploy@v2.1.5
48    env:
49      SSH_PRIVATE_KEY: ${{ secrets.DEV_KEY }}
50      ARGS: '-rltgoDzvO --delete'
51      SOURCE: 'deploy/'
52      REMOTE_HOST: ${{ secrets.DEV_HOST }}
53      REMOTE_USER: plyfolio-dev
54      TARGET: '/home/plyfolio-dev/${{ steps.vars.outputs.environment }}/fe/deploy'
55   {
56  "name": "stackstream-fe",
57  "version": "1.0.0",
58  "authors": [
59    "fayyaznofal@gmail.com"
60  ],
61  "private": true,
62  "dependencies": {
63    "@fortawesome/fontawesome-svg-core": "^1.2.34",
64    "@fortawesome/free-solid-svg-icons": "^5.15.2",
65    "@fortawesome/react-fontawesome": "^0.1.14",
66    "@fullcalendar/bootstrap": "^5.5.0",
67    "@fullcalendar/core": "^5.5.0",
68    "@fullcalendar/daygrid": "^5.5.0",
69    "@fullcalendar/interaction": "^5.5.0",
70    "@fullcalendar/react": "^5.5.0",
71    "@lourenci/react-kanban": "^2.1.0",
72    "@redux-saga/simple-saga-monitor": "^1.1.2",
73    "@testing-library/jest-dom": "^5.11.9",
74    "@testing-library/react": "^11.2.3",
75    "@testing-library/user-event": "^12.6.0",
76    "@toast-ui/react-chart": "^1.0.2",
77    "@types/jest": "^26.0.14",
78    "@types/node": "^14.10.3",
79    "@types/react": "^16.9.49",
80    "@types/react-dom": "^16.9.8",
81    "@vtaits/react-color-picker": "^0.1.1",
82    "apexcharts": "^3.23.1",
83    "availity-reactstrap-validation": "^2.7.0",
84    "axios": "^0.21.1",
85    "axios-mock-adapter": "^1.19.0",
86    "axios-progress-bar": "^1.2.0",
87    "bootstrap": "^5.0.0-beta2",
88    "chart.js": "^2.9.4",
89    "chartist": "^0.11.4",
90    "classnames": "^2.2.6",
91    "components": "^0.1.0",
92    "dotenv": "^8.2.0",
93    "draft-js": "^0.11.7",
94    "echarts": "^4.9.0",
95    "echarts-for-react": "^2.0.16",
96    "firebase": "^8.2.3",
97    "google-maps-react": "^2.0.6",
98    "history": "^4.10.1",
99    "i": "^0.3.6",
100    "i18next": "^19.8.4",
101    "i18next-browser-languagedetector": "^6.0.1",
102    "jsonwebtoken": "^8.5.1",
103    "leaflet": "^1.7.1",
104    "lodash": "^4.17.21",
105    "lodash.clonedeep": "^4.5.0",
106    "lodash.get": "^4.4.2",
107    "metismenujs": "^1.2.1",
108    "mkdirp": "^1.0.4",
109    "moment": "2.29.1",
110    "moment-timezone": "^0.5.32",
111    "nouislider-react": "^3.3.9",
112    "npm": "^7.6.3",
113    "prop-types": "^15.7.2",
114    "query-string": "^6.14.0",
115    "react": "^16.13.1",
116    "react-apexcharts": "^1.3.7",
117    "react-auth-code-input": "^1.0.0",
118    "react-avatar": "^3.10.0",
119    "react-bootstrap": "^1.5.0",
120    "react-bootstrap-editable": "^0.8.2",
121    "react-bootstrap-sweetalert": "^5.2.0",
122    "react-bootstrap-table-next": "^4.0.3",
123    "react-bootstrap-table2-editor": "^1.4.0",
124    "react-bootstrap-table2-paginator": "^2.1.2",
125    "react-bootstrap-table2-toolkit": "^2.1.3",
126    "react-chartist": "^0.14.3",
127    "react-chartjs-2": "^2.11.1",
128    "react-color": "^2.19.3",
129    "react-confirm-alert": "^2.7.0",
130    "react-content-loader": "^6.0.1",
131    "react-countdown": "^2.3.1",
132    "react-countup": "^4.3.3",
133    "react-cropper": "^2.1.4",
134    "react-data-table-component": "^6.11.8",
135    "react-date-picker": "^8.0.6",
136    "react-datepicker": "^3.4.1",
137    "react-dom": "^16.13.1",
138    "react-draft-wysiwyg": "^1.14.5",
139    "react-drag-listview": "^0.1.8",
140    "react-drawer": "^1.3.4",
141    "react-dropzone": "^11.2.4",
142    "react-dual-listbox": "^2.0.0",
143    "react-facebook-login": "^4.1.1",
144    "react-flatpickr": "^3.10.6",
145    "react-google-login": "^5.2.2",
146    "react-hook-form": "^7.15.2",
147    "react-i18next": "^11.8.5",
148    "react-icons": "^4.2.0",
149    "react-image-lightbox": "^5.1.1",
150    "react-input-mask": "^2.0.4",
151    "react-jvectormap": "^0.0.16",
152    "react-leaflet": "^3.0.5",
153    "react-meta-tags": "^1.0.1",
154    "react-modal-video": "^1.2.6",
155    "react-notifications": "^1.7.2",
156    "react-number-format": "^4.7.3",
157    "react-perfect-scrollbar": "^1.5.8",
158    "react-rangeslider": "^2.2.0",
159    "react-rating": "^2.0.5",
160    "react-rating-tooltip": "^1.1.6",
161    "react-redux": "^7.2.1",
162    "react-responsive-carousel": "^3.2.11",
163    "react-router-dom": "^5.2.0",
164    "react-script": "^2.0.5",
165    "react-scripts": "3.4.3",
166    "react-select": "^4.3.1",
167    "react-sparklines": "^1.7.0",
168    "react-star-ratings": "^2.3.0",
169    "react-super-responsive-table": "^5.2.0",
170    "react-switch": "^6.0.0",
171    "react-table": "^7.6.3",
172    "react-toastify": "^7.0.3",
173    "react-toastr": "^3.0.0",
174    "react-twitter-auth": "0.0.13",
175    "reactstrap": "^8.8.1",
176    "recharts": "^2.0.8",
177    "redux": "^4.0.5",
178    "redux-saga": "^1.1.3",
179    "reselect": "^4.0.0",
180    "sass": "^1.37.5",
181    "simplebar-react": "^2.3.0",
182    "styled": "^1.0.0",
183    "styled-components": "^5.2.1",
184    "toastr": "^2.1.4",
185    "typescript": "^4.0.2",
186    "universal-cookie": "^4.0.4"
187  },
188  "devDependencies": {
189    "@typescript-eslint/eslint-plugin": "^2.27.0",
190    "@typescript-eslint/parser": "^2.27.0",
191    "@typescript-eslint/typescript-estree": "^4.15.2",
192    "eslint-config-prettier": "^6.10.1",
193    "eslint-plugin-prettier": "^3.1.2",
194    "husky": "^4.2.5",
195    "lint-staged": "^10.1.3",
196    "prettier": "^1.19.1",
197    "react-test-renderer": "^16.13.1",
198    "redux-devtools-extension": "^2.13.8",
199    "redux-mock-store": "^1.5.4"
200  },
201  "scripts": {
202    "start": "react-scripts start",
203    "build": "react-scripts build && mv build ./deploy/build",
204    "build-local": "react-scripts build",
205    "test": "react-scripts test",
206    "eject": "react-scripts eject"
207  },
208  "eslintConfig": {
209    "extends": "react-app"
210  },
211  "husky": {
212    "hooks": {
213      "pre-commit": "lint-staged"
214    }
215  },
216  "lint-staged": {
217    "*.{js,ts,tsx}": [
218      "eslint --fix"
219    ]
220  },
221  "browserslist": {
222    "production": [
223      ">0.2%",
224      "not dead",
225      "not op_mini all"
226    ],
227    "development": [
228      "last 1 chrome version",
229      "last 1 firefox version",
230      "last 1 safari version"
231    ]
232  }
233}
234

ANSWER

Answered 2022-Mar-16 at 07:01

First, this error message is indeed expected on Jan. 11th, 2022.
See "Improving Git protocol security on GitHub".

January 11, 2022 Final brownout.

This is the full brownout period where we’ll temporarily stop accepting the deprecated key and signature types, ciphers, and MACs, and the unencrypted Git protocol.
This will help clients discover any lingering use of older keys or old URLs.

Second, check your package.json dependencies for any git:// URL, as in this example, fixed in this PR.

As noted by Jörg W Mittag:

There was a 4-month warning.
The entire Internet has been moving away from unauthenticated, unencrypted protocols for a decade, it's not like this is a huge surprise.

Personally, I consider it less an "issue" and more "detecting unmaintained dependencies".

Plus, this is still only the brownout period, so the protocol will only be disabled for a short period of time, allowing developers to discover the problem.

The permanent shutdown is not until March 15th.


For GitHub Actions:

As in actions/checkout issue 14, you can add as a first step:

1Command: git
2Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
3Directory: /home/runner/work/stackstream-fe/stackstream-fe
4Output:
5fatal: remote error: 
6  The unauthenticated git protocol on port 9418 is no longer supported.
7    - name: Installing modules
8      run: yarn install
9  steps:
10  - name: Checkout
11    uses: actions/checkout@v2
12
13  - id: vars
14    run: |
15      if [ '${{ github.ref }}' == 'refs/heads/master' ]; then echo "::set-output name=environment::prod_stackstream" ; echo "::set-output name=api-url::api" ; elif [ '${{ github.ref }}' == 'refs/heads/staging' ]; then echo "::set-output name=environment::staging_stackstream"  ; echo "::set-output name=api-url::stagingapi" ; else echo "::set-output name=environment::dev_stackstream" ; echo "::set-output name=api-url::devapi" ; fi
16
17  - uses: pCYSl5EDgo/cat@master
18    id: slack
19    with:
20      path: .github/workflows/slack.txt
21
22  - name: Slack Start Notification
23    uses: 8398a7/action-slack@v3
24    env:
25      SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
26      ENVIRONMENT: '`${{ steps.vars.outputs.environment }}`'
27      COLOR: good
28      STATUS: '`Started`'
29    with:
30      status: custom
31      fields: workflow,job,commit,repo,ref,author,took
32      custom_payload: |
33        ${{ steps.slack.outputs.text }}
34
35  - name: Installing modules
36    env:
37      REACT_APP_API_URL: 'https://${{ steps.vars.outputs.api-url }}mergestack.com/api/v1'
38    run: yarn install
39
40  - name: Create Frontend Build
41    env:
42      REACT_APP_API_URL: 'https://${{ steps.vars.outputs.api-url }}mergestack.com/api/v1'
43    run: yarn build
44
45  - name: Deploy to Frontend Server DEV
46    if: ${{ contains(github.ref, 'dev') }}
47    uses: easingthemes/ssh-deploy@v2.1.5
48    env:
49      SSH_PRIVATE_KEY: ${{ secrets.DEV_KEY }}
50      ARGS: '-rltgoDzvO --delete'
51      SOURCE: 'deploy/'
52      REMOTE_HOST: ${{ secrets.DEV_HOST }}
53      REMOTE_USER: plyfolio-dev
54      TARGET: '/home/plyfolio-dev/${{ steps.vars.outputs.environment }}/fe/deploy'
55   {
56  "name": "stackstream-fe",
57  "version": "1.0.0",
58  "authors": [
59    "fayyaznofal@gmail.com"
60  ],
61  "private": true,
62  "dependencies": {
63    "@fortawesome/fontawesome-svg-core": "^1.2.34",
64    "@fortawesome/free-solid-svg-icons": "^5.15.2",
65    "@fortawesome/react-fontawesome": "^0.1.14",
66    "@fullcalendar/bootstrap": "^5.5.0",
67    "@fullcalendar/core": "^5.5.0",
68    "@fullcalendar/daygrid": "^5.5.0",
69    "@fullcalendar/interaction": "^5.5.0",
70    "@fullcalendar/react": "^5.5.0",
71    "@lourenci/react-kanban": "^2.1.0",
72    "@redux-saga/simple-saga-monitor": "^1.1.2",
73    "@testing-library/jest-dom": "^5.11.9",
74    "@testing-library/react": "^11.2.3",
75    "@testing-library/user-event": "^12.6.0",
76    "@toast-ui/react-chart": "^1.0.2",
77    "@types/jest": "^26.0.14",
78    "@types/node": "^14.10.3",
79    "@types/react": "^16.9.49",
80    "@types/react-dom": "^16.9.8",
81    "@vtaits/react-color-picker": "^0.1.1",
82    "apexcharts": "^3.23.1",
83    "availity-reactstrap-validation": "^2.7.0",
84    "axios": "^0.21.1",
85    "axios-mock-adapter": "^1.19.0",
86    "axios-progress-bar": "^1.2.0",
87    "bootstrap": "^5.0.0-beta2",
88    "chart.js": "^2.9.4",
89    "chartist": "^0.11.4",
90    "classnames": "^2.2.6",
91    "components": "^0.1.0",
92    "dotenv": "^8.2.0",
93    "draft-js": "^0.11.7",
94    "echarts": "^4.9.0",
95    "echarts-for-react": "^2.0.16",
96    "firebase": "^8.2.3",
97    "google-maps-react": "^2.0.6",
98    "history": "^4.10.1",
99    "i": "^0.3.6",
100    "i18next": "^19.8.4",
101    "i18next-browser-languagedetector": "^6.0.1",
102    "jsonwebtoken": "^8.5.1",
103    "leaflet": "^1.7.1",
104    "lodash": "^4.17.21",
105    "lodash.clonedeep": "^4.5.0",
106    "lodash.get": "^4.4.2",
107    "metismenujs": "^1.2.1",
108    "mkdirp": "^1.0.4",
109    "moment": "2.29.1",
110    "moment-timezone": "^0.5.32",
111    "nouislider-react": "^3.3.9",
112    "npm": "^7.6.3",
113    "prop-types": "^15.7.2",
114    "query-string": "^6.14.0",
115    "react": "^16.13.1",
116    "react-apexcharts": "^1.3.7",
117    "react-auth-code-input": "^1.0.0",
118    "react-avatar": "^3.10.0",
119    "react-bootstrap": "^1.5.0",
120    "react-bootstrap-editable": "^0.8.2",
121    "react-bootstrap-sweetalert": "^5.2.0",
122    "react-bootstrap-table-next": "^4.0.3",
123    "react-bootstrap-table2-editor": "^1.4.0",
124    "react-bootstrap-table2-paginator": "^2.1.2",
125    "react-bootstrap-table2-toolkit": "^2.1.3",
126    "react-chartist": "^0.14.3",
127    "react-chartjs-2": "^2.11.1",
128    "react-color": "^2.19.3",
129    "react-confirm-alert": "^2.7.0",
130    "react-content-loader": "^6.0.1",
131    "react-countdown": "^2.3.1",
132    "react-countup": "^4.3.3",
133    "react-cropper": "^2.1.4",
134    "react-data-table-component": "^6.11.8",
135    "react-date-picker": "^8.0.6",
136    "react-datepicker": "^3.4.1",
137    "react-dom": "^16.13.1",
138    "react-draft-wysiwyg": "^1.14.5",
139    "react-drag-listview": "^0.1.8",
140    "react-drawer": "^1.3.4",
141    "react-dropzone": "^11.2.4",
142    "react-dual-listbox": "^2.0.0",
143    "react-facebook-login": "^4.1.1",
144    "react-flatpickr": "^3.10.6",
145    "react-google-login": "^5.2.2",
146    "react-hook-form": "^7.15.2",
147    "react-i18next": "^11.8.5",
148    "react-icons": "^4.2.0",
149    "react-image-lightbox": "^5.1.1",
150    "react-input-mask": "^2.0.4",
151    "react-jvectormap": "^0.0.16",
152    "react-leaflet": "^3.0.5",
153    "react-meta-tags": "^1.0.1",
154    "react-modal-video": "^1.2.6",
155    "react-notifications": "^1.7.2",
156    "react-number-format": "^4.7.3",
157    "react-perfect-scrollbar": "^1.5.8",
158    "react-rangeslider": "^2.2.0",
159    "react-rating": "^2.0.5",
160    "react-rating-tooltip": "^1.1.6",
161    "react-redux": "^7.2.1",
162    "react-responsive-carousel": "^3.2.11",
163    "react-router-dom": "^5.2.0",
164    "react-script": "^2.0.5",
165    "react-scripts": "3.4.3",
166    "react-select": "^4.3.1",
167    "react-sparklines": "^1.7.0",
168    "react-star-ratings": "^2.3.0",
169    "react-super-responsive-table": "^5.2.0",
170    "react-switch": "^6.0.0",
171    "react-table": "^7.6.3",
172    "react-toastify": "^7.0.3",
173    "react-toastr": "^3.0.0",
174    "react-twitter-auth": "0.0.13",
175    "reactstrap": "^8.8.1",
176    "recharts": "^2.0.8",
177    "redux": "^4.0.5",
178    "redux-saga": "^1.1.3",
179    "reselect": "^4.0.0",
180    "sass": "^1.37.5",
181    "simplebar-react": "^2.3.0",
182    "styled": "^1.0.0",
183    "styled-components": "^5.2.1",
184    "toastr": "^2.1.4",
185    "typescript": "^4.0.2",
186    "universal-cookie": "^4.0.4"
187  },
188  "devDependencies": {
189    "@typescript-eslint/eslint-plugin": "^2.27.0",
190    "@typescript-eslint/parser": "^2.27.0",
191    "@typescript-eslint/typescript-estree": "^4.15.2",
192    "eslint-config-prettier": "^6.10.1",
193    "eslint-plugin-prettier": "^3.1.2",
194    "husky": "^4.2.5",
195    "lint-staged": "^10.1.3",
196    "prettier": "^1.19.1",
197    "react-test-renderer": "^16.13.1",
198    "redux-devtools-extension": "^2.13.8",
199    "redux-mock-store": "^1.5.4"
200  },
201  "scripts": {
202    "start": "react-scripts start",
203    "build": "react-scripts build && mv build ./deploy/build",
204    "build-local": "react-scripts build",
205    "test": "react-scripts test",
206    "eject": "react-scripts eject"
207  },
208  "eslintConfig": {
209    "extends": "react-app"
210  },
211  "husky": {
212    "hooks": {
213      "pre-commit": "lint-staged"
214    }
215  },
216  "lint-staged": {
217    "*.{js,ts,tsx}": [
218      "eslint --fix"
219    ]
220  },
221  "browserslist": {
222    "production": [
223      ">0.2%",
224      "not dead",
225      "not op_mini all"
226    ],
227    "development": [
228      "last 1 chrome version",
229      "last 1 firefox version",
230      "last 1 safari version"
231    ]
232  }
233}
234    - name: Fix up git URLs
235      run: echo -e '[url "https://github.com/"]\n  insteadOf = "git://github.com/"' >> ~/.gitconfig
236

That will change any git://github.com/ into https://github.com/.

For local projects

For all your repositories, you can set:

1Command: git
2Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
3Directory: /home/runner/work/stackstream-fe/stackstream-fe
4Output:
5fatal: remote error: 
6  The unauthenticated git protocol on port 9418 is no longer supported.
7    - name: Installing modules
8      run: yarn install
9  steps:
10  - name: Checkout
11    uses: actions/checkout@v2
12
13  - id: vars
14    run: |
15      if [ '${{ github.ref }}' == 'refs/heads/master' ]; then echo "::set-output name=environment::prod_stackstream" ; echo "::set-output name=api-url::api" ; elif [ '${{ github.ref }}' == 'refs/heads/staging' ]; then echo "::set-output name=environment::staging_stackstream"  ; echo "::set-output name=api-url::stagingapi" ; else echo "::set-output name=environment::dev_stackstream" ; echo "::set-output name=api-url::devapi" ; fi
16
17  - uses: pCYSl5EDgo/cat@master
18    id: slack
19    with:
20      path: .github/workflows/slack.txt
21
22  - name: Slack Start Notification
23    uses: 8398a7/action-slack@v3
24    env:
25      SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
26      ENVIRONMENT: '`${{ steps.vars.outputs.environment }}`'
27      COLOR: good
28      STATUS: '`Started`'
29    with:
30      status: custom
31      fields: workflow,job,commit,repo,ref,author,took
32      custom_payload: |
33        ${{ steps.slack.outputs.text }}
34
35  - name: Installing modules
36    env:
37      REACT_APP_API_URL: 'https://${{ steps.vars.outputs.api-url }}mergestack.com/api/v1'
38    run: yarn install
39
40  - name: Create Frontend Build
41    env:
42      REACT_APP_API_URL: 'https://${{ steps.vars.outputs.api-url }}mergestack.com/api/v1'
43    run: yarn build
44
45  - name: Deploy to Frontend Server DEV
46    if: ${{ contains(github.ref, 'dev') }}
47    uses: easingthemes/ssh-deploy@v2.1.5
48    env:
49      SSH_PRIVATE_KEY: ${{ secrets.DEV_KEY }}
50      ARGS: '-rltgoDzvO --delete'
51      SOURCE: 'deploy/'
52      REMOTE_HOST: ${{ secrets.DEV_HOST }}
53      REMOTE_USER: plyfolio-dev
54      TARGET: '/home/plyfolio-dev/${{ steps.vars.outputs.environment }}/fe/deploy'
55   {
56  "name": "stackstream-fe",
57  "version": "1.0.0",
58  "authors": [
59    "fayyaznofal@gmail.com"
60  ],
61  "private": true,
62  "dependencies": {
63    "@fortawesome/fontawesome-svg-core": "^1.2.34",
64    "@fortawesome/free-solid-svg-icons": "^5.15.2",
65    "@fortawesome/react-fontawesome": "^0.1.14",
66    "@fullcalendar/bootstrap": "^5.5.0",
67    "@fullcalendar/core": "^5.5.0",
68    "@fullcalendar/daygrid": "^5.5.0",
69    "@fullcalendar/interaction": "^5.5.0",
70    "@fullcalendar/react": "^5.5.0",
71    "@lourenci/react-kanban": "^2.1.0",
72    "@redux-saga/simple-saga-monitor": "^1.1.2",
73    "@testing-library/jest-dom": "^5.11.9",
74    "@testing-library/react": "^11.2.3",
75    "@testing-library/user-event": "^12.6.0",
76    "@toast-ui/react-chart": "^1.0.2",
77    "@types/jest": "^26.0.14",
78    "@types/node": "^14.10.3",
79    "@types/react": "^16.9.49",
80    "@types/react-dom": "^16.9.8",
81    "@vtaits/react-color-picker": "^0.1.1",
82    "apexcharts": "^3.23.1",
83    "availity-reactstrap-validation": "^2.7.0",
84    "axios": "^0.21.1",
85    "axios-mock-adapter": "^1.19.0",
86    "axios-progress-bar": "^1.2.0",
87    "bootstrap": "^5.0.0-beta2",
88    "chart.js": "^2.9.4",
89    "chartist": "^0.11.4",
90    "classnames": "^2.2.6",
91    "components": "^0.1.0",
92    "dotenv": "^8.2.0",
93    "draft-js": "^0.11.7",
94    "echarts": "^4.9.0",
95    "echarts-for-react": "^2.0.16",
96    "firebase": "^8.2.3",
97    "google-maps-react": "^2.0.6",
98    "history": "^4.10.1",
99    "i": "^0.3.6",
100    "i18next": "^19.8.4",
101    "i18next-browser-languagedetector": "^6.0.1",
102    "jsonwebtoken": "^8.5.1",
103    "leaflet": "^1.7.1",
104    "lodash": "^4.17.21",
105    "lodash.clonedeep": "^4.5.0",
106    "lodash.get": "^4.4.2",
107    "metismenujs": "^1.2.1",
108    "mkdirp": "^1.0.4",
109    "moment": "2.29.1",
110    "moment-timezone": "^0.5.32",
111    "nouislider-react": "^3.3.9",
112    "npm": "^7.6.3",
113    "prop-types": "^15.7.2",
114    "query-string": "^6.14.0",
115    "react": "^16.13.1",
116    "react-apexcharts": "^1.3.7",
117    "react-auth-code-input": "^1.0.0",
118    "react-avatar": "^3.10.0",
119    "react-bootstrap": "^1.5.0",
120    "react-bootstrap-editable": "^0.8.2",
121    "react-bootstrap-sweetalert": "^5.2.0",
122    "react-bootstrap-table-next": "^4.0.3",
123    "react-bootstrap-table2-editor": "^1.4.0",
124    "react-bootstrap-table2-paginator": "^2.1.2",
125    "react-bootstrap-table2-toolkit": "^2.1.3",
126    "react-chartist": "^0.14.3",
127    "react-chartjs-2": "^2.11.1",
128    "react-color": "^2.19.3",
129    "react-confirm-alert": "^2.7.0",
130    "react-content-loader": "^6.0.1",
131    "react-countdown": "^2.3.1",
132    "react-countup": "^4.3.3",
133    "react-cropper": "^2.1.4",
134    "react-data-table-component": "^6.11.8",
135    "react-date-picker": "^8.0.6",
136    "react-datepicker": "^3.4.1",
137    "react-dom": "^16.13.1",
138    "react-draft-wysiwyg": "^1.14.5",
139    "react-drag-listview": "^0.1.8",
140    "react-drawer": "^1.3.4",
141    "react-dropzone": "^11.2.4",
142    "react-dual-listbox": "^2.0.0",
143    "react-facebook-login": "^4.1.1",
144    "react-flatpickr": "^3.10.6",
145    "react-google-login": "^5.2.2",
146    "react-hook-form": "^7.15.2",
147    "react-i18next": "^11.8.5",
148    "react-icons": "^4.2.0",
149    "react-image-lightbox": "^5.1.1",
150    "react-input-mask": "^2.0.4",
151    "react-jvectormap": "^0.0.16",
152    "react-leaflet": "^3.0.5",
153    "react-meta-tags": "^1.0.1",
154    "react-modal-video": "^1.2.6",
155    "react-notifications": "^1.7.2",
156    "react-number-format": "^4.7.3",
157    "react-perfect-scrollbar": "^1.5.8",
158    "react-rangeslider": "^2.2.0",
159    "react-rating": "^2.0.5",
160    "react-rating-tooltip": "^1.1.6",
161    "react-redux": "^7.2.1",
162    "react-responsive-carousel": "^3.2.11",
163    "react-router-dom": "^5.2.0",
164    "react-script": "^2.0.5",
165    "react-scripts": "3.4.3",
166    "react-select": "^4.3.1",
167    "react-sparklines": "^1.7.0",
168    "react-star-ratings": "^2.3.0",
169    "react-super-responsive-table": "^5.2.0",
170    "react-switch": "^6.0.0",
171    "react-table": "^7.6.3",
172    "react-toastify": "^7.0.3",
173    "react-toastr": "^3.0.0",
174    "react-twitter-auth": "0.0.13",
175    "reactstrap": "^8.8.1",
176    "recharts": "^2.0.8",
177    "redux": "^4.0.5",
178    "redux-saga": "^1.1.3",
179    "reselect": "^4.0.0",
180    "sass": "^1.37.5",
181    "simplebar-react": "^2.3.0",
182    "styled": "^1.0.0",
183    "styled-components": "^5.2.1",
184    "toastr": "^2.1.4",
185    "typescript": "^4.0.2",
186    "universal-cookie": "^4.0.4"
187  },
188  "devDependencies": {
189    "@typescript-eslint/eslint-plugin": "^2.27.0",
190    "@typescript-eslint/parser": "^2.27.0",
191    "@typescript-eslint/typescript-estree": "^4.15.2",
192    "eslint-config-prettier": "^6.10.1",
193    "eslint-plugin-prettier": "^3.1.2",
194    "husky": "^4.2.5",
195    "lint-staged": "^10.1.3",
196    "prettier": "^1.19.1",
197    "react-test-renderer": "^16.13.1",
198    "redux-devtools-extension": "^2.13.8",
199    "redux-mock-store": "^1.5.4"
200  },
201  "scripts": {
202    "start": "react-scripts start",
203    "build": "react-scripts build && mv build ./deploy/build",
204    "build-local": "react-scripts build",
205    "test": "react-scripts test",
206    "eject": "react-scripts eject"
207  },
208  "eslintConfig": {
209    "extends": "react-app"
210  },
211  "husky": {
212    "hooks": {
213      "pre-commit": "lint-staged"
214    }
215  },
216  "lint-staged": {
217    "*.{js,ts,tsx}": [
218      "eslint --fix"
219    ]
220  },
221  "browserslist": {
222    "production": [
223      ">0.2%",
224      "not dead",
225      "not op_mini all"
226    ],
227    "development": [
228      "last 1 chrome version",
229      "last 1 firefox version",
230      "last 1 safari version"
231    ]
232  }
233}
234    - name: Fix up git URLs
235      run: echo -e '[url "https://github.com/"]\n  insteadOf = "git://github.com/"' >> ~/.gitconfig
236git config --global url."https://github.com/".insteadOf git://github.com/
237

You can also use SSH, but GitHub Security reminds us that, as of March 15th, 2022, GitHub stopped accepting DSA keys. RSA keys uploaded after Nov 2, 2021 will work only with SHA-2 signatures.
The deprecated MACs, ciphers, and unencrypted Git protocol are permanently disabled.

So this (with the right key) would work:

1Command: git
2Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
3Directory: /home/runner/work/stackstream-fe/stackstream-fe
4Output:
5fatal: remote error: 
6  The unauthenticated git protocol on port 9418 is no longer supported.
7    - name: Installing modules
8      run: yarn install
9  steps:
10  - name: Checkout
11    uses: actions/checkout@v2
12
13  - id: vars
14    run: |
15      if [ '${{ github.ref }}' == 'refs/heads/master' ]; then echo "::set-output name=environment::prod_stackstream" ; echo "::set-output name=api-url::api" ; elif [ '${{ github.ref }}' == 'refs/heads/staging' ]; then echo "::set-output name=environment::staging_stackstream"  ; echo "::set-output name=api-url::stagingapi" ; else echo "::set-output name=environment::dev_stackstream" ; echo "::set-output name=api-url::devapi" ; fi
16
17  - uses: pCYSl5EDgo/cat@master
18    id: slack
19    with:
20      path: .github/workflows/slack.txt
21
22  - name: Slack Start Notification
23    uses: 8398a7/action-slack@v3
24    env:
25      SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
26      ENVIRONMENT: '`${{ steps.vars.outputs.environment }}`'
27      COLOR: good
28      STATUS: '`Started`'
29    with:
30      status: custom
31      fields: workflow,job,commit,repo,ref,author,took
32      custom_payload: |
33        ${{ steps.slack.outputs.text }}
34
35  - name: Installing modules
36    env:
37      REACT_APP_API_URL: 'https://${{ steps.vars.outputs.api-url }}mergestack.com/api/v1'
38    run: yarn install
39
40  - name: Create Frontend Build
41    env:
42      REACT_APP_API_URL: 'https://${{ steps.vars.outputs.api-url }}mergestack.com/api/v1'
43    run: yarn build
44
45  - name: Deploy to Frontend Server DEV
46    if: ${{ contains(github.ref, 'dev') }}
47    uses: easingthemes/ssh-deploy@v2.1.5
48    env:
49      SSH_PRIVATE_KEY: ${{ secrets.DEV_KEY }}
50      ARGS: '-rltgoDzvO --delete'
51      SOURCE: 'deploy/'
52      REMOTE_HOST: ${{ secrets.DEV_HOST }}
53      REMOTE_USER: plyfolio-dev
54      TARGET: '/home/plyfolio-dev/${{ steps.vars.outputs.environment }}/fe/deploy'
55   {
56  "name": "stackstream-fe",
57  "version": "1.0.0",
58  "authors": [
59    "fayyaznofal@gmail.com"
60  ],
61  "private": true,
62  "dependencies": {
63    "@fortawesome/fontawesome-svg-core": "^1.2.34",
64    "@fortawesome/free-solid-svg-icons": "^5.15.2",
65    "@fortawesome/react-fontawesome": "^0.1.14",
66    "@fullcalendar/bootstrap": "^5.5.0",
67    "@fullcalendar/core": "^5.5.0",
68    "@fullcalendar/daygrid": "^5.5.0",
69    "@fullcalendar/interaction": "^5.5.0",
70    "@fullcalendar/react": "^5.5.0",
71    "@lourenci/react-kanban": "^2.1.0",
72    "@redux-saga/simple-saga-monitor": "^1.1.2",
73    "@testing-library/jest-dom": "^5.11.9",
74    "@testing-library/react": "^11.2.3",
75    "@testing-library/user-event": "^12.6.0",
76    "@toast-ui/react-chart": "^1.0.2",
77    "@types/jest": "^26.0.14",
78    "@types/node": "^14.10.3",
79    "@types/react": "^16.9.49",
80    "@types/react-dom": "^16.9.8",
81    "@vtaits/react-color-picker": "^0.1.1",
82    "apexcharts": "^3.23.1",
83    "availity-reactstrap-validation": "^2.7.0",
84    "axios": "^0.21.1",
85    "axios-mock-adapter": "^1.19.0",
86    "axios-progress-bar": "^1.2.0",
87    "bootstrap": "^5.0.0-beta2",
88    "chart.js": "^2.9.4",
89    "chartist": "^0.11.4",
90    "classnames": "^2.2.6",
91    "components": "^0.1.0",
92    "dotenv": "^8.2.0",
93    "draft-js": "^0.11.7",
94    "echarts": "^4.9.0",
95    "echarts-for-react": "^2.0.16",
96    "firebase": "^8.2.3",
97    "google-maps-react": "^2.0.6",
98    "history": "^4.10.1",
99    "i": "^0.3.6",
100    "i18next": "^19.8.4",
101    "i18next-browser-languagedetector": "^6.0.1",
102    "jsonwebtoken": "^8.5.1",
103    "leaflet": "^1.7.1",
104    "lodash": "^4.17.21",
105    "lodash.clonedeep": "^4.5.0",
106    "lodash.get": "^4.4.2",
107    "metismenujs": "^1.2.1",
108    "mkdirp": "^1.0.4",
109    "moment": "2.29.1",
110    "moment-timezone": "^0.5.32",
111    "nouislider-react": "^3.3.9",
112    "npm": "^7.6.3",
113    "prop-types": "^15.7.2",
114    "query-string": "^6.14.0",
115    "react": "^16.13.1",
116    "react-apexcharts": "^1.3.7",
117    "react-auth-code-input": "^1.0.0",
118    "react-avatar": "^3.10.0",
119    "react-bootstrap": "^1.5.0",
120    "react-bootstrap-editable": "^0.8.2",
121    "react-bootstrap-sweetalert": "^5.2.0",
122    "react-bootstrap-table-next": "^4.0.3",
123    "react-bootstrap-table2-editor": "^1.4.0",
124    "react-bootstrap-table2-paginator": "^2.1.2",
125    "react-bootstrap-table2-toolkit": "^2.1.3",
126    "react-chartist": "^0.14.3",
127    "react-chartjs-2": "^2.11.1",
128    "react-color": "^2.19.3",
129    "react-confirm-alert": "^2.7.0",
130    "react-content-loader": "^6.0.1",
131    "react-countdown": "^2.3.1",
132    "react-countup": "^4.3.3",
133    "react-cropper": "^2.1.4",
134    "react-data-table-component": "^6.11.8",
135    "react-date-picker": "^8.0.6",
136    "react-datepicker": "^3.4.1",
137    "react-dom": "^16.13.1",
138    "react-draft-wysiwyg": "^1.14.5",
139    "react-drag-listview": "^0.1.8",
140    "react-drawer": "^1.3.4",
141    "react-dropzone": "^11.2.4",
142    "react-dual-listbox": "^2.0.0",
143    "react-facebook-login": "^4.1.1",
144    "react-flatpickr": "^3.10.6",
145    "react-google-login": "^5.2.2",
146    "react-hook-form": "^7.15.2",
147    "react-i18next": "^11.8.5",
148    "react-icons": "^4.2.0",
149    "react-image-lightbox": "^5.1.1",
150    "react-input-mask": "^2.0.4",
151    "react-jvectormap": "^0.0.16",
152    "react-leaflet": "^3.0.5",
153    "react-meta-tags": "^1.0.1",
154    "react-modal-video": "^1.2.6",
155    "react-notifications": "^1.7.2",
156    "react-number-format": "^4.7.3",
157    "react-perfect-scrollbar": "^1.5.8",
158    "react-rangeslider": "^2.2.0",
159    "react-rating": "^2.0.5",
160    "react-rating-tooltip": "^1.1.6",
161    "react-redux": "^7.2.1",
162    "react-responsive-carousel": "^3.2.11",
163    "react-router-dom": "^5.2.0",
164    "react-script": "^2.0.5",
165    "react-scripts": "3.4.3",
166    "react-select": "^4.3.1",
167    "react-sparklines": "^1.7.0",
168    "react-star-ratings": "^2.3.0",
169    "react-super-responsive-table": "^5.2.0",
170    "react-switch": "^6.0.0",
171    "react-table": "^7.6.3",
172    "react-toastify": "^7.0.3",
173    "react-toastr": "^3.0.0",
174    "react-twitter-auth": "0.0.13",
175    "reactstrap": "^8.8.1",
176    "recharts": "^2.0.8",
177    "redux": "^4.0.5",
178    "redux-saga": "^1.1.3",
179    "reselect": "^4.0.0",
180    "sass": "^1.37.5",
181    "simplebar-react": "^2.3.0",
182    "styled": "^1.0.0",
183    "styled-components": "^5.2.1",
184    "toastr": "^2.1.4",
185    "typescript": "^4.0.2",
186    "universal-cookie": "^4.0.4"
187  },
188  "devDependencies": {
189    "@typescript-eslint/eslint-plugin": "^2.27.0",
190    "@typescript-eslint/parser": "^2.27.0",
191    "@typescript-eslint/typescript-estree": "^4.15.2",
192    "eslint-config-prettier": "^6.10.1",
193    "eslint-plugin-prettier": "^3.1.2",
194    "husky": "^4.2.5",
195    "lint-staged": "^10.1.3",
196    "prettier": "^1.19.1",
197    "react-test-renderer": "^16.13.1",
198    "redux-devtools-extension": "^2.13.8",
199    "redux-mock-store": "^1.5.4"
200  },
201  "scripts": {
202    "start": "react-scripts start",
203    "build": "react-scripts build && mv build ./deploy/build",
204    "build-local": "react-scripts build",
205    "test": "react-scripts test",
206    "eject": "react-scripts eject"
207  },
208  "eslintConfig": {
209    "extends": "react-app"
210  },
211  "husky": {
212    "hooks": {
213      "pre-commit": "lint-staged"
214    }
215  },
216  "lint-staged": {
217    "*.{js,ts,tsx}": [
218      "eslint --fix"
219    ]
220  },
221  "browserslist": {
222    "production": [
223      ">0.2%",
224      "not dead",
225      "not op_mini all"
226    ],
227    "development": [
228      "last 1 chrome version",
229      "last 1 firefox version",
230      "last 1 safari version"
231    ]
232  }
233}
234    - name: Fix up git URLs
235      run: echo -e '[url "https://github.com/"]\n  insteadOf = "git://github.com/"' >> ~/.gitconfig
236git config --global url."https://github.com/".insteadOf git://github.com/
237git config --global url."git@github.com:".insteadOf git://github.com/
238

That will change any git://github.com/ (unencrypted Git protocol) into git@github.com: (SSH URL).

Source https://stackoverflow.com/questions/70663523

QUESTION

Intellij wont open after update to java 17

Asked 2022-Mar-15 at 14:29

I updated java from java 16 to java 17 and now my editor won't work. I use intellij and here is the error message

1Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
2
3java.lang.IllegalAccessError: class com.intellij.idea.StartupUtil (in unnamed module @0x4bbd0bd0) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x4bbd0bd0
4    at com.intellij.idea.StartupUtil.start(StartupUtil.java:297)
5    at com.intellij.idea.Main.bootstrap(Main.java:123)
6    at com.intellij.idea.Main.main(Main.java:84)
7
8-----
9Your JRE: 17+35-LTS-2724 amd64 (Oracle Corporation)
10C:\Program Files\Java\jdk-17
11

ANSWER

Answered 2021-Oct-13 at 21:31

Current IntelliJ IDEA version requires Java 11 to run. Remove the overrides (idea.jdk file/environment variables) to use the default bundled JetBrains Runtime.

Source https://stackoverflow.com/questions/69562503

QUESTION

Convert multiple lines to single line using RStudio text editor

Asked 2022-Mar-13 at 23:41

Does the RStudio text editor have a simple automated way to convert this:

1c(
2"097",
3"085",
4"041",
5"055"
6)
7

to this: c("097", "085", "041", "055")?

There are answers for other text editors (e.g., here), but I'm looking for a solution specific to RStudio.

ANSWER

Answered 2022-Mar-13 at 22:13

You can use dput:

1c(
2"097",
3"085",
4"041",
5"055"
6)
7dput(c(
8"097",
9"085",
10"041",
11"055"
12))
13#> c("097", "085", "041", "055")
14

It is also possible to set-up a code formatting add-in that you can bind to keyboard shortcuts by installing the styler package.

Source https://stackoverflow.com/questions/71461167

QUESTION

VS 2022 - Convert to file-scoped namespace in all files

Asked 2022-Mar-09 at 08:44

I'm converting my project to .NET 6 and I want to use filescoped namespaces everywhere. But the conversion tool exists only in the editor.

file-scoped namespace conversion

Has anyone found out if there's a way to run this editor function across all files in solution at once? (Looks like Rider has that function)

ANSWER

Answered 2022-Mar-09 at 08:44

Adding a rule to use file scoped namespaces in .editorconfig worked for me:

  • create an .editorconfig file in the solution directory
  • add following line/content below (docs, code - IDE0161)

Example .editorconfig file content:

1[*.cs]
2csharp_style_namespace_declarations = file_scoped:warning
3

After that the preview changes dialog had an option to apply the fix to the whole project/solution:

enter image description here

Source https://stackoverflow.com/questions/69889519

QUESTION

When I reset the style of ::placeholder on a password input it turn into dots on Chrome & Safari browsers

Asked 2022-Mar-01 at 09:17

I'm using all: unset on <input type="password" placeholder="text of placeholder"> and the placeholder turn into dots.

HTML:

1&lt;input type=&quot;password&quot; placeholder=&quot;text of placeholder&quot;&gt;
2

CSS:

1&lt;input type=&quot;password&quot; placeholder=&quot;text of placeholder&quot;&gt;
2::placeholder {
3    all: unset;
4}
5

The wrong, visual result of placeholder:

Placeholder shown as bullets

Is there any way to still use the all: unset and bring back the value of placeholder that will show up correctly?

CodePen Example

ANSWER

Answered 2022-Mar-01 at 09:17
1&lt;input type=&quot;password&quot; placeholder=&quot;text of placeholder&quot;&gt;
2::placeholder {
3    all: unset;
4}
5.reset-input::placeholder {
6  all: unset;
7  -webkit-text-security: initial;
8}
1&lt;input type=&quot;password&quot; placeholder=&quot;text of placeholder&quot;&gt;
2::placeholder {
3    all: unset;
4}
5.reset-input::placeholder {
6  all: unset;
7  -webkit-text-security: initial;
8}&lt;label&gt;Reset Input&lt;/label&gt;
9&lt;input class="reset-input" type="password" placeholder="placeholder text"&gt;
10
11&lt;br&gt;&lt;br&gt;
12
13&lt;label&gt;UnReset Input&lt;/label&gt;
14&lt;input type="password" placeholder="placeholder text"&gt;

Source https://stackoverflow.com/questions/71305665

QUESTION

What counts as a newline for Raku *source* files?

Asked 2022-Jan-15 at 15:04

I was somewhat surprised to observe that the following code

1# comment 
say 1;
2# comment 
say 2;
3# comment say 3;
4# comment say 4;
5

prints 1, 2, 3, and 4.

Here are the relevant characters after "# comment":

1# comment 
say 1;
2# comment 
say 2;
3# comment say 3;
4# comment say 4;
5say &quot;

&quot;.uninames.raku;
6# OUTPUT: «(&quot;PARAGRAPH SEPARATOR&quot;, &quot;LINE SEPARATOR&quot;, &quot;&lt;control-000B&gt;&quot;, &quot;&lt;control-000C&gt;&quot;).Seq»
7

Note that many/all of these characters are invisible in most fonts. At least with my editor, none cause the following text to be printed on a new line. And at least one (<control-000C>, aka Form Feed, sometimes printed as ^L) is in fairly wide use in Vim/Emacs as a section separator.

This raises a few questions:

  1. Is this intentional, or a bug?
  2. If intentional, what's the use-case (other than winning obfuscated code contests!)
  3. Is it just these 4 characters, or are there others? (I found these because they share the mandatory break Unicode property. Does that property (or some other Unicode property?) govern what Raku considers as a newline?)
  4. Just, really, wow.

(I realize #4 is not technically a question, but I feel it needed to be said).

ANSWER

Answered 2022-Jan-15 at 15:04

Raku's syntax is defined as a Raku grammar. The rule for parsing such a comment is:

1# comment 
say 1;
2# comment 
say 2;
3# comment say 3;
4# comment say 4;
5say &quot;

&quot;.uninames.raku;
6# OUTPUT: «(&quot;PARAGRAPH SEPARATOR&quot;, &quot;LINE SEPARATOR&quot;, &quot;&lt;control-000B&gt;&quot;, &quot;&lt;control-000C&gt;&quot;).Seq»
7token comment:sym&lt;#&gt; {
8   '#' {} \N*
9}
10

That is, it eats everything after the # that is not a newline character. As with all built-in character classes in Raku, \n and its negation are Unicode-aware. The language design docs state:

\n matches a logical (platform independent) newline, not just \x0a. See TR18 section 1.6 for a list of logical newlines.

Which is a reference to the Unicode standard for regular expressions.

I somewhat doubt there was ever a specific language design discussion along the lines of "let's enable all the kinds of newlines in Unicode, it'll be cool!" Rather, the decisions were that Raku should follow the Unicode regex technical report, and that Raku syntax would be defined in terms of a Raku grammar and thus make use of the Unicode-aware character classes. That a range of different newline characters are supported is a consequence of consistently following those principles.

Source https://stackoverflow.com/questions/70719204

QUESTION

Android Studio strange code sub-windows after upgrade to Arctic Fox (2020.3.1)

Asked 2022-Jan-14 at 09:18

After Android Studio upgraded itself to version Arctic Fox, I now get these strange sub-windows in my code editor that I can't get rid of. If I click in either of the 2 sub-windows (a one-line window at the top or a 5-line window underneath it (see pic below), it scrolls to the code in question and the sub-windows disappear. But as soon as I navigate away from that code, these sub-windows mysteriously reappear. I can't figure out how to get rid of this.

I restarted Studio and it seemed to go away. Then I refactored a piece of code (Extract to Method Ctrl+Alt+M) and then these windows appeared again. Sometimes these windows appear on a 2nd monitor instead of on top of the code area on the monitor with Android Studio. But eventually they end up back on top of my code editor window.

I have searched hi and low for what this is. Studio help, new features, blog, etc. I am sure that I am just using the wrong terminology to find the answer, so hoping someone else knows.

enter image description here

ANSWER

Answered 2021-Aug-15 at 15:29

Just stumbled upon the same thing (strange windows upon attempting to refactor some code after updating to Arctic Fox). After a lot of searching around the options/menus/internet this fixed it for me:

Navigate to:

File > Settings... > Editor > Code Editing

under

Refactorings > Specify refactoring options:

select

In modal dialogs

Press OK.

Fingers crossed refactoring works.

🤞

Further step: Restart Android Studio

Source https://stackoverflow.com/questions/68682622

QUESTION

How do I correct syntax highlight in VS Code for PHP 8.1 Enum Class?

Asked 2022-Jan-12 at 07:13

My Code:

1namespace App\Enum;
2
3enum HomeStatus: string
4{
5    case RENT = 'rent';
6    case MOVE_IN = 'move_in';
7    case SOLD = 'sold';
8    case COMING_SOON = 'coming_soon';
9}
10

The code above is executing and working but the editor has the following error:

Unexpected 'Name'. Expected ';'.intelephense(1001)

I am using Intelephense v1.8.0 which I believe is the latest.

In the Change Log it says:

PHP 8.1 is now the default version.

I'm thinking that either that's not the case or PHP 8.1 does not yet have support for enums.

Is there a way to resolve this or is this something that is not yet supported?

EDIT As requested here's a screenshot of the error.

enter image description here

ANSWER

Answered 2022-Jan-12 at 07:13

Open Visual Studio Code settings and ensure the intelephense.environment.phpVersion directive is set to "8.1.0". It can be set for the whole program or for specific projects.

intelephense.environment.phpVersion

1namespace App\Enum;
2
3enum HomeStatus: string
4{
5    case RENT = 'rent';
6    case MOVE_IN = 'move_in';
7    case SOLD = 'sold';
8    case COMING_SOON = 'coming_soon';
9}
10{
11    &quot;intelephense.environment.phpVersion&quot;: &quot;8.1.0&quot;
12}
13

Source https://stackoverflow.com/questions/70621681

QUESTION

What should `foo.template bar()` do when there's both a template and a non-template overload?

Asked 2022-Jan-09 at 00:42

A coworker shared this code with me:

run on gcc.godbolt.org

1#include &lt;iostream&gt;
2
3struct A
4{
5    void foo() {std::cout &lt;&lt; &quot;1\n&quot;;}
6    
7    template &lt;typename T = int&gt;
8    void foo() {std::cout &lt;&lt; &quot;2\n&quot;;}
9};
10
11int main()
12{
13    A x;
14    x.template foo();
15}
16

GCC prints 1, Clang prints 2, and MSVC complains about missing template arguments.

Which compiler is correct?

ANSWER

Answered 2022-Jan-09 at 00:42

[temp.names]/5 says that a name prefixed by template must be a template-id, meaning that it must have a template argument list. (Or it can refer to a class/alias template without template argument list, but this is deprecated in the current draft as a result of P1787R6 authored by @DavisHerring.)

There is even an example almost identical to yours under it, identifying your use of template as ill-formed.

The requirement and example comes from CWG defect report 96, in which the possible ambiguity without the requirement is considered.

Open GCC bug report for this is here. I was not able to find a Clang bug report, but searching for it isn't that easy. Its implementation status page for defect reports however does list the defect report as unimplemented.

Source https://stackoverflow.com/questions/70635683

Community Discussions contain sources that include Stack Exchange Network

Tutorials and Learning Resources in Editor

Tutorials and Learning Resources are not available at this moment for Editor

Share this Page

share link

Get latest updates on Editor