mark-adams / open-on-bitbucket Goto Github PK
View Code? Open in Web Editor NEWAtom package for opening files on Bitbucket (https://bitbucket.org)
License: MIT License
Atom package for opening files on Bitbucket (https://bitbucket.org)
License: MIT License
Our port is 8443 for our private Bitbucket URLs. Appears to fall off the links when doing alt-b o.
When I try to open а file in Bitbucket by cmd+shift+p command, this issue occurs
Atom Version: 1.12.6
Electron Version: 1.3.9
System: Mac OS X 10.12.1
Thrown From: open-on-bitbucket package, v0.4.0
Uncaught ReferenceError: filePath is not defined
At /Users/Constantin/.atom/packages/open-on-bitbucket/lib/bitbucket-file.coffee:15
ReferenceError: filePath is not defined
at new BitbucketFile (/Users/Constantin/.atom/packages/open-on-bitbucket/lib/bitbucket-file.coffee:15:45)
at Function.module.exports.BitbucketFile.fromPath (/Users/Constantin/.atom/packages/open-on-bitbucket/lib/bitbucket-file.coffee:11:9)
at atom-pane.open-on-bitbucket:file (/Users/Constantin/.atom/packages/open-on-bitbucket/lib/main.coffee:14:25)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:259:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:59
at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:210:32)
at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:259:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:59
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:587:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:382:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:106:36)
at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:59)
-0:04.7.0 command-palette:toggle (atom-text-editor.editor.is-focused)
4x -0:02.5.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-0:00.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-0:00.1.0 open-on-bitbucket:file (atom-text-editor.editor)
Is it currently possible to change what url the file will be opened to? Looks like it defaults to stash
.
This just appeared today.... never seen this error before, and I haven't changed any configurations
@mark-adams thanks for your work on this :)
Can we publish a new version to get this fix out?
If I try to use open-on-bitbucket to open a file on Bitbucket, it just opens in master, not in the current branch I'm actually working on (assuming it is uploaded to the server).
I use tree-view-open-files and I disabled the tabs package. Is it possible to make this work with tabs disabled?
For Stash/Bitbucket-Server, the bitbucketCloudRepoUrl
function does not remove the .git from the url when the url is a non https.
1.When i open the repo and click on Packages -> open on bitbucket -> then select any option.
Atom: 1.21.1 x64
Electron: 1.6.15
OS: Microsoft Windows 10 Pro
Thrown From: open-on-bitbucket package 0.5.0
Uncaught TypeError: Cannot read property '0' of null
At C:\Users\kunal\.atom\packages\open-on-bitbucket\lib\bitbucket-file.coffee:208
TypeError: Cannot read property '0' of null
at BitbucketFile.module.exports.BitbucketFile.stashRepoUrlRepoUrl (/packages/open-on-bitbucket/lib/bitbucket-file.coffee:208:6)
at BitbucketFile.module.exports.BitbucketFile.bitbucketRepoUrl (/packages/open-on-bitbucket/lib/bitbucket-file.coffee:181:15)
at BitbucketFile.module.exports.BitbucketFile.validationErrors (/packages/open-on-bitbucket/lib/bitbucket-file.coffee:96:13)
at BitbucketFile.module.exports.BitbucketFile.isOpenable (/packages/open-on-bitbucket/lib/bitbucket-file.coffee:86:6)
at BitbucketFile.module.exports.BitbucketFile.blame (/packages/open-on-bitbucket/lib/bitbucket-file.coffee:36:9)
at /packages/open-on-bitbucket/lib/main.coffee:22:44)
at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.21.1/resources/app/src/command-registry.js:381:36)
at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.21.1/resources/app/src/command-registry.js:266:23)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (~/AppData/Local/atom/app-1.21.1/resources/app/src/atom-environment.js:1348:34)
at EventEmitter.outerCallback (~/AppData/Local/atom/app-1.21.1/resources/app/src/application-delegate.js:335:31)
at emitThree (events.js:116:13)
at EventEmitter.emit (events.js:194:7)
-1:41.1.0 open-on-bitbucket:repository (atom-pane.pane.active)
-1:34.9.0 open-on-bitbucket:branch-compare (div.tool-panel.tree-view)
-1:17.6.0 open-on-bitbucket:blame (input.hidden-input)
open-on-bitbucket 0.5.0
Add an image showing the command palette to the README
The old way an url to browse to a file is build is:
bitbucket.org/{team}/{repo}/src/{branch}/{folder}/{file}
if the "New source browser experience" is enabled in the Bitbucket settings the URL is build differently:
bitbucket.org/{team}/{repo}/src/{latest-commit}/{folder}/{file}
because of this you'll get a 404 error when trying to use the package with the "New source browser experience" option enabled.
Maybe a toggle in the package settings to toggle between the old way and the new way? I guess the new source browser will be default soon.
Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.