Coder Social home page Coder Social logo

masscodeio / masscode Goto Github PK

View Code? Open in Web Editor NEW
5.4K 5.4K 177.0 4.32 MB

A free and open source code snippets manager for developers

Home Page: https://masscode.io

License: GNU Affero General Public License v3.0

Shell 0.04% JavaScript 0.70% TypeScript 39.06% Vue 49.05% SCSS 11.05% HTML 0.10%
developer-tools electron linux macos notes productivity snippets snippets-manager vite vue windows

masscode's People

Contributors

adpe avatar alirezaivaz avatar andercard0 avatar antonreshetov avatar auroratea avatar dlebedenko avatar emircanerkul avatar fredatgithub avatar gracix avatar jirisko avatar nextdoorpanda avatar sangyuxiaowu avatar seulasslintan avatar szabizs avatar wilfredinni avatar yari27 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

masscode's Issues

[Bug]: massCode no longer opens (Uncaught Exception error)

Describe the bug

Hi there,

I had massCode setup with google drive (so that I could sync its json database across any machine).

Somewhere along the line the application would refuse to open and would display an error message (see screenshot for details).

My best guess is that google drives volume label may have changed at some point (potentially causing the error). Or there is some permissions issue.

I have tried uninstalling and reinstalling, but the same error message persists and I am unable to open the application.

2022-05-10 10_12_05

Screenshot 2022-07-13 at 2 09 29 pm

To reproduce

  1. Go to ...
  2. Click on ...
  3. Scroll down to ..
  4. See error

Version

2.9.0

OS

Windows 8, Windows 10, MacOS Monterey 12.4

Validations

[Bug]: Editor broken

Describe the bug

image

The position marker does not match the visible line and that makes it incredibly hard to edit a snippet. E.g. : in the photo the marker points to the first char of the line and not to the character visually pointed (between 6 and 0)

To reproduce

Edit a snippet and go to the end of the line: it will appear way beyond the last characteer

Version

2.9.0

OS

Ubuntu

Validations

[Bug]: JavaScript Error

Describe the bug

When I open the program, I get this error
image

To reproduce

Just Open the program and this is the first thing I see.

Version

2.8.1

OS

Windows 11

Validations

Editor -> Format overrides snippets

Describe the bug
Editor -> Format overrides snippets

Hello, i have two snippets. I format the first one using the Editor -> Format function.
If I do the same to the second snippet, the second snippet is overwritten with the first snippet.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Menu Editor
  2. Click on 'Format'
  3. The snippet is formatted correctly
  4. Choose a different snippet
  5. The current snippet will be overwritten with the previously formatted snippet

Expected behavior
no override the current snippet

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 2.0.1

[Bug]: snap move storage issue

Describe the bug

On Linux (snap), it's difficult to select a directory to move storage to.

The file chooser seems to be confined to default directory: but if a user hits CTRL+L and specifies manually a path, the file gets written and everything works.

That leads to misunderstandings, initially I thought there was a problem with snap confinement, but seems it's not the case.

To reproduce

  1. Go to preferences
  2. Click on Move storage
  3. Try to select a folder with the file picker
  4. See issue

Version

2.6.1

OS

Ubuntu 22.04

Validations

Search is not working

Running the latest version on windows 11 (migrating all snippets from old 1.3) the search show always all snippets.

image

Sshots errors from console after trying to search something
image
... at the end
image

[Bug]: Windows Sees the Exe as Malicious

Describe the bug

When running the install executable Windows Defender sees it as a unknown exe and halts the installation.

To reproduce

Just run massCode.Setup.2.7.0.exe and the problem starts and ends.

Version

2.7.0

OS

Windows 11

Validations

"Preview markdown" is also applied to non-markdown fragments

Hi, I just upgraded from v1 to v2.0.1 and imported my data. Everything works fine so far, I just found one minor issue regarding the markdown preview. It seems like the markdown preview setting isn't reset when switching fragments.

Reproduction steps

  1. Create a snippet
  2. Set the language to Markdown and add some Markdown text
  3. Add a new fragment to the snippet
  4. Set the language of the newly created snippet to anything but markdown (HTML for example) and add some content
  5. Go back to the first fragment (the Markdown text)
  6. Enable the Markdown preview
  7. Go back to the 2nd fragment (non-Markdown)

Expected result
The content of the 2nd fragment should be shown, with code highlighting.

Actual result
The content is rendered as markdown.

[Bug]: xml comment uncompleted

Describe the bug

when use xml language, if the comment is uncompleted, the application stuck.

To reproduce

  1. language: xml
  2. code:
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- comment1 -->
<!-- comment2 -->
</settings>
  1. delete the arrow in comment1
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- comment1 --
<!-- comment2 -->
</settings>
  1. cant type anything
  2. See error

Version

3.4.0

OS

Windows 10

Validations

[Bug]: Uncaught exception, pixelated UI

Describe the bug

When I start the application, I would sometimes get this js error. After I close the error prompt, It will then open a second MassCode window without closing the original window.

uncaught exception

The application itself looks very pixelated but the pixelation goes away if I click on the menu items
pixelated UI

All of these issues started not in the most recent update but in the one before that

To reproduce

Just open the application

Version

2.8.1

OS

Windows 11

Validations

[Bug]: Fragments hidden by Scroll bar

Describe the bug

When Snippet has a lot of Fragments, they are not visible as they are hidden by horizontal ScrollBar

image

To reproduce

  1. Create Snippet
  2. Add Fragments until Horizontal Scrollbar appears

Version

2.6.1

OS

Windows 10

Validations

[Bug]: No Snippets are shown, and no Folders can be created

Describe the bug

Freshly installed 2.5.0 version, two major issues:

  1. Open MassCode, no pre-existing snippets are shown (heart-attack follows). You must add a Snippet, and only then old ones show.
  2. It's impossible to create Folders, either from the + button in the UI or the File menu.

To reproduce

See:

ScreenFlow.mp4

Version

2.5.0

OS

macOS Monterey 12.3.1 - M1 Max

Validations

Unable to run App v2.0 beta 2. Mac ARM64

On a clean install, when you try to open it for the first time, this is presented and no window will ever come:

Uncaught Exception:
Error: ENOENT: no such file or directory, open '/Users/eriond/massCode/db.json'
at Object.openSync (node:fs:585:3)
at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1800)
at Object.writeFileSync (node:fs:2153:35)
at writeToFile (/Applications/massCode.app/Contents/Resources/app.asar/src/main/services/db/index.js:53:24)
at createDb (/Applications/massCode.app/Contents/Resources/app.asar/src/main/services/db/index.js:45:5)
at Object.<anonymous> (/Applications/massCode.app/Contents/Resources/app.asar/src/main/index.js:19:19)
at Module._compile (node:internal/modules/cjs/loader:1116:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)

The manual workaround is easy, create the folder "massCode" inside your $HOME and the app will launch.

M1 Max.
Monterey 12.3.1

[Bug]:

Describe the bug

I have reinstalled my computer so had to install MassCode again.
I point to the same location and can see all snippets on the list.
When selecting one nothing is displayed and I have a message 'No Snippet Selected

To reproduce

  1. Go to Inbox, Favorites, or All Snippets
  2. Click on one of the snippets from the list
  3. See a message 'No Snippet Selected'

Version

2.10.0

OS

Windows 11

Validations

[Bug]: Install over prior edition destroys snippet database

Describe the bug

Having an older edition, MassCode advises me there is an update available. I downloaded the latest version. During the install, it notices there is an older version. No warning that installing the new version erases the old database. Fortunately, I only had a handful of items but for a new install to erase old data files is unacceptable behavior.

My System: Win 10 Pro 64-bit Electron 16.0.5 Version 2.2.0

To reproduce

  1. Have an older version installed.
  2. Add some snippets
  3. Notice update available
  4. Quit program, download new version
  5. Install new version
  6. Run new version
  7. Old database is gone (also program settings)
  8. [optional] Cry and/or become very angry.

Version

2.2.0

OS

Windows 10 Peofessional 64-Bit

Validations

[Feature]:

Describe the bug

Please add *.vue Language! :-)

To reproduce

Just a wish

Version

latest Version

OS

macOS Monterey (Intel)

Validations

[Bug]: cann't drag the snippet back to folder from trash

Describe the bug

cann't drag the snippet back to folder from trash

To reproduce

note-mode-demo.mp4
  1. Go to Trash
  2. Click on snippet
  3. drag to a folder
  4. the snippet cann't drag back to folder, still stay at trash, and see an error 👇 in Developer Tools
index.0193768c.js:73 Uncaught (in promise) TypeError: e is not iterable
    at Proxy.getSnippetsByFolderIds (index.0193768c.js:73)
    at Proxy.<anonymous> (index.0193768c.js:8)
    at q (index.0193768c.js:1476)

the version of massCode and System

Snipaste_2022-08-09_18-37-11

Version

3.1.0

OS

Windows11

Validations

[Bug]: masscode is frequently unresponsive

Describe the bug

After minimizing the masscode window for a while,maximize the masscode windows and select a left folder. masscode is frequently unresponsive。
工作区 1_002

To reproduce

(1)minimize the masscode window for a while.
(2)maximize the masscode windows and select a left folder.

Version

2.9.0(snap)

OS

ubuntu 22.04

Validations

[Bug]: Javascript error

Describe the bug

Hi,
I was running massCode v1.3.1 without any problem, but after installing 2.5.0, I got this error windows as soon as I run it :

image

Then I press OK and massCode appears but is unusable (can't add folder or create snippet).

I install massCode 1.3.1 back and everything works fine again.

To reproduce

step 1 : run MassCode 2.5.0 (or 2.4.0, ir 2.3...)
Done! ;)

Version

all version 2.x

OS

Windows 10

Validations

[Bug]: After Upgrade snippets gone

Describe the bug

After I upgrade from version 2.11.0 on Windows to 3.1.0 all snippets are gone.
Default Folder is displayed all empty.

Checked file Preferences > Storage path

To reproduce

  1. Download 3.1.0 and install
  2. Open massCode
  3. Snippets are gone

Version

3.1.0

OS

Windows 10

Validations

Editor Format override snippets

I have two snippets.
I format the first one using the Editor -> Format function.
If I do the same to the second snippet, the second snippet is overwritten with the first snippet.

[BUG] Could not import database file from Windows > Mac App

Describe the bug
I want to migrate snippets which have been stored in my Desktop PC, windows 10, and import into Mac OS (my Laptop)

Navigated to the target folder, MassCode did not find the file
in windows: data.json
In mac : db.json

I tried to rename the file to match the filename in Macos but seems the App could not read the file's structure

Export from already existing MassCode?

Hi

I was using Masscode until now already and I love it! Will the new MassCode reuse the same database or are you planning to move to a new solution? If yes, will there be a possibility to export / import the snippets?

Thanks and keep up the great work :-)

[Bug]: Pixelated UI

Describe the bug

The application itself looks very pixelated but the pixelation goes away if I click on the menu items
pixelated UI

pixelated UI

To reproduce

Just open the application

Version

2.8.1

OS

Windows 11

Validations

[Bug]: Won't install on Debian. No instructions provided.

Describe the bug

Installation returns error: cannot find signatures with metadata for snap "masscode_2.6.1_amd64.snap".
Apparently not the only one seeing this issue: https://itsfoss.com/snap-metadata-signature-error/

Looks like it might be a great application, but should install properly with apt. Don't have time to troubleshoot.

To reproduce

  1. Download the distribution file
  2. Attempt to install via "snap"
  3. Get error

Version

2.6.1

OS

Debian 10

Validations

[Bug]: Cannot search text in Description

Describe the bug

Can't search keywords from description of a snippet.

To reproduce

  1. Go to "Search".
  2. Type some words only in "Description" field of a snippet.
  3. No match found.

Version

2.10.0

OS

Windows 10

Validations

[Bug]: Right-click menu blinking disappear Cannot delete files

Describe the bug

MacOS 10.13.6 has a bug. The right click menu blinks and disappears. Files cannot be deleted

To reproduce

MacOS 10.13.6 has a bug. The right click menu blinks and disappears. Files cannot be deleted

Version

2.9.0 and 2.10.0

OS

macOS High Sierra 10.13.6

Validations

[Bug]: Homebrew cask out of date

Describe the bug

MassCode homebrew cask still installs version 1.3.1. Please update the cask to install latest version 2.x

https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/masscode.rb

To reproduce

  1. brew install masscode
  2. launch masscode
  3. check masscode version

Version

1.3.1

OS

macOS Monterey 12.4

Validations

[Bug]: The editor's body cannot be resized when the Window is resized.

Describe the bug

The editor's body cannot be resized when the Window is resized.
masscode_bug

To reproduce

The editor's body cannot be resized when the Window is resized. After the window is resized, click on other snippets to fill the editor with snippets-view.

Version

3.3.0

OS

Windows 11

Validations

[Bug]: Doesn't load old snippets from v2.0.0-beta.1 to v2.1.1

Describe the bug

After Updating to version 2.1.1 from v2.0.0-beta.1, using the open storage I open the folder I have backed up and have my db.json. It just shows the titles of snippets. Then restarted my MassCode, but MassCode was empty.

I have tried to change the address of folder to another folder and then open it.
It shows the numbers of my snippets, but then I close the preferences. Again, MassCode was empty.

I have tried other version of MassCode, but I had the same problem.

How to reproduce it

  1. Fresh installation of the app
  2. Opening the preference then storage
  3. Open Storage and selecting the folder containing the db.json
  4. Closing the preference
  5. App shows the list of Snippets, but the snippets are empty, just the titles
  6. Restarting the app
  7. The MassCode is empty

ezgif-4-e13933686a

Version

8.1.1

OS

macOS 12.3.1

Validations

“massCode” can’t be opened because Apple cannot check it for malicious software.

Describe the bug

Unable to open the massCode app after installing.

To reproduce

  1. Download the dmg from http://masscode.io/
  2. Click on the dmg, drag and drop masscode app to applications
  3. Open massCode app
  4. Error will be shown "Unable to open the massCode app after installing. Try contacting developer to update the app..."

Version

2.8.1

OS

macOS Monterey 12.4

Validations

[Bug]: Uncaught Exception

Describe the bug

When I start the application, I would sometimes get this js error. After I close the error prompt, It will then open a second MassCode window without closing the original window.
uncaught exception

To reproduce

Just open the application

Version

2.8.1

OS

Windows 11

Validations

[Bug]: Incorrect <search> results on windows10 and 11

Describe the bug

feature is not working correctly. (windows 10 and 11). I have 120 snippets and most of them are from c++.
When I try to search for example: "vector" then in the results I have almost all snippets but in some I have some letters marked. It is hard to described in a short message, and I'm pretty sure I'm not only one with this problem. (I have this happening on both my laptops, and also I did super clean installation uninstalling it by revo uninstaller).

About me
just a beginner, using Your awesome software to do "smart notes", and search feature is important for me

To reproduce

  1. open software
  2. click on
  3. in section, enter string to search
  4. analyse the results :)

Version

2.4 ; 2.5

OS

win10 ; win 11

Validations

[Feature Request]: Simplify getting a snippet

Feature request

This app might become way more useful if you can find snippets with a hotkey and paste those in your current location.

Examples that do that are CopyQ, where you can press a hotkey and then search through your clipboard history and select and paste it in your previous location by pressing enter.

Another example is Typinator, which markets itself as a text expander. But on a hotkey, you can search all your options. What actually makes it a better snippet manager than anything else on the market. However, Typinator is only for macOS, and when you switch to other environments you miss something as useful as that.

This is how you search through your snippets:
image

Another very beneficial feature it has is when you create snippets you can mark those as sensitive and then those would be masked in the above image. (I was keeping some longer and less sensitive passwords on the snippet manager too)

I like the implementation of massCode, but I think it would become ten folds more useful if they make finding snippets way faster (and not tie themselves to editors with extensions)

To reproduce

To find a snippet you need:

  1. Open the app
  2. Click the search button
  3. Switch to the correct fragment
  4. Select the snippet you need

This process is way too time-consuming for something such as snippet management.

Version

all

OS

all

Validations

[Bug]: Folder renaming doesn't work

Describe the bug

After moving the folder directory structure, the right-click menu renaming function does not work.

Test double-click to modify available. The software is normal after restarting.

111

To reproduce

  1. make new folder
  2. Drag and drop to modify the folder structure
    3.Rename using context menu

Version

2.10.0

OS

windwos10

Validations

[Bug]: Search does not seem to be working correctly in 2.8

Describe the bug

Search results are not returning correct/consistent results. Here is one example:
image

Also, other search scenario shows correct results for a split-second, but then returns to full/all snippets, which is obviously not correct.

To reproduce

After installing 2.8, I tried to search for a specific text ("Splunk") in a snippet name. The results briefly flashed with the correct results (there are 2), but then immediately returned to a result of all snippets. I closed it down, restarted, and tried it again. This time I get 1 correct result at top of list, and then all other (non-search-correct) snippets appear below it (this is example in the screenshot found in the description above). This all worked fine in 2.6.1.

Version

2.8

OS

Windows 10

Validations

[Bug]: Preview Screenshot error

Describe the bug

4 spaces , enter new line and tab(tab size = 4) can column alignment in the code editor, but can't column alignment in preview screenshot.

To reproduce

  1. first line: 4 spaces
  2. second line: only enter new line
  3. third line: Back to the beginning of the line and use tab(tab size = 4)

in code editor:
image

but in preview screenshot:
image

Version

3.3.0

OS

Windows 11

Validations

[Bug]: Can't open massCode on this Mac

Describe the bug

App won't run, it just shows this error:

image

My macbookpro is a 2019 intel based one.

To reproduce

  1. Go to website
  2. Download the suggested installer for mac
  3. Open it and drag the app into the applications folder
  4. Run massCode and see error

Version

2.9.0

OS

macOS Monterey 12.2.1

Validations

[Bug]: Search does not update on-time and does not jump to

Describe the bug

Version: 2.6.1
Electron: 16.2.3
Chrome: 96.0.4664.174
Node.js: 16.9.1
V8: 9.6.180.23-electron.0
OS: Darwin x64 20.6.0

Bug 1: When I add a new snippet, it does not immediately show up in the search results. After a restart it now shows in the results. I think there is a cache mechanism bug.

Bug 2: Also when I search, the snippet on the right will not jump to the search term position, making the searching much less useful.

Bug 3: Every time when I undo using Cmd + Z, the snippet will scroll down to lowest part.

To reproduce

  1. Go to ...
  2. Click on ...
  3. Scroll down to ..
  4. See error

Version

2.6.1

OS

macOS

Validations

[Bug]: new folder error

Describe the bug

My version is 2.9.
When creating a new folder, the default file name is Untitled folder .
Right-click the folder and select Rename , when entering a new name, the input will fail, and the folder name is difficult to enter correctly.
The folder name I entered is in English, but my computer system language is Simplified Chinese.

To reproduce

  1. creating a new folder
  2. Right-click the folder and select Rename

Version

2.9.0

OS

Windows 10

Validations

Dev Environment Should Check for `os.homedir() + '/massCode/dev`

To help encourage contributions from the community, there should probably be a section of the README for "setting up your dev". I downloaded the source and found that I had to manually create the dev folder inside my $HOME/massCode.

I think that if the NODE_ENV is set to Development - it should create this directory automatically, so that the database can be initialized and the app can start the first time when launching the dev locally.

I just grabbed the source and I'm still looking it over in my free time. I realize you just pushed this repo not that long ago, and you may already be aware of this issue. If I have some time, I can look into this while I continue to work my way through the code so far.

Command: yarn run dev:watch

Error:
[Electron] App threw an error during load
[Electron] Error: ENOENT: no such file or directory, open '/Users/username/massCode/dev/db.json

Expected behaviour:
Missing directory is automatically created so that the db can init

Work Around:
Manually creating the dev directory will allow the app to start and init a fresh db.json

[Bug]: Cannot create a new snippet

Describe the bug

Cannot create a new snippet on a fresh install
This is on a 14" Macbook Pro (Apple Silicon), and I have installed the arm version of the app.

To reproduce

Press the "+" icon on the top (next to search), or do a Cmd + N
Nothing happens

I have tried to uninstall, delete the storage, and re-install. No luck.

Version

2.2.0

OS

macOS Monterey 12.3

Validations

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.